2 lines
53 KiB
JavaScript
2 lines
53 KiB
JavaScript
!function(){"use strict";let e={};var t;t=function(e){e.defineMode("stylus",(function(e){for(var f,g,b,v,k=e.indentUnit,y="",w=m(t),x=/^(a|b|i|s|col|em)$/i,C=m(r),z=m(a),M=m(c),O=m(l),A=m(n),T=p(n),E=m(o),S=m(i),L=m(s),N=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,H=p(d),P=m(u),F=new RegExp(/^\-(moz|ms|o|webkit)-/i),j=m(h),q="",R={};y.length<k;)y+=" ";function B(e,t){if(q=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=q?q[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),f=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=I,I(e,t);if('"'==f||"'"==f)return e.next(),t.tokenize=$(f),t.tokenize(e,t);if("@"==f)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==f){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(F)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==f?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==f&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(T)?("("==e.peek()&&(t.tokenize=W),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(H)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!G(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(N)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(f)?(e.next(),[null,f]):(e.next(),[null,null])}function I(e,t){for(var n,i=!1;null!=(n=e.next());){if(i&&"/"==n){t.tokenize=null;break}i="*"==n}return["comment","comment"]}function $(e){return function(t,n){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==i}return(i==e||!o&&")"!=e)&&(n.tokenize=null),["string","string"]}}function W(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=$(")"),[null,"("]}function _(e,t,n,i){this.type=e,this.indent=t,this.prev=n,this.line=i||{firstWord:"",indent:0}}function D(e,t,n,i){return i=i>=0?i:k,e.context=new _(n,t.indentation()+i,e.context),n}function U(e,t){var n=e.context.indent-k;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function K(e,t,n,i){for(var o=i||1;o>0;o--)n.context=n.context.prev;return function(e,t,n){return R[n.context.type](e,t,n)}(e,t,n)}function G(e){return e.toLowerCase()in w}function Y(e){return(e=e.toLowerCase())in C||e in L}function V(e){return e.toLowerCase()in P}function X(e){return e.toLowerCase().match(F)}function Z(e){var t=e.toLowerCase(),n="variable-2";return G(e)?n="tag":V(e)?n="block-keyword":Y(e)?n="property":t in M||t in j?n="atom":"return"==t||t in O?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function J(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function Q(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function ie(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return R.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return D(n,t,"block",0);if(Q(e,t))return D(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!G(ie(t)))return D(n,t,"block",0);if(J(e,t))return D(n,t,"block");if("}"==e&&ne(t))return D(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||V(ie(t))?D(n,t,"variableName"):D(n,t,"variableName",0);if("="==e)return ne(t)||V(ie(t))?D(n,t,"block"):D(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return v="tag",D(n,t,"block");if(ee(e,t))return D(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return D(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return D(n,t,"keyframes");if(/@extends?/.test(e))return D(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&Y(t.current().slice(1))?(v="variable-2","block"):/(@import|@require|@charset)/.test(e)?D(n,t,"block",0):D(n,t,"block");if("reference"==e&&ne(t))return D(n,t,"block");if("("==e)return D(n,t,"parens");if("vendor-prefixes"==e)return D(n,t,"vendorPrefixes");if("word"==e){var i=t.current();if("property"==(v=Z(i)))return te(t)?D(n,t,"block",0):(v="atom","block");if("tag"==v){if(/embed|menu|pre|progress|sub|table/.test(i)&&Y(ie(t)))return v="atom","block";if(t.string.match(new RegExp("\\[\\s*"+i+"|"+i+"\\s*\\]")))return v="atom","block";if(x.test(i)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!G(ie(t))))return v="variable-2",V(ie(t))?"block":D(n,t,"block",0);if(ne(t))return D(n,t,"block")}if("block-keyword"==v)return v="keyword",t.current(/(if|unless)/)&&!te(t)?"block":D(n,t,"block");if("return"==i)return D(n,t,"block",0);if("variable-2"==v&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return D(n,t,"block")}return n.context.type},R.parens=function(e,t,n){if("("==e)return D(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?U(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||V(ie(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ie(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&G(ie(t))?D(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?D(n,t,"block",0):ne(t)?D(n,t,"block"):D(n,t,"block",0);if(e&&"@"==e.charAt(0)&&Y(t.current().slice(1))&&(v="variable-2"),"word"==e){var i=t.current();"tag"==(v=Z(i))&&x.test(i)&&(v="variable-2"),"property"!=v&&"to"!=i||(v="atom")}return"variable-name"==e?D(n,t,"variableName"):ee(e,t)?D(n,t,"pseudo"):n.context.type},R.vendorPrefixes=function(e,t,n){return"word"==e?(v="property",D(n,t,"block",0)):U(n)},R.pseudo=function(e,t,n){return Y(ie(t.string))?K(e,t,n):(t.match(/^[a-z-]+/),v="variable-3",ne(t)?D(n,t,"block"):U(n))},R.atBlock=function(e,t,n){if("("==e)return D(n,t,"atBlock_parens");if(J(e,t))return D(n,t,"block");if(Q(e,t))return D(n,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();if("tag"==(v=/^(only|not|and|or)$/.test(i)?"keyword":A.hasOwnProperty(i)?"tag":S.hasOwnProperty(i)?"attribute":E.hasOwnProperty(i)?"property":z.hasOwnProperty(i)?"string-2":Z(t.current()))&&ne(t))return D(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(v="keyword"),n.context.type},R.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?D(n,t,"block"):D(n,t,"atBlock");if("word"==e){var i=t.current().toLowerCase();return v=Z(i),/^(max|min)/.test(i)&&(v="property"),"tag"==v&&(v=x.test(i)?"variable-2":"atom"),n.context.type}return R.atBlock(e,t,n)},R.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||G(t.current()))?K(e,t,n):"{"==e?D(n,t,"keyframes"):"}"==e?te(t)?U(n,!0):D(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?D(n,t,"keyframes"):"word"==e&&"block-keyword"==(v=Z(t.current()))?(v="keyword",D(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?D(n,t,ne(t)?"block":"atBlock"):"mixin"==e?D(n,t,"block",0):n.context.type},R.interpolation=function(e,t,n){return"{"==e&&U(n)&&D(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&G(ie(t))?D(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?D(n,t,"block",0):D(n,t,"block"):"variable-name"==e?D(n,t,"variableName",0):("word"==e&&"tag"==(v=Z(t.current()))&&(v="atom"),n.context.type)},R.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?U(n):"word"==e?(v=Z(t.current()),"extend"):U(n)},R.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(v="variable-2"),"variableName"):K(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new _("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||B)(e,t))&&"object"==typeof g&&(b=g[1],g=g[0]),v=g,t.state=R[t.state](b,e,t),v)},indent:function(e,t,n){var i=e.context,o=t&&t.charAt(0),r=i.indent,a=ie(t),s=n.match(/^\s*/)[0].replace(/\t/g,y).length,l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return i.prev&&("}"==o&&("block"==i.type||"atBlock"==i.type||"keyframes"==i.type)||")"==o&&("parens"==i.type||"atBlock_parens"==i.type)||"{"==o&&"at"==i.type)?r=i.indent-k:/(\})/.test(o)||(/@|\$|\d/.test(o)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||V(a)?r=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(o)||G(a)?r=/\,\s*$/.test(l)?c:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||G(l))?s<=c?c:c+k:s:/,\s*$/.test(n)||!X(a)&&!Y(a)||(r=V(l)?s<=c?c:c+k:/^\{/.test(l)?s<=c?s:c+k:X(l)||Y(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||G(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+k:s)),r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],r=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],d=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],u=["for","if","else","unless","from","to"],h=["null","true","false","href","title","type","not-allowed","readonly","disabled"],f=t.concat(n,i,o,r,a,l,c,s,d,u,h,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function p(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}e.registerHelper("hintWords","stylus",f),e.defineMIME("text/x-styl","stylus")},"object"==typeof e&&"object"==typeof{exports:e}?t(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror);let n={};const i={exports:n};!function(e){"object"==typeof n&&"object"==typeof i?e(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){function t(t,n,i){var o,r=t.getWrapperElement();return(o=r.appendChild(document.createElement("div"))).className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(r,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(i,o,r){r||(r={}),n(this,null);var a=t(this,i,r.bottom),s=!1,l=this;function c(t){if("string"==typeof t)u.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),r.onClose&&r.onClose(a)}}var d,u=a.getElementsByTagName("input")[0];return u?(u.focus(),r.value&&(u.value=r.value,!1!==r.selectValueOnOpen&&u.select()),r.onInput&&e.on(u,"input",(function(e){r.onInput(e,u.value,c)})),r.onKeyUp&&e.on(u,"keyup",(function(e){r.onKeyUp(e,u.value,c)})),e.on(u,"keydown",(function(t){r&&r.onKeyDown&&r.onKeyDown(t,u.value,c)||((27==t.keyCode||!1!==r.closeOnEnter&&13==t.keyCode)&&(u.blur(),e.e_stop(t),c()),13==t.keyCode&&o(u.value,t))})),!1!==r.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(d=a.getElementsByTagName("button")[0])&&(e.on(d,"click",(function(){c(),l.focus()})),!1!==r.closeOnBlur&&e.on(d,"blur",c),d.focus()),c})),e.defineExtension("openConfirm",(function(i,o,r){n(this,null);var a=t(this,i,r&&r.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,d=1;function u(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var h=0;h<s.length;++h){var f=s[h];!function(t){e.on(f,"click",(function(n){e.e_preventDefault(n),u(),t&&t(c)}))}(o[h]),e.on(f,"blur",(function(){--d,setTimeout((function(){d<=0&&u()}),200)})),e.on(f,"focus",(function(){++d}))}})),e.defineExtension("openNotification",(function(i,o){n(this,c);var r,a=t(this,i,o&&o.bottom),s=!1,l=o&&void 0!==o.duration?o.duration:5e3;function c(){s||(s=!0,clearTimeout(r),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),l&&(r=setTimeout(c,l)),c}))}));let o={};const r={exports:o};!function(e){"object"==typeof o&&"object"==typeof r?e(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){var t={},n=/[^\s\u00a0]/,i=e.Pos,o=e.cmpPos;function r(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,o=1/0,r=this.listSelections(),a=null,s=r.length-1;s>=0;s--){var l=r[s].from(),c=r[s].to();l.line>=o||(c.line>=o&&(c=i(o,0)),o=l.line,null==a?n.uncomment(l,c,e)?a="un":(n.lineComment(l,c,e),a="line"):"un"==a?n.uncomment(l,c,e):n.lineComment(l,c,e))}})),e.defineExtension("lineComment",(function(e,o,s){s||(s=t);var l=this,c=a(l,e),d=l.getLine(e.line);if(null!=d&&(u=e,h=d,!/\bstring\b/.test(l.getTokenTypeAt(i(u.line,0)))||/^[\'\"\`]/.test(h))){var u,h,f=s.lineComment||c.lineComment;if(f){var p=Math.min(0!=o.ch||o.line==e.line?o.line+1:o.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==o.line;l.operation((function(){if(s.indent){for(var t=null,o=e.line;o<p;++o){var a=(c=l.getLine(o)).slice(0,r(c));(null==t||t.length>a.length)&&(t=a)}for(o=e.line;o<p;++o){var c=l.getLine(o),d=t.length;(g||n.test(c))&&(c.slice(0,d)!=t&&(d=r(c)),l.replaceRange(t+f+m,i(o,0),i(o,d)))}}else for(o=e.line;o<p;++o)(g||n.test(l.getLine(o)))&&l.replaceRange(f+m,i(o,0))}))}else(s.blockCommentStart||c.blockCommentStart)&&(s.fullLines=!0,l.blockComment(e,o,s))}})),e.defineExtension("blockComment",(function(e,r,s){s||(s=t);var l=this,c=a(l,e),d=s.blockCommentStart||c.blockCommentStart,u=s.blockCommentEnd||c.blockCommentEnd;if(d&&u){if(!/\bcomment\b/.test(l.getTokenTypeAt(i(e.line,0)))){var h=Math.min(r.line,l.lastLine());h!=e.line&&0==r.ch&&n.test(l.getLine(h))&&--h;var f=null==s.padding?" ":s.padding;e.line>h||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(h));l.replaceRange(f+u,i(h)),l.replaceRange(d+f,i(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var p=e.line+1;p<=h;++p)(p!=h||t)&&l.replaceRange(a+f,i(p,0))}else{var m=0==o(l.getCursor("to"),r),g=!l.somethingSelected();l.replaceRange(u,r),m&&l.setSelection(g?r:l.getCursor("from"),r),l.replaceRange(d,e)}}))}}else(s.lineComment||c.lineComment)&&0!=s.fullLines&&l.lineComment(e,r,s)})),e.defineExtension("uncomment",(function(e,o,r){r||(r=t);var s,l=this,c=a(l,e),d=Math.min(0!=o.ch||o.line==e.line?o.line:o.line-1,l.lastLine()),u=Math.min(e.line,d),h=r.lineComment||c.lineComment,f=[],p=null==r.padding?" ":r.padding;e:if(h){for(var m=u;m<=d;++m){var g=l.getLine(m),b=g.indexOf(h);if(b>-1&&!/comment/.test(l.getTokenTypeAt(i(m,b+1)))&&(b=-1),-1==b&&n.test(g))break e;if(b>-1&&n.test(g.slice(0,b)))break e;f.push(g)}if(l.operation((function(){for(var e=u;e<=d;++e){var t=f[e-u],n=t.indexOf(h),o=n+h.length;n<0||(t.slice(o,o+p.length)==p&&(o+=p.length),s=!0,l.replaceRange("",i(e,n),i(e,o)))}})),s)return!0}var v=r.blockCommentStart||c.blockCommentStart,k=r.blockCommentEnd||c.blockCommentEnd;if(!v||!k)return!1;var y=r.blockCommentLead||c.blockCommentLead,w=l.getLine(u),x=w.indexOf(v);if(-1==x)return!1;var C=d==u?w:l.getLine(d),z=C.indexOf(k,d==u?x+v.length:0),M=i(u,x+1),O=i(d,z+1);if(-1==z||!/comment/.test(l.getTokenTypeAt(M))||!/comment/.test(l.getTokenTypeAt(O))||l.getRange(M,O,"\n").indexOf(k)>-1)return!1;var A=w.lastIndexOf(v,e.ch),T=-1==A?-1:w.slice(0,e.ch).indexOf(k,A+v.length);if(-1!=A&&-1!=T&&T+k.length!=e.ch)return!1;T=C.indexOf(k,o.ch);var E=C.slice(o.ch).lastIndexOf(v,T-o.ch);return A=-1==T||-1==E?-1:o.ch+E,(-1==T||-1==A||A==o.ch)&&(l.operation((function(){l.replaceRange("",i(d,z-(p&&C.slice(z-p.length,z)==p?p.length:0)),i(d,z+k.length));var e=x+v.length;if(p&&w.slice(e,e+p.length)==p&&(e+=p.length),l.replaceRange("",i(u,x),i(u,e)),y)for(var t=u+1;t<=d;++t){var o=l.getLine(t),r=o.indexOf(y);if(-1!=r&&!n.test(o.slice(0,r))){var a=r+y.length;p&&o.slice(a,a+p.length)==p&&(a+=p.length),l.replaceRange("",i(t,r),i(t,a))}}})),!0)}))}));let a={};const s={exports:a};!function(e){"object"==typeof a&&"object"==typeof s?e(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),n&&(r(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(o))}));var o={Backspace:function(t){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;for(var r=i(o,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var c=d(t,a[l].head);if(!c||r.indexOf(c)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}},Enter:function(t){var n=s(t),o=n&&i(n,"explode");if(!o||t.getOption("disableInput"))return e.Pass;for(var r=t.listSelections(),a=0;a<r.length;a++){if(!r[a].empty())return e.Pass;var c=d(t,r[a].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),r=t.listSelections();for(var n=0;n<r.length;n++){var i=r[n].head.line;t.indentLine(i,null,!0),t.indentLine(i+1,null,!0)}}))}};function r(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";o[i]||(o[i]=a(n))}}function a(t){return function(o){return function(t,o){var r=s(t);if(!r||t.getOption("disableInput"))return e.Pass;var a=i(r,"pairs"),d=a.indexOf(o);if(-1==d)return e.Pass;for(var h,f=i(r,"closeBefore"),p=i(r,"triples"),m=a.charAt(d+1)==o,g=t.listSelections(),b=d%2==0,v=0;v<g.length;v++){var k,y=g[v],w=y.head,x=t.getRange(w,n(w.line,w.ch+1));if(b&&!y.empty())k="surround";else if(!m&&b||x!=o)if(m&&w.ch>1&&p.indexOf(o)>=0&&t.getRange(n(w.line,w.ch-2),w)==o+o){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;k="addFour"}else if(m){var C=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(x)||C==o||e.isWordChar(C))return e.Pass;k="both"}else{if(!b||!(0===x.length||/\s/.test(x)||f.indexOf(x)>-1))return e.Pass;k="both"}else k=m&&u(t,w)?"both":p.indexOf(o)>=0&&t.getRange(w,n(w.line,w.ch+3))==o+o+o?"skipThree":"skip";if(h){if(h!=k)return e.Pass}else h=k}var z=d%2?a.charAt(d-1):o,M=d%2?o:a.charAt(d+1);t.operation((function(){if("skip"==h)l(t,1);else if("skipThree"==h)l(t,3);else if("surround"==h){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=z+e[n]+M;t.replaceSelections(e,"around"),e=t.listSelections().slice();for(n=0;n<e.length;n++)e[n]=c(e[n]);t.setSelections(e)}else"both"==h?(t.replaceSelection(z+M,null),t.triggerElectric(z+M),l(t,-1)):"addFour"==h&&(t.replaceSelection(z+z+z+z,"before"),l(t,1))}))}(o,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){for(var n=[],i=e.listSelections(),o=0,r=0;r<i.length;r++){var a=i[r];a.head==e.getCursor()&&(o=r);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,o)}function c(t){var i=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(i?-1:1)),head:new n(t.head.line,t.head.ch+(i?1:-1))}}function d(e,t){var i=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==i.length?i:null}function u(e,t){var i=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(i.type)&&i.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}r(t.pairs+"`")}));let l={};const c={exports:l};!function(e){"object"==typeof l&&"object"==typeof c?e(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function i(t,i,o,r){var a=function(t,n,i){var o=document.createElement("div");function r(t){if(!o.parentNode)return e.off(document,"mousemove",r);o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}return o.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,o.appendChild(i.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(o):document.body.appendChild(o),e.on(document,"mousemove",r),r(n),null!=o.style.opacity&&(o.style.opacity=1),o}(t,i,o);function s(){var t;e.off(r,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=r;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(r,"mouseout",s)}function o(e,t,n){for(var o in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},r)this.options[o]=r[o];for(var o in t)r.hasOwnProperty(o)?null!=t[o]&&(this.options[o]=t[o]):t.options||(this.linterOptions[o]=t[o]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(!/\bCodeMirror-lint-mark-/.test(n.className))return;for(var o=n.getBoundingClientRect(),r=(o.left+o.right)/2,a=(o.top+o.bottom)/2,s=e.findMarksAt(e.coordsChar({left:r,top:a},"client")),c=[],d=0;d<s.length;++d){var u=s[d].__annotation;u&&c.push(u)}c.length&&function(e,t,n){for(var o=n.target||n.srcElement,r=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];r.appendChild(l(s))}i(e,n,r,o)}(e,c,t)}(e,t)},this.waitingFor=0}var r={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}(e);for(var i=0;i<n.marked.length;++i)n.marked[i].clear();n.marked.length=0}function s(t,n,o,r,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+o,r&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){i(t,e,n,l)})),s}function l(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function c(t){var n=t.state.lint;if(n){var i=n.options,o=i.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(o)if(i.async||o.async)!function(t,n){var i=t.state.lint,o=++i.waitingFor;function r(){o=-1,t.off("change",r)}t.on("change",r),n(t.getValue(),(function(n,a){t.off("change",r),i.waitingFor==o&&(a&&n instanceof e&&(n=a),t.operation((function(){d(t,n)})))}),i.linterOptions,t)}(t,o);else{var r=o(t.getValue(),n.linterOptions,t);if(!r)return;r.then?r.then((function(e){t.operation((function(){d(t,e)}))})):t.operation((function(){d(t,r)}))}}}function d(e,n){var i=e.state.lint;if(i){var o=i.options;a(e);for(var r,c,d=function(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],o=i.from.line;(t[o]||(t[o]=[])).push(i)}return t}(n),u=0;u<d.length;++u){var h=d[u];if(h){var f=[];h=h.filter((function(e){return!(f.indexOf(e.message)>-1)&&f.push(e.message)}));for(var p=null,m=i.hasGutter&&document.createDocumentFragment(),g=0;g<h.length;++g){var b=h[g],v=b.severity;v||(v="error"),c=v,p="error"==(r=p)?r:c,o.formatAnnotation&&(b=o.formatAnnotation(b)),i.hasGutter&&m.appendChild(l(b)),b.to&&i.marked.push(e.markText(b.from,b.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:b}))}i.hasGutter&&e.setGutterMarker(u,t,s(e,m,p,d[u].length>1,o.tooltips)),o.highlightLines&&e.addLineClass(u,"wrap","CodeMirror-lint-line-"+p)}}o.onUpdateLinting&&o.onUpdateLinting(n,d,e)}}function u(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){c(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,i,r){if(r&&r!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",u),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),i){for(var s=n.getOption("gutters"),l=!1,d=0;d<s.length;++d)s[d]==t&&(l=!0);var h=n.state.lint=new o(n,i,l);h.options.lintOnChange&&n.on("change",u),0!=h.options.tooltips&&"gutter"!=h.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",h.onMouseOver),c(n)}})),e.defineExtension("performLint",(function(){c(this)}))}));let d={};const u={exports:d};!function(e){"object"==typeof d&&"object"==typeof u?e(annotatescrollbarEe1D33Fa._):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var o in n)i[o]=n[o];return e.showHint(i)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var i=e.options.hintOptions,o={};for(var r in l)o[r]=l[r];if(i)for(var r in i)void 0!==i[r]&&(o[r]=i[r]);if(n)for(var r in n)void 0!==n[r]&&(o[r]=n[r]);o.hint.resolve&&(o.hint=o.hint.resolve(e,t));return o}(this,this.getCursor("start"),n);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var r=this.state.completionActive=new t(this,n);r.options.hint&&(e.signal(this,"startCompletion",this),r.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e){return"string"==typeof e?e:e.text}function r(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=n,this.picked=!1;var i=this,a=t.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,c=this.hints=s.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var d=t.cm.options.theme;c.className="CodeMirror-hints "+d,this.selectedHint=n.selectedHint||0;for(var u=n.list,h=0;h<u.length;++h){var f=c.appendChild(s.createElement("li")),p=u[h],m="CodeMirror-hint"+(h!=this.selectedHint?"":" CodeMirror-hint-active");null!=p.className&&(m=p.className+" "+m),f.className=m,h==this.selectedHint&&f.setAttribute("aria-selected","true"),f.id=this.id+"-"+h,f.setAttribute("role","option"),p.render?p.render(f,n,p):f.appendChild(s.createTextNode(p.displayText||o(p))),f.hintId=h}var g=t.options.container||s.body,b=a.cursorCoords(t.options.alignWithWord?n.from:null),v=b.left,k=b.bottom,y=!0,w=0,x=0;if(g!==s.body){var C=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(g).position)?g:g.offsetParent,z=C.getBoundingClientRect(),M=s.body.getBoundingClientRect();w=z.left-M.left-C.scrollLeft,x=z.top-M.top-C.scrollTop}c.style.left=v-w+"px",c.style.top=k-x+"px";var O=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),A=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);g.appendChild(c),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var T,E=t.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,S=!!t.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){T=a.getScrollInfo()})),E.bottom-A>0){var L=E.bottom-E.top;if(b.top-(b.bottom-E.top)-L>0)c.style.top=(k=b.top-L-x)+"px",y=!1;else if(L>A){c.style.height=A-5+"px",c.style.top=(k=b.bottom-E.top-x)+"px";var N=a.getCursor();n.from.ch!=N.ch&&(b=a.cursorCoords(N),c.style.left=(v=b.left-w)+"px",E=c.getBoundingClientRect())}}var H,P=E.right-O;if(S&&(P+=a.display.nativeBarWidth),P>0&&(E.right-E.left>O&&(c.style.width=O-5+"px",P-=E.right-E.left-O),c.style.left=(v=b.left-P-w)+"px"),S)for(var F=c.firstChild;F;F=F.nextSibling)F.style.paddingRight=a.display.nativeBarWidth+"px";(a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:n;function r(e,i){var r;r="string"!=typeof i?function(e){return i(e,t)}:n.hasOwnProperty(i)?n[i]:i,o[e]=r}if(i)for(var a in i)i.hasOwnProperty(a)&&r(a,i[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&r(a,s[a]);return o}(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:u.length,close:function(){t.close()},pick:function(){i.pick()},data:n})),t.options.closeOnUnfocus)&&(a.on("blur",this.onBlur=function(){H=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(H)}));a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();T||(T=a.getScrollInfo());var i=k+T.top-e.top,o=i-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(y||(o+=c.offsetHeight),o<=n.top||o>=n.bottom)return t.close();c.style.top=i+"px",c.style.left=v+T.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=r(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(c,"click",(function(e){var n=r(c,e.target||e.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),t.options.completeOnSingleClick&&i.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var j=this.getSelectedHintRange();return 0===j.from&&0===j.to||this.scrollToActive(),e.signal(n,"select",u[this.selectedHint],c.childNodes[this.selectedHint]),!0}function s(e,t,n,i){if(e.async)e(t,i,n);else{var o=e(t,n);o&&o.then?o.then(i):i(o)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n],r=this;this.cm.operation((function(){i.hint?i.hint(r.cm,t,i):r.cm.replaceRange(o(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),r.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),o=this.cm.getLine(t.line);if(t.line!=this.startPos.line||o.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(o.charAt(t.ch-1)))this.close();else{var r=this;this.debounce=n((function(){r.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(i){t.tick==n&&t.finishUpdate(i,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" CodeMirror-hint-active",""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],i=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-i.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+i.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var i,o=t.getHelpers(n,"hint");if(o.length){var r=function(e,t,n){var i=function(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i<t.length;i++)t[i].supportsSelection&&n.push(t[i]);return n}(e,o);!function o(r){if(r==i.length)return t(null);s(i[r],e,n,(function(e){e&&e.list.length>0?t(e):o(r+1)}))}(0)};return r.async=!0,r.supportsSelection=!0,r}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var i,o=t.getCursor(),r=t.getTokenAt(o),a=e.Pos(o.line,r.start),s=o;r.start<o.ch&&/\w/.test(r.string.charAt(o.ch-r.start-1))?i=r.string.substr(0,o.ch-r.start):(i="",a=o);for(var l=[],c=0;c<n.words.length;c++){var d=n.words[c];d.slice(0,i.length)==i&&l.push(d)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}));let h={};const f={exports:h};!function(e){"object"==typeof h&&"object"==typeof f?e(annotatescrollbarEe1D33Fa._,annotatescrollbarEe1D33Fa.c):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../mode/css/css"],e):e(CodeMirror)}((function(e){var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(n){var i=n.getCursor(),o=n.getTokenAt(i),r=e.innerMode(n.getMode(),o.state);if("css"==r.mode.name){if("keyword"==o.type&&0=="!important".indexOf(o.string))return{list:["!important"],from:e.Pos(i.line,o.start),to:e.Pos(i.line,o.end)};var a=o.start,s=i.ch,l=o.string.slice(0,s-a);/[^\w$_-]/.test(l)&&(l="",a=s=i.ch);var c=e.resolveMode("text/css"),d=[],u=r.state.state;return"pseudo"==u||"variable-3"==o.type?h(t):"block"==u||"maybeprop"==u?h(c.propertyKeywords):"prop"==u||"parens"==u||"at"==u||"params"==u?(h(c.valueKeywords),h(c.colorKeywords)):"media"!=u&&"media_parens"!=u||(h(c.mediaTypes),h(c.mediaFeatures)),d.length?{list:d,from:e.Pos(i.line,a),to:e.Pos(i.line,s)}:void 0}function h(e){for(var t in e)l&&0!=t.lastIndexOf(l,0)||d.push(t)}}))}))}();
|