(function(lt){var G={};function Q(K){if(G[K])return G[K].exports;var Y=G[K]={i:K,l:!1,exports:{}};return lt[K].call(Y.exports,Y,Y.exports,Q),Y.l=!0,Y.exports}return Q.m=lt,Q.c=G,Q.d=function(K,Y,se){Q.o(K,Y)||Object.defineProperty(K,Y,{enumerable:!0,get:se})},Q.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},Q.t=function(K,Y){if(Y&1&&(K=Q(K)),Y&8)return K;if(Y&4&&typeof K=="object"&&K&&K.__esModule)return K;var se=Object.create(null);if(Q.r(se),Object.defineProperty(se,"default",{enumerable:!0,value:K}),Y&2&&typeof K!="string")for(var Se in K)Q.d(se,Se,function(xe){return K[xe]}.bind(null,Se));return se},Q.n=function(K){var Y=K&&K.__esModule?function(){return K.default}:function(){return K};return Q.d(Y,"a",Y),Y},Q.o=function(K,Y){return Object.prototype.hasOwnProperty.call(K,Y)},Q.p="/react/build/",Q(Q.s="Kt2+")})({"33yf":function(lt,G,Q){(function(K){function Y(N,P){for(var H=0,V=N.length-1;V>=0;V--){var re=N[V];re==="."?N.splice(V,1):re===".."?(N.splice(V,1),H++):H&&(N.splice(V,1),H--)}if(P)for(;H--;H)N.unshift("..");return N}G.resolve=function(){for(var N="",P=!1,H=arguments.length-1;H>=-1&&!P;H--){var V=H>=0?arguments[H]:K.cwd();if(typeof V!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!V)continue;N=V+"/"+N,P=V.charAt(0)==="/"}return N=Y(Se(N.split("/"),function(re){return!!re}),!P).join("/"),(P?"/":"")+N||"."},G.normalize=function(N){var P=G.isAbsolute(N),H=xe(N,-1)==="/";return N=Y(Se(N.split("/"),function(V){return!!V}),!P).join("/"),!N&&!P&&(N="."),N&&H&&(N+="/"),(P?"/":"")+N},G.isAbsolute=function(N){return N.charAt(0)==="/"},G.join=function(){var N=Array.prototype.slice.call(arguments,0);return G.normalize(Se(N,function(P,H){if(typeof P!="string")throw new TypeError("Arguments to path.join must be strings");return P}).join("/"))},G.relative=function(N,P){N=G.resolve(N).substr(1),P=G.resolve(P).substr(1);function H(D){for(var U=0;U=0&&!(D[I]!=="");I--);return U>I?[]:D.slice(U,I-U+1)}for(var V=H(N.split("/")),re=H(P.split("/")),me=Math.min(V.length,re.length),w=me,_=0;_=1;--me)if(P=N.charCodeAt(me),P===47){if(!re){V=me;break}}else re=!1;return V===-1?H?"/":".":H&&V===1?"/":N.slice(0,V)};function se(N){typeof N!="string"&&(N=N+"");var P=0,H=-1,V=!0,re;for(re=N.length-1;re>=0;--re)if(N.charCodeAt(re)===47){if(!V){P=re+1;break}}else H===-1&&(V=!1,H=re+1);return H===-1?"":N.slice(P,H)}G.basename=function(N,P){var H=se(N);return P&&H.substr(-1*P.length)===P&&(H=H.substr(0,H.length-P.length)),H},G.extname=function(N){typeof N!="string"&&(N=N+"");for(var P=-1,H=0,V=-1,re=!0,me=0,w=N.length-1;w>=0;--w){var _=N.charCodeAt(w);if(_===47){if(!re){H=w+1;break}continue}V===-1&&(re=!1,V=w+1),_===46?P===-1?P=w:me!==1&&(me=1):P!==-1&&(me=-1)}return P===-1||V===-1||me===0||me===1&&P===V-1&&P===H+1?"":N.slice(P,V)};function Se(N,P){if(N.filter)return N.filter(P);for(var H=[],V=0;V{"use strict";var xe={470:H=>{function V(w){if(typeof w!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(w))}function re(w,_){for(var R,D="",U=0,I=-1,ee=0,z=0;z<=w.length;++z){if(z2){var de=D.lastIndexOf("/");if(de!==D.length-1){de===-1?(D="",U=0):U=(D=D.slice(0,de)).length-1-D.lastIndexOf("/"),I=z,ee=0;continue}}else if(D.length===2||D.length===1){D="",U=0,I=z,ee=0;continue}}_&&(D.length>0?D+="/..":D="..",U=2)}else D.length>0?D+="/"+w.slice(I+1,z):D=w.slice(I+1,z),U=z-I-1;I=z,ee=0}else R===46&&ee!==-1?++ee:ee=-1}return D}var me={resolve:function(){for(var w,_="",R=!1,D=arguments.length-1;D>=-1&&!R;D--){var U;D>=0?U=arguments[D]:(w===void 0&&(w=K.cwd()),U=w),V(U),U.length!==0&&(_=U+"/"+_,R=U.charCodeAt(0)===47)}return _=re(_,!R),R?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(w){if(V(w),w.length===0)return".";var _=w.charCodeAt(0)===47,R=w.charCodeAt(w.length-1)===47;return(w=re(w,!_)).length!==0||_||(w="."),w.length>0&&R&&(w+="/"),_?"/"+w:w},isAbsolute:function(w){return V(w),w.length>0&&w.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var w,_=0;_0&&(w===void 0?w=R:w+="/"+R)}return w===void 0?".":me.normalize(w)},relative:function(w,_){if(V(w),V(_),w===_)return"";if((w=me.resolve(w))===(_=me.resolve(_)))return"";for(var R=1;Rz){if(_.charCodeAt(I+ge)===47)return _.slice(I+ge+1);if(ge===0)return _.slice(I+ge)}else U>z&&(w.charCodeAt(R+ge)===47?de=ge:ge===0&&(de=0));break}var Ue=w.charCodeAt(R+ge);if(Ue!==_.charCodeAt(I+ge))break;Ue===47&&(de=ge)}var ct="";for(ge=R+de+1;ge<=D;++ge)ge!==D&&w.charCodeAt(ge)!==47||(ct.length===0?ct+="..":ct+="/..");return ct.length>0?ct+_.slice(I+de):(I+=de,_.charCodeAt(I)===47&&++I,_.slice(I))},_makeLong:function(w){return w},dirname:function(w){if(V(w),w.length===0)return".";for(var _=w.charCodeAt(0),R=_===47,D=-1,U=!0,I=w.length-1;I>=1;--I)if((_=w.charCodeAt(I))===47){if(!U){D=I;break}}else U=!1;return D===-1?R?"/":".":R&&D===1?"//":w.slice(0,D)},basename:function(w,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');V(w);var R,D=0,U=-1,I=!0;if(_!==void 0&&_.length>0&&_.length<=w.length){if(_.length===w.length&&_===w)return"";var ee=_.length-1,z=-1;for(R=w.length-1;R>=0;--R){var de=w.charCodeAt(R);if(de===47){if(!I){D=R+1;break}}else z===-1&&(I=!1,z=R+1),ee>=0&&(de===_.charCodeAt(ee)?--ee==-1&&(U=R):(ee=-1,U=z))}return D===U?U=z:U===-1&&(U=w.length),w.slice(D,U)}for(R=w.length-1;R>=0;--R)if(w.charCodeAt(R)===47){if(!I){D=R+1;break}}else U===-1&&(I=!1,U=R+1);return U===-1?"":w.slice(D,U)},extname:function(w){V(w);for(var _=-1,R=0,D=-1,U=!0,I=0,ee=w.length-1;ee>=0;--ee){var z=w.charCodeAt(ee);if(z!==47)D===-1&&(U=!1,D=ee+1),z===46?_===-1?_=ee:I!==1&&(I=1):_!==-1&&(I=-1);else if(!U){R=ee+1;break}}return _===-1||D===-1||I===0||I===1&&_===D-1&&_===R+1?"":w.slice(_,D)},format:function(w){if(w===null||typeof w!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof w);return function(_,R){var D=R.dir||R.root,U=R.base||(R.name||"")+(R.ext||"");return D?D===R.root?D+U:D+"/"+U:U}(0,w)},parse:function(w){V(w);var _={root:"",dir:"",base:"",ext:"",name:""};if(w.length===0)return _;var R,D=w.charCodeAt(0),U=D===47;U?(_.root="/",R=1):R=0;for(var I=-1,ee=0,z=-1,de=!0,ge=w.length-1,Ue=0;ge>=R;--ge)if((D=w.charCodeAt(ge))!==47)z===-1&&(de=!1,z=ge+1),D===46?I===-1?I=ge:Ue!==1&&(Ue=1):I!==-1&&(Ue=-1);else if(!de){ee=ge+1;break}return I===-1||z===-1||Ue===0||Ue===1&&I===z-1&&I===ee+1?z!==-1&&(_.base=_.name=ee===0&&U?w.slice(1,z):w.slice(ee,z)):(ee===0&&U?(_.name=w.slice(1,I),_.base=w.slice(1,z)):(_.name=w.slice(ee,I),_.base=w.slice(ee,z)),_.ext=w.slice(I,z)),ee>0?_.dir=w.slice(0,ee-1):U&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};me.posix=me,H.exports=me},447:(H,V,re)=>{var me;if(re.r(V),re.d(V,{URI:()=>Ue,Utils:()=>be}),typeof K=="object")me=K.platform==="win32";else if(typeof navigator=="object"){var w=navigator.userAgent;me=w.indexOf("Windows")>=0}var _,R,D=(_=function(A,y){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var ue in M)Object.prototype.hasOwnProperty.call(M,ue)&&(E[ue]=M[ue])})(A,y)},function(A,y){function E(){this.constructor=A}_(A,y),A.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)}),U=/^\w[\w\d+.-]*$/,I=/^\//,ee=/^\/\//,z="",de="/",ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ue=function(){function A(y,E,M,ue,ie,ae){ae===void 0&&(ae=!1),typeof y=="object"?(this.scheme=y.scheme||z,this.authority=y.authority||z,this.path=y.path||z,this.query=y.query||z,this.fragment=y.fragment||z):(this.scheme=function(Ee,Oe){return Ee||Oe?Ee:"file"}(y,ae),this.authority=E||z,this.path=function(Ee,Oe){switch(Ee){case"https":case"http":case"file":Oe?Oe[0]!==de&&(Oe=de+Oe):Oe=de}return Oe}(this.scheme,M||z),this.query=ue||z,this.fragment=ie||z,function(Ee,Oe){if(!Ee.scheme&&Oe)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Ee.authority+'", path: "'+Ee.path+'", query: "'+Ee.query+'", fragment: "'+Ee.fragment+'"}');if(Ee.scheme&&!U.test(Ee.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Ee.path){if(Ee.authority){if(!I.test(Ee.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(ee.test(Ee.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,ae))}return A.isUri=function(y){return y instanceof A||!!y&&typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="function"&&typeof y.with=="function"&&typeof y.toString=="function"},Object.defineProperty(A.prototype,"fsPath",{get:function(){return ht(this,!1)},enumerable:!1,configurable:!0}),A.prototype.with=function(y){if(!y)return this;var E=y.scheme,M=y.authority,ue=y.path,ie=y.query,ae=y.fragment;return E===void 0?E=this.scheme:E===null&&(E=z),M===void 0?M=this.authority:M===null&&(M=z),ue===void 0?ue=this.path:ue===null&&(ue=z),ie===void 0?ie=this.query:ie===null&&(ie=z),ae===void 0?ae=this.fragment:ae===null&&(ae=z),E===this.scheme&&M===this.authority&&ue===this.path&&ie===this.query&&ae===this.fragment?this:new tt(E,M,ue,ie,ae)},A.parse=function(y,E){E===void 0&&(E=!1);var M=ge.exec(y);return M?new tt(M[2]||z,Pe(M[4]||z),Pe(M[5]||z),Pe(M[7]||z),Pe(M[9]||z),E):new tt(z,z,z,z,z)},A.file=function(y){var E=z;if(me&&(y=y.replace(/\\/g,de)),y[0]===de&&y[1]===de){var M=y.indexOf(de,2);M===-1?(E=y.substring(2),y=de):(E=y.substring(2,M),y=y.substring(M)||de)}return new tt("file",E,y,z,z)},A.from=function(y){return new tt(y.scheme,y.authority,y.path,y.query,y.fragment)},A.prototype.toString=function(y){return y===void 0&&(y=!1),Nt(this,y)},A.prototype.toJSON=function(){return this},A.revive=function(y){if(y){if(y instanceof A)return y;var E=new tt(y);return E._formatted=y.external,E._fsPath=y._sep===ct?y.fsPath:null,E}return y},A}(),ct=me?1:void 0,tt=function(A){function y(){var E=A!==null&&A.apply(this,arguments)||this;return E._formatted=null,E._fsPath=null,E}return D(y,A),Object.defineProperty(y.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=ht(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),y.prototype.toString=function(E){return E===void 0&&(E=!1),E?Nt(this,!0):(this._formatted||(this._formatted=Nt(this,!1)),this._formatted)},y.prototype.toJSON=function(){var E={$mid:1};return this._fsPath&&(E.fsPath=this._fsPath,E._sep=ct),this._formatted&&(E.external=this._formatted),this.path&&(E.path=this.path),this.scheme&&(E.scheme=this.scheme),this.authority&&(E.authority=this.authority),this.query&&(E.query=this.query),this.fragment&&(E.fragment=this.fragment),E},y}(Ue),cn=((R={})[58]="%3A",R[47]="%2F",R[63]="%3F",R[35]="%23",R[91]="%5B",R[93]="%5D",R[64]="%40",R[33]="%21",R[36]="%24",R[38]="%26",R[39]="%27",R[40]="%28",R[41]="%29",R[42]="%2A",R[43]="%2B",R[44]="%2C",R[59]="%3B",R[61]="%3D",R[32]="%20",R);function zt(A,y){for(var E=void 0,M=-1,ue=0;ue=97&&ie<=122||ie>=65&&ie<=90||ie>=48&&ie<=57||ie===45||ie===46||ie===95||ie===126||y&&ie===47)M!==-1&&(E+=encodeURIComponent(A.substring(M,ue)),M=-1),E!==void 0&&(E+=A.charAt(ue));else{E===void 0&&(E=A.substr(0,ue));var ae=cn[ie];ae!==void 0?(M!==-1&&(E+=encodeURIComponent(A.substring(M,ue)),M=-1),E+=ae):M===-1&&(M=ue)}}return M!==-1&&(E+=encodeURIComponent(A.substring(M))),E!==void 0?E:A}function xt(A){for(var y=void 0,E=0;E1&&A.scheme==="file"?"//"+A.authority+A.path:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?y?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,me&&(E=E.replace(/\//g,"\\")),E}function Nt(A,y){var E=y?xt:zt,M="",ue=A.scheme,ie=A.authority,ae=A.path,Ee=A.query,Oe=A.fragment;if(ue&&(M+=ue,M+=":"),(ie||ue==="file")&&(M+=de,M+=de),ie){var nt=ie.indexOf("@");if(nt!==-1){var hn=ie.substr(0,nt);ie=ie.substr(nt+1),(nt=hn.indexOf(":"))===-1?M+=E(hn,!1):(M+=E(hn.substr(0,nt),!1),M+=":",M+=E(hn.substr(nt+1),!1)),M+="@"}(nt=(ie=ie.toLowerCase()).indexOf(":"))===-1?M+=E(ie,!1):(M+=E(ie.substr(0,nt),!1),M+=ie.substr(nt))}if(ae){if(ae.length>=3&&ae.charCodeAt(0)===47&&ae.charCodeAt(2)===58)(Tt=ae.charCodeAt(1))>=65&&Tt<=90&&(ae="/"+String.fromCharCode(Tt+32)+":"+ae.substr(3));else if(ae.length>=2&&ae.charCodeAt(1)===58){var Tt;(Tt=ae.charCodeAt(0))>=65&&Tt<=90&&(ae=String.fromCharCode(Tt+32)+":"+ae.substr(2))}M+=E(ae,!0)}return Ee&&(M+="?",M+=E(Ee,!1)),Oe&&(M+="#",M+=y?Oe:zt(Oe,!1)),M}function Ot(A){try{return decodeURIComponent(A)}catch(y){return A.length>3?A.substr(0,3)+Ot(A.substr(3)):A}}var fe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Pe(A){return A.match(fe)?A.replace(fe,function(y){return Ot(y)}):A}var be,je=re(470),St=function(){for(var A=0,y=0,E=arguments.length;y{for(var re in V)P.o(V,re)&&!P.o(H,re)&&Object.defineProperty(H,re,{enumerable:!0,get:V[re]})},P.o=(H,V)=>Object.prototype.hasOwnProperty.call(H,V),P.r=H=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},P(447)})();const{URI:se,Utils:Se}=Y}).call(this,Q("Q2Ig"))},IyRk:function(lt,G){(function(Q){lt.exports=function(){var K={873:function(Se){var xe;xe=function(){return this}();try{xe=xe||new Function("return this")()}catch(N){typeof window=="object"&&(xe=window)}Se.exports=xe}},Y={};function se(Se){if(Y[Se])return Y[Se].exports;var xe=Y[Se]={exports:{}},N=!0;try{K[Se](xe,xe.exports,se),N=!1}finally{N&&delete Y[Se]}return xe.exports}return se.ab=Q+"/",se(873)}()}).call(this,"/")},"Kt2+":function(lt,G,Q){"use strict";Q.r(G);class K{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Y=new K;function se(e){P(e)||Y.onUnexpectedError(e);return}function Se(e){P(e)||Y.onUnexpectedExternalError(e);return}function xe(e){if(e instanceof Error){let{name:t,message:n}=e;const r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r}}return e}const N="Canceled";function P(e){return e instanceof Error&&e.name===N&&e.message===N}function H(){const e=new Error(N);return e.name=e.message,e}function V(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function re(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class me extends Error{constructor(e){super("NotSupported");e&&(this.message=e)}}function w(e){const t=this;let n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var _;(function(e){function t(g){return g&&typeof g=="object"&&typeof g[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(g){yield g}e.single=i;function o(g){return g||n}e.from=o;function s(g){return!g||g[Symbol.iterator]().next().done===!0}e.isEmpty=s;function a(g){return g[Symbol.iterator]().next().value}e.first=a;function c(g,F){for(const x of g)if(F(x))return!0;return!1}e.some=c;function l(g,F){for(const x of g)if(F(x))return x;return}e.find=l;function*d(g,F){for(const x of g)F(x)&&(yield x)}e.filter=d;function*u(g,F){let x=0;for(const L of g)yield F(L,x++)}e.map=u;function*m(...g){for(const F of g)for(const x of F)yield x}e.concat=m;function*f(g){for(const F of g)for(const x of F)yield x}e.concatNested=f;function S(g,F,x){let L=x;for(const q of g)L=F(L,q);return L}e.reduce=S;function*T(g,F,x=g.length){for(F<0&&(F+=g.length),x<0?x+=g.length:x>g.length&&(x=g.length);FL===q){const L=g[Symbol.iterator](),q=F[Symbol.iterator]();for(;;){const W=L.next(),ne=q.next();if(W.done!==ne.done)return!1;if(W.done)return!0;if(!x(W.value,ne.value))return!1}}e.equals=O})(_||(_={}));const R=!1;let D=null;function U(e){D=e}if(R){const e="__is_disposable_tracked__";U(new class{trackDisposable(t){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==ht.None)try{t[e]=!0}catch(r){}}markAsDisposed(t){if(t&&t!==ht.None)try{t[e]=!0}catch(n){}}markAsSingleton(t){}})}function I(e){return D==null||D.trackDisposable(e),e}function ee(e){D==null||D.markAsDisposed(e)}function z(e,t){D==null||D.setParent(e,t)}function de(e,t){if(!D)return;for(const n of e)D.setParent(n,t)}function ge(e){return D==null||D.markAsSingleton(e),e}class Ue extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`);this.errors=e}}function ct(e){return typeof e.dispose=="function"&&e.dispose.length===0}function tt(e){if(_.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new Ue(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function cn(...e){const t=zt(()=>tt(e));return de(e,t),t}function zt(e){const t=I({dispose:w(()=>{ee(t),e()})});return t}class xt{constructor(){this._toDispose=new Set,this._isDisposed=!1,I(this)}dispose(){if(this._isDisposed)return;ee(this),this._isDisposed=!0,this.clear()}clear(){try{tt(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return z(e,this),this._isDisposed?xt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}xt.DISABLE_DISPOSED_WARNING=!1;class ht{constructor(){this._store=new xt,I(this),z(this._store,this)}dispose(){ee(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ht.None=Object.freeze({dispose(){}});class Nt{constructor(){this._isDisposed=!1,I(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;if(this._isDisposed||e===this._value)return;(t=this._value)===null||t===void 0||t.dispose(),e&&z(e,this),this._value=e}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,ee(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&z(e,null),e}}class Ot{constructor(e){this.object=e}dispose(){}}class fe{constructor(e){this.element=e,this.next=fe.Undefined,this.prev=fe.Undefined}}fe.Undefined=new fe(void 0);class Pe{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){const t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new fe(e);if(this._first===fe.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first===fe.Undefined)return;{const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last===fe.Undefined)return;{const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}}var be=Q("MNsG");const je=be.a.performance&&typeof be.a.performance.now=="function";class St{constructor(e){this._highResolution=je&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new St(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?be.a.performance.now():Date.now()}}var Re;(function(e){e.None=()=>ht.None;function t(g){return(F,x=null,L)=>{let q=!1,W;return W=g(ne=>q?void 0:(W?W.dispose():q=!0,F.call(x,ne)),null,L),q&&W.dispose(),W}}e.once=t;function n(g,F){return c((x,L=null,q)=>g(W=>x.call(L,F(W)),null,q))}e.map=n;function r(g,F){return c((x,L=null,q)=>g(W=>{F(W),x.call(L,W)},null,q))}e.forEach=r;function i(g,F){return c((x,L=null,q)=>g(W=>F(W)&&x.call(L,W),null,q))}e.filter=i;function o(g){return g}e.signal=o;function s(...g){return(F,x=null,L)=>cn(...g.map(q=>q(W=>F.call(x,W),null,L)))}e.any=s;function a(g,F,x){let L=x;return n(g,q=>(L=F(L,q),L))}e.reduce=a;function c(g){let F;const x=new M({onFirstListenerAdd(){F=g(x.fire,x)},onLastListenerRemove(){F.dispose()}});return x.event}function l(g,F,x=100,L=!1,q){let W,ne,he,pe=0;const Z=new M({leakWarningThreshold:q,onFirstListenerAdd(){W=g(at=>{pe++,ne=F(ne,at),L&&!he&&(Z.fire(ne),ne=void 0),clearTimeout(he),he=setTimeout(()=>{const wt=ne;ne=void 0,he=void 0,(!L||pe>1)&&Z.fire(wt),pe=0},x)})},onLastListenerRemove(){W.dispose()}});return Z.event}e.debounce=l;function d(g,F=(x,L)=>x===L){let x=!0,L;return i(g,q=>{const W=x||!F(q,L);return x=!1,L=q,W})}e.latch=d;function u(g,F){return[e.filter(g,F),e.filter(g,x=>!F(x))]}e.split=u;function m(g,F=!1,x=[]){let L=x.slice(),q=g(he=>{L?L.push(he):ne.fire(he)});const W=()=>{L&&L.forEach(he=>ne.fire(he)),L=null},ne=new M({onFirstListenerAdd(){q||(q=g(he=>ne.fire(he)))},onFirstListenerDidAdd(){L&&(F?setTimeout(W):W())},onLastListenerRemove(){q&&q.dispose(),q=null}});return ne.event}e.buffer=m;class f{constructor(g){this.event=g}map(g){return new f(n(this.event,g))}forEach(g){return new f(r(this.event,g))}filter(g){return new f(i(this.event,g))}reduce(g,F){return new f(a(this.event,g,F))}latch(){return new f(d(this.event))}debounce(g,F=100,x=!1,L){return new f(l(this.event,g,F,x,L))}on(g,F,x){return this.event(g,F,x)}once(g,F,x){return t(this.event)(g,F,x)}}function S(g){return new f(g)}e.chain=S;function T(g,F,x=L=>L){const L=(...he)=>ne.fire(x(...he)),q=()=>g.on(F,L),W=()=>g.removeListener(F,L),ne=new M({onFirstListenerAdd:q,onLastListenerRemove:W});return ne.event}e.fromNodeEventEmitter=T;function k(g,F,x=L=>L){const L=(...he)=>ne.fire(x(...he)),q=()=>g.addEventListener(F,L),W=()=>g.removeEventListener(F,L),ne=new M({onFirstListenerAdd:q,onLastListenerRemove:W});return ne.event}e.fromDOMEventEmitter=k;function O(g){return new Promise(F=>t(g)(F))}e.toPromise=O})(Re||(Re={}));class A{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${A._idPool++}`}start(e){this._stopWatch=new St(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}A._idPool=0;let y=-1;class E{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=y;if(typeof this.customThreshold=="number"&&(t=this.customThreshold),t<=0||e{const i=this._stacks.get(n)||0;this._stacks.set(n,i-1)}}}class M{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=y>0?new E(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((t=this._options)===null||t===void 0?void 0:t._profName)?new A(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var r;this._listeners||(this._listeners=new Pe);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const s=(r=this._leakageMon)===null||r===void 0?void 0:r.check(this._listeners.size),a=zt(()=>{if(s&&s(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){const c=this._listeners&&!this._listeners.isEmpty();c||this._options.onLastListenerRemove(this)}});return n instanceof xt?n.add(a):Array.isArray(n)&&n.push(a),a}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Pe);for(let r of this._listeners)this._deliveryQueue.push([r,e]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[r,i]=this._deliveryQueue.shift();try{typeof r=="function"?r.call(void 0,i):r[0].call(r[1],i)}catch(o){se(o)}}(n=this._perfMon)===null||n===void 0||n.stop()}}dispose(){var e,t,n,r,i;this._disposed||(this._disposed=!0,(e=this._listeners)===null||e===void 0||e.clear(),(t=this._deliveryQueue)===null||t===void 0||t.clear(),(r=(n=this._options)===null||n===void 0?void 0:n.onLastListenerRemove)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class ue extends M{constructor(e){super(e);this._isPaused=0,this._eventQueue=new Pe,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class ie extends ue{constructor(e){var t;super(e);this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class ae{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(i=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>t.call(n,i)):t.call(n,i)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class Ee{constructor(){this.listening=!1,this.inputEvent=Re.None,this.inputEventListener=ht.None,this.emitter=new M({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function Oe(e){return Array.isArray(e)}function nt(e){return typeof e=="string"}function hn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Tt(e){return typeof e=="number"&&!isNaN(e)}function au(e){return e===!0||e===!1}function rl(e){return typeof e=="undefined"}function lu(e){return!mr(e)}function mr(e){return rl(e)||e===null}function cu(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function hu(e){if(mr(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function il(e){return typeof e=="function"}function du(e,t){const n=Math.min(e.length,t.length);for(let r=0;rfunction(){const o=Array.prototype.slice.call(arguments,0);return t(i,o)};let r={};for(const i of e)r[i]=n(i);return r}function uu(e){return e===null?void 0:e}function pu(e,t="Unreachable"){throw new Error(t)}function mu(e){return!e||typeof e!="string"?!0:e.trim().length===0}const ll=/{(\d+)}/g;function fu(e,...t){return t.length===0?e:e.replace(ll,function(n,r){const i=parseInt(r,10);return isNaN(i)||i<0||i>=t.length?n:t[i]})}function gu(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}})}function cl(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function bu(e,t=" "){const n=hl(e,t);return dl(n,t)}function hl(e,t){if(!e||!t)return e;const n=t.length;if(n===0||e.length===0)return e;let r=0;for(;e.indexOf(t,r)===r;)r=r+n;return e.substring(r)}function dl(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(n===0||r===0)return e;let i=r,o=-1;for(;!(o=e.lastIndexOf(t,i-1),o===-1||o+n!==i);){if(o===0)return"";i=o}return e.substring(0,i)}function vu(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function yu(e){return e.replace(/\*/g,"")}function wu(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=cl(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function xu(e){if(e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$")return!1;const t=e.exec("");return!!(t&&e.lastIndex===0)}function Su(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function ul(e){return e.split(/\r\n|\r|\n/)}function pl(e){for(let t=0,n=e.length;t=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function ku(e,t){return et?1:0}function fl(e,t,n=0,r=e.length,i=0,o=t.length){for(;nl)return 1}const s=r-n,a=o-i;return sa?1:0}function Eu(e,t){return fr(e,t,0,e.length,0,t.length)}function fr(e,t,n=0,r=e.length,i=0,o=t.length){for(;n=128||l>=128)return fl(e.toLowerCase(),t.toLowerCase(),n,r,i,o);$i(c)&&(c-=32),$i(l)&&(l-=32);const d=c-l;if(d===0)continue;return d}const s=r-n,a=o-i;return sa?1:0}function $i(e){return e>=97&&e<=122}function Gi(e){return e>=65&&e<=90}function _u(e,t){return e.length===t.length&&fr(e,t)===0}function Fu(e,t){const n=t.length;return t.length>e.length?!1:fr(e,t,0,n)===0}function Du(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n1){const r=e.charCodeAt(t-2);if(gr(r))return br(r,n)}return n}function Nu(e,t){const n=Ct.getInstance(),r=t,i=e.length,o=Ki(e,i,t);t+=o>=65536?2:1;let s=n.getGraphemeBreakType(o);for(;t=65536?2:1,s=c}return t-r}function Tu(e,t){const n=Ct.getInstance(),r=t,i=Wt(e,t);t-=i>=65536?2:1;let o=n.getGraphemeBreakType(i);for(;t>0;){const s=Wt(e,t),a=n.getGraphemeBreakType(s);if(Ji(a,o))break;t-=s>=65536?2:1,o=a}return r-t}const gl=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Ru(e){return gl.test(e)}const bl=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Mu(e){return bl.test(e)}const vl=/^[\t\n\r\x20-\x7E]*$/;function Iu(e){return vl.test(e)}const yl=/[\u2028\u2029]/;function Lu(e){return yl.test(e)}function Pu(e){for(let t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function xl(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const zu=String.fromCharCode(65279);function Ou(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function Wu(e,t=!1){return e?(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function Uu(e){const t=90-65+1;return e=e%(2*t),et[3*r+1])r=2*r+1;else return t[3*r+2];return 0}}Ct._INSTANCE=null;function Sl(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Vu(e,t){if(e===0)return 0;const n=Cl(e,t);if(n!==void 0)return n;const r=Wt(t,e);return e-=Ln(r),e}function Cl(e,t){let n=Wt(t,e);for(e-=Ln(n);kl(n)||n===65039||n===8419;){if(e===0)return;n=Wt(t,e),e-=Ln(n)}if(!xl(n))return;if(e>=0){const r=Wt(t,e);r===8205&&(e-=Ln(r))}return e}function Ln(e){return e>=65536?2:1}function kl(e){return 127995<=e&&e<=127999}const Yi="$initialize";let Xi=!1;function Bu(e){if(!be.c)return;Xi||(Xi=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message)}class El{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class Zi{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class _l{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class Fl{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Dl{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Qi{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send(new El(this._workerId,n,e,t))})}listen(e,t){let n=null;const r=new M({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new _l(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new Dl(this._workerId,n)),n=null}});return r.event}handleMessage(e){if(!e||!e.vsWorker)return;if(this._workerId!==-1&&e.vsWorker!==this._workerId)return;this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req,n=this._handler.handleMessage(e.method,e.args);n.then(r=>{this._send(new Zi(this._workerId,t,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=xe(r.detail)),this._send(new Zi(this._workerId,t,void 0,xe(r)))})}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(r=>{this._send(new Fl(this._workerId,t,r))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n{this._protocol.handleMessage(c)},c=>{r&&r(c)})),this._protocol=new Qi({sendMessage:(c,l)=>{this._worker.postMessage(c,l)},handleMessage:(c,l)=>{if(typeof n[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(n[c].apply(n,l))}catch(d){return Promise.reject(d)}},handleEvent:(c,l)=>{if(yr(c)){const d=n[c].call(n,l);if(typeof d!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return d}if(vr(c)){const d=n[c];if(typeof d!="function")throw new Error(`Missing event ${c} on main thread host.`);return d}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let i=null;typeof be.a.require!="undefined"&&typeof be.a.require.getConfig=="function"?i=be.a.require.getConfig():typeof be.a.requirejs!="undefined"&&(i=be.a.requirejs.s.contexts._.config);const o=Mn(n);this._onModuleLoaded=this._protocol.sendMessage(Yi,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t,o]);const s=(c,l)=>this._request(c,l),a=(c,l)=>this._protocol.listen(c,l);this._lazyProxy=new Promise((c,l)=>{r=l,this._onModuleLoaded.then(d=>{c(eo(d,s,a))},d=>{l(d),this._onError("Worker failed to load "+t,d)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,r)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,r)},r)})}_onError(e,t){console.error(e),console.info(t)}}function vr(e){return e[0]==="o"&&e[1]==="n"&&Gi(e.charCodeAt(2))}function yr(e){return/^onDynamic/.test(e)&&Gi(e.charCodeAt(9))}function eo(e,t,n){const r=s=>function(){const a=Array.prototype.slice.call(arguments,0);return t(s,a)},i=s=>function(a){return n(s,a)};let o={};for(const s of e){if(yr(s)){o[s]=i(s);continue}if(vr(s)){o[s]=n(s,void 0);continue}o[s]=r(s)}return o}class to{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Qi({sendMessage:(n,r)=>{e(n,r)},handleMessage:(n,r)=>this._handleMessage(n,r),handleEvent:(n,r)=>this._handleEvent(n,r)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===Yi)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(n){return Promise.reject(n)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(yr(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if(typeof n!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(vr(e)){const n=this._requestHandler[e];if(typeof n!="function")throw new Error(`Missing event ${e} on request handler.`);return n}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=(a,c)=>this._protocol.sendMessage(a,c),o=(a,c)=>this._protocol.listen(a,c),s=eo(r,i,o);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(s),Promise.resolve(Mn(this._requestHandler))):(t&&(typeof t.baseUrl!="undefined"&&delete t.baseUrl,typeof t.paths!="undefined"&&(typeof t.paths.vs!="undefined"&&delete t.paths.vs),typeof t.trustedTypesPolicy!==void 0&&delete t.trustedTypesPolicy,t.catchError=!0,be.a.require.config(t)),new Promise((a,c)=>{const l=be.a.require;l([n],d=>{if(this._requestHandler=d.create(s),!this._requestHandler){c(new Error("No RequestHandler!"));return}a(Mn(this._requestHandler))},c)}))}}function Hu(e){return new to(e,null)}class kt{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function $u(e){return wr(e,0)}function wr(e,t){switch(typeof e){case"object":return e===null?ft(349,t):Array.isArray(e)?Nl(e,t):Tl(e,t);case"string":return xr(e,t);case"boolean":return Al(e,t);case"number":return ft(e,t);case"undefined":return ft(937,t);default:return ft(617,t)}}function ft(e,t){return(t<<5)-t+e|0}function Al(e,t){return ft(e?433:863,t)}function xr(e,t){t=ft(149417,t);for(let n=0,r=e.length;nwr(r,n),t)}function Tl(e,t){return t=ft(181387,t),Object.keys(e).sort().reduce((n,r)=>(n=xr(r,n),wr(e[r],n)),t)}function Sr(e,t,n=32){const r=n-t,i=~((1<>>r)>>>0}function no(e,t=0,n=e.byteLength,r=0){for(let i=0;in.toString(16).padStart(2,"0")).join(""):Rl((e>>>0).toString(16),t/4)}class ro{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const n=this._buff;let r=this._buffLen,i=this._leftoverHighSurrogate,o,s;for(i!==0?(o=i,s=-1,i=0):(o=e.charCodeAt(0),s=0);;){let a=o;if(gr(o))if(s+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),dn(this._h0)+dn(this._h1)+dn(this._h2)+dn(this._h3)+dn(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,no(this._buff,this._buffLen),this._buffLen>56&&(this._step(),no(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=ro._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,Sr(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n=this._h0,r=this._h1,i=this._h2,o=this._h3,s=this._h4,a,c,l;for(let d=0;d<80;d++)d<20?(a=r&i|~r&o,c=1518500249):d<40?(a=r^i^o,c=1859775393):d<60?(a=r&i|r&o|i&o,c=2400959708):(a=r^i^o,c=3395469782),l=Sr(n,5)+a+s+c+e.getUint32(d*4,!1)&4294967295,s=o,o=i,i=Sr(r,30),r=n,n=l;this._h0=this._h0+n&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+i&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}}ro._bigBlock32=new DataView(new ArrayBuffer(320));class io{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new kt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Rt{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,o]=Rt._getElements(e),[s,a,c]=Rt._getElements(t);this._hasStrings=o&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(Rt._isStringArray(t)){const n=new Int32Array(t.length);for(let r=0,i=t.length;r=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let d;return n<=r?(Ut.Assert(e===t+1,"originalStart should only be one more than originalEnd"),d=[new kt(e,0,n,r-n+1)]):e<=t?(Ut.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new kt(e,t-e+1,n,0)]):(Ut.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ut.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i),c=o[0],l=s[0];if(a!==null)return a;if(!i[0]){const d=this.ComputeDiffRecursive(e,c,n,l,i);let u=[];return i[0]?u=[new kt(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:u=this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(d,u)}return[new kt(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,s,a,c,l,d,u,m,f,S,T,k,O){let g=null,F=null,x=new oo,L=t,q=n,W=m[0]-T[0]-r,ne=-1073741824,he=this.m_forwardHistory.length-1;do{const pe=W+e;pe===L||pe=0&&(c=this.m_forwardHistory[he],e=c[0],L=1,q=c.length-1)}while(--he>=-1);if(g=x.getReverseChanges(),O[0]){let pe=m[0]+1,Z=T[0]+1;if(g!==null&&g.length>0){const at=g[g.length-1];pe=Math.max(pe,at.getOriginalEnd()),Z=Math.max(Z,at.getModifiedEnd())}F=[new kt(pe,u-pe+1,Z,S-Z+1)]}else{x=new oo,L=o,q=s,W=m[0]-T[0]-a,ne=1073741824,he=k?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const pe=W+i;pe===L||pe=l[pe+1]?(d=l[pe+1]-1,f=d-W-a,d>ne&&x.MarkNextChange(),ne=d+1,x.AddOriginalElement(d+1,f+1),W=pe+1-i):(d=l[pe-1],f=d-W-a,d>ne&&x.MarkNextChange(),ne=d,x.AddModifiedElement(d+1,f+1),W=pe-1-i),he>=0&&(l=this.m_reverseHistory[he],i=l[0],L=1,q=l.length-1)}while(--he>=-1);F=x.getChanges()}return this.ConcatenateChanges(g,F)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,c=0,l=0,d=0,u=0,m=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),S=f+1,T=new Int32Array(S),k=new Int32Array(S),O=r-n,g=t-e,F=e-n,x=t-r,L=g-O,q=L%2===0;T[O]=e,k[g]=t,s[0]=!1;for(let W=1;W<=f/2+1;W++){let ne=0,he=0;l=this.ClipDiagonalBound(O-W,W,O,S),d=this.ClipDiagonalBound(O+W,W,O,S);for(let Z=l;Z<=d;Z+=2){Z===l||Zne+he&&(ne=a,he=c),!q&&Math.abs(Z-g)<=W-1&&a>=k[Z])return i[0]=a,o[0]=c,at<=k[Z]&&1447>0&&W<=1447+1?this.WALKTRACE(O,l,d,F,g,u,m,x,T,k,a,t,i,c,r,o,q,s):null}const pe=(ne-e+(he-n)-W)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ne,pe))return s[0]=!0,i[0]=ne,o[0]=he,pe>0&&1447>0&&W<=1447+1?this.WALKTRACE(O,l,d,F,g,u,m,x,T,k,a,t,i,c,r,o,q,s):(e++,n++,[new kt(e,t-e+1,n,r-n+1)]);u=this.ClipDiagonalBound(g-W,W,g,S),m=this.ClipDiagonalBound(g+W,W,g,S);for(let Z=u;Z<=m;Z+=2){Z===u||Z=k[Z+1]?a=k[Z+1]-1:a=k[Z-1],c=a-(Z-g)-x;const at=a;for(;a>e&&c>n&&this.ElementsAreEqual(a,c);)a--,c--;if(k[Z]=a,q&&Math.abs(Z-O)<=W&&a<=T[Z])return i[0]=a,o[0]=c,at>=T[Z]&&1447>0&&W<=1447+1?this.WALKTRACE(O,l,d,F,g,u,m,x,T,k,a,t,i,c,r,o,q,s):null}if(W<=1447){let Z=new Int32Array(d-l+2);Z[0]=O-l+1,jt.Copy2(T,l,Z,1,d-l+1),this.m_forwardHistory.push(Z),Z=new Int32Array(m-u+2),Z[0]=g-u+1,jt.Copy2(k,u,Z,1,m-u+1),this.m_reverseHistory.push(Z)}}return this.WALKTRACE(O,l,d,F,g,u,m,x,T,k,a,t,i,c,r,o,q,s)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let r=0,i=0;if(t>0){const d=e[t-1];r=d.originalStart+d.originalLength,i=d.modifiedStart+d.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let d=1;;d++){const u=n.originalStart-d,m=n.modifiedStart-d;if(uc&&(c=S,a=d)}n.originalStart-=a,n.modifiedStart-=a;const l=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],l)){e[t-1]=l[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t0&&m>a&&(a=m,c=d,l=u)}return a>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){const i=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,r)?1:0;return i+o}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return jt.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],jt.Copy(t,1,r,e.length,t.length-1),r}else{const r=new Array(e.length+t.length);return jt.Copy(e,0,r,0,e.length),jt.Copy(t,0,r,e.length,t.length),r}}ChangesOverlap(e,t,n){if(Ut.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ut.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new kt(r,i,o,s),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e=Il&&e<=Pl||e>=Ll&&e<=zl}function Pn(e,t,n,r){let i="",o=0,s=-1,a=0,c=0;for(let l=0;l<=e.length;++l){if(l2){const d=i.lastIndexOf(n);d===-1?(i="",o=0):(i=i.slice(0,d),o=i.length-1-i.lastIndexOf(n)),s=l,a=0;continue}else if(i.length!==0){i="",o=0,s=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",o=2)}else i.length>0?i+=`${n}${e.slice(s+1,l)}`:i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else c===Et&&a!==-1?++a:a=-1}return i}function ao(e,t){if(t===null||typeof t!="object")throw new so("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const We={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],_e(o,"path"),o.length===0)continue}else t.length===0?o=rt.a():(o=rt.b[`=${t}`]||rt.a(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Ve)&&(o=`${t}\\`));const s=o.length;let a=0,c="",l=!1;const d=o.charCodeAt(0);if(s===1)te(d)&&(a=1,l=!0);else if(te(d))if(l=!0,te(o.charCodeAt(1))){let u=2,m=u;for(;u2&&te(o.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=Pn(n,!r,"\\",te),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){_e(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const o=e.charCodeAt(0);if(t===1)return Cr(o)?"\\":e;if(te(o))if(i=!0,te(e.charCodeAt(1))){let a=2,c=a;for(;a2&&te(e.charCodeAt(2))&&(i=!0,n=3));let s=n0&&te(e.charCodeAt(t-1))&&(s+="\\"),r===void 0?i?`\\${s}`:s:i?`${r}\\${s}`:`${r}${s}`},isAbsolute(e){_e(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return te(n)||t>2&&Ft(n)&&e.charCodeAt(1)===_t&&te(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let o=0;o0&&(t===void 0?t=n=s:t+=`\\${s}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&te(n.charCodeAt(0))){++i;const o=n.length;o>1&&te(n.charCodeAt(1))&&(++i,o>2&&(te(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return We.normalize(t)},relative(e,t){if(_e(e,"from"),_e(t,"to"),e===t)return"";const n=We.resolve(e),r=We.resolve(t);if(n===r)return"";if(e=n.toLowerCase(),t=r.toLowerCase(),e===t)return"";let i=0;for(;ii&&e.charCodeAt(o-1)===Ve;)o--;const s=o-i;let a=0;for(;aa&&t.charCodeAt(c-1)===Ve;)c--;const l=c-a,d=sd){if(t.charCodeAt(a+m)===Ve)return r.slice(a+m+1);if(m===2)return r.slice(a+m)}s>d&&(e.charCodeAt(i+m)===Ve?u=m:m===2&&(u=3)),u===-1&&(u=0)}let f="";for(m=i+u+1;m<=o;++m)(m===o||e.charCodeAt(m)===Ve)&&(f+=f.length===0?"..":"\\..");return a+=u,f.length>0?`${f}${r.slice(a,c)}`:(r.charCodeAt(a)===Ve&&++a,r.slice(a,c))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=We.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ve){if(t.charCodeAt(1)===Ve){const n=t.charCodeAt(2);if(n!==Ol&&n!==Et)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ft(t.charCodeAt(0))&&t.charCodeAt(1)===_t&&t.charCodeAt(2)===Ve)return`\\\\?\\${t}`;return e},dirname(e){_e(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return te(i)?e:".";if(te(i)){if(n=r=1,te(e.charCodeAt(1))){let a=2,c=a;for(;a2&&te(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let a=t-1;a>=r;--a)if(te(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(n===-1)return".";o=n}return e.slice(0,o)},basename(e,t){t!==void 0&&_e(t,"ext"),_e(e,"path");let n=0,r=-1,i=!0,o;if(e.length>=2&&Ft(e.charCodeAt(0))&&e.charCodeAt(1)===_t&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=n;--o){const c=e.charCodeAt(o);if(te(c)){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=n;--o)if(te(e.charCodeAt(o))){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){_e(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===_t&&Ft(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const c=e.charCodeAt(a);if(te(c)){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===Et?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:ao.bind(null,"\\"),parse(e){_e(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return te(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(te(i)){if(r=1,te(e.charCodeAt(1))){let u=2,m=u;for(;u0&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,c=!0,l=e.length-1,d=0;for(;l>=r;--l){if(i=e.charCodeAt(l),te(i)){if(!c){s=l+1;break}continue}a===-1&&(c=!1,a=l+1),i===Et?o===-1?o=l:d!==1&&(d=1):o!==-1&&(d=-1)}return a!==-1&&(o===-1||d===0||d===1&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==r?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Be={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:rt.a();if(_e(i,"path"),i.length===0)continue;t=`${i}/${t}`,n=i.charCodeAt(0)===Me}return t=Pn(t,!n,"/",Cr),n?`/${t}`:t.length>0?t:"."},normalize(e){if(_e(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Me,n=e.charCodeAt(e.length-1)===Me;return e=Pn(e,!t,"/",Cr),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return _e(e,"path"),e.length>0&&e.charCodeAt(0)===Me},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":Be.normalize(t)},relative(e,t){if(_e(e,"from"),_e(t,"to"),e===t)return"";if(e=Be.resolve(e),t=Be.resolve(t),e===t)return"";const n=1,r=e.length,i=r-n,o=1,s=t.length-o,a=ia){if(t.charCodeAt(o+l)===Me)return t.slice(o+l+1);if(l===0)return t.slice(o+l)}else i>a&&(e.charCodeAt(n+l)===Me?c=l:l===0&&(c=0));let d="";for(l=n+c+1;l<=r;++l)(l===r||e.charCodeAt(l)===Me)&&(d+=d.length===0?"..":"/..");return`${d}${t.slice(o+c)}`},toNamespacedPath(e){return e},dirname(e){if(_e(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Me;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Me){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&_e(t,"ext"),_e(e,"path");let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===Me){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===Me){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){_e(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===Me){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===Et?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:ao.bind(null,"/"),parse(e){_e(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Me;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,c=e.length-1,l=0;for(;c>=r;--c){const d=e.charCodeAt(c);if(d===Me){if(!a){o=c+1;break}continue}s===-1&&(a=!1,s=c+1),d===Et?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(s!==-1){const d=o===0&&n?1:o;i===-1||l===0||l===1&&i===s-1&&i===o+1?t.base=t.name=e.slice(d,s):(t.name=e.slice(d,i),t.base=e.slice(d,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Be.win32=We.win32=We,Be.posix=We.posix=Be;const Gu=rt.c==="win32"?We.normalize:Be.normalize,Ku=rt.c==="win32"?We.resolve:Be.resolve,Ju=rt.c==="win32"?We.relative:Be.relative,Yu=rt.c==="win32"?We.dirname:Be.dirname,Xu=rt.c==="win32"?We.basename:Be.basename,Zu=rt.c==="win32"?We.extname:Be.extname,Qu=rt.c==="win32"?We.sep:Be.sep,Wl=/^\w[\w\d+.-]*$/,Ul=/^\//,jl=/^\/\//;function lo(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Wl.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Ul.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(jl.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Vl(e,t){return!e&&!t?"file":e}function Bl(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==it&&(t=it+t):t=it;break}return t}const we="",it="/",ql=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Vt{constructor(e,t,n,r,i,o=!1){typeof e=="object"?(this.scheme=e.scheme||we,this.authority=e.authority||we,this.path=e.path||we,this.query=e.query||we,this.fragment=e.fragment||we):(this.scheme=Vl(e,o),this.authority=t||we,this.path=Bl(this.scheme,n||we),this.query=r||we,this.fragment=i||we,lo(this,o))}static isUri(e){return e instanceof Vt?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}get fsPath(){return kr(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return t===void 0?t=this.scheme:t===null&&(t=we),n===void 0?n=this.authority:n===null&&(n=we),r===void 0?r=this.path:r===null&&(r=we),i===void 0?i=this.query:i===null&&(i=we),o===void 0?o=this.fragment:o===null&&(o=we),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new Bt(t,n,r,i,o)}static parse(e,t=!1){const n=ql.exec(e);return n?new Bt(n[2]||we,zn(n[4]||we),zn(n[5]||we),zn(n[7]||we),zn(n[9]||we),t):new Bt(we,we,we,we,we)}static file(e){let t=we;if(be.d&&(e=e.replace(/\\/g,it)),e[0]===it&&e[1]===it){const n=e.indexOf(it,2);n===-1?(t=e.substring(2),e=it):(t=e.substring(2,n),e=e.substring(n)||it)}return new Bt("file",t,e,we,we)}static from(e){const t=new Bt(e.scheme,e.authority,e.path,e.query,e.fragment);return lo(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return be.d&&e.scheme==="file"?n=Vt.file(We.join(kr(e,!0),...t)).path:n=Be.join(e.path,...t),e.with({path:n})}toString(e=!1){return Er(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Vt)return e;{const t=new Bt(e);return t._formatted=e.external,t._fsPath=e._sep===co?e.fsPath:null,t}}else return e}}const co=be.d?1:void 0;class Bt extends Vt{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=kr(this,!1)),this._fsPath}toString(e=!1){return e?Er(this,!0):(this._formatted||(this._formatted=Er(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=co),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ho={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function uo(e,t){let n,r=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47)r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n!==void 0&&(n+=e.charAt(i));else{n===void 0&&(n=e.substr(0,i));const s=ho[o];s!==void 0?(r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(e.substring(r))),n!==void 0?n:e}function Hl(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,be.d&&(n=n.replace(/\//g,"\\")),n}function Er(e,t){const n=t?Hl:uo;let r="",{scheme:i,authority:o,path:s,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=it,r+=it),o){let l=o.indexOf("@");if(l!==-1){const d=o.substr(0,l);o=o.substr(l+1),l=d.indexOf(":"),l===-1?r+=n(d,!1):(r+=n(d.substr(0,l),!1),r+=":",r+=n(d.substr(l+1),!1)),r+="@"}o=o.toLowerCase(),l=o.indexOf(":"),l===-1?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){const l=s.charCodeAt(1);l>=65&&l<=90&&(s=`/${String.fromCharCode(l+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){const l=s.charCodeAt(0);l>=65&&l<=90&&(s=`${String.fromCharCode(l+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),c&&(r+="#",r+=t?c:uo(c,!1)),r}function po(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+po(e.substr(3)):e}}const mo=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zn(e){return e.match(mo)?e.replace(mo,t=>po(t)):e}class Je{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Je(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Je.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Je.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return Ce.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ce.containsPosition(this,e)}static containsPosition(e,t){return t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}containsRange(e){return Ce.containsRange(this,e)}static containsRange(e,t){return t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return Ce.strictContainsRange(this,e)}static strictContainsRange(e,t){return t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)?!1:!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Ce.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new Ce(n,r,i,o)}intersectRanges(e){return Ce.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,c=t.endLineNumber,l=t.endColumn;return nc?(i=c,o=l):i===c&&(o=Math.min(o,l)),n>i||n===i&&r>o?null:new Ce(n,r,i,o)}equalsRange(e){return Ce.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Ce.getEndPosition(this)}static getEndPosition(e){return new Je(e.endLineNumber,e.endColumn)}getStartPosition(){return Ce.getStartPosition(this)}static getStartPosition(e){return new Je(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Ce(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Ce(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Ce.collapseToStart(this)}static collapseToStart(e){return new Ce(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new Ce(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Ce(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return e.endLineNumbere.startLineNumber}}const $l=3;function fo(e,t,n,r){const i=new Rt(e,t,n);return i.ComputeDiff(r)}class go{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const m=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),f=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let S=fo(m,f,i,!0).changes;s&&(S=Kl(S)),u=[];for(let T=0,k=S.length;T1&&S>1;){const T=u.charCodeAt(f-2),k=m.charCodeAt(S-2);if(T!==k)break;f--,S--}(f>1||S>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,f,o+1,1,S)}{let f=Fr(u,1),S=Fr(m,1);const T=u.length+1,k=m.length+1;for(;f!0;const t=Date.now();return()=>Date.now()-t255?255:e|0}function qt(e){return e<0?0:e>4294967295?4294967295:e|0}class Yl{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Xl{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=qt(e);const n=this.values,r=this.prefixSum,i=t.length;return i===0?!1:(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=qt(e),t=qt(t),this.values[e]===t?!1:(this.values[e]=t,e-1=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=qt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],o=i-this.values[r],e=i)t=r+1;else break;return new Yl(r,e-o)}}class Zl{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Je(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r/?";function ec(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Ql){if(e.indexOf(n)>=0)continue;t+="\\"+n}return t+="\\s]+)",new RegExp(t,"g")}const tc=ec();function nc(e){let t=tc;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const rc={maxLen:1e3,windowSize:15,timeBudget:150};function yo(e,t,n,r,i=rc){if(n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),yo(e,t,n,r,i)}const o=Date.now(),s=e-1-r;let a=-1,c=null;for(let l=1;!(Date.now()-o>=i.timeBudget);l++){const d=s-i.windowSize*l;t.lastIndex=Math.max(0,d);const u=ic(t,n,s,a);if(!u&&c)break;if(c=u,d<=0)break;a=d}if(c){let l={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,l}return null}function ic(e,t,n,r){let i;for(;i=e.exec(t);){const o=i.index||0;if(o<=n&&e.lastIndex>=n)return i;if(r>0&&o>r)return null}return null}class Dr{constructor(e){let t=vo(e);this._defaultValue=t,this._asciiMap=Dr._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=vo(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class ep{constructor(){this._actual=new Dr(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}}class oc{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;it&&(t=a),s>n&&(n=s),c>n&&(n=c)}t++,n++;let r=new oc(n,t,0);for(let i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)}}let Ar=null;function ac(){return Ar===null&&(Ar=new sc([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ar}let un=null;function lc(){if(un===null){un=new Dr(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;nr);if(r>0){const s=t.charCodeAt(r-1),a=t.charCodeAt(o);(s===40&&a===41||s===91&&a===93||s===123&&a===125)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=ac()){const n=lc();let r=[];for(let i=1,o=e.getLineCount();i<=o;i++){const s=e.getLineContent(i),a=s.length;let c=0,l=0,d=0,u=1,m=!1,f=!1,S=!1,T=!1;for(;c=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Tr.INSTANCE=new Tr;const wo=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Un;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof jn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Re.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:wo})})(Un||(Un={}));class jn{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?wo:(this._emitter||(this._emitter=new M),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class hc{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new jn),this._token}cancel(){this._token?this._token instanceof jn&&this._token.cancel():this._token=Un.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof jn&&this._token.dispose():this._token=Un.None}}class Rr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Vn=new Rr,Mr=new Rr,Ir=new Rr,dc=new Array(230),uc={},pc=[],mc=Object.create(null),fc=Object.create(null),xo=[],Lr=[];for(let e=0;e<=193;e++)xo[e]=-1;for(let e=0;e<=126;e++)Lr[e]=-1;(function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const i of t){const[o,s,a,c,l,d,u,m,f,S]=i;if(r[a]||(r[a]=!0,pc[a]=c,mc[c]=a,fc[c.toLowerCase()]=a,s&&(xo[a]=l,l!==0&&l!==3&&l!==5&&l!==4&&l!==6&&l!==57&&(Lr[l]=a))),!n[l]){if(n[l]=!0,!d)throw new Error(`String representation missing for key code ${l} around scan code ${c}`);Vn.define(l,d),Mr.define(l,f||d),Ir.define(l,S||f||d)}u&&(dc[u]=l),m&&(uc[m]=l)}Lr[3]=46})();var So;(function(e){function t(a){return Vn.keyCodeToStr(a)}e.toString=t;function n(a){return Vn.strToKeyCode(a)}e.fromString=n;function r(a){return Mr.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return Ir.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function o(a){return Mr.strToKeyCode(a)||Ir.strToKeyCode(a)}e.fromUserSettings=o;function s(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Vn.keyCodeToStr(a)}e.toElectronAccelerator=s})(So||(So={}));function gc(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class dt extends Ce{constructor(e,t,n,r){super(e,t,n,r);this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return dt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new dt(this.startLineNumber,this.startColumn,e,t):new dt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Je(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return this.getDirection()===0?new dt(e,t,this.endLineNumber,this.endColumn):new dt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new dt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new dt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e}}class $t{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new yc(Vt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let n=this._models[e];n.onEvents(t)}acceptRemovedModel(e){if(!this._models[e])return;delete this._models[e]}computeDiff(e,t,n,r){return Ht(this,void 0,void 0,function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),c=new Jl(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}),l=c.computeDiff(),d=l.changes.length>0?!1:this._modelsAreIdentical(i,o);return{quitEarly:l.quitEarly,identical:d,changes:l.changes}})}_modelsAreIdentical(e,t){const n=e.getLineCount(),r=t.getLineCount();if(n!==r)return!1;for(let i=1;i<=n;i++){const o=e.getLineContent(i),s=t.getLineContent(i);if(o!==s)return!1}return!0}computeMoreMinimalEdits(e,t){return Ht(this,void 0,void 0,function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i;t=t.slice(0).sort((o,s)=>{if(o.range&&s.range)return Ce.compareRangesUsingStarts(o.range,s.range);let a=o.range?0:1,c=s.range?0:1;return a-c});for(let{range:o,text:s,eol:a}of t){if(typeof a=="number"&&(i=a),Ce.isEmpty(o)&&!s)continue;const c=n.getValueInRange(o);if(s=s.replace(/\r\n|\n|\r/g,n.eol),c===s)continue;if(Math.max(s.length,c.length)>$t._diffLimit){r.push({range:o,text:s});continue}const l=Ml(c,s,!1),d=n.offsetAt(Ce.lift(o).getStartPosition());for(const u of l){const m=n.positionAt(d+u.originalStart),f=n.positionAt(d+u.originalStart+u.originalLength),S={text:s.substr(u.modifiedStart,u.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:f.lineNumber,endColumn:f.column}};n.getValueInRange(S.range)!==S.text&&r.push(S)}}return typeof i=="number"&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r})}computeLinks(e){return Ht(this,void 0,void 0,function*(){let t=this._getModel(e);return t?cc(t):null})}textualSuggest(e,t,n,r){return Ht(this,void 0,void 0,function*(){const i=new St(!0),o=new RegExp(n,r),s=new Set;e:for(let a of e){const c=this._getModel(a);if(!c)continue;for(let l of c.words(o)){if(l===t||!isNaN(Number(l)))continue;if(s.add(l),s.size>$t._suggestionsLimit)break e}}return{words:Array.from(s),duration:i.elapsed()}})}computeWordRanges(e,t,n,r){return Ht(this,void 0,void 0,function*(){let i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),s=Object.create(null);for(let a=t.startLineNumber;athis._host.fhr(s,a),i=al(n,r);let o={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(Mn(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}$t._diffLimit=1e5,$t._suggestionsLimit=1e4;function rp(e){return new $t(e,null)}typeof importScripts=="function"&&(be.a.monaco=vc());let Ur=!1;function es(e){if(Ur)return;Ur=!0;const t=new to(n=>{self.postMessage(n)},n=>new $t(n,e));self.onmessage=n=>{t.onmessage(n.data)}}self.onmessage=e=>{Ur||es(null)};var h;(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.CustomToken=42]="CustomToken"})(h||(h={}));var ts=function(){function e(t){this.source=t,this.len=t.length,this.position=0}return e.prototype.substring=function(t,n){return n===void 0&&(n=this.position),this.source.substring(t,n)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(t){this.position=t},e.prototype.goBack=function(t){this.position-=t},e.prototype.advance=function(t){this.position+=t},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(t){return t===void 0&&(t=0),this.source.charCodeAt(this.position+t)||0},e.prototype.lookbackChar=function(t){return t===void 0&&(t=0),this.source.charCodeAt(this.position-t)||0},e.prototype.advanceIfChar=function(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1},e.prototype.advanceIfChars=function(t){if(this.position+t.length>this.source.length)return!1;for(var n=0;n=Bn&&n<=qn?(this.stream.advance(t+1),this.stream.advanceWhileChar(function(r){return r>=Bn&&r<=qn||t===0&&r===hs}),!0):!1},e.prototype._newline=function(t){var n=this.stream.peekChar();switch(n){case Jt:case fn:case Kt:return this.stream.advance(1),t.push(String.fromCharCode(n)),n===Jt&&this.stream.advanceIfChar(Kt)&&t.push(` `),!0}return!1},e.prototype._escape=function(t,n){var r=this.stream.peekChar();if(r===qr){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=Bn&&r<=qn||r>=jr&&r<=wc||r>=Vr&&r<=xc);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&t.push(String.fromCharCode(o))}catch(s){}return r===Hr||r===$r?this.stream.advance(1):this._newline([]),!0}if(r!==Jt&&r!==fn&&r!==Kt)return this.stream.advance(1),t.push(String.fromCharCode(r)),!0;if(n)return this._newline(t)}return!1},e.prototype._stringChar=function(t,n){var r=this.stream.peekChar();return r!==0&&r!==t&&r!==qr&&r!==Jt&&r!==fn&&r!==Kt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},e.prototype._string=function(t){if(this.stream.peekChar()===cs||this.stream.peekChar()===ls){var n=this.stream.nextChar();for(t.push(String.fromCharCode(n));this._stringChar(n,t)||this._escape(t,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),t.push(String.fromCharCode(n)),h.String):h.BadString}return null},e.prototype._unquotedChar=function(t){var n=this.stream.peekChar();return n!==0&&n!==qr&&n!==cs&&n!==ls&&n!==os&&n!==ss&&n!==Hr&&n!==$r&&n!==Kt&&n!==fn&&n!==Jt?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._unquotedString=function(t){for(var n=!1;this._unquotedChar(t)||this._escape(t);)n=!0;return n},e.prototype._whitespace=function(){var t=this.stream.advanceWhileChar(function(n){return n===Hr||n===$r||n===Kt||n===fn||n===Jt});return t>0},e.prototype._name=function(t){for(var n=!1;this._identChar(t)||this._escape(t);)n=!0;return n},e.prototype.ident=function(t){var n=this.stream.pos(),r=this._minus(t);if(r){if(this._minus(t)||this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}}else if(this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}return this.stream.goBackTo(n),!1},e.prototype._identFirstChar=function(t){var n=this.stream.peekChar();return n===is||n>=jr&&n<=ns||n>=Vr&&n<=rs||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._minus=function(t){var n=this.stream.peekChar();return n===Gt?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._identChar=function(t){var n=this.stream.peekChar();return n===is||n===Gt||n>=jr&&n<=ns||n>=Vr&&n<=rs||n>=Bn&&n<=qn||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e}();function Ae(e,t){if(e.length0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Oc(e,t,n){n===void 0&&(n=4);var r=Math.abs(e.length-t.length);if(r>n)return 0;var i=[],o=[],s,a;for(s=0;se.end?null:(e.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=t&&r.end>=t?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function Kr(e,t){for(var n=Gr(e,t),r=[];n;)r.unshift(n),n=n.parent;return r}function Uc(e){var t=e.findParent(p.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var B=function(){function e(t,n,r){t===void 0&&(t=-1),n===void 0&&(n=-1),this.parent=null,this.offset=t,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||p.Undefined},set:function(t){this.nodeType=t},enumerable:!1,configurable:!0}),e.prototype.getTextProvider=function(){for(var t=this;t&&!t.textProvider;)t=t.parent;return t?t.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(t){return this.length===t.length&&this.getTextProvider()(this.offset,this.length)===t},e.prototype.startsWith=function(t){return this.length>=t.length&&this.getTextProvider()(this.offset,t.length)===t},e.prototype.endsWith=function(t){return this.length>=t.length&&this.getTextProvider()(this.end-t.length,t.length)===t},e.prototype.accept=function(t){if(t(this)&&this.children)for(var n=0,r=this.children;n=0&&t.parent.children.splice(r,1)}t.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,t):i.push(t),t},e.prototype.attachTo=function(t,n){return n===void 0&&(n=-1),t&&t.adoptChild(this,n),this},e.prototype.collectIssues=function(t){this.issues&&t.push.apply(t,this.issues)},e.prototype.addIssue=function(t){this.issues||(this.issues=[]),this.issues.push(t)},e.prototype.hasIssue=function(t){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===t})},e.prototype.isErroneous=function(t){return t===void 0&&(t=!1),this.issues&&this.issues.length>0?!0:t&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},e.prototype.setNode=function(t,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[t]=n,!0):!1},e.prototype.addChild=function(t){return t?(this.children||(this.children=[]),t.attachTo(this),this.updateOffsetAndLength(t),!0):!1},e.prototype.updateOffsetAndLength=function(t){(t.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},e.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(t){return this.children&&t=0;r--)if(n=this.children[r],n.offset<=t)return n}return null},e.prototype.findChildAtOffset=function(t,n){var r=this.findFirstChildBeforeOffset(t);return r&&r.end>=t?n&&r.findChildAtOffset(t,!0)||r:null},e.prototype.encloses=function(t){return this.offset<=t.offset&&this.offset+this.length>=t.offset+t.length},e.prototype.getParent=function(){for(var t=this.parent;t instanceof Ie;)t=t.parent;return t},e.prototype.findParent=function(t){for(var n=this;n&&n.type!==t;)n=n.parent;return n},e.prototype.findAParent=function(){for(var t=[],n=0;n/g,">")}function xh(e,t){if(!e.description||e.description==="")return"";if(typeof e.description!="string")return e.description.value;var n="";if((t==null?void 0:t.documentation)!==!1){e.status&&(n+=Fs(e.status)),n+=e.description;var r=Ds(e.browsers);r&&(n+=` (`+r+")"),"syntax"in e&&(n+=` Syntax: `+e.syntax)}return e.references&&e.references.length>0&&(t==null?void 0:t.references)!==!1&&(n.length>0&&(n+=` `),n+=e.references.map(function(i){return i.name+": "+i.url}).join(" | ")),n}function Sh(e,t){if(!e.description||e.description==="")return"";var n="";if((t==null?void 0:t.documentation)!==!1){e.status&&(n+=Fs(e.status));var r=typeof e.description=="string"?e.description:e.description.value;n+=ii(r);var i=Ds(e.browsers);i&&(n+=` (`+ii(i)+")"),"syntax"in e&&e.syntax&&(n+=` Syntax: `+ii(e.syntax))}return e.references&&e.references.length>0&&(t==null?void 0:t.references)!==!1&&(n.length>0&&(n+=` `),n+=e.references.map(function(o){return"["+o.name+"]("+o.url+")"}).join(" | ")),n}function Ds(e){return e===void 0&&(e=[]),e.length===0?null:e.map(function(t){var n="",r=t.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in _s&&(n+=_s[i]),o&&(n+=" "+o),n}).join(", ")}var Jn=Xe(),Ch=[{func:"rgb($red, $green, $blue)",desc:Jn("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Jn("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Jn("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Jn("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Sn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},As={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function Qt(e,t){var n=e.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(t=100);var i=parseFloat(r[1])/t;if(i>=0&&i<=1)return i}throw new Error}function kh(e){var t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);if(n)return parseFloat(t)%360;throw new Error}function Ns(e){var t=e.getName();return t?/^(rgb|rgba|hsl|hsla)$/gi.test(t):!1}function ap(e){if(e.type===p.HexColorValue)return!0;if(e.type===p.Function)return Ns(e);if(e.type===p.Identifier){if(e.parent&&e.parent.type!==p.Term)return!1;var t=e.getText().toLowerCase();if(t==="none")return!1;if(Sn[t])return!0}return!1}var Ts=48,Eh=57,_h=65,lp=70,Yn=97,Fh=102;function Fe(e){return e=Yn&&e<=Fh?e-Yn+10:0)}function Rs(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:Fe(e.charCodeAt(1))*17/255,green:Fe(e.charCodeAt(2))*17/255,blue:Fe(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Fe(e.charCodeAt(1))*17/255,green:Fe(e.charCodeAt(2))*17/255,blue:Fe(e.charCodeAt(3))*17/255,alpha:Fe(e.charCodeAt(4))*17/255};case 7:return{red:(Fe(e.charCodeAt(1))*16+Fe(e.charCodeAt(2)))/255,green:(Fe(e.charCodeAt(3))*16+Fe(e.charCodeAt(4)))/255,blue:(Fe(e.charCodeAt(5))*16+Fe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Fe(e.charCodeAt(1))*16+Fe(e.charCodeAt(2)))/255,green:(Fe(e.charCodeAt(3))*16+Fe(e.charCodeAt(4)))/255,blue:(Fe(e.charCodeAt(5))*16+Fe(e.charCodeAt(6)))/255,alpha:(Fe(e.charCodeAt(7))*16+Fe(e.charCodeAt(8)))/255}}return null}function cp(e,t,n,r){return r===void 0&&(r=1),{red:e/255,green:t/255,blue:n/255,alpha:r}}function Dh(e,t,n,r){if(r===void 0&&(r=1),e=e/60,t===0)return{red:n,green:n,blue:n,alpha:r};var i=function(a,c,l){for(;l<0;)l+=6;for(;l>=6;)l-=6;return l<1?(c-a)*l+a:l<3?c:l<4?(c-a)*(4-l)+a:a},o=n<=.5?n*(t+1):n+t-n*t,s=n*2-o;return{red:i(s,o,e+2),green:i(s,o,e),blue:i(s,o,e-2),alpha:r}}function Ah(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,o=Math.max(t,n,r),s=Math.min(t,n,r),a=0,c=0,l=(s+o)/2,d=o-s;if(d>0){c=Math.min(l<=.5?d/(2*l):d/(2-2*l),1);switch(o){case t:a=(n-r)/d+(n4)return null;try{var o=i.length===4?Qt(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:Qt(i[0],255),green:Qt(i[1],255),blue:Qt(i[2],255),alpha:o};if(r==="hsl"||r==="hsla"){var s=kh(i[0]),a=Qt(i[1],100),c=Qt(i[2],100);return Dh(s,a,c,o)}}catch(f){return null}}else if(e.type===p.Identifier){if(e.parent&&e.parent.type!==p.Term)return null;var l=e.parent;if(l&&l.parent&&l.parent.type===p.BinaryExpression){var d=l.parent;if(d.parent&&d.parent.type===p.ListEntry&&d.parent.key===d)return null}var u=e.getText().toLowerCase();if(u==="none")return null;var m=Sn[u];if(m)return Rs(m)}return null}var Ms={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Is={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Ls={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Th=["medium","thick","thin"],Ps={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},zs={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},Os={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Ws={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Us={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},js={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Vs={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Bs={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Rh=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","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","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],Mh=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],Ih=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function Xn(e){return Object.keys(e).map(function(t){return e[t]})}function Ze(e){return typeof e!="undefined"}var qs=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;rt.offset?o-t.offset:0}return t},e.prototype.markError=function(t,n,r,i){this.token!==this.lastErrorToken&&(t.addIssue(new Es(t,n,qe.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},e.prototype.parseStylesheet=function(t){var n=t.version,r=t.getText(),i=function(o,s){if(t.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,s)};return this.internalParse(r,this._parseStylesheet,i)},e.prototype.internalParse=function(t,n,r){this.scanner.setSource(t),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(o,s){return t.substr(o,s)}),i},e.prototype._parseStylesheet=function(){for(var t=this.create(jc);t.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(t.addChild(i),r=!0,n=!1,!this.peek(h.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(h.SemiColon)&&this.markError(t,b.SemiColonExpected));this.accept(h.SemiColon)||this.accept(h.CDO)||this.accept(h.CDC);)r=!0,n=!1}while(r);if(this.peek(h.EOF))break;n||(this.peek(h.AtKeyword)?this.markError(t,b.UnknownAtRule):this.markError(t,b.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(h.EOF));return this.finish(t)},e.prototype._parseStylesheetStart=function(){return this._parseCharset()},e.prototype._parseStylesheetStatement=function(t){return t===void 0&&(t=!1),this.peek(h.AtKeyword)?this._parseStylesheetAtStatement(t):this._parseRuleset(t)},e.prototype._parseStylesheetAtStatement=function(t){return t===void 0&&(t=!1),this._parseImport()||this._parseMedia(t)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(t)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},e.prototype._tryParseRuleset=function(t){var n=this.mark();if(this._parseSelector(t)){for(;this.accept(h.Comma)&&this._parseSelector(t););if(this.accept(h.CurlyL))return this.restoreAtMark(n),this._parseRuleset(t)}return this.restoreAtMark(n),null},e.prototype._parseRuleset=function(t){t===void 0&&(t=!1);var n=this.create(Yt),r=n.getSelectors();if(!r.addChild(this._parseSelector(t)))return null;for(;this.accept(h.Comma);)if(!r.addChild(this._parseSelector(t)))return this.finish(n,b.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},e.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},e.prototype._needsSemicolonAfter=function(t){switch(t.type){case p.Keyframe:case p.ViewPort:case p.Media:case p.Ruleset:case p.Namespace:case p.If:case p.For:case p.Each:case p.While:case p.MixinDeclaration:case p.FunctionDeclaration:case p.MixinContentDeclaration:return!1;case p.ExtendsReference:case p.MixinContentReference:case p.ReturnStatement:case p.MediaQuery:case p.Debug:case p.Import:case p.AtApplyRule:case p.CustomPropertyDeclaration:return!0;case p.VariableDeclaration:return t.needsSemicolon;case p.MixinReference:return!t.getContent();case p.Declaration:return!t.getNestedProperties()}return!1},e.prototype._parseDeclarations=function(t){var n=this.create(Jr);if(!this.accept(h.CurlyL))return null;for(var r=t();n.addChild(r)&&!this.peek(h.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(h.SemiColon))return this.finish(n,b.SemiColonExpected,[h.SemiColon,h.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===h.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(h.SemiColon););r=t()}return this.accept(h.CurlyR)?this.finish(n):this.finish(n,b.RightCurlyExpected,[h.CurlyR,h.SemiColon])},e.prototype._parseBody=function(t,n){return t.setDeclarations(this._parseDeclarations(n))?this.finish(t):this.finish(t,b.LeftCurlyExpected,[h.CurlyR,h.SemiColon])},e.prototype._parseSelector=function(t){var n=this.create(bn),r=!1;for(t&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},e.prototype._parseDeclaration=function(t){var n=this._tryParseCustomPropertyDeclaration(t);if(n)return n;var r=this.create(pt);return r.setProperty(this._parseProperty())?this.accept(h.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(h.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,b.PropertyValueExpected)):this.finish(r,b.ColonExpected,[h.Colon],t||[h.SemiColon]):null},e.prototype._tryParseCustomPropertyDeclaration=function(t){if(!this.peekRegExp(h.Ident,/^--/))return null;var n=this.create(Bc);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(n,b.ColonExpected,[h.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(h.CurlyL)){var i=this.create(Vc),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(h.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var s=this._parseExpr();return s&&!s.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,qs(qs([],t||[],!1),[h.SemiColon,h.EOF],!1)))?(n.setValue(s),this.peek(h.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(t)),n.addChild(this._parsePrio()),Ze(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,b.PropertyValueExpected):this.finish(n))},e.prototype._parseCustomPropertyValue=function(t){var n=this;t===void 0&&(t=[h.CurlyR]);var r=this.create(B),i=function(){return s===0&&a===0&&c===0},o=function(){return t.indexOf(n.token.type)!==-1},s=0,a=0,c=0;e:for(;;){switch(this.token.type){case h.SemiColon:if(i())break e;break;case h.Exclamation:if(i())break e;break;case h.CurlyL:s++;break;case h.CurlyR:if(s--,s<0){if(o()&&a===0&&c===0)break e;return this.finish(r,b.LeftCurlyExpected)}break;case h.ParenthesisL:a++;break;case h.ParenthesisR:if(a--,a<0){if(o()&&c===0&&s===0)break e;return this.finish(r,b.LeftParenthesisExpected)}break;case h.BracketL:c++;break;case h.BracketR:if(c--,c<0)return this.finish(r,b.LeftSquareBracketExpected);break;case h.BadString:break e;case h.EOF:var l=b.RightCurlyExpected;return c>0?l=b.RightSquareBracketExpected:a>0&&(l=b.RightParenthesisExpected),this.finish(r,l)}this.consumeToken()}return this.finish(r)},e.prototype._tryToParseDeclaration=function(t){var n=this.mark();return this._parseProperty()&&this.accept(h.Colon)?(this.restoreAtMark(n),this._parseDeclaration(t)):(this.restoreAtMark(n),null)},e.prototype._parseProperty=function(){var t=this.create(Xr),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):t.setIdentifier(this._parsePropertyIdentifier())?this.finish(t):null},e.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},e.prototype._parseCharset=function(){if(!this.peek(h.Charset))return null;var t=this.create(B);return this.consumeToken(),this.accept(h.String)?this.accept(h.SemiColon)?this.finish(t):this.finish(t,b.SemiColonExpected):this.finish(t,b.IdentifierExpected)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var t=this.create(Zr);return this.consumeToken(),!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral())?this.finish(t,b.URIOrStringExpected):(!this.peek(h.SemiColon)&&!this.peek(h.EOF)&&t.setMedialist(this._parseMediaQueryList()),this.finish(t))},e.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var t=this.create(th);return this.consumeToken(),!t.addChild(this._parseURILiteral())&&(t.addChild(this._parseIdent()),!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral()))?this.finish(t,b.URIExpected,[h.SemiColon]):this.accept(h.SemiColon)?this.finish(t):this.finish(t,b.SemiColonExpected)},e.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var t=this.create(ms);return this.consumeToken(),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var t=this.create(Yc);return this.consumeToken(),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseKeyframe=function(){if(!this.peekRegExp(h.AtKeyword,this.keyframeRegex))return null;var t=this.create(gs),n=this.create(B);return this.consumeToken(),t.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,b.UnknownKeyword),t.setIdentifier(this._parseKeyframeIdent())?this._parseBody(t,this._parseKeyframeSelector.bind(this)):this.finish(t,b.IdentifierExpected,[h.CurlyR])},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([oe.Keyframe])},e.prototype._parseKeyframeSelector=function(){var t=this.create(bs);if(!t.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.finish(t,b.PercentageExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._tryParseKeyframeSelector=function(){var t=this.create(bs),n=this.mark();if(!t.addChild(this._parseIdent())&&!this.accept(h.Percentage))return null;for(;this.accept(h.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(h.Percentage))return this.restoreAtMark(n),null;return this.peek(h.CurlyL)?this._parseBody(t,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},e.prototype._parseSupports=function(t){if(t===void 0&&(t=!1),!this.peekKeyword("@supports"))return null;var n=this.create(Qr);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,t))},e.prototype._parseSupportsDeclaration=function(t){return t===void 0&&(t=!1),t?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseSupportsCondition=function(){var t=this.create(yn);if(this.acceptIdent("not"))t.addChild(this._parseSupportsConditionInParens());else if(t.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(h.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)t.addChild(this._parseSupportsConditionInParens());return this.finish(t)},e.prototype._parseSupportsConditionInParens=function(){var t=this.create(yn);if(this.accept(h.ParenthesisL))return this.prevToken&&(t.lParent=this.prevToken.offset),!t.addChild(this._tryToParseDeclaration([h.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(t,b.ConditionExpected):this.accept(h.ParenthesisR)?(this.prevToken&&(t.rParent=this.prevToken.offset),this.finish(t)):this.finish(t,b.RightParenthesisExpected,[h.ParenthesisR],[]);if(this.peek(h.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(h.ParenthesisL)){for(var r=1;this.token.type!==h.EOF&&r!==0;)this.token.type===h.ParenthesisL?r++:this.token.type===h.ParenthesisR&&r--,this.consumeToken();return this.finish(t)}else this.restoreAtMark(n)}return this.finish(t,b.LeftParenthesisExpected,[],[h.ParenthesisL])},e.prototype._parseMediaDeclaration=function(t){return t===void 0&&(t=!1),t?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseMedia=function(t){if(t===void 0&&(t=!1),!this.peekKeyword("@media"))return null;var n=this.create(vs);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,t)):this.finish(n,b.MediaQueryExpected)},e.prototype._parseMediaQueryList=function(){var t=this.create(ys);if(!t.addChild(this._parseMediaQuery()))return this.finish(t,b.MediaQueryExpected);for(;this.accept(h.Comma);)if(!t.addChild(this._parseMediaQuery()))return this.finish(t,b.MediaQueryExpected);return this.finish(t)},e.prototype._parseMediaQuery=function(){var t=this.create(ws),n=this.mark();if(this.acceptIdent("not"),this.peek(h.ParenthesisL))this.restoreAtMark(n),t.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!t.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&t.addChild(this._parseMediaCondition())}return this.finish(t)},e.prototype._parseRatio=function(){var t=this.mark(),n=this.create(ch);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,b.NumberExpected):(this.restoreAtMark(t),null):null},e.prototype._parseMediaCondition=function(){var t=this.create(rh);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(h.ParenthesisL))return this.finish(t,b.LeftParenthesisExpected,[],[h.CurlyL]);if(this.peek(h.ParenthesisL)||this.peekIdent("not")?t.addChild(this._parseMediaCondition()):t.addChild(this._parseMediaFeature()),!this.accept(h.ParenthesisR))return this.finish(t,b.RightParenthesisExpected,[],[h.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(t)},e.prototype._parseMediaFeature=function(){var t=this,n=[h.ParenthesisR],r=this.create(ih),i=function(){return t.acceptDelim("<")||t.acceptDelim(">")?(t.hasWhitespace()||t.acceptDelim("="),!0):!!t.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(h.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,b.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,b.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}else return this.finish(r,b.IdentifierExpected,[],n);return this.finish(r)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()},e.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},e.prototype._parseMedium=function(){var t=this.create(B);return t.addChild(this._parseIdent())?this.finish(t):null},e.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},e.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var t=this.create(oh);if(this.consumeToken(),t.addChild(this._parsePageSelector())){for(;this.accept(h.Comma);)if(!t.addChild(this._parsePageSelector()))return this.finish(t,b.IdentifierExpected)}return this._parseBody(t,this._parsePageDeclaration.bind(this))},e.prototype._parsePageMarginBox=function(){if(!this.peek(h.AtKeyword))return null;var t=this.create(sh);return this.acceptOneKeyword(Ih)||this.markError(t,b.UnknownAtRule,[],[h.CurlyL]),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parsePageSelector=function(){if(!this.peek(h.Ident)&&!this.peek(h.Colon))return null;var t=this.create(B);return t.addChild(this._parseIdent()),this.accept(h.Colon)&&!t.addChild(this._parseIdent())?this.finish(t,b.IdentifierExpected):this.finish(t)},e.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var t=this.create(nh);return this.consumeToken(),this.resync([],[h.CurlyL]),this._parseBody(t,this._parseStylesheetStatement.bind(this))},e.prototype._parseUnknownAtRule=function(){if(!this.peek(h.AtKeyword))return null;var t=this.create(Cs);t.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&o===0&&s===0},r=0,i=0,o=0,s=0;e:for(;;){switch(this.token.type){case h.SemiColon:if(n())break e;break;case h.EOF:return i>0?this.finish(t,b.RightCurlyExpected):s>0?this.finish(t,b.RightSquareBracketExpected):o>0?this.finish(t,b.RightParenthesisExpected):this.finish(t);case h.CurlyL:r++,i++;break;case h.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),s>0)return this.finish(t,b.RightSquareBracketExpected);if(o>0)return this.finish(t,b.RightParenthesisExpected);break e}if(i<0){if(o===0&&s===0)break e;return this.finish(t,b.LeftCurlyExpected)}break;case h.ParenthesisL:o++;break;case h.ParenthesisR:if(o--,o<0)return this.finish(t,b.LeftParenthesisExpected);break;case h.BracketL:s++;break;case h.BracketR:if(s--,s<0)return this.finish(t,b.LeftSquareBracketExpected);break}this.consumeToken()}return t},e.prototype._parseUnknownAtRuleName=function(){var t=this.create(B);return this.accept(h.AtKeyword)?this.finish(t):t},e.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(h.Dashmatch)||this.peek(h.Includes)||this.peek(h.SubstringOperator)||this.peek(h.PrefixOperator)||this.peek(h.SuffixOperator)||this.peekDelim("=")){var t=this.createNode(p.Operator);return this.consumeToken(),this.finish(t)}else return null},e.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var t=this.create(B);return this.consumeToken(),this.finish(t)},e.prototype._parseCombinator=function(){if(this.peekDelim(">")){var t=this.create(B);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return t.type=p.SelectorCombinatorShadowPiercingDescendant,this.finish(t);this.restoreAtMark(n)}return t.type=p.SelectorCombinatorParent,this.finish(t)}else if(this.peekDelim("+")){var t=this.create(B);return this.consumeToken(),t.type=p.SelectorCombinatorSibling,this.finish(t)}else if(this.peekDelim("~")){var t=this.create(B);return this.consumeToken(),t.type=p.SelectorCombinatorAllSiblings,this.finish(t)}else if(this.peekDelim("/")){var t=this.create(B);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return t.type=p.SelectorCombinatorShadowPiercingDescendant,this.finish(t);this.restoreAtMark(n)}return null},e.prototype._parseSimpleSelector=function(){var t=this.create(Xt),n=0;for(t.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&t.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(t):null},e.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},e.prototype._parseSelectorIdent=function(){return this._parseIdent()},e.prototype._parseHash=function(){if(!this.peek(h.Hash)&&!this.peekDelim("#"))return null;var t=this.createNode(p.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!t.addChild(this._parseSelectorIdent()))return this.finish(t,b.IdentifierExpected)}else this.consumeToken();return this.finish(t)},e.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var t=this.createNode(p.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!t.addChild(this._parseSelectorIdent())?this.finish(t,b.IdentifierExpected):this.finish(t)},e.prototype._parseElementName=function(){var t=this.mark(),n=this.createNode(p.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(t),null):this.finish(n)},e.prototype._parseNamespacePrefix=function(){var t=this.mark(),n=this.createNode(p.NamespacePrefix);return!n.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(t),null)},e.prototype._parseAttrib=function(){if(!this.peek(h.BracketL))return null;var t=this.create(lh);return this.consumeToken(),t.setNamespacePrefix(this._parseNamespacePrefix()),t.setIdentifier(this._parseIdent())?(t.setOperator(this._parseOperator())&&(t.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(h.BracketR)?this.finish(t):this.finish(t,b.RightSquareBracketExpected)):this.finish(t,b.IdentifierExpected)},e.prototype._parsePseudo=function(){var t=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(h.ParenthesisL)){var r=function(){var i=t.create(B);if(!i.addChild(t._parseSelector(!1)))return null;for(;t.accept(h.Comma)&&i.addChild(t._parseSelector(!1)););return t.peek(h.ParenthesisR)?t.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return this.finish(n)}return null},e.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(h.Colon))return null;var t=this.mark(),n=this.createNode(p.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(t),null):(this.accept(h.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,b.IdentifierExpected):this.finish(n))},e.prototype._tryParsePrio=function(){var t=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(t),null)},e.prototype._parsePrio=function(){if(!this.peek(h.Exclamation))return null;var t=this.createNode(p.Prio);return this.accept(h.Exclamation)&&this.acceptIdent("important")?this.finish(t):null},e.prototype._parseExpr=function(t){t===void 0&&(t=!1);var n=this.create(xs);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(h.Comma)){if(t)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},e.prototype._parseNamedLine=function(){if(!this.peek(h.BracketL))return null;var t=this.createNode(p.GridLine);for(this.consumeToken();t.addChild(this._parseIdent()););return this.accept(h.BracketR)?this.finish(t):this.finish(t,b.RightSquareBracketExpected)},e.prototype._parseBinaryExpr=function(t,n){var r=this.create(Ss);if(!r.setLeft(t||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,b.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},e.prototype._parseTerm=function(){var t=this.create(ah);return t.setOperator(this._parseUnaryOperator()),t.setExpression(this._parseTermExpression())?this.finish(t):null},e.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},e.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var t=this.create(B);return this.consumeToken(),t.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(t):this.finish(t,b.RightParenthesisExpected)},e.prototype._parseNumeric=function(){if(this.peek(h.Num)||this.peek(h.Percentage)||this.peek(h.Resolution)||this.peek(h.Length)||this.peek(h.EMS)||this.peek(h.EXS)||this.peek(h.Angle)||this.peek(h.Time)||this.peek(h.Dimension)||this.peek(h.Freq)){var t=this.create(ti);return this.consumeToken(),this.finish(t)}return null},e.prototype._parseStringLiteral=function(){if(!this.peek(h.String)&&!this.peek(h.BadString))return null;var t=this.createNode(p.StringLiteral);return this.consumeToken(),this.finish(t)},e.prototype._parseURILiteral=function(){if(!this.peekRegExp(h.Ident,/^url(-prefix)?$/i))return null;var t=this.mark(),n=this.createNode(p.URILiteral);return this.accept(h.Ident),this.hasWhitespace()||!this.peek(h.ParenthesisL)?(this.restoreAtMark(t),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(h.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected))},e.prototype._parseURLArgument=function(){var t=this.create(B);return!this.accept(h.String)&&!this.accept(h.BadString)&&!this.acceptUnquotedString()?null:this.finish(t)},e.prototype._parseIdent=function(t){if(!this.peek(h.Ident))return null;var n=this.create(Ye);return t&&(n.referenceTypes=t),n.isCustomProperty=this.peekRegExp(h.Ident,/^--/),this.consumeToken(),this.finish(n)},e.prototype._parseFunction=function(){var t=this.mark(),n=this.create(vn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(t),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,b.ExpressionExpected);return this.accept(h.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(!this.peek(h.Ident))return null;var t=this.create(Ye);if(t.referenceTypes=[oe.Function],this.acceptIdent("progid")){if(this.accept(h.Colon))for(;this.accept(h.Ident)&&this.acceptDelim("."););return this.finish(t)}return this.consumeToken(),this.finish(t)},e.prototype._parseFunctionArgument=function(){var t=this.create(Zt);return t.setValue(this._parseExpr(!0))?this.finish(t):null},e.prototype._parseHexColor=function(){if(this.peekRegExp(h.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var t=this.create(ei);return this.consumeToken(),this.finish(t)}else return null},e}();function Lh(e,t){var n=0,r=e.length;if(r===0)return 0;for(;nt+n||this.offset===t&&this.length===n?this.findInScope(t,n):null},e.prototype.findInScope=function(t,n){n===void 0&&(n=0);var r=t+n,i=Lh(this.children,function(s){return s.offset>r});if(i===0)return this;var o=this.children[i-1];return o.offset<=t&&o.offset+o.length>=t+n?o.findInScope(t,n):this},e.prototype.addSymbol=function(t){this.symbols.push(t)},e.prototype.getSymbol=function(t,n){for(var r=0;r0&&(a.arguments=o),a}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.title)&&v.string(i.command)}e.is=n})(en||(en={}));var X;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){var s=o;return v.objectLiteral(s)&&v.string(s.newText)&&ve.is(s.range)}e.is=i})(X||(X={}));var tn;(function(e){function t(r,i,o){var s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){var i=r;return i!==void 0&&v.objectLiteral(i)&&v.string(i.label)&&(v.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(v.string(i.description)||i.description===void 0)}e.is=n})(tn||(tn={}));var ze;(function(e){function t(n){var r=n;return typeof r=="string"}e.is=t})(ze||(ze={}));var At;(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){var s=o;return X.is(s)&&(tn.is(s.annotationId)||ze.is(s.annotationId))}e.is=i})(At||(At={}));var kn;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&ir.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(kn||(kn={}));var En;(function(e){function t(r,i,o){var s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){var i=r;return i&&i.kind==="create"&&v.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||v.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||v.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ze.is(i.annotationId))}e.is=n})(En||(En={}));var _n;(function(e){function t(r,i,o,s){var a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&v.string(i.oldUri)&&v.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||v.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||v.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ze.is(i.annotationId))}e.is=n})(_n||(_n={}));var Fn;(function(e){function t(r,i,o){var s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){var i=r;return i&&i.kind==="delete"&&v.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||v.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||v.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ze.is(i.annotationId))}e.is=n})(Fn||(Fn={}));var ci;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return v.string(i.kind)?En.is(i)||_n.is(i)||Fn.is(i):kn.is(i)}))}e.is=t})(ci||(ci={}));var rr=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,r){var i,o;if(r===void 0?i=X.insert(t,n):ze.is(r)?(o=r,i=At.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.insert(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.replace=function(t,n,r){var i,o;if(r===void 0?i=X.replace(t,n):ze.is(r)?(o=r,i=At.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=At.replace(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.delete=function(t,n){var r,i;if(n===void 0?r=X.del(t):ze.is(n)?(i=n,r=At.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=At.del(t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ta=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(ze.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),hp=function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ta(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(kn.is(r)){var i=new rr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new rr(t.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(ir.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new rr(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new rr(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ta,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;tn.is(n)||ze.is(n)?i=n:r=n;var o,s;if(i===void 0?o=En.create(t,r):(s=ze.is(i)?i:this._changeAnnotations.manage(i),o=En.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e.prototype.renameFile=function(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;tn.is(r)||ze.is(r)?o=r:i=r;var s,a;if(o===void 0?s=_n.create(t,n,i):(a=ze.is(o)?o:this._changeAnnotations.manage(o),s=_n.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e.prototype.deleteFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;tn.is(n)||ze.is(n)?i=n:r=n;var o,s;if(i===void 0?o=Fn.create(t,r):(s=ze.is(i)?i:this._changeAnnotations.manage(i),o=Fn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e}(),na;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)}e.is=n})(na||(na={}));var hi;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)&&v.integer(i.version)}e.is=n})(hi||(hi={}));var ir;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)&&(i.version===null||v.integer(i.version))}e.is=n})(ir||(ir={}));var ra;(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){var i=r;return v.defined(i)&&v.string(i.uri)&&v.string(i.languageId)&&v.integer(i.version)&&v.string(i.text)}e.is=n})(ra||(ra={}));var ot;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(ot||(ot={})),function(e){function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t}(ot||(ot={}));var di;(function(e){function t(n){var r=n;return v.objectLiteral(n)&&ot.is(r.kind)&&v.string(r.value)}e.is=t})(di||(di={}));var J;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(J||(J={}));var $e;(function(e){e.PlainText=1,e.Snippet=2})($e||($e={}));var Mt;(function(e){e.Deprecated=1})(Mt||(Mt={}));var ia;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){var i=r;return i&&v.string(i.newText)&&ve.is(i.insert)&&ve.is(i.replace)}e.is=n})(ia||(ia={}));var oa;(function(e){e.asIs=1,e.adjustIndentation=2})(oa||(oa={}));var sa;(function(e){function t(n){return{label:n}}e.create=t})(sa||(sa={}));var aa;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(aa||(aa={}));var or;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return v.string(i)||v.objectLiteral(i)&&v.string(i.language)&&v.string(i.value)}e.is=n})(or||(or={}));var la;(function(e){function t(n){var r=n;return!!r&&v.objectLiteral(r)&&(di.is(r.contents)||or.is(r.contents)||v.typedArray(r.contents,or.is))&&(n.range===void 0||ve.is(n.range))}e.is=t})(la||(la={}));var ca;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(ca||(ca={}));var ha;(function(e){function t(n,r){for(var i=[],o=2;o=0;d--){var u=c[d],m=o.offsetAt(u.range.start),f=o.offsetAt(u.range.end);if(f<=l)a=a.substring(0,m)+u.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");l=m}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;var a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);for(var d=0,u=0,m=0;d0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return He.create(0,t);for(;rt?i=o:r=o+1}var s=r-1;return He.create(s,t-n[s])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1t?i=o:r=o+1}var s=r-1;return{line:s,character:t-n[s]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1c&&l.push(s.substring(c,f)),m.newText.length&&l.push(m.newText),c=i.offsetAt(m.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(mi||(mi={}));function fi(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);fi(r,t),fi(i,t);for(var o=0,s=0,a=0;on.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function jh(e){var t=Sa(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ca;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ot.Markdown,ot.PlainText]}},hover:{contentFormat:[ot.Markdown,ot.PlainText]}}}})(Ca||(Ca={}));var Dn;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(Dn||(Dn={}));var rn=Q("7VkR"),Vh=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=0;s--){var a=this.nodePath[s];if(a instanceof Xr)this.getCompletionsForDeclarationProperty(a.getParent(),o);else if(a instanceof xs)a.parent instanceof ni?this.getVariableProposals(null,o):this.getCompletionsForExpression(a,o);else if(a instanceof Xt){var c=a.findAParent(p.ExtendsReference,p.Ruleset);if(c)if(c.type===p.ExtendsReference)this.getCompletionsForExtendsReference(c,a,o);else{var l=c;this.getCompletionsForSelector(l,l&&l.isNested(),o)}}else if(a instanceof Zt)this.getCompletionsForFunctionArgument(a,a.getParent(),o);else if(a instanceof Jr)this.getCompletionsForDeclarations(a,o);else if(a instanceof Gn)this.getCompletionsForVariableDeclaration(a,o);else if(a instanceof Yt)this.getCompletionsForRuleSet(a,o);else if(a instanceof ni)this.getCompletionsForInterpolation(a,o);else if(a instanceof $n)this.getCompletionsForFunctionDeclaration(a,o);else if(a instanceof Kn)this.getCompletionsForMixinReference(a,o);else if(a instanceof vn)this.getCompletionsForFunctionArgument(null,a,o);else if(a instanceof Qr)this.getCompletionsForSupports(a,o);else if(a instanceof yn)this.getCompletionsForSupportsCondition(a,o);else if(a instanceof wn)this.getCompletionsForExtendsReference(a,null,o);else if(a.type===p.URILiteral)this.getCompletionForUriLiteralValue(a,o);else if(a.parent===null)this.getCompletionForTopLevel(o);else if(a.type===p.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,o);else continue;if(o.items.length>0||this.offset>a.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&(this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o)),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},e.prototype.isImportPathParent=function(t){return t===p.Import},e.prototype.finalize=function(t){return t},e.prototype.findInNodePath=function(){for(var t=[],n=0;n=0;r--){var i=this.nodePath[r];if(t.indexOf(i.type)!==-1)return i}return null},e.prototype.getCompletionsForDeclarationProperty=function(t,n){return this.getPropertyProposals(t,n)},e.prototype.getPropertyProposals=function(t,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,o=this.isCompletePropertyWithSemicolonEnabled,s=this.cssDataManager.getProperties();return s.forEach(function(a){var c,l,d=!1;t?(c=r.getCompletionRange(t.getProperty()),l=a.name,Ze(t.colonPosition)||(l+=": ",d=!0)):(c=r.getCompletionRange(null),l=a.name+": ",d=!0),!t&&o&&(l+="$0;"),t&&!t.semicolonPosition&&(o&&r.offset>=r.textDocument.offsetAt(c.end)&&(l+="$0;"));var u={label:a.name,documentation:Dt(a,r.doesSupportMarkdown()),tags:An(a)?[Mt.Deprecated]:[],textEdit:X.replace(c,l),insertTextFormat:$e.Snippet,kind:J.Property};a.restrictions||(d=!1),i&&d&&(u.command=_a);var m=typeof a.relevance=="number"?Math.min(Math.max(a.relevance,0),99):50,f=(255-m).toString(16),S=Ae(a.name,"-")?mt.VendorPrefixed:mt.Normal;u.sortText=S+"_"+f,n.items.push(u)}),this.completionParticipants.forEach(function(a){a.onCssProperty&&a.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(e.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var t,n;return(n=(t=this.documentSettings)===null||t===void 0?void 0:t.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var t,n;return(n=(t=this.documentSettings)===null||t===void 0?void 0:t.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),e.prototype.getCompletionsForDeclarationValue=function(t,n){for(var r=this,i=t.getFullPropertyName(),o=this.cssDataManager.getProperty(i),s=t.getValue()||null;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(S){S.onCssPropertyValue&&S.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(s)})}),o){if(o.restrictions)for(var a=0,c=o.restrictions;a=t.offset+2&&this.getVariableProposals(null,n),n},e.prototype.getVariableProposals=function(t,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,oe.Variable),i=0,o=r;i0){var o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===p.Term&&(n=n.getParent()),t.restrictions)for(var s=0,a=t.restrictions;s=r.end;if(i)return this.getCompletionForTopLevel(n);var o=!r||this.offset<=r.offset;return o?this.getCompletionsForSelector(t,t.isNested(),n):this.getCompletionsForDeclarations(t.getDeclarations(),n)},e.prototype.getCompletionsForSelector=function(t,n,r){var i=this,o=this.findInNodePath(p.PseudoSelector,p.IdentifierSelector,p.ClassSelector,p.ElementNameSelector);!o&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=ve.create(He.create(this.position.line,this.position.character-this.currentWord.length),this.position));var s=this.cssDataManager.getPseudoClasses();s.forEach(function(k){var O=on(k.name),g={label:k.name,textEdit:X.replace(i.getCompletionRange(o),O),documentation:Dt(k,i.doesSupportMarkdown()),tags:An(k)?[Mt.Deprecated]:[],kind:J.Function,insertTextFormat:k.name!==O?gt:void 0};Ae(k.name,":-")&&(g.sortText=mt.VendorPrefixed),r.items.push(g)});var a=this.cssDataManager.getPseudoElements();if(a.forEach(function(k){var O=on(k.name),g={label:k.name,textEdit:X.replace(i.getCompletionRange(o),O),documentation:Dt(k,i.doesSupportMarkdown()),tags:An(k)?[Mt.Deprecated]:[],kind:J.Function,insertTextFormat:k.name!==O?gt:void 0};Ae(k.name,"::-")&&(g.sortText=mt.VendorPrefixed),r.items.push(g)}),!n){for(var c=0,l=Rh;c0){var O=S.substr(k.offset,k.length);return O.charAt(0)==="."&&!f[O]&&(f[O]=!0,r.items.push({label:O,textEdit:X.replace(i.getCompletionRange(o),O),kind:J.Keyword})),!1}return!0}),t&&t.isNested()){var T=t.getSelectors().findFirstChildBeforeOffset(this.offset);T&&t.getSelectors().getChildren().indexOf(T)===0&&this.getPropertyProposals(null,r)}return r},e.prototype.getCompletionsForDeclarations=function(t,n){if(!t||this.offset===t.offset)return n;var r=t.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Yr){var i=r;if(!Ze(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ze(i.semicolonPosition)&&i.semicolonPositiont.colonPosition&&this.getVariableProposals(t.getValue(),n),n},e.prototype.getCompletionsForExpression=function(t,n){var r=t.getParent();if(r instanceof Zt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=t.findParent(p.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var o=t.findChildAtOffset(this.offset,!0);return o?o instanceof ti||o instanceof Ye?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},e.prototype.getCompletionsForFunctionArgument=function(t,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&((!n.getArguments().hasChildren()||n.getArguments().getChild(0)===t)&&this.getVariableProposalsForCSSVarFunction(r)),r},e.prototype.getCompletionsForFunctionDeclaration=function(t,n){var r=t.getDeclarations();return r&&this.offset>r.offset&&this.offsett.lParent&&(!Ze(t.rParent)||this.offset<=t.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},e.prototype.getCompletionsForSupports=function(t,n){var r=t.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var o=t.findFirstChildBeforeOffset(this.offset);return o instanceof yn?this.getCompletionsForSupportsCondition(o,n):n}return this.getCompletionForTopLevel(n)},e.prototype.getCompletionsForExtendsReference=function(t,n,r){return r},e.prototype.getCompletionForUriLiteralValue=function(t,n){var r,i,o;if(t.hasChildren()){var a=t.getChild(0);r=a.getText(),i=this.position,o=this.getCompletionRange(a)}else{r="",i=this.position;var s=this.textDocument.positionAt(t.offset+"url(".length);o=ve.create(s,s)}return this.completionParticipants.forEach(function(c){c.onCssURILiteralValue&&c.onCssURILiteralValue({uriValue:r,position:i,range:o})}),n},e.prototype.getCompletionForImportPath=function(t,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:t.getText(),position:r.position,range:r.getCompletionRange(t)})}),n},e.prototype.hasCharacterAtPosition=function(t,n){var r=this.textDocument.getText();return t>=0&&t=0&&` \r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}function Fa(e){return e.toLowerCase()in Sn||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}var Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),td=Xe(),xi=function(){function e(){this.parent=null,this.children=null,this.attributes=null}return e.prototype.findAttribute=function(t){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},e}(),bt;(function(e){function t(r,i){return i+n(r)+i}e.ensure=t;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}e.remove=n})(bt||(bt={}));var nd=function(){function e(){this.id=0,this.attr=0,this.tag=0}return e}();function Na(e,t){for(var n=new xi,r=0,i=e.getChildren();r1){var l=t.cloneWithParent();n.addChild(l.findRoot()),n=l}n.append(s[c])}}break;case p.SelectorPlaceholder:if(o.matches("@at-root"))return n;case p.ElementNameSelector:var d=o.getText();n.addAttr("name",d==="*"?"element":Qe(d));break;case p.ClassSelector:n.addAttr("class",Qe(o.getText().substring(1)));break;case p.IdentifierSelector:n.addAttr("id",Qe(o.getText().substring(1)));break;case p.MixinDeclaration:n.addAttr("class",o.getName());break;case p.PseudoSelector:n.addAttr(Qe(o.getText()),"");break;case p.AttributeSelector:var u=o,m=u.getIdentifier();if(m){var f=u.getValue(),S=u.getOperator(),T=void 0;if(f&&S)switch(Qe(S.getText())){case"|=":T=bt.remove(Qe(f.getText()))+"-\u2026";break;case"^=":T=bt.remove(Qe(f.getText()))+"\u2026";break;case"$=":T="\u2026"+bt.remove(Qe(f.getText()));break;case"~=":T=" \u2026 "+bt.remove(Qe(f.getText()))+" \u2026 ";break;case"*=":T="\u2026"+bt.remove(Qe(f.getText()))+"\u2026";break;default:T=bt.remove(Qe(f.getText()));break}n.addAttr(Qe(m.getText()),T)}break}}return n}function Qe(e){var t=new gn;t.setSource(e);var n=t.scanUnquotedString();return n?n.text:e}var rd=function(){function e(t){this.cssDataManager=t}return e.prototype.selectorToMarkedString=function(t){var n=sd(t);if(n){var r=new Aa('"').print(n);return r.push(this.selectorToSpecificityMarkedString(t)),r}else return[]},e.prototype.simpleSelectorToMarkedString=function(t){var n=Na(t),r=new Aa('"').print(n);return r.push(this.selectorToSpecificityMarkedString(t)),r},e.prototype.isPseudoElementIdentifier=function(t){var n=t.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},e.prototype.selectorToSpecificityMarkedString=function(t){var n=this,r=function(o){for(var s=0,a=o.getChildren();s0&&r(c)}},i=new nd;return r(t),td("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},e}(),id=function(){function e(t){this.prev=null,this.element=t}return e.prototype.processSelector=function(t){var n=null;if(!(this.element instanceof sn)&&t.getChildren().some(function(d){return d.hasChildren()&&d.getChild(0).type===p.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof sn&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,o=t.getChildren();i=0;s--){var a=n[s].getSelectors().getChild(0);a&&o.processSelector(a)}return o.processSelector(e),t}var Ci=function(){function e(t,n){this.clientCapabilities=t,this.cssDataManager=n,this.selectorPrinting=new rd(n)}return e.prototype.configure=function(t){this.defaultSettings=t},e.prototype.doHover=function(t,n,r,i){i===void 0&&(i=this.defaultSettings);function o(k){return ve.create(t.positionAt(k.offset),t.positionAt(k.end))}for(var s=t.offsetAt(n),a=Kr(r,s),c=null,l=0;l0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=o.length/2&&s.push({property:O.name,score:g})}),s.sort(function(O,g){return g.score-O.score||O.property.localeCompare(g.property)});for(var a=3,c=0,l=s;c=0;c--){var l=a[c];if(l instanceof pt){var d=l.getProperty();if(d&&d.offset===o&&d.end===s){this.getFixesForUnknownProperty(t,d,r,i);return}}}},e}(),md=function(){function e(t){this.fullPropertyName=t.getFullPropertyName().toLowerCase(),this.node=t}return e}();function Nn(e,t,n,r){var i=e[t];i.value=n,n&&(Hs(i.properties,r)||i.properties.push(r))}function fd(e,t,n){Nn(e,"top",t,n),Nn(e,"right",t,n),Nn(e,"bottom",t,n),Nn(e,"left",t,n)}function Le(e,t,n,r){t==="top"||t==="right"||t==="bottom"||t==="left"?Nn(e,t,n,r):fd(e,n,r)}function _i(e,t,n){switch(t.length){case 1:Le(e,void 0,t[0],n);break;case 2:Le(e,"top",t[0],n),Le(e,"bottom",t[0],n),Le(e,"right",t[1],n),Le(e,"left",t[1],n);break;case 3:Le(e,"top",t[0],n),Le(e,"right",t[1],n),Le(e,"left",t[1],n),Le(e,"bottom",t[2],n);break;case 4:Le(e,"top",t[0],n),Le(e,"right",t[1],n),Le(e,"bottom",t[2],n),Le(e,"left",t[3],n);break}}function Fi(e,t){for(var n=0,r=t;n0)for(var T=this.fetch(r,"float"),k=0;k0)for(var T=this.fetch(r,"vertical-align"),k=0;k1)for(var q=0;q")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(p.Operator);return this.consumeToken(),this.finish(n)}return e.prototype._parseOperator.call(this)},t.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(B);return this.consumeToken(),this.finish(n)}return e.prototype._parseUnaryOperator.call(this)},t.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(pt);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(h.Colon))return this.finish(i,b.ColonExpected,[h.Colon],n||[h.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var o=!1;if(i.setValue(this._parseExpr())&&(o=!0,i.addChild(this._parsePrio())),this.peek(h.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!o)return this.finish(i,b.PropertyValueExpected);return this.peek(h.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},t.prototype._parseNestedProperties=function(){var n=this.create(fs);return this._parseBody(n,this._parseDeclaration.bind(this))},t.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(wn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,b.SelectorExpected);for(;this.accept(h.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(h.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,b.UnknownKeyword):this.finish(n)}return null},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(p.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},t.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(p.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(p.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},t.prototype._parseElementName=function(){var n=this.mark(),r=e.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(h.ParenthesisL)?(this.restoreAtMark(n),null):r},t.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||e.prototype._tryParsePseudoIdentifier.call(this)},t.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(p.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},t.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(h.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},t.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},t.prototype._internalParseIfStatement=function(n){var r=this.create(Hc);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,b.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(h.CurlyL)){var i=this.create(Jc);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},t.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create($c);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Mi.ThroughOrToExpected,[h.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[h.CurlyR]):this.finish(r,b.ExpressionExpected,[h.CurlyR]):this.finish(r,Mi.FromExpected,[h.CurlyR]):this.finish(r,b.VariableNameExpected,[h.CurlyR])},t.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(Gc);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,b.VariableNameExpected,[h.CurlyR]);for(;this.accept(h.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,b.VariableNameExpected,[h.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[h.CurlyR]):this.finish(r,Mi.InExpected,[h.CurlyR])},t.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(Kc);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[h.CurlyR])},t.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},t.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create($n);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([oe.Function])))return this.finish(n,b.IdentifierExpected,[h.CurlyR]);if(!this.accept(h.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[h.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}return this.accept(h.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,b.RightParenthesisExpected,[h.CurlyR])},t.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(p.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,b.ExpressionExpected)},t.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(xn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([oe.Mixin])))return this.finish(n,b.IdentifierExpected,[h.CurlyR]);if(this.accept(h.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[h.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseParameterDeclaration=function(){var n=this.create(Hn);return n.setIdentifier(this._parseVariable())?(this.accept(pr),this.accept(h.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,b.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):this.finish(n)):null},t.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(ph);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,b.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return this.finish(n)},t.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(Kn);this.consumeToken();var r=this._parseIdent([oe.Mixin]);if(!n.setIdentifier(r))return this.finish(n,b.IdentifierExpected,[h.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([oe.Mixin]);if(!i)return this.finish(n,b.IdentifierExpected,[h.CurlyR]);var o=this.create(ks);r.referenceTypes=[oe.Module],o.setIdentifier(r),n.setIdentifier(i),n.addChild(o)}if(this.accept(h.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,b.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(h.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},t.prototype._parseMixinContentDeclaration=function(){var n=this.create(mh);if(this.acceptIdent("using")){if(!this.accept(h.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[h.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[h.CurlyL])}return this.peek(h.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},t.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._parseFunctionArgument=function(){var n=this.create(Zt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(h.Colon))n.setIdentifier(i);else{if(this.accept(pr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(pr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},t.prototype._parseURLArgument=function(){var n=this.mark(),r=e.prototype._parseURLArgument.call(this);if(!r||!this.peek(h.ParenthesisR)){this.restoreAtMark(n);var i=this.create(B);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},t.prototype._parseOperation=function(){if(!this.peek(h.ParenthesisL))return null;var n=this.create(B);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(h.Comma);return this.accept(h.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseListElement=function(){var n=this.create(fh),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(h.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,b.ExpressionExpected)}else n.setValue(r);return this.finish(n)},t.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(Xc);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,b.StringLiteralExpected);if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|with/))return this.finish(n,b.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([oe.Module]))&&!this.acceptDelim("*"))return this.finish(n,b.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(h.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[h.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}}return!this.accept(h.SemiColon)&&!this.accept(h.EOF)?this.finish(n,b.SemiColonExpected):this.finish(n)},t.prototype._parseModuleConfigDeclaration=function(){var n=this.create(Zc);return n.setIdentifier(this._parseVariable())?!this.accept(h.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,b.VariableValueExpected,[],[h.Comma,h.ParenthesisR]):this.accept(h.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,b.UnknownKeyword):this.finish(n):null},t.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Qc);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,b.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(h.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[h.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);for(;this.accept(h.Comma)&&!this.peek(h.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}if(!this.peek(h.SemiColon)&&!this.peek(h.EOF)){if(!this.peekRegExp(h.Ident,/as|hide|show/))return this.finish(n,b.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([oe.Forward]);if(!n.setIdentifier(r))return this.finish(n,b.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,b.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,b.IdentifierOrVariableExpected)}return!this.accept(h.SemiColon)&&!this.accept(h.EOF)?this.finish(n,b.SemiColonExpected):this.finish(n)},t.prototype._parseForwardVisibility=function(){var n=this.create(eh);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(h.Comma);return n.getChildren().length>1?n:null},t.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||e.prototype._parseSupportsCondition.call(this)},t}(oi),Rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=Xe(),Md=function(e){Rd(t,e);function t(n,r){var i=e.call(this,"$",n,r)||this;return qa(t.scssModuleLoaders),qa(t.scssModuleBuiltIns),i}return t.prototype.isImportPathParent=function(n){return n===p.Forward||n===p.Use||e.prototype.isImportPathParent.call(this,n)},t.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===p.Forward||i===p.Use)for(var o=0,s=t.scssModuleBuiltIns;o0){var n=typeof t.documentation=="string"?{kind:"markdown",value:t.documentation}:{kind:"markdown",value:t.documentation.value};n.value+=` `,n.value+=t.references.map(function(r){return"["+r.name+"]("+r.url+")"}).join(" | "),t.documentation=n}})}var Id=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ha="/".charCodeAt(0),Ld=` `.charCodeAt(0),Pd="\r".charCodeAt(0),zd="\f".charCodeAt(0),Ii="`".charCodeAt(0),Li=".".charCodeAt(0),Od=h.CustomToken,Pi=Od++,$a=function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([Li,Li,Li])?this.finishToken(n,Pi):e.prototype.scanNext.call(this,n)},t.prototype.comment=function(){return e.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Ha,Ha])?(this.stream.advanceWhileChar(function(n){switch(n){case Ld:case Pd:case zd:return!1;default:return!0}}),!0):!1},t.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Ii?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Ii}),this.stream.advanceIfChar(Ii)?h.EscapedJavaScript:h.BadEscapedJavaScript):null},t}(gn),Wd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=function(e){Wd(t,e);function t(){return e.call(this,new $a)||this}return t.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(h.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||e.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(Zr);if(this.consumeToken(),this.accept(h.ParenthesisL)){if(!this.accept(h.Ident))return this.finish(n,b.IdentifierExpected,[h.SemiColon]);do if(!this.accept(h.Comma))break;while(this.accept(h.Ident));if(!this.accept(h.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[h.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,b.URIOrStringExpected,[h.SemiColon]):(!this.peek(h.SemiColon)&&!this.peek(h.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},t.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(p.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(h.SemiColon)?this.finish(n):this.finish(n,b.SemiColonExpected):this.finish(n,b.StringLiteralExpected)},t.prototype._parseMediaQuery=function(){var n=e.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(ws);return r.addChild(this._parseVariable())?this.finish(r):null}return n},t.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},t.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(Gn),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(h.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,b.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(h.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},t.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(h.ParenthesisL)){var r=this.create(xn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,b.IdentifierExpected,[],[h.ParenthesisR]);if(!this.accept(h.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(h.CurlyL))return null;var i=this.create(ke);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},t.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;!(this.peek(h.BracketL)&&(r=!0),!n.addChild(this._parseLookupValue()));)r=!1;return!r},t.prototype._parseLookupValue=function(){var n=this.create(B),r=this.mark();return this.accept(h.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(h.BracketR)||this.accept(h.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},t.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(h.AtKeyword))return null;for(var o=this.create(ri),s=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(s),null;return!this.accept(h.AtKeyword)&&!this.accept(h.Ident)?(this.restoreAtMark(s),null):!r&&this.peek(h.BracketL)&&!this._addLookupChildren(o)?(this.restoreAtMark(s),null):o},t.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||e.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},t.prototype._parseEscaped=function(){if(this.peek(h.EscapedJavaScript)||this.peek(h.BadEscapedJavaScript)){var n=this.createNode(p.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(p.EscapedValue);return this.consumeToken(),this.accept(h.String)||this.accept(h.EscapedJavaScript)?this.finish(n):this.finish(n,b.TermExpected)}return null},t.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||e.prototype._parseOperator.call(this)},t.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},t.prototype._parseRuleSetDeclaration=function(){return this.peek(h.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([oe.Keyframe])||this._parseVariable()},t.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||e.prototype._parseKeyframeSelector.call(this)},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelector=function(n){var r=this.create(bn),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var o=this.mark();if(r.addChild(this._parseGuard())&&this.peek(h.CurlyL))break;this.restoreAtMark(o),r.addChild(this._parseCombinator())}return i?this.finish(r):null},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(p.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(h.Num)||this.accept(h.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},t.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(p.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},t.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),o=this.create(Ye);o.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var s=!1;return n?o.isCustomProperty?s=o.addChild(this._parseIdent()):s=o.addChild(this._parseRegexp(r)):o.isCustomProperty?s=this._acceptInterpolatedIdent(o):s=this._acceptInterpolatedIdent(o,r),s?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(o)):(this.restoreAtMark(i),null)},t.prototype.peekInterpolatedIdent=function(){return this.peek(h.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},t.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,o=!1,s=function(){var c=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(c),null):i._parseInterpolation()},a=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(h.Ident)};(a()||n.addChild(this._parseInterpolation()||this.try(s)))&&!(o=!0,this.hasWhitespace()););return o},t.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(p.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(h.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(h.CurlyR)?this.finish(r):this.finish(r,b.RightCurlyExpected):this.finish(r,b.IdentifierExpected)}return null},t.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(xn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(h.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,b.IdentifierExpected,[],[h.ParenthesisR]);return this.accept(h.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(h.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},t.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},t.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(Ye),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(h.Hash))n=this.create(Ye),this.consumeToken();else return null;return n.referenceTypes=[oe.Mixin],this.finish(n)},t.prototype._parsePseudo=function(){if(!this.peek(h.Colon))return null;var n=this.mark(),r=this.create(wn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),e.prototype._parsePseudo.call(this))},t.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(wn);return this.consumeToken(),this.hasWhitespace()||!this.accept(h.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},t.prototype._completeExtends=function(n){if(!this.accept(h.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,b.SelectorExpected);for(;this.accept(h.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,b.SelectorExpected);return this.accept(h.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(h.AtKeyword))return null;var n=this.mark(),r=this.create(Kn);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(h.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(h.ParenthesisR)?this.finish(r):this.finish(r,b.RightParenthesisExpected)},t.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(Kn),o=this._parseMixinDeclarationIdentifier();o;){this.acceptDelim(">");var s=this._parseMixinDeclarationIdentifier();if(s)i.getNamespaces().addChild(o),o=s;else break}if(!i.setIdentifier(o))return this.restoreAtMark(r),null;var a=!1;if(this.accept(h.ParenthesisL)){if(a=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,b.ExpressionExpected)}if(!this.accept(h.ParenthesisR))return this.finish(i,b.RightParenthesisExpected);o.referenceTypes=[oe.Mixin]}else o.referenceTypes=[oe.Mixin,oe.Rule];return this.peek(h.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!a&&!this.peek(h.SemiColon)&&!this.peek(h.CurlyR)&&!this.peek(h.EOF)?(this.restoreAtMark(r),null):this.finish(i)},t.prototype._parseMixinArgument=function(){var n=this.create(Zt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(h.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},t.prototype._parseMixinParameter=function(){var n=this.create(Hn);if(this.peekKeyword("@rest")){var r=this.create(B);return this.consumeToken(),this.accept(Pi)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,b.DotExpected,[],[h.Comma,h.ParenthesisR])}if(this.peek(Pi)){var i=this.create(B);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var o=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(h.Colon),o=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!o?null:this.finish(n)},t.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(gh);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,b.ConditionExpected);for(;this.acceptIdent("and")||this.accept(h.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,b.ConditionExpected);return this.finish(n)},t.prototype._parseGuardCondition=function(){if(!this.peek(h.ParenthesisL))return null;var n=this.create(bh);return this.consumeToken(),!n.addChild(this._parseExpr()),this.accept(h.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseFunction=function(){var n=this.mark(),r=this.create(vn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(h.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(h.Comma)||this.accept(h.SemiColon))&&!this.peek(h.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,b.ExpressionExpected)}return this.accept(h.ParenthesisR)?this.finish(r):this.finish(r,b.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(Ye);return n.referenceTypes=[oe.Function],this.consumeToken(),this.finish(n)}return e.prototype._parseFunctionIdentifier.call(this)},t.prototype._parseURLArgument=function(){var n=this.mark(),r=e.prototype._parseURLArgument.call(this);if(!r||!this.peek(h.ParenthesisR)){this.restoreAtMark(n);var i=this.create(B);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},t}(oi),jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=Xe(),Vd=function(e){jd(t,e);function t(n,r){return e.call(this,"@",n,r)||this}return t.prototype.createFunctionProposals=function(n,r,i,o){for(var s=0,a=n;s 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:$("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:$("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:$("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:$("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:$("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:$("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:$("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:$("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:$("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:$("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],t.colorProposals=[{name:"argb",example:"argb(@color);",description:$("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:$("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:$("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:$("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:$("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:$("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:$("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:$("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:$("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:$("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:$("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:$("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:$("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:$("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:$("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:$("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:$("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:$("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:$("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:$("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:$("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:$("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:$("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:$("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:$("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:$("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:$("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],t}(yi);function Bd(e,t){var n=qd(e);return Hd(n,t)}function qd(e){function t(u){return e.positionAt(u.offset).line}function n(u){return e.positionAt(u.offset+u.len).line}function r(){switch(e.languageId){case"scss":return new Ba;case"less":return new $a;default:return new gn}}function i(u,m){var f=t(u),S=n(u);return f!==S?{startLine:f,endLine:S,kind:m}:null}var o=[],s=[],a=r();a.ignoreComment=!1,a.setSource(e.getText());for(var c=a.scan(),l=null,d=function(){switch(c.type){case h.CurlyL:case ur:{s.push({line:t(c),type:"brace",isStart:!0});break}case h.CurlyR:{if(s.length!==0){var u=Ga(s,"brace");if(!u)break;var m=n(c);u.type==="brace"&&(l&&n(l)!==m&&m--,u.line!==m&&o.push({startLine:u.line,endLine:m,kind:void 0}))}break}case h.Comment:{var f=function(O){return O==="#region"?{line:t(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1}},S=function(O){var g=O.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(g)return f(g[1]);if(e.languageId==="scss"||e.languageId==="less"){var F=O.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(F)return f(F[1])}return null},T=S(c);if(T)if(T.isStart)s.push(T);else{var u=Ga(s,"comment");if(!u)break;u.type==="comment"&&(u.line!==T.line&&o.push({startLine:u.line,endLine:T.line,kind:"region"}))}else{var k=i(c,"comment");k&&o.push(k)}break}}l=c,c=a.scan()};c.type!==h.EOF;)d();return o}function Ga(e,t){if(e.length===0)return null;for(var n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}function Hd(e,t){var n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort(function(s,a){var c=s.startLine-a.startLine;return c===0&&(c=s.endLine-a.endLine),c}),i=[],o=-1;return r.forEach(function(s){s.startLine && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:61,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:51,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:70,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"