u+C&&(u=a,C=l),!x&&Math.abs(e-v)<=S-1&&a>=g[e])return i[0]=a,s[0]=l,n<=g[e]&&S<=1448?this.WALKTRACE(b,c,d,y,v,h,p,w,f,g,a,t,i,l,r,s,x,o):null}const k=(u-e+(C-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(u,k))return o[0]=!0,i[0]=u,s[0]=C,k>0&&S<=1448?this.WALKTRACE(b,c,d,y,v,h,p,w,f,g,a,t,i,l,r,s,x,o):(e++,n++,[new K(e,t-e+1,n,r-n+1)]);h=this.ClipDiagonalBound(v-S,S,v,m),p=this.ClipDiagonalBound(v+S,S,v,m);for(let u=h;u<=p;u+=2){a=u===h||u=g[u+1]?g[u+1]-1:g[u-1],l=a-(u-v)-w;const m=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(g[u]=a,x&&Math.abs(u-b)<=S&&a<=f[u])return i[0]=a,s[0]=l,m>=f[u]&&S<=1448?this.WALKTRACE(b,c,d,y,v,h,p,w,f,g,a,t,i,l,r,s,x,o):null}if(S<=1447){let e=new Int32Array(d-c+2);e[0]=b-c+1,se.Copy2(f,c,e,1,d-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-h+2),e[0]=v-h+1,se.Copy2(g,h,e,1,p-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,d,y,v,h,p,w,f,g,a,t,i,l,r,s,x,o)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(tl&&(l=d,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,l=t,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1||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||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){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)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 se.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],se.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return se.Copy(e,0,n,0,e.length),se.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(ie.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),ie.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 s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new K(r,i,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&ee.cwd(),nextTick:e=>W(e)}}else le="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd(),nextTick:e=>process.nextTick(e)}:{get platform(){return O?"win32":L?"darwin":"linux"},get arch(){},nextTick:e=>W(e),get env(){return{}},cwd:()=>"/"};const ce=le.cwd,de=le.env,he=le.platform,pe=46,ue=47,me=92,fe=58;class ge extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function be(e,t){if("string"!=typeof e)throw new ge(t,"string",e)}function ve(e){return e===ue||e===me}function ye(e){return e===ue}function we(e){return e>=65&&e<=90||e>=97&&e<=122}function xe(e,t,n,r){let i="",s=0,o=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=c,a=0;continue}if(0!==i.length){i="",s=0,o=c,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,c)}`:i=e.slice(o+1,c),s=c-o-1;o=c,a=0}else l===pe&&-1!==a?++a:a=-1}return i}function Se(e,t){if(null===t||"object"!=typeof t)throw new ge("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 Ce={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],be(s,"path"),0===s.length)continue}else 0===t.length?s=ce():(s=de[`=${t}`]||ce(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===me)&&(s=`${t}\\`));const o=s.length;let a=0,l="",c=!1;const d=s.charCodeAt(0);if(1===o)ve(d)&&(a=1,c=!0);else if(ve(d))if(c=!0,ve(s.charCodeAt(1))){let e=2,t=e;for(;e2&&ve(s.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=c,c&&t.length>0)break}return n=xe(n,!r,"\\",ve),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){be(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return ye(s)?"\\":e;if(ve(s))if(i=!0,ve(e.charCodeAt(1))){let i=2,s=i;for(;i2&&ve(e.charCodeAt(2))&&(i=!0,r=3));let o=r0&&ve(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){be(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return ve(n)||t>2&&we(n)&&e.charCodeAt(1)===fe&&ve(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&ve(n.charCodeAt(0))){++i;const e=n.length;e>1&&ve(n.charCodeAt(1))&&(++i,e>2&&(ve(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return Ce.normalize(t)},relative(e,t){if(be(e,"from"),be(t,"to"),e===t)return"";const n=Ce.resolve(e),r=Ce.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===me;)s--;const o=s-i;let a=0;for(;aa&&t.charCodeAt(l-1)===me;)l--;const c=l-a,d=od){if(t.charCodeAt(a+p)===me)return r.slice(a+p+1);if(2===p)return r.slice(a+p)}o>d&&(e.charCodeAt(i+p)===me?h=p:2===p&&(h=3)),-1===h&&(h=0)}let u="";for(p=i+h+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==me||(u+=0===u.length?"..":"\\..");return a+=h,u.length>0?`${u}${r.slice(a,l)}`:(r.charCodeAt(a)===me&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=Ce.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===me){if(t.charCodeAt(1)===me){const e=t.charCodeAt(2);if(63!==e&&e!==pe)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(we(t.charCodeAt(0))&&t.charCodeAt(1)===fe&&t.charCodeAt(2)===me)return`\\\\?\\${t}`;return e},dirname(e){be(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return ve(i)?e:".";if(ve(i)){if(n=r=1,ve(e.charCodeAt(1))){let i=2,s=i;for(;i2&&ve(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let n=t-1;n>=r;--n)if(ve(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&be(t,"ext"),be(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&we(e.charCodeAt(0))&&e.charCodeAt(1)===fe&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(ve(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(ve(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){be(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===fe&&we(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(ve(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===pe?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Se.bind(null,"\\"),parse(e){be(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return ve(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(ve(i)){if(r=1,ve(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,l=!0,c=e.length-1,d=0;for(;c>=r;--c)if(i=e.charCodeAt(c),ve(i)){if(!l){o=c+1;break}}else-1===a&&(l=!1,a=c+1),i===pe?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ke={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:ce();be(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===ue)}return t=xe(t,!n,"/",ye),n?`/${t}`:t.length>0?t:"."},normalize(e){if(be(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ue,n=e.charCodeAt(e.length-1)===ue;return 0===(e=xe(e,!t,"/",ye)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(be(e,"path"),e.length>0&&e.charCodeAt(0)===ue),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":ke.normalize(t)},relative(e,t){if(be(e,"from"),be(t,"to"),e===t)return"";if((e=ke.resolve(e))===(t=ke.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=rs){if(t.charCodeAt(1+a)===ue)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===ue?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==ue||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(be(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ue;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===ue){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&be(t,"ext"),be(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===ue){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===ue){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){be(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==ue)-1===r&&(i=!1,r=o+1),a===pe?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Se.bind(null,"/"),parse(e){be(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===ue;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,l=e.length-1,c=0;for(;l>=r;--l){const t=e.charCodeAt(l);if(t!==ue)-1===o&&(a=!1,o=l+1),t===pe?-1===i?i=l:1!==c&&(c=1):-1!==i&&(c=-1);else if(!a){s=l+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===c||1===c&&i===o-1&&i===s+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ke.win32=Ce.win32=Ce,ke.posix=Ce.posix=ke;"win32"===he?Ce.normalize:ke.normalize,"win32"===he?Ce.resolve:ke.resolve,"win32"===he?Ce.relative:ke.relative,"win32"===he?Ce.dirname:ke.dirname,"win32"===he?Ce.basename:ke.basename,"win32"===he?Ce.extname:ke.extname,"win32"===he?Ce.sep:ke.sep;const _e=/^\w[\w\d+.-]*$/,Ee=/^\//,Fe=/^\/\//;function De(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&&!_e.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Ee.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(Fe.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 ("//")')}const Te="",Re="/",Ne=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ze{constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||Te,this.authority=e.authority||Te,this.path=e.path||Te,this.query=e.query||Te,this.fragment=e.fragment||Te):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||Te,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Re&&(t=Re+t):t=Re}return t}(this.scheme,n||Te),this.query=r||Te,this.fragment=i||Te,De(this,s))}static isUri(e){return e instanceof ze||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return Le(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=Te),void 0===n?n=this.authority:null===n&&(n=Te),void 0===r?r=this.path:null===r&&(r=Te),void 0===i?i=this.query:null===i&&(i=Te),void 0===s?s=this.fragment:null===s&&(s=Te),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new Ie(t,n,r,i,s)}static parse(e,t=!1){const n=Ne.exec(e);return n?new Ie(n[2]||Te,Ve(n[4]||Te),Ve(n[5]||Te),Ve(n[7]||Te),Ve(n[9]||Te),t):new Ie(Te,Te,Te,Te,Te)}static file(e){let t=Te;if(O&&(e=e.replace(/\\/g,Re)),e[0]===Re&&e[1]===Re){const n=e.indexOf(Re,2);-1===n?(t=e.substring(2),e=Re):(t=e.substring(2,n),e=e.substring(n)||Re)}return new Ie("file",t,e,Te,Te)}static from(e){const t=new Ie(e.scheme,e.authority,e.path,e.query,e.fragment);return De(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=O&&"file"===e.scheme?ze.file(Ce.join(Le(e,!0),...t)).path:ke.join(e.path,...t),e.with({path:n})}toString(e=!1){return We(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ze)return e;{const t=new Ie(e);return t._formatted=e.external,t._fsPath=e._sep===Ae?e.fsPath:null,t}}return e}}const Ae=O?1:void 0;class Ie extends ze{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Le(this,!1)),this._fsPath}toString(e=!1){return e?We(this,!0):(this._formatted||(this._formatted=We(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Ae),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 Me={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 Pe(e,t){let n,r=-1;for(let i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=Me[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function Oe(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,O&&(n=n.replace(/\//g,"\\")),n}function We(e,t){const n=t?Oe:Pe;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=Re,r+=Re),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?r+=n(s,!1):(r+=n(s.substr(0,e),!1),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0)}return a&&(r+="?",r+=n(a,!1)),l&&(r+="#",r+=t?l:Pe(l,!1)),r}function Ue(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Ue(e.substr(3)):e}}const je=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ve(e){return e.match(je)?e.replace(je,(e=>Ue(e))):e}class Be{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 Be(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Be.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Be.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 qe.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return qe.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}containsRange(e){return qe.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 qe.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return qe.plusRange(this,e)}static plusRange(e,t){let n,r,i,s;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new qe(n,r,i,s)}intersectRanges(e){return qe.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn,o=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,c=t.endColumn;return nl?(i=l,s=c):i===l&&(s=Math.min(s,c)),n>i||n===i&&r>s?null:new qe(n,r,i,s)}equalsRange(e){return qe.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 qe.getEndPosition(this)}static getEndPosition(e){return new Be(e.endLineNumber,e.endColumn)}getStartPosition(){return qe.getStartPosition(this)}static getStartPosition(e){return new Be(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new qe(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new qe(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return qe.collapseToStart(this)}static collapseToStart(e){return new qe(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new qe(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new qe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}function Ke(e,t,n,r){return new ae(e,t,n).ComputeDiff(r)}class $e{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=Ke(s,a,i,!0).changes;o&&(l=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=Qe(e,1),o=Qe(t,1);const a=e.length+1,l=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function Ze(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t255?255:0|e}function tt(e){return e<0?0:e>4294967295?4294967295:0|e}class nt{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class rt{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=tt(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(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=tt(e),t=tt(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),0!==t&&(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 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=tt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(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,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e=i))break;t=r+1}return new nt(r,e-s)}}const it=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const st={maxLen:1e3,windowSize:15,timeBudget:150};function ot(e,t,n,r,i=st){if(n.length>i.maxLen){let s=e-i.maxLen/2;return s<0?s=0:r+=s,ot(e,t,n=n.substring(s,e+i.maxLen/2),r,i)}const s=Date.now(),o=e-1-r;let a=-1,l=null;for(let e=1;!(Date.now()-s>=i.timeBudget);e++){const r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);const s=at(t,n,o,a);if(!s&&l)break;if(l=s,r<=0)break;a=r}if(l){let e={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function at(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}class lt{constructor(e){let t=et(e);this._defaultValue=t,this._asciiMap=lt._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=et(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 ct{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;it&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new ct(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let ht=null;let pt=null;class ut{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===ht&&(ht=new dt([[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]])),ht}()){const n=function(){if(null===pt){pt=new lt(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}mt.INSTANCE=new mt;class ft{constructor(e){this.element=e,this.next=ft.Undefined,this.prev=ft.Undefined}}ft.Undefined=new ft(void 0);class gt{constructor(){this._first=ft.Undefined,this._last=ft.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ft.Undefined}clear(){let e=this._first;for(;e!==ft.Undefined;){const t=e.next;e.prev=ft.Undefined,e.next=ft.Undefined,e=t}this._first=ft.Undefined,this._last=ft.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new ft(e);if(this._first===ft.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==ft.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ft.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ft.Undefined&&e.next!==ft.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ft.Undefined&&e.next===ft.Undefined?(this._first=ft.Undefined,this._last=ft.Undefined):e.next===ft.Undefined?(this._last=this._last.prev,this._last.next=ft.Undefined):e.prev===ft.Undefined&&(this._first=this._first.next,this._first.prev=ft.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ft.Undefined;)yield e.element,e=e.next}}const bt=A.performance&&"function"==typeof A.performance.now;class vt{constructor(e){this._highResolution=bt&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new vt(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?A.performance.now():Date.now()}}var yt;!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function n(e,t){return o(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)))}function r(e,t){return o(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)))}function i(e,t){return o(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)))}function s(e,t,r){let i=r;return n(e,(e=>(i=t(i,e),i)))}function o(e){let t;const n=new xt({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e,t,n=100,r=!1,i){let s,o,a,l=0;const c=new xt({leakWarningThreshold:i,onFirstListenerAdd(){s=e((e=>{l++,o=t(o,e),r&&!a&&(c.fire(o),o=void 0),clearTimeout(a),a=setTimeout((()=>{const e=o;o=void 0,a=void 0,(!r||l>1)&&c.fire(e),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return c.event}function l(e,t=((e,t)=>e===t)){let n,r=!0;return i(e,(e=>{const i=r||!t(e,n);return r=!1,n=e,i}))}e.None=()=>w.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>b(...e.map((e=>e((e=>t.call(n,e)),null,r))))},e.reduce=s,e.debounce=a,e.latch=l,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e((e=>{r?r.push(e):o.fire(e)}));const s=()=>{r&&r.forEach((e=>o.fire(e))),r=null},o=new xt({onFirstListenerAdd(){i||(i=e((e=>o.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(s):s())},onLastListenerRemove(){i&&i.dispose(),i=null}});return o.event};class c{constructor(e){this.event=e}map(e){return new c(n(this.event,e))}forEach(e){return new c(r(this.event,e))}filter(e){return new c(i(this.event,e))}reduce(e,t){return new c(s(this.event,e,t))}latch(){return new c(l(this.event))}debounce(e,t=100,n=!1,r){return new c(a(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new xt({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new xt({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(yt||(yt={}));class wt{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${wt._idPool++}`}start(e){this._stopWatch=new vt(!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}}}wt._idPool=0;class xt{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new wt(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var r;this._listeners||(this._listeners=new gt);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=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 o=null===(r=this._leakageMon)||void 0===r?void 0:r.check(this._listeners.size),a=v((()=>{if(o&&o(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof y?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 gt);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){i(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,r,i;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(r=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===r||r.call(n),null===(i=this._leakageMon)||void 0===i||i.dispose())}}const St=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Ct;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof kt||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:yt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:St})}(Ct||(Ct={}));class kt{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?St:(this._emitter||(this._emitter=new xt),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class _t{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 kt),this._token}cancel(){this._token?this._token instanceof kt&&this._token.cancel():this._token=Ct.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof kt&&this._token.dispose():this._token=Ct.None}}class Et{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 Ft=new Et,Dt=new Et,Tt=new Et;var Rt,Nt,zt,At,It,Mt,Pt,Ot,Lt,Wt,Ut,jt,Vt,Bt,qt,Kt,$t,Gt,Ht,Yt,Jt,Xt,Qt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,dn,hn,pn;!function(){function e(e,t,n=t,r=n){Ft.define(e,t),Dt.define(e,n),Tt.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Ft.keyCodeToStr(e)},e.fromString=function(e){return Ft.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Dt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Tt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Dt.strToKeyCode(e)||Tt.strToKeyCode(e)}}(Rt||(Rt={}));class un extends qe{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 un.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 0===this.getDirection()?new un(this.startLineNumber,this.startColumn,e,t):new un(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Be(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new un(e,t,this.endLineNumber,this.endColumn):new un(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new un(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new un(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;n>>0)>>>0}(e,t)}}fn.CtrlCmd=2048,fn.Shift=1024,fn.Alt=512,fn.WinCtrl=256;var gn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))};class bn extends class{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 null===this._cachedTextValue&&(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 e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Be(e.range.startLineNumber,e.range.startColumn),e.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;rthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class vn{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 bn(ze.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,r){return gn(this,void 0,void 0,(function*(){const i=this._getModel(e),s=this._getModel(t);if(!i||!s)return null;const o=i.getLinesContent(),a=s.getLinesContent(),l=new Je(o,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),c=!(l.changes.length>0)&&this._modelsAreIdentical(i,s);return{quitEarly:l.quitEarly,identical:c,changes:l.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}computeMoreMinimalEdits(e,t){return gn(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return qe.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));for(let{range:e,text:s,eol:o}of t){if("number"==typeof o&&(i=o),qe.isEmpty(e)&&!s)continue;const t=n.getValueInRange(e);if(s=s.replace(/\r\n|\n|\r/g,n.eol),t===s)continue;if(Math.max(s.length,t.length)>vn._diffLimit){r.push({range:e,text:s});continue}const a=re(t,s,!1),l=n.offsetAt(qe.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(l+e.originalStart),i=n.positionAt(l+e.originalStart+e.originalLength),o={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(o.range)!==o.text&&r.push(o)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return gn(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?ut.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return gn(this,void 0,void 0,(function*(){const i=new vt(!0),s=new RegExp(n,r),o=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>vn._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}))}computeWordRanges(e,t,n,r){return gn(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(U(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}vn._diffLimit=1e5,vn._suggestionsLimit=1e4,"function"==typeof importScripts&&(A.monaco={editor:void 0,languages:void 0,CancellationTokenSource:_t,Emitter:xt,KeyCode:Gt,KeyMod:fn,Position:Be,Range:qe,Selection:un,SelectionDirection:sn,MarkerSeverity:Ht,MarkerTag:Yt,Uri:ze,Token:mn});let yn=!1;function wn(e){if(yn)return;yn=!0;const t=new q((e=>{self.postMessage(e)}),(t=>new vn(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{yn||wn(null)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e,t=n(8669);!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"}(e||(e={}));var r=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.lookbackChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position-e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t".charCodeAt(0),k="@".charCodeAt(0),_="#".charCodeAt(0),E="$".charCodeAt(0),F="\\".charCodeAt(0),D="/".charCodeAt(0),T="\n".charCodeAt(0),R="\r".charCodeAt(0),N="\f".charCodeAt(0),z='"'.charCodeAt(0),A="'".charCodeAt(0),I=" ".charCodeAt(0),M="\t".charCodeAt(0),P=";".charCodeAt(0),O=":".charCodeAt(0),L="{".charCodeAt(0),W="}".charCodeAt(0),U="[".charCodeAt(0),j="]".charCodeAt(0),V=",".charCodeAt(0),B=".".charCodeAt(0),q="!".charCodeAt(0),K={};K[P]=e.SemiColon,K[O]=e.Colon,K[L]=e.CurlyL,K[W]=e.CurlyR,K[j]=e.BracketR,K[U]=e.BracketL,K[w]=e.ParenthesisL,K[x]=e.ParenthesisR,K[V]=e.Comma;var $={};$.em=e.EMS,$.ex=e.EXS,$.px=e.Length,$.cm=e.Length,$.mm=e.Length,$.in=e.Length,$.pt=e.Length,$.pc=e.Length,$.deg=e.Angle,$.rad=e.Angle,$.grad=e.Angle,$.ms=e.Time,$.s=e.Time,$.hz=e.Freq,$.khz=e.Freq,$["%"]=e.Percentage,$.fr=e.Percentage,$.dpi=e.Resolution,$.dpcm=e.Resolution;var G=function(){function t(){this.stream=new r(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return t.prototype.setSource=function(e){this.stream=new r(e)},t.prototype.finishToken=function(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}},t.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},t.prototype.pos=function(){return this.stream.pos()},t.prototype.goBackTo=function(e){this.stream.goBackTo(e)},t.prototype.scanUnquotedString=function(){var t=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(t,e.UnquotedString,n.join("")):null},t.prototype.scan=function(){var t=this.trivia();if(null!==t)return t;var n=this.stream.pos();return this.stream.eos()?this.finishToken(n,e.EOF):this.scanNext(n)},t.prototype.scanNext=function(t){if(this.stream.advanceIfChars([S,q,g,g]))return this.finishToken(t,e.CDO);if(this.stream.advanceIfChars([g,g,C]))return this.finishToken(t,e.CDC);var n=[];if(this.ident(n))return this.finishToken(t,e.Ident,n.join(""));if(this.stream.advanceIfChar(k)){if(n=["@"],this._name(n)){var r=n.join("");return"@charset"===r?this.finishToken(t,e.Charset,r):this.finishToken(t,e.AtKeyword,r)}return this.finishToken(t,e.Delim)}if(this.stream.advanceIfChar(_))return n=["#"],this._name(n)?this.finishToken(t,e.Hash,n.join("")):this.finishToken(t,e.Delim);if(this.stream.advanceIfChar(q))return this.finishToken(t,e.Exclamation);if(this._number()){var i=this.stream.pos();if(n=[this.stream.substring(t,i)],this.stream.advanceIfChar(v))return this.finishToken(t,e.Percentage);if(this.ident(n)){var s=this.stream.substring(i).toLowerCase(),o=$[s];return void 0!==o?this.finishToken(t,o,n.join("")):this.finishToken(t,e.Dimension,n.join(""))}return this.finishToken(t,e.Num)}n=[];var a=this._string(n);return null!==a?this.finishToken(t,a,n.join("")):void 0!==(a=K[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(t,a)):this.stream.peekChar(0)===p&&this.stream.peekChar(1)===m?(this.stream.advance(2),this.finishToken(t,e.Includes)):this.stream.peekChar(0)===f&&this.stream.peekChar(1)===m?(this.stream.advance(2),this.finishToken(t,e.Dashmatch)):this.stream.peekChar(0)===y&&this.stream.peekChar(1)===m?(this.stream.advance(2),this.finishToken(t,e.SubstringOperator)):this.stream.peekChar(0)===u&&this.stream.peekChar(1)===m?(this.stream.advance(2),this.finishToken(t,e.PrefixOperator)):this.stream.peekChar(0)===E&&this.stream.peekChar(1)===m?(this.stream.advance(2),this.finishToken(t,e.SuffixOperator)):(this.stream.nextChar(),this.finishToken(t,e.Delim))},t.prototype.trivia=function(){for(;;){var t=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(t,e.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(t,e.Comment)}}},t.prototype.comment=function(){if(this.stream.advanceIfChars([D,y])){var e=!1,t=!1;return this.stream.advanceWhileChar((function(n){return t&&n===D?(e=!0,!1):(t=n===y,!0)})),e&&this.stream.advance(1),!0}return!1},t.prototype._number=function(){var e,t=0;return this.stream.peekChar()===B&&(t=1),(e=this.stream.peekChar(t))>=d&&e<=h&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return e>=d&&e<=h||0===t&&e===B})),!0)},t.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case R:case N:case T:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===R&&this.stream.advanceIfChar(T)&&e.push("\n"),!0}return!1},t.prototype._escape=function(e,t){var n=this.stream.peekChar();if(n===F){this.stream.advance(1),n=this.stream.peekChar();for(var r=0;r<6&&(n>=d&&n<=h||n>=i&&n<=s||n>=a&&n<=l);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-r),16);o&&e.push(String.fromCharCode(o))}catch(e){}return n===I||n===M?this.stream.advance(1):this._newline([]),!0}if(n!==R&&n!==N&&n!==T)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1},t.prototype._stringChar=function(e,t){var n=this.stream.peekChar();return 0!==n&&n!==e&&n!==F&&n!==R&&n!==N&&n!==T&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)},t.prototype._string=function(t){if(this.stream.peekChar()===A||this.stream.peekChar()===z){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)),e.String):e.BadString}return null},t.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==F&&t!==A&&t!==z&&t!==w&&t!==x&&t!==I&&t!==M&&t!==T&&t!==N&&t!==R&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},t.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},t.prototype._whitespace=function(){return this.stream.advanceWhileChar((function(e){return e===I||e===M||e===T||e===N||e===R}))>0},t.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},t.prototype.ident=function(e){var t=this.stream.pos();if(this._minus(e)&&this._minus(e)){if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},t.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===b||t>=i&&t<=o||t>=a&&t<=c||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},t.prototype._minus=function(e){var t=this.stream.peekChar();return t===g&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},t.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===b||t===g||t>=i&&t<=o||t>=a&&t<=c||t>=d&&t<=h||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},t}();function H(e,t){if(e.length0?e.lastIndexOf(t)===n:0===n&&e===t}function J(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}var X,Q,Z,ee=(X=function(e,t){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function te(e,t){var n=null;return!e||te.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0)})),n)}function ne(e,t){for(var n=te(e,t),r=[];n;)r.unshift(n),n=n.parent;return r}!function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.MixinDeclaration=33]="MixinDeclaration",e[e.MixinReference=34]="MixinReference",e[e.VariableName=35]="VariableName",e[e.VariableDeclaration=36]="VariableDeclaration",e[e.Prio=37]="Prio",e[e.Interpolation=38]="Interpolation",e[e.NestedProperties=39]="NestedProperties",e[e.ExtendsReference=40]="ExtendsReference",e[e.SelectorPlaceholder=41]="SelectorPlaceholder",e[e.Debug=42]="Debug",e[e.If=43]="If",e[e.Else=44]="Else",e[e.For=45]="For",e[e.Each=46]="Each",e[e.While=47]="While",e[e.MixinContentReference=48]="MixinContentReference",e[e.MixinContentDeclaration=49]="MixinContentDeclaration",e[e.Media=50]="Media",e[e.Keyframe=51]="Keyframe",e[e.FontFace=52]="FontFace",e[e.Import=53]="Import",e[e.Namespace=54]="Namespace",e[e.Invocation=55]="Invocation",e[e.FunctionDeclaration=56]="FunctionDeclaration",e[e.ReturnStatement=57]="ReturnStatement",e[e.MediaQuery=58]="MediaQuery",e[e.FunctionParameter=59]="FunctionParameter",e[e.FunctionArgument=60]="FunctionArgument",e[e.KeyframeSelector=61]="KeyframeSelector",e[e.ViewPort=62]="ViewPort",e[e.Document=63]="Document",e[e.AtApplyRule=64]="AtApplyRule",e[e.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",e[e.CustomPropertySet=66]="CustomPropertySet",e[e.ListEntry=67]="ListEntry",e[e.Supports=68]="Supports",e[e.SupportsCondition=69]="SupportsCondition",e[e.NamespacePrefix=70]="NamespacePrefix",e[e.GridLine=71]="GridLine",e[e.Plugin=72]="Plugin",e[e.UnknownAtRule=73]="UnknownAtRule",e[e.Use=74]="Use",e[e.ModuleConfiguration=75]="ModuleConfiguration",e[e.Forward=76]="Forward",e[e.ForwardVisibility=77]="ForwardVisibility",e[e.Module=78]="Module"}(Q||(Q={})),function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility"}(Z||(Z={}));var re,ie=function(){function e(e,t,n){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}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||Q.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),e.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},e.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},e.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},e.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,n=this.children;t=0&&e.parent.children.splice(n,1)}e.parent=this;var r=this.children;return r||(r=this.children=[]),-1!==t?r.splice(t,0,e):r.push(e),e},e.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},e.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},e.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},e.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},e.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},e.prototype.setNode=function(e,t,n){return void 0===n&&(n=-1),!!t&&(t.attachTo(this,n),this[e]=t,!0)},e.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},e.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||-1===this.length)&&(this.length=t-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(e){return this.children&&e=0;n--)if((t=this.children[n]).offset<=e)return t;return null},e.prototype.findChildAtOffset=function(e,t){var n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null},e.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},e.prototype.getParent=function(){for(var e=this.parent;e instanceof se;)e=e.parent;return e},e.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},e.prototype.findAParent=function(){for(var e=[],t=0;t/g,">")}function Et(e,t){if(!e.description||""===e.description)return"";if("string"!=typeof e.description)return e.description.value;var n="";if(!1!==(null==t?void 0:t.documentation)){e.status&&(n+=Ct(e.status)),n+=e.description;var r=Dt(e.browsers);r&&(n+="\n("+r+")"),"syntax"in e&&(n+="\n\nSyntax: "+e.syntax)}return e.references&&e.references.length>0&&!1!==(null==t?void 0:t.references)&&(n.length>0&&(n+="\n\n"),n+=e.references.map((function(e){return e.name+": "+e.url})).join(" | ")),n}function Ft(e,t){if(!e.description||""===e.description)return"";var n="";if(!1!==(null==t?void 0:t.documentation)){e.status&&(n+=Ct(e.status)),n+=_t("string"==typeof e.description?e.description:e.description.value);var r=Dt(e.browsers);r&&(n+="\n\n("+_t(r)+")"),"syntax"in e&&e.syntax&&(n+="\n\nSyntax: "+_t(e.syntax))}return e.references&&e.references.length>0&&!1!==(null==t?void 0:t.references)&&(n.length>0&&(n+="\n\n"),n+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | ")),n}function Dt(e){return void 0===e&&(e=[]),0===e.length?null:e.map((function(e){var t="",n=e.match(/([A-Z]+)(\d+)?/),r=n[1],i=n[2];return r in St&&(t+=St[r]),i&&(t+=" "+i),t})).join(", ")}var Tt=vt(),Rt=[{func:"rgb($red, $green, $blue)",desc:Tt("vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors","css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Tt("vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors","css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Tt("vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors","css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Tt("vs/language/css/_deps/vscode-css-languageservice/languageFacts/colors","css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Nt={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"},zt={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 At(e,t){var n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);var r=parseFloat(n[1])/t;if(r>=0&&r<=1)return r}throw new Error}function It(e){var t=e.getName();return!!t&&/^(rgb|rgba|hsl|hsla)$/gi.test(t)}function Mt(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Pt(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Mt(e.charCodeAt(1))/255,green:17*Mt(e.charCodeAt(2))/255,blue:17*Mt(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Mt(e.charCodeAt(1))/255,green:17*Mt(e.charCodeAt(2))/255,blue:17*Mt(e.charCodeAt(3))/255,alpha:17*Mt(e.charCodeAt(4))/255};case 7:return{red:(16*Mt(e.charCodeAt(1))+Mt(e.charCodeAt(2)))/255,green:(16*Mt(e.charCodeAt(3))+Mt(e.charCodeAt(4)))/255,blue:(16*Mt(e.charCodeAt(5))+Mt(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Mt(e.charCodeAt(1))+Mt(e.charCodeAt(2)))/255,green:(16*Mt(e.charCodeAt(3))+Mt(e.charCodeAt(4)))/255,blue:(16*Mt(e.charCodeAt(5))+Mt(e.charCodeAt(6)))/255,alpha:(16*Mt(e.charCodeAt(7))+Mt(e.charCodeAt(8)))/255}}return null}function Ot(e){if(e.type===Q.HexColorValue)return Pt(e.getText());if(e.type===Q.Function){var t=e,n=t.getName(),r=t.getArguments().getChildren();if(!n||r.length<3||r.length>4)return null;try{var i=4===r.length?At(r[3],1):1;if("rgb"===n||"rgba"===n)return{red:At(r[0],255),green:At(r[1],255),blue:At(r[2],255),alpha:i};if("hsl"===n||"hsla"===n)return function(e,t,n,r){if(void 0===r&&(r=1),0===t)return{red:n,green:n,blue:n,alpha:r};var i=function(e,t,n){for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:i(o,s,2+(e/=60)),green:i(o,s,e),blue:i(o,s,e-2),alpha:r}}(function(e){var t=e.getText();if(t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(t)%360;throw new Error}(r[0]),At(r[1],100),At(r[2],100),i)}catch(e){return null}}else if(e.type===Q.Identifier){if(e.parent&&e.parent.type!==Q.Term)return null;var s=e.parent;if(s&&s.parent&&s.parent.type===Q.BinaryExpression){var o=s.parent;if(o.parent&&o.parent.type===Q.ListEntry&&o.parent.key===o)return null}var a=e.getText().toLowerCase();if("none"===a)return null;var l=Nt[a];if(l)return Pt(l)}return null}var Lt={bottom:"Computes to ‘100%’ 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 ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ 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 ‘100%’ 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 ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Wt={"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 ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t 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."},Ut={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 ‘none’, 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."},jt=["medium","thick","thin"],Vt={"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."},Bt={"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."},qt={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Kt={"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’s position and the first specified color-stop’s 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’s position and the first specified color-stop’s position."},$t={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 “start” or “end”.","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."},Gt={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Ht={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"]},Yt=["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"],Jt=["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"],Xt=["@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 Qt(e){return Object.keys(e).map((function(t){return e[t]}))}function Zt(e){return void 0!==e}var en=function(){function t(t){void 0===t&&(t=new G),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=t,this.token={type:e.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return t.prototype.peekIdent=function(t){return e.Ident===this.token.type&&t.length===this.token.text.length&&t===this.token.text.toLowerCase()},t.prototype.peekKeyword=function(t){return e.AtKeyword===this.token.type&&t.length===this.token.text.length&&t===this.token.text.toLowerCase()},t.prototype.peekDelim=function(t){return e.Delim===this.token.type&&t===this.token.text},t.prototype.peek=function(e){return e===this.token.type},t.prototype.peekOne=function(e){return-1!==e.indexOf(this.token.type)},t.prototype.peekRegExp=function(e,t){return e===this.token.type&&t.test(this.token.text)},t.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},t.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},t.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},t.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},t.prototype.try=function(e){var t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)},t.prototype.acceptOneKeyword=function(t){if(e.AtKeyword===this.token.type)for(var n=0,r=t;ne.offset?i-e.offset:0}return e},t.prototype.markError=function(e,t,n,r){this.token!==this.lastErrorToken&&(e.addIssue(new mt(e,t,re.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||r)&&this.resync(n,r)},t.prototype.parseStylesheet=function(e){var t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,(function(r,i){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(r,i)}))},t.prototype.internalParse=function(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();var r=t.bind(this)();return r&&(r.textProvider=n||function(t,n){return e.substr(t,n)}),r},t.prototype._parseStylesheet=function(){for(var t=this.create(ae);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(e.EOF)||!this._needsSemicolonAfter(i)||this.accept(e.SemiColon)||this.markError(t,xt.SemiColonExpected));this.accept(e.SemiColon)||this.accept(e.CDO)||this.accept(e.CDC);)r=!0,n=!1}while(r);if(this.peek(e.EOF))break;n||(this.peek(e.AtKeyword)?this.markError(t,xt.UnknownAtRule):this.markError(t,xt.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(e.EOF));return this.finish(t)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(t){return void 0===t&&(t=!1),this.peek(e.AtKeyword)?this._parseStylesheetAtStatement(t):this._parseRuleset(t)},t.prototype._parseStylesheetAtStatement=function(e){return void 0===e&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(t){var n=this.mark();if(this._parseSelector(t)){for(;this.accept(e.Comma)&&this._parseSelector(t););if(this.accept(e.CurlyL))return this.restoreAtMark(n),this._parseRuleset(t)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(t){void 0===t&&(t=!1);var n=this.create(de),r=n.getSelectors();if(!r.addChild(this._parseSelector(t)))return null;for(;this.accept(e.Comma);)if(!r.addChild(this._parseSelector(t)))return this.finish(n,xt.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(e.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case Q.Keyframe:case Q.ViewPort:case Q.Media:case Q.Ruleset:case Q.Namespace:case Q.If:case Q.For:case Q.Each:case Q.While:case Q.MixinDeclaration:case Q.FunctionDeclaration:case Q.MixinContentDeclaration:return!1;case Q.ExtendsReference:case Q.MixinContentReference:case Q.ReturnStatement:case Q.MediaQuery:case Q.Debug:case Q.Import:case Q.AtApplyRule:case Q.CustomPropertyDeclaration:return!0;case Q.VariableDeclaration:return e.needsSemicolon;case Q.MixinReference:return!e.getContent();case Q.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(t){var n=this.create(le);if(!this.accept(e.CurlyL))return null;for(var r=t();n.addChild(r)&&!this.peek(e.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(e.SemiColon))return this.finish(n,xt.SemiColonExpected,[e.SemiColon,e.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===e.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(e.SemiColon););r=t()}return this.accept(e.CurlyR)?this.finish(n):this.finish(n,xt.RightCurlyExpected,[e.CurlyR,e.SemiColon])},t.prototype._parseBody=function(t,n){return t.setDeclarations(this._parseDeclarations(n))?this.finish(t):this.finish(t,xt.LeftCurlyExpected,[e.CurlyR,e.SemiColon])},t.prototype._parseSelector=function(e){var t=this.create(he),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null},t.prototype._parseDeclaration=function(t){var n=this._tryParseCustomPropertyDeclaration(t);if(n)return n;var r=this.create(fe);return r.setProperty(this._parseProperty())?this.accept(e.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(e.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,xt.PropertyValueExpected)):this.finish(r,xt.ColonExpected,[e.Colon],t||[e.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(t){if(!this.peekRegExp(e.Ident,/^--/))return null;var n=this.create(ge);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(e.Colon))return this.finish(n,xt.ColonExpected,[e.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(e.CurlyL)){var i=this.create(me),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(e.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var o=this._parseExpr();return o&&!o.isErroneous(!0)&&(this._parsePrio(),this.peekOne(t||[e.SemiColon]))?(n.setValue(o),n.semicolonPosition=this.token.offset,this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(t)),n.addChild(this._parsePrio()),Zt(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,xt.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(t){var n=this;void 0===t&&(t=[e.CurlyR]);var r=this.create(ie),i=function(){return 0===o&&0===a&&0===l},s=function(){return-1!==t.indexOf(n.token.type)},o=0,a=0,l=0;e:for(;;){switch(this.token.type){case e.SemiColon:case e.Exclamation:if(i())break e;break;case e.CurlyL:o++;break;case e.CurlyR:if(--o<0){if(s()&&0===a&&0===l)break e;return this.finish(r,xt.LeftCurlyExpected)}break;case e.ParenthesisL:a++;break;case e.ParenthesisR:if(--a<0){if(s()&&0===l&&0===o)break e;return this.finish(r,xt.LeftParenthesisExpected)}break;case e.BracketL:l++;break;case e.BracketR:if(--l<0)return this.finish(r,xt.LeftSquareBracketExpected);break;case e.BadString:break e;case e.EOF:var c=xt.RightCurlyExpected;return l>0?c=xt.RightSquareBracketExpected:a>0&&(c=xt.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(t){var n=this.mark();return this._parseProperty()&&this.accept(e.Colon)?(this.restoreAtMark(n),this._parseDeclaration(t)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(be),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(e.Charset))return null;var t=this.create(ie);return this.consumeToken(),this.accept(e.String)?this.accept(e.SemiColon)?this.finish(t):this.finish(t,xt.SemiColonExpected):this.finish(t,xt.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var t=this.create(ze);return this.consumeToken(),t.addChild(this._parseURILiteral())||t.addChild(this._parseStringLiteral())?(this.peek(e.SemiColon)||this.peek(e.EOF)||t.setMedialist(this._parseMediaQueryList()),this.finish(t)):this.finish(t,xt.URIOrStringExpected)},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var t=this.create(Oe);return this.consumeToken(),t.addChild(this._parseURILiteral())||(t.addChild(this._parseIdent()),t.addChild(this._parseURILiteral())||t.addChild(this._parseStringLiteral()))?this.accept(e.SemiColon)?this.finish(t):this.finish(t,xt.SemiColonExpected):this.finish(t,xt.URIExpected,[e.SemiColon])},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(De);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Fe);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(e.AtKeyword,this.keyframeRegex))return null;var t=this.create(Re),n=this.create(ie);return this.consumeToken(),t.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,xt.UnknownKeyword),t.setIdentifier(this._parseKeyframeIdent())?this._parseBody(t,this._parseKeyframeSelector.bind(this)):this.finish(t,xt.IdentifierExpected,[e.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])},t.prototype._parseKeyframeSelector=function(){var t=this.create(Ne);if(!t.addChild(this._parseIdent())&&!this.accept(e.Percentage))return null;for(;this.accept(e.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(e.Percentage))return this.finish(t,xt.PercentageExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var t=this.create(Ne),n=this.mark();if(!t.addChild(this._parseIdent())&&!this.accept(e.Percentage))return null;for(;this.accept(e.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(e.Percentage))return this.restoreAtMark(n),null;return this.peek(e.CurlyL)?this._parseBody(t,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(void 0===e&&(e=!1),!this.peekKeyword("@supports"))return null;var t=this.create(We);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return void 0===e&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var t=this.create(Be);if(this.acceptIdent("not"))t.addChild(this._parseSupportsConditionInParens());else if(t.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(e.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)t.addChild(this._parseSupportsConditionInParens());return this.finish(t)},t.prototype._parseSupportsConditionInParens=function(){var t=this.create(Be);if(this.accept(e.ParenthesisL))return this.prevToken&&(t.lParent=this.prevToken.offset),t.addChild(this._tryToParseDeclaration([e.ParenthesisR]))||this._parseSupportsCondition()?this.accept(e.ParenthesisR)?(this.prevToken&&(t.rParent=this.prevToken.offset),this.finish(t)):this.finish(t,xt.RightParenthesisExpected,[e.ParenthesisR],[]):this.finish(t,xt.ConditionExpected);if(this.peek(e.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(e.ParenthesisL)){for(var r=1;this.token.type!==e.EOF&&0!==r;)this.token.type===e.ParenthesisL?r++:this.token.type===e.ParenthesisR&&r--,this.consumeToken();return this.finish(t)}this.restoreAtMark(n)}return this.finish(t,xt.LeftParenthesisExpected,[],[e.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return void 0===e&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(void 0===e&&(e=!1),!this.peekKeyword("@media"))return null;var t=this.create(Le);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,xt.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var t=this.create(je);if(!t.addChild(this._parseMediaQuery([e.CurlyL])))return this.finish(t,xt.MediaQueryExpected);for(;this.accept(e.Comma);)if(!t.addChild(this._parseMediaQuery([e.CurlyL])))return this.finish(t,xt.MediaQueryExpected);return this.finish(t)},t.prototype._parseMediaQuery=function(t){var n=this.create(Ve),r=!0,i=!1;if(!this.peek(e.ParenthesisL)){if(this.acceptIdent("only")||this.acceptIdent("not"),!n.addChild(this._parseIdent()))return null;i=!0,r=this.acceptIdent("and")}for(;r;)if(n.addChild(this._parseMediaContentStart()))r=this.acceptIdent("and");else{if(!this.accept(e.ParenthesisL))return i?this.finish(n,xt.LeftParenthesisExpected,[],t):null;if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,xt.IdentifierExpected,[],t);if(this.accept(e.Colon)&&!n.addChild(this._parseExpr()))return this.finish(n,xt.TermExpected,[],t);if(!this.accept(e.ParenthesisR))return this.finish(n,xt.RightParenthesisExpected,[],t);r=this.acceptIdent("and")}return this.finish(n)},t.prototype._parseMediaContentStart=function(){return null},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMedium=function(){var e=this.create(ie);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var t=this.create(qe);if(this.consumeToken(),t.addChild(this._parsePageSelector()))for(;this.accept(e.Comma);)if(!t.addChild(this._parsePageSelector()))return this.finish(t,xt.IdentifierExpected);return this._parseBody(t,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(e.AtKeyword))return null;var t=this.create(Ke);return this.acceptOneKeyword(Xt)||this.markError(t,xt.UnknownAtRule,[],[e.CurlyL]),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(e.Ident)&&!this.peek(e.Colon))return null;var t=this.create(ie);return t.addChild(this._parseIdent()),this.accept(e.Colon)&&!t.addChild(this._parseIdent())?this.finish(t,xt.IdentifierExpected):this.finish(t)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var t=this.create(Ue);return this.consumeToken(),this.resync([],[e.CurlyL]),this._parseBody(t,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(e.AtKeyword))return null;var t=this.create(ct);t.addChild(this._parseUnknownAtRuleName());var n=0,r=0,i=0,s=0;e:for(;;){switch(this.token.type){case e.SemiColon:if(0===r&&0===i&&0===s)break e;break;case e.EOF:return r>0?this.finish(t,xt.RightCurlyExpected):s>0?this.finish(t,xt.RightSquareBracketExpected):i>0?this.finish(t,xt.RightParenthesisExpected):this.finish(t);case e.CurlyL:n++,r++;break;case e.CurlyR:if(r--,n>0&&0===r){if(this.consumeToken(),s>0)return this.finish(t,xt.RightSquareBracketExpected);if(i>0)return this.finish(t,xt.RightParenthesisExpected);break e}if(r<0){if(0===i&&0===s)break e;return this.finish(t,xt.LeftCurlyExpected)}break;case e.ParenthesisL:i++;break;case e.ParenthesisR:if(--i<0)return this.finish(t,xt.LeftParenthesisExpected);break;case e.BracketL:s++;break;case e.BracketR:if(--s<0)return this.finish(t,xt.LeftSquareBracketExpected)}this.consumeToken()}return t},t.prototype._parseUnknownAtRuleName=function(){var t=this.create(ie);return this.accept(e.AtKeyword)?this.finish(t):t},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(e.Dashmatch)||this.peek(e.Includes)||this.peek(e.SubstringOperator)||this.peek(e.PrefixOperator)||this.peek(e.SuffixOperator)||this.peekDelim("=")){var t=this.createNode(Q.Operator);return this.consumeToken(),this.finish(t)}return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(ie);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(ie);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=Q.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=Q.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){e=this.create(ie);return this.consumeToken(),e.type=Q.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){e=this.create(ie);return this.consumeToken(),e.type=Q.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){e=this.create(ie);this.consumeToken();t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=Q.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(pe),t=0;for(e.addChild(this._parseElementName())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(e.Hash)&&!this.peekDelim("#"))return null;var t=this.createNode(Q.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!t.addChild(this._parseSelectorIdent()))return this.finish(t,xt.IdentifierExpected)}else this.consumeToken();return this.finish(t)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(Q.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,xt.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(Q.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(Q.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(e.BracketL))return null;var t=this.create(Ye);return this.consumeToken(),t.setNamespacePrefix(this._parseNamespacePrefix()),t.setIdentifier(this._parseIdent())?(t.setOperator(this._parseOperator())&&(t.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(e.BracketR)?this.finish(t):this.finish(t,xt.RightSquareBracketExpected)):this.finish(t,xt.IdentifierExpected)},t.prototype._parsePseudo=function(){var t=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(e.ParenthesisL)){if(n.addChild(this.try((function(){var n=t.create(ie);if(!n.addChild(t._parseSelector(!1)))return null;for(;t.accept(e.Comma)&&n.addChild(t._parseSelector(!1)););return t.peek(e.ParenthesisR)?t.finish(n):null}))||this._parseBinaryExpr()),!this.accept(e.ParenthesisR))return this.finish(n,xt.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(e.Colon))return null;var t=this.mark(),n=this.createNode(Q.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(t),null):(this.accept(e.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,xt.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(e.Exclamation))return null;var t=this.createNode(Q.Prio);return this.accept(e.Exclamation)&&this.acceptIdent("important")?this.finish(t):null},t.prototype._parseExpr=function(t){void 0===t&&(t=!1);var n=this.create($e);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(e.Comma)){if(t)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseNamedLine=function(){if(!this.peek(e.BracketL))return null;var t=this.createNode(Q.GridLine);for(this.consumeToken();t.addChild(this._parseIdent()););return this.accept(e.BracketR)?this.finish(t):this.finish(t,xt.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,t){var n=this.create(Ge);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,xt.TermExpected);n=this.finish(n);var r=this._parseOperator();return r&&(n=this._parseBinaryExpr(n,r)),this.finish(n)},t.prototype._parseTerm=function(){var e=this.create(He);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(e.ParenthesisL))return null;var t=this.create(ie);return this.consumeToken(),t.addChild(this._parseExpr()),this.accept(e.ParenthesisR)?this.finish(t):this.finish(t,xt.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(e.Num)||this.peek(e.Percentage)||this.peek(e.Resolution)||this.peek(e.Length)||this.peek(e.EMS)||this.peek(e.EXS)||this.peek(e.Angle)||this.peek(e.Time)||this.peek(e.Dimension)||this.peek(e.Freq)){var t=this.create(et);return this.consumeToken(),this.finish(t)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(e.String)&&!this.peek(e.BadString))return null;var t=this.createNode(Q.StringLiteral);return this.consumeToken(),this.finish(t)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(e.Ident,/^url(-prefix)?$/i))return null;var t=this.mark(),n=this.createNode(Q.URILiteral);return this.accept(e.Ident),this.hasWhitespace()||!this.peek(e.ParenthesisL)?(this.restoreAtMark(t),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(e.ParenthesisR)?this.finish(n):this.finish(n,xt.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var t=this.create(ie);return this.accept(e.String)||this.accept(e.BadString)||this.acceptUnquotedString()?this.finish(t):null},t.prototype._parseIdent=function(t){if(!this.peek(e.Ident))return null;var n=this.create(oe);return t&&(n.referenceTypes=t),n.isCustomProperty=this.peekRegExp(e.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var t=this.mark(),n=this.create(ve);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(e.ParenthesisL))return this.restoreAtMark(t),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,xt.ExpressionExpected);return this.accept(e.ParenthesisR)?this.finish(n):this.finish(n,xt.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(e.Ident))return null;var t=this.create(oe);if(t.referenceTypes=[Z.Function],this.acceptIdent("progid")){if(this.accept(e.Colon))for(;this.accept(e.Ident)&&this.acceptDelim("."););return this.finish(t)}return this.consumeToken(),this.finish(t)},t.prototype._parseFunctionArgument=function(){var e=this.create(we);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(e.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(Je);return this.consumeToken(),this.finish(t)}return null},t}();function tn(e,t){return-1!==e.indexOf(t)}function nn(){for(var e=[],t=0;te+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},e.prototype.findInScope=function(e,t){void 0===t&&(t=0);var n=e+t,r=function(e,t){var n=0,r=e.length;if(0===r)return 0;for(;nn}));if(0===r)return this;var i=this.children[r-1];return i.offset<=e&&i.offset+i.length>=e+t?i.findInScope(e,t):this},e.prototype.addSymbol=function(e){this.symbols.push(e)},e.prototype.getSymbol=function(e,t){for(var n=0;n0&&(i.arguments=n),i},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.title)&&fr.string(t.command)}}(wn||(wn={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return fr.objectLiteral(t)&&fr.string(t.newText)&&an.is(t.range)}}(xn||(xn={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&fr.objectLiteral(t)&&fr.string(t.label)&&(fr.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(fr.string(t.description)||void 0===t.description)}}(Sn||(Sn={})),function(e){e.is=function(e){return"string"==typeof e}}(Cn||(Cn={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return xn.is(t)&&(Sn.is(t.annotationId)||Cn.is(t.annotationId))}}(kn||(kn={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return fr.defined(t)&&Ln.is(t.textDocument)&&Array.isArray(t.edits)}}(_n||(_n={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&fr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||fr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Cn.is(t.annotationId))}}(En||(En={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&fr.string(t.oldUri)&&fr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||fr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Cn.is(t.annotationId))}}(Fn||(Fn={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&fr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||fr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||fr.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Cn.is(t.annotationId))}}(Dn||(Dn={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return fr.string(e.kind)?En.is(e)||Fn.is(e)||Dn.is(e):_n.is(e)})))}}(Tn||(Tn={}));var Pn,On,Ln,Wn,Un,jn,Vn,Bn,qn,Kn,$n,Gn,Hn,Yn,Jn,Xn,Qn,Zn,er,tr,nr,rr,ir,sr,or,ar,lr,cr,dr,hr,pr=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=xn.insert(e,t):Cn.is(n)?(i=n,r=kn.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=kn.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=xn.replace(e,t):Cn.is(n)?(i=n,r=kn.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=kn.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=xn.del(e):Cn.is(t)?(r=t,n=kn.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=kn.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ur=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,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(e,t){var n;if(Cn.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ur(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(_n.is(e)){var n=new pr(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new pr(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Ln.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new pr(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new pr(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ur,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,s;if(Sn.is(t)||Cn.is(t)?r=t:n=t,void 0===r?i=En.create(e,n):(s=Cn.is(r)?r:this._changeAnnotations.manage(r),i=En.create(e,n,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,s,o;if(Sn.is(n)||Cn.is(n)?i=n:r=n,void 0===i?s=Fn.create(e,t,r):(o=Cn.is(i)?i:this._changeAnnotations.manage(i),s=Fn.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(s),void 0!==o)return o},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,s;if(Sn.is(t)||Cn.is(t)?r=t:n=t,void 0===r?i=Dn.create(e,n):(s=Cn.is(r)?r:this._changeAnnotations.manage(r),i=Dn.create(e,n,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)}}(Pn||(Pn={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)&&fr.integer(t.version)}}(On||(On={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)&&(null===t.version||fr.integer(t.version))}}(Ln||(Ln={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)&&fr.string(t.languageId)&&fr.integer(t.version)&&fr.string(t.text)}}(Wn||(Wn={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(Un||(Un={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(Un||(Un={})),function(e){e.is=function(e){var t=e;return fr.objectLiteral(e)&&Un.is(t.kind)&&fr.string(t.value)}}(jn||(jn={})),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}(Vn||(Vn={})),function(e){e.PlainText=1,e.Snippet=2}(Bn||(Bn={})),function(e){e.Deprecated=1}(qn||(qn={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&fr.string(t.newText)&&an.is(t.insert)&&an.is(t.replace)}}(Kn||(Kn={})),function(e){e.asIs=1,e.adjustIndentation=2}($n||($n={})),function(e){e.create=function(e){return{label:e}}}(Gn||(Gn={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Hn||(Hn={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return fr.string(t)||fr.objectLiteral(t)&&fr.string(t.language)&&fr.string(t.value)}}(Yn||(Yn={})),function(e){e.is=function(e){var t=e;return!!t&&fr.objectLiteral(t)&&(jn.is(t.contents)||Yn.is(t.contents)||fr.typedArray(t.contents,Yn.is))&&(void 0===e.range||an.is(e.range))}}(Jn||(Jn={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Xn||(Xn={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var a=i[o],l=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=s))throw new Error("Overlapping edit");r=r.substring(0,l)+a.newText+r.substring(c,r.length),s=l}return r}}(mr||(mr={}));var fr,gr=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return on.create(0,e);for(;ne?r=i:n=i+1}var s=n-1;return on.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1e?r=i:n=i+1}var s=n-1;return{line:s,character:e-t[s]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function _r(e){var t=kr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,r){return new xr(e,t,n,r)},e.update=function(e,t,n){if(e instanceof xr)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),r=0,i=[],s=0,o=Sr(t.map(_r),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));sr&&i.push(n.substring(r,l)),a.newText.length&&i.push(a.newText),r=e.offsetAt(a.range.end)}return i.push(n.substr(r)),i.join("")}}(br||(br={})),function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Un.Markdown,Un.PlainText]}},hover:{contentFormat:[Un.Markdown,Un.PlainText]}}}}(vr||(vr={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(yr||(yr={})),wr=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;ic){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>c&&(47===e.charCodeAt(i+h)?d=h:0===h&&(d=0));break}var p=e.charCodeAt(i+h);if(p!==n.charCodeAt(a+h))break;47===p&&(d=h)}var u="";for(h=i+d+1;h<=s;++h)h!==s&&47!==e.charCodeAt(h)||(0===u.length?u+="..":u+="/..");return u.length>0?u+n.slice(a+d):(a+=d,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,d=e.length-1,h=0;d>=r;--d)if(47!==(i=e.charCodeAt(d)))-1===l&&(c=!1,l=d+1),46===i?-1===o?o=d:1!==h&&(h=1):-1!==o&&(h=-1);else if(!c){a=d+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>m,Utils:()=>_}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;r=i.indexOf("Windows")>=0}var s,o,a=(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=/^\w[\w\d+.-]*$/,c=/^\//,d=/^\/\//,h="",p="/",u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,r,i,s){void 0===s&&(s=!1),"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}(this.scheme,n||h),this.query=r||h,this.fragment=i||h,function(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&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.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(d.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 ("//")')}(this,s))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return w(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,s=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===r?r=this.path:null===r&&(r=h),void 0===i?i=this.query:null===i&&(i=h),void 0===s?s=this.fragment:null===s&&(s=h),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new g(t,n,r,i,s)},e.parse=function(e,t){void 0===t&&(t=!1);var n=u.exec(e);return n?new g(n[2]||h,k(n[4]||h),k(n[5]||h),k(n[7]||h),k(n[9]||h),t):new g(h,h,h,h,h)},e.file=function(e){var t=h;if(r&&(e=e.replace(/\\/g,p)),e[0]===p&&e[1]===p){var n=e.indexOf(p,2);-1===n?(t=e.substring(2),e=p):(t=e.substring(2,n),e=e.substring(n)||p)}return new g("file",t,e,h,h)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),x(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new g(t);return n._formatted=t.external,n._fsPath=t._sep===f?t.fsPath:null,n}return t},e}(),f=r?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=w(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?x(this,!0):(this._formatted||(this._formatted=x(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),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},t}(m),b=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function v(e,t){for(var n=void 0,r=-1,i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var o=b[s];void 0!==o?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function y(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function x(e,t){var n=t?y:v,r="",i=e.scheme,s=e.authority,o=e.path,a=e.query,l=e.fragment;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=p,r+=p),s){var c=s.indexOf("@");if(-1!==c){var d=s.substr(0,c);s=s.substr(c+1),-1===(c=d.indexOf(":"))?r+=n(d,!1):(r+=n(d.substr(0,c),!1),r+=":",r+=n(d.substr(c+1),!1)),r+="@"}-1===(c=(s=s.toLowerCase()).indexOf(":"))?r+=n(s,!1):(r+=n(s.substr(0,c),!1),r+=s.substr(c))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2))(h=o.charCodeAt(1))>=65&&h<=90&&(o="/"+String.fromCharCode(h+32)+":"+o.substr(3));else if(o.length>=2&&58===o.charCodeAt(1)){var h;(h=o.charCodeAt(0))>=65&&h<=90&&(o=String.fromCharCode(h+32)+":"+o.substr(2))}r+=n(o,!0)}return a&&(r+="?",r+=n(a,!1)),l&&(r+="#",r+=t?l:v(l,!1)),r}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}var C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(C)?e.replace(C,(function(e){return S(e)})):e}var _,E=n(470),F=function(){for(var e=0,t=0,n=arguments.length;t{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:Er,Utils:Fr}=wr;var Dr=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=an.create(on.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{var i={isIncomplete:!1,items:[]};this.nodePath=ne(this.styleSheet,this.offset);for(var s=this.nodePath.length-1;s>=0;s--){var o=this.nodePath[s];if(o instanceof be)this.getCompletionsForDeclarationProperty(o.getParent(),i);else if(o instanceof $e)o.parent instanceof nt?this.getVariableProposals(null,i):this.getCompletionsForExpression(o,i);else if(o instanceof pe){var a=o.findAParent(Q.ExtendsReference,Q.Ruleset);if(a)if(a.type===Q.ExtendsReference)this.getCompletionsForExtendsReference(a,o,i);else{var l=a;this.getCompletionsForSelector(l,l&&l.isNested(),i)}}else if(o instanceof we)this.getCompletionsForFunctionArgument(o,o.getParent(),i);else if(o instanceof le)this.getCompletionsForDeclarations(o,i);else if(o instanceof tt)this.getCompletionsForVariableDeclaration(o,i);else if(o instanceof de)this.getCompletionsForRuleSet(o,i);else if(o instanceof nt)this.getCompletionsForInterpolation(o,i);else if(o instanceof Ee)this.getCompletionsForFunctionDeclaration(o,i);else if(o instanceof at)this.getCompletionsForMixinReference(o,i);else if(o instanceof ve)this.getCompletionsForFunctionArgument(null,o,i);else if(o instanceof We)this.getCompletionsForSupports(o,i);else if(o instanceof Be)this.getCompletionsForSupportsCondition(o,i);else if(o instanceof it)this.getCompletionsForExtendsReference(o,null,i);else if(o.type===Q.URILiteral)this.getCompletionForUriLiteralValue(o,i);else if(null===o.parent)this.getCompletionForTopLevel(i);else{if(o.type!==Q.StringLiteral||!this.isImportPathParent(o.parent.type))continue;this.getCompletionForImportPath(o,i)}if(i.items.length>0||this.offset>o.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),0===i.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,i),this.finalize(i)}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(e){return e===Q.Import},e.prototype.finalize=function(e){return e},e.prototype.findInNodePath=function(){for(var e=[],t=0;t=0;n--){var r=this.nodePath[n];if(-1!==e.indexOf(r.type))return r}return null},e.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},e.prototype.getPropertyProposals=function(e,t){var n=this,r=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((function(s){var o,a,l=!1;e?(o=n.getCompletionRange(e.getProperty()),a=s.name,Zt(e.colonPosition)||(a+=": ",l=!0)):(o=n.getCompletionRange(null),a=s.name+": ",l=!0),!e&&i&&(a+="$0;"),e&&!e.semicolonPosition&&i&&n.offset>=n.textDocument.offsetAt(o.end)&&(a+="$0;");var c={label:s.name,documentation:kt(s,n.doesSupportMarkdown()),tags:Kr(s)?[qn.Deprecated]:[],textEdit:xn.replace(o,a),insertTextFormat:Bn.Snippet,kind:Vn.Property};s.restrictions||(l=!1),r&&l&&(c.command={title:"Suggest",command:"editor.action.triggerSuggest"});var d=(255-("number"==typeof s.relevance?Math.min(Math.max(s.relevance,0),99):50)).toString(16),h=H(s.name,"-")?Wr.VendorPrefixed:Wr.Normal;c.sortText=h+"_"+d,t.items.push(c)})),this.completionParticipants.forEach((function(e){e.onCssProperty&&e.onCssProperty({propertyName:n.currentWord,range:n.defaultReplaceRange})})),t},Object.defineProperty(e.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,t;return null===(t=null===(e=this.documentSettings)||void 0===e?void 0:e.triggerPropertyValueCompletion)||void 0===t||t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,t;return null===(t=null===(e=this.documentSettings)||void 0===e?void 0:e.completePropertyWithSemicolon)||void 0===t||t},enumerable:!1,configurable:!0}),e.prototype.getCompletionsForDeclarationValue=function(e,t){for(var n=this,r=e.getFullPropertyName(),i=this.cssDataManager.getProperty(r),s=e.getValue()||null;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(e){e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:r,propertyValue:n.currentWord,range:n.getCompletionRange(s)})})),i){if(i.restrictions)for(var o=0,a=i.restrictions;o=e.offset+2&&this.getVariableProposals(null,t),t},e.prototype.getVariableProposals=function(e,t){for(var n=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Variable);n0){var i=this.currentWord.match(/^-?\d[\.\d+]*/);i&&(r=i[0],n.isIncomplete=r.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===Q.Term&&(t=t.getParent()),e.restrictions)for(var s=0,o=e.restrictions;s=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},e.prototype.getCompletionsForSelector=function(e,t,n){var r=this,i=this.findInNodePath(Q.PseudoSelector,Q.IdentifierSelector,Q.ClassSelector,Q.ElementNameSelector);if(!i&&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=an.create(on.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(e){var t=Gr(e.name),s={label:e.name,textEdit:xn.replace(r.getCompletionRange(i),t),documentation:kt(e,r.doesSupportMarkdown()),tags:Kr(e)?[qn.Deprecated]:[],kind:Vn.Function,insertTextFormat:e.name!==t?Br:void 0};H(e.name,":-")&&(s.sortText=Wr.VendorPrefixed),n.items.push(s)})),this.cssDataManager.getPseudoElements().forEach((function(e){var t=Gr(e.name),s={label:e.name,textEdit:xn.replace(r.getCompletionRange(i),t),documentation:kt(e,r.doesSupportMarkdown()),tags:Kr(e)?[qn.Deprecated]:[],kind:Vn.Function,insertTextFormat:e.name!==t?Br:void 0};H(e.name,"::-")&&(s.sortText=Wr.VendorPrefixed),n.items.push(s)})),!t){for(var s=0,o=Yt;s0){var t=h.substr(e.offset,e.length);return"."!==t.charAt(0)||d[t]||(d[t]=!0,n.items.push({label:t,textEdit:xn.replace(r.getCompletionRange(i),t),kind:Vn.Keyword})),!1}return!0})),e&&e.isNested()){var p=e.getSelectors().findFirstChildBeforeOffset(this.offset);p&&0===e.getSelectors().getChildren().indexOf(p)&&this.getPropertyProposals(null,n)}return n},e.prototype.getCompletionsForDeclarations=function(e,t){if(!e||this.offset===e.offset)return t;var n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof ue){var r=n;if(!Zt(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,t);if(Zt(r.semicolonPosition)&&r.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),t),t},e.prototype.getCompletionsForExpression=function(e,t){var n=e.getParent();if(n instanceof we)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;var r=e.findParent(Q.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;var i=e.findChildAtOffset(this.offset,!0);return i?i instanceof et||i instanceof oe?this.getCompletionsForDeclarationValue(r,t):t:this.getCompletionsForDeclarationValue(r,t)},e.prototype.getCompletionsForFunctionArgument=function(e,t,n){var r=t.getIdentifier();return r&&r.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n},e.prototype.getCompletionsForFunctionDeclaration=function(e,t){var n=e.getDeclarations();return n&&this.offset>n.offset&&this.offsete.lParent&&(!Zt(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},e.prototype.getCompletionsForSupports=function(e,t){var n=e.getDeclarations();if(!n||this.offset<=n.offset){var r=e.findFirstChildBeforeOffset(this.offset);return r instanceof Be?this.getCompletionsForSupportsCondition(r,t):t}return this.getCompletionForTopLevel(t)},e.prototype.getCompletionsForExtendsReference=function(e,t,n){return n},e.prototype.getCompletionForUriLiteralValue=function(e,t){var n,r,i;if(e.hasChildren()){var s=e.getChild(0);n=s.getText(),r=this.position,i=this.getCompletionRange(s)}else{n="",r=this.position;var o=this.textDocument.positionAt(e.offset+"url(".length);i=an.create(o,o)}return this.completionParticipants.forEach((function(e){e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:r,range:i})})),t},e.prototype.getCompletionForImportPath=function(e,t){var n=this;return this.completionParticipants.forEach((function(t){t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:n.position,range:n.getCompletionRange(e)})})),t},e.prototype.hasCharacterAtPosition=function(e,t){var n=this.textDocument.getText();return e>=0&&e"),this.writeLine(t,r.join(""))}},e}();!function(e){function t(e){var t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(Jr||(Jr={}));var ri=function(){this.id=0,this.attr=0,this.tag=0};function ii(e,t){for(var n=new Zr,r=0,i=e.getChildren();r1){var l=t.cloneWithParent();n.addChild(l.findRoot()),n=l}n.append(o[a])}}break;case Q.SelectorPlaceholder:if(s.matches("@at-root"))return n;case Q.ElementNameSelector:var c=s.getText();n.addAttr("name","*"===c?"element":si(c));break;case Q.ClassSelector:n.addAttr("class",si(s.getText().substring(1)));break;case Q.IdentifierSelector:n.addAttr("id",si(s.getText().substring(1)));break;case Q.MixinDeclaration:n.addAttr("class",s.getName());break;case Q.PseudoSelector:n.addAttr(si(s.getText()),"");break;case Q.AttributeSelector:var d=s,h=d.getIdentifier();if(h){var p=d.getValue(),u=d.getOperator(),m=void 0;if(p&&u)switch(si(u.getText())){case"|=":m=Jr.remove(si(p.getText()))+"-…";break;case"^=":m=Jr.remove(si(p.getText()))+"…";break;case"$=":m="…"+Jr.remove(si(p.getText()));break;case"~=":m=" … "+Jr.remove(si(p.getText()))+" … ";break;case"*=":m="…"+Jr.remove(si(p.getText()))+"…";break;default:m=Jr.remove(si(p.getText()))}n.addAttr(si(h.getText()),m)}}}return n}function si(e){var t=new G;t.setSource(e);var n=t.scanUnquotedString();return n?n.text:e}var oi=function(){function e(e){this.cssDataManager=e}return e.prototype.selectorToMarkedString=function(e){var t=function(e){if(e.matches("@at-root"))return null;var t=new ei,n=[],r=e.getParent();if(r instanceof de)for(var i=r.getParent();i&&!li(i);){if(i instanceof de){if(i.getSelectors().matches("@at-root"))break;n.push(i)}i=i.getParent()}for(var s=new ai(t),o=n.length-1;o>=0;o--){var a=n[o].getSelectors().getChild(0);a&&s.processSelector(a)}return s.processSelector(e),t}(e);if(t){var n=new ni('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}return[]},e.prototype.simpleSelectorToMarkedString=function(e){var t=ii(e),n=new ni('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n},e.prototype.isPseudoElementIdentifier=function(e){var t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])},e.prototype.selectorToSpecificityMarkedString=function(e){var t=this,n=function(e){for(var i=0,s=e.getChildren();i0&&n(o)}},r=new ri;return n(e),Qr("vs/language/css/_deps/vscode-css-languageservice/services/selectorPrinting","specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",r.id,r.attr,r.tag)},e}(),ai=function(){function e(e){this.prev=null,this.element=e}return e.prototype.processSelector=function(e){var t=null;if(!(this.element instanceof ei)&&e.getChildren().some((function(e){return e.hasChildren()&&e.getChild(0).type===Q.SelectorCombinator}))){var n=this.element.findRoot();n.parent instanceof ei&&(t=this.element,this.element=n.parent,this.element.removeChild(n),this.prev=null)}for(var r=0,i=e.getChildren();r0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case t:a=(n-r)/d+(nn)return 0;var i,s,o=[],a=[];for(i=0;i=i.length/2&&s.push({property:e.name,score:t})})),s.sort((function(e,t){return t.score-e.score||e.property.localeCompare(t.property)}));for(var o=3,a=0,l=s;a=0;a--){var l=o[a];if(l instanceof fe){var c=l.getProperty();if(c&&c.offset===i&&c.end===s)return void this.getFixesForUnknownProperty(e,c,n,r)}}},e}(),Ri=function(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e};function Ni(e,t,n,r){var i=e[t];i.value=n,n&&(tn(i.properties,r)||i.properties.push(r))}function zi(e,t,n,r){"top"===t||"right"===t||"bottom"===t||"left"===t?Ni(e,t,n,r):function(e,t,n){Ni(e,"top",t,n),Ni(e,"right",t,n),Ni(e,"bottom",t,n),Ni(e,"left",t,n)}(e,n,r)}function Ai(e,t,n){switch(t.length){case 1:zi(e,void 0,t[0],n);break;case 2:zi(e,"top",t[0],n),zi(e,"bottom",t[0],n),zi(e,"right",t[1],n),zi(e,"left",t[1],n);break;case 3:zi(e,"top",t[0],n),zi(e,"right",t[1],n),zi(e,"left",t[1],n),zi(e,"bottom",t[2],n);break;case 4:zi(e,"top",t[0],n),zi(e,"right",t[1],n),zi(e,"bottom",t[2],n),zi(e,"left",t[3],n)}}function Ii(e,t){for(var n=0,r=t;n0)for(var m=this.fetch(r,"float"),f=0;f0)for(m=this.fetch(r,"vertical-align"),f=0;f1)for(var S=0;S".charCodeAt(0),ns=".".charCodeAt(0),rs=("@".charCodeAt(0),e.CustomToken),is=rs++,ss=rs++,os=(rs++,rs++),as=rs++,ls=rs++,cs=rs++,ds=rs++,hs=(rs++,function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return qi(n,t),n.prototype.scanNext=function(n){if(this.stream.advanceIfChar(Yi)){var r=["$"];if(this.ident(r))return this.finishToken(n,is,r.join(""));this.stream.goBackTo(n)}return this.stream.advanceIfChars([Ji,Xi])?this.finishToken(n,ss):this.stream.advanceIfChars([Qi,Qi])?this.finishToken(n,os):this.stream.advanceIfChars([Zi,Qi])?this.finishToken(n,as):this.stream.advanceIfChar(es)?this.stream.advanceIfChar(Qi)?this.finishToken(n,cs):this.finishToken(n,e.Delim):this.stream.advanceIfChar(ts)?this.stream.advanceIfChar(Qi)?this.finishToken(n,ls):this.finishToken(n,e.Delim):this.stream.advanceIfChars([ns,ns,ns])?this.finishToken(n,ds):t.prototype.scanNext.call(this,n)},n.prototype.comment=function(){return!!t.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Ki,Ki]))&&(this.stream.advanceWhileChar((function(e){switch(e){case $i:case Gi:case Hi:return!1;default:return!0}})),!0)},n}(G)),ps=vt(),us=function(e,t){this.id=e,this.message=t},ms={FromExpected:new us("scss-fromexpected",ps("vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors","expected.from","'from' expected")),ThroughOrToExpected:new us("scss-throughexpected",ps("vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors","expected.through","'through' or 'to' expected")),InExpected:new us("scss-fromexpected",ps("vs/language/css/_deps/vscode-css-languageservice/parser/scssErrors","expected.in","'in' expected"))},fs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gs=function(t){function n(){return t.call(this,new hs)||this}return fs(n,t),n.prototype._parseStylesheetStatement=function(n){return void 0===n&&(n=!1),this.peek(e.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(n)||t.prototype._parseStylesheetAtStatement.call(this,n):this._parseRuleset(!0)||this._parseVariableDeclaration()},n.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var t=this.create(ze);if(this.consumeToken(),!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral()))return this.finish(t,xt.URIOrStringExpected);for(;this.accept(e.Comma);)if(!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral()))return this.finish(t,xt.URIOrStringExpected);return this.peek(e.SemiColon)||this.peek(e.EOF)||t.setMedialist(this._parseMediaQueryList()),this.finish(t)},n.prototype._parseVariableDeclaration=function(t){if(void 0===t&&(t=[]),!this.peek(is))return null;var n=this.create(tt);if(!n.setVariable(this._parseVariable()))return null;if(!this.accept(e.Colon))return this.finish(n,xt.ColonExpected);if(this.prevToken&&(n.colonPosition=this.prevToken.offset),!n.setValue(this._parseExpr()))return this.finish(n,xt.VariableValueExpected,[],t);for(;this.peek(e.Exclamation);)if(n.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(e.Ident,/^(default|global)$/))return this.finish(n,xt.UnknownKeyword);this.consumeToken()}return this.peek(e.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)},n.prototype._parseMediaContentStart=function(){return this._parseInterpolation()},n.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},n.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},n.prototype._parseVariable=function(){if(!this.peek(is))return null;var e=this.create(rt);return this.consumeToken(),e},n.prototype._parseModuleMember=function(){var e=this.mark(),t=this.create(ut);return t.setIdentifier(this._parseIdent([Z.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,xt.IdentifierOrVariableExpected):null},n.prototype._parseIdent=function(t){var n=this;if(!this.peek(e.Ident)&&!this.peek(ss)&&!this.peekDelim("-"))return null;var r=this.create(oe);r.referenceTypes=t,r.isCustomProperty=this.peekRegExp(e.Ident,/^--/);for(var i,s=!1;(this.accept(e.Ident)||r.addChild((i=void 0,i=n.mark(),n.acceptDelim("-")&&(n.hasWhitespace()||n.acceptDelim("-"),n.hasWhitespace())?(n.restoreAtMark(i),null):n._parseInterpolation()))||s&&this.acceptRegexp(/^[\w-]/))&&(s=!0,!this.hasWhitespace()););return s?this.finish(r):null},n.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||t.prototype._parseTermExpression.call(this)},n.prototype._parseInterpolation=function(){if(this.peek(ss)){var t=this.create(nt);return this.consumeToken(),t.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(e.CurlyR)?this.finish(t):this.finish(t,xt.RightCurlyExpected):this.accept(e.CurlyR)?this.finish(t):this.finish(t,xt.ExpressionExpected)}return null},n.prototype._parseOperator=function(){if(this.peek(os)||this.peek(as)||this.peek(ls)||this.peek(cs)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var e=this.createNode(Q.Operator);return this.consumeToken(),this.finish(e)}return t.prototype._parseOperator.call(this)},n.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var e=this.create(ie);return this.consumeToken(),this.finish(e)}return t.prototype._parseUnaryOperator.call(this)},n.prototype._parseRuleSetDeclaration=function(){return this.peek(e.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)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},n.prototype._parseDeclaration=function(t){var n=this._tryParseCustomPropertyDeclaration(t);if(n)return n;var r=this.create(fe);if(!r.setProperty(this._parseProperty()))return null;if(!this.accept(e.Colon))return this.finish(r,xt.ColonExpected,[e.Colon],t||[e.SemiColon]);this.prevToken&&(r.colonPosition=this.prevToken.offset);var i=!1;if(r.setValue(this._parseExpr())&&(i=!0,r.addChild(this._parsePrio())),this.peek(e.CurlyL))r.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(r,xt.PropertyValueExpected);return this.peek(e.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},n.prototype._parseNestedProperties=function(){var e=this.create(Te);return this._parseBody(e,this._parseDeclaration.bind(this))},n.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var t=this.create(it);if(this.consumeToken(),!t.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(t,xt.SelectorExpected);for(;this.accept(e.Comma);)t.getSelectors().addChild(this._parseSimpleSelector());return this.accept(e.Exclamation)&&!this.acceptIdent("optional")?this.finish(t,xt.UnknownKeyword):this.finish(t)}return null},n.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},n.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(Q.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(e.Num)||this.accept(e.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},n.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var e=this.createNode(Q.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){e=this.createNode(Q.SelectorPlaceholder);return this.consumeToken(),this.finish(e)}return null},n.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(e.ParenthesisL)?(this.restoreAtMark(n),null):r},n.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},n.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var e=this.createNode(Q.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)},n.prototype._parseControlStatement=function(t){return void 0===t&&(t=this._parseRuleSetDeclaration.bind(this)),this.peek(e.AtKeyword)?this._parseIfStatement(t)||this._parseForStatement(t)||this._parseEachStatement(t)||this._parseWhileStatement(t):null},n.prototype._parseIfStatement=function(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null},n.prototype._internalParseIfStatement=function(t){var n=this.create(xe);if(this.consumeToken(),!n.setExpression(this._parseExpr(!0)))return this.finish(n,xt.ExpressionExpected);if(this._parseBody(n,t),this.acceptKeyword("@else"))if(this.peekIdent("if"))n.setElseClause(this._internalParseIfStatement(t));else if(this.peek(e.CurlyL)){var r=this.create(_e);this._parseBody(r,t),n.setElseClause(r)}return this.finish(n)},n.prototype._parseForStatement=function(t){if(!this.peekKeyword("@for"))return null;var n=this.create(Se);return this.consumeToken(),n.setVariable(this._parseVariable())?this.acceptIdent("from")?n.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?n.addChild(this._parseBinaryExpr())?this._parseBody(n,t):this.finish(n,xt.ExpressionExpected,[e.CurlyR]):this.finish(n,ms.ThroughOrToExpected,[e.CurlyR]):this.finish(n,xt.ExpressionExpected,[e.CurlyR]):this.finish(n,ms.FromExpected,[e.CurlyR]):this.finish(n,xt.VariableNameExpected,[e.CurlyR])},n.prototype._parseEachStatement=function(t){if(!this.peekKeyword("@each"))return null;var n=this.create(Ce);this.consumeToken();var r=n.getVariables();if(!r.addChild(this._parseVariable()))return this.finish(n,xt.VariableNameExpected,[e.CurlyR]);for(;this.accept(e.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(n,xt.VariableNameExpected,[e.CurlyR]);return this.finish(r),this.acceptIdent("in")?n.addChild(this._parseExpr())?this._parseBody(n,t):this.finish(n,xt.ExpressionExpected,[e.CurlyR]):this.finish(n,ms.InExpected,[e.CurlyR])},n.prototype._parseWhileStatement=function(t){if(!this.peekKeyword("@while"))return null;var n=this.create(ke);return this.consumeToken(),n.addChild(this._parseBinaryExpr())?this._parseBody(n,t):this.finish(n,xt.ExpressionExpected,[e.CurlyR])},n.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},n.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var t=this.create(Ee);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([Z.Function])))return this.finish(t,xt.IdentifierExpected,[e.CurlyR]);if(!this.accept(e.ParenthesisL))return this.finish(t,xt.LeftParenthesisExpected,[e.CurlyR]);if(t.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,xt.VariableNameExpected);return this.accept(e.ParenthesisR)?this._parseBody(t,this._parseFunctionBodyDeclaration.bind(this)):this.finish(t,xt.RightParenthesisExpected,[e.CurlyR])},n.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var e=this.createNode(Q.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,xt.ExpressionExpected)},n.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var t=this.create(lt);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([Z.Mixin])))return this.finish(t,xt.IdentifierExpected,[e.CurlyR]);if(this.accept(e.ParenthesisL)){if(t.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,xt.VariableNameExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected,[e.CurlyR])}return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseParameterDeclaration=function(){var t=this.create(ye);return t.setIdentifier(this._parseVariable())?(this.accept(ds),this.accept(e.Colon)&&!t.setDefaultValue(this._parseExpr(!0))?this.finish(t,xt.VariableValueExpected,[],[e.Comma,e.ParenthesisR]):this.finish(t)):null},n.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var t=this.create(st);if(this.consumeToken(),this.accept(e.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,xt.ExpressionExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected)}return this.finish(t)},n.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var t=this.create(at);this.consumeToken();var n=this._parseIdent([Z.Mixin]);if(!t.setIdentifier(n))return this.finish(t,xt.IdentifierExpected,[e.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var r=this._parseIdent([Z.Mixin]);if(!r)return this.finish(t,xt.IdentifierExpected,[e.CurlyR]);var i=this.create(ut);n.referenceTypes=[Z.Module],i.setIdentifier(n),t.setIdentifier(r),t.addChild(i)}if(this.accept(e.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,xt.ExpressionExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(e.CurlyL))&&t.setContent(this._parseMixinContentDeclaration()),this.finish(t)},n.prototype._parseMixinContentDeclaration=function(){var t=this.create(ot);if(this.acceptIdent("using")){if(!this.accept(e.ParenthesisL))return this.finish(t,xt.LeftParenthesisExpected,[e.CurlyL]);if(t.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,xt.VariableNameExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected,[e.CurlyL])}return this.peek(e.CurlyL)&&this._parseBody(t,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(t)},n.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},n.prototype._parseFunctionArgument=function(){var t=this.create(we),n=this.mark(),r=this._parseVariable();if(r)if(this.accept(e.Colon))t.setIdentifier(r);else{if(this.accept(ds))return t.setValue(r),this.finish(t);this.restoreAtMark(n)}return t.setValue(this._parseExpr(!0))?(this.accept(ds),t.addChild(this._parsePrio()),this.finish(t)):t.setValue(this._tryParsePrio())?this.finish(t):null},n.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(e.ParenthesisR)){this.restoreAtMark(n);var i=this.create(ie);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},n.prototype._parseOperation=function(){if(!this.peek(e.ParenthesisL))return null;var t=this.create(ie);for(this.consumeToken();t.addChild(this._parseListElement());)this.accept(e.Comma);return this.accept(e.ParenthesisR)?this.finish(t):this.finish(t,xt.RightParenthesisExpected)},n.prototype._parseListElement=function(){var t=this.create(dt),n=this._parseBinaryExpr();if(!n)return null;if(this.accept(e.Colon)){if(t.setKey(n),!t.setValue(this._parseBinaryExpr()))return this.finish(t,xt.ExpressionExpected)}else t.setValue(n);return this.finish(t)},n.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var t=this.create(Ae);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,xt.StringLiteralExpected);if(!this.peek(e.SemiColon)&&!this.peek(e.EOF)){if(!this.peekRegExp(e.Ident,/as|with/))return this.finish(t,xt.UnknownKeyword);if(this.acceptIdent("as")&&!t.setIdentifier(this._parseIdent([Z.Module]))&&!this.acceptDelim("*"))return this.finish(t,xt.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(e.ParenthesisL))return this.finish(t,xt.LeftParenthesisExpected,[e.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,xt.VariableNameExpected);for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,xt.VariableNameExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected)}}return this.accept(e.SemiColon)||this.accept(e.EOF)?this.finish(t):this.finish(t,xt.SemiColonExpected)},n.prototype._parseModuleConfigDeclaration=function(){var t=this.create(Ie);return t.setIdentifier(this._parseVariable())?this.accept(e.Colon)&&t.setValue(this._parseExpr(!0))?!this.accept(e.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(t):this.finish(t,xt.UnknownKeyword):this.finish(t,xt.VariableValueExpected,[],[e.Comma,e.ParenthesisR]):null},n.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var t=this.create(Me);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,xt.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(e.ParenthesisL))return this.finish(t,xt.LeftParenthesisExpected,[e.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,xt.VariableNameExpected);for(;this.accept(e.Comma)&&!this.peek(e.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,xt.VariableNameExpected);if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected)}if(!this.peek(e.SemiColon)&&!this.peek(e.EOF)){if(!this.peekRegExp(e.Ident,/as|hide|show/))return this.finish(t,xt.UnknownKeyword);if(this.acceptIdent("as")){var n=this._parseIdent([Z.Forward]);if(!t.setIdentifier(n))return this.finish(t,xt.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(t,xt.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!t.addChild(this._parseForwardVisibility()))return this.finish(t,xt.IdentifierOrVariableExpected)}return this.accept(e.SemiColon)||this.accept(e.EOF)?this.finish(t):this.finish(t,xt.SemiColonExpected)},n.prototype._parseForwardVisibility=function(){var t=this.create(Pe);for(t.setIdentifier(this._parseIdent());t.addChild(this._parseVariable()||this._parseIdent());)this.accept(e.Comma);return t.getChildren().length>1?t:null},n.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},n}(en),bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vs=vt(),ys=function(e){function t(n,r){var i=e.call(this,"$",n,r)||this;return ws(t.scssModuleLoaders),ws(t.scssModuleBuiltIns),i}return bs(t,e),t.prototype.isImportPathParent=function(t){return t===Q.Forward||t===Q.Use||e.prototype.isImportPathParent.call(this,t)},t.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===Q.Forward||i===Q.Use)for(var s=0,o=t.scssModuleBuiltIns;s0){var t="string"==typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | "),e.documentation=t}}))}var xs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ss="/".charCodeAt(0),Cs="\n".charCodeAt(0),ks="\r".charCodeAt(0),_s="\f".charCodeAt(0),Es="`".charCodeAt(0),Fs=".".charCodeAt(0),Ds=e.CustomToken,Ts=Ds++,Rs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return xs(n,t),n.prototype.scanNext=function(e){var n=this.escapedJavaScript();return null!==n?this.finishToken(e,n):this.stream.advanceIfChars([Fs,Fs,Fs])?this.finishToken(e,Ts):t.prototype.scanNext.call(this,e)},n.prototype.comment=function(){return!!t.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Ss,Ss]))&&(this.stream.advanceWhileChar((function(e){switch(e){case Cs:case ks:case _s:return!1;default:return!0}})),!0)},n.prototype.escapedJavaScript=function(){return this.stream.peekChar()===Es?(this.stream.advance(1),this.stream.advanceWhileChar((function(e){return e!==Es})),this.stream.advanceIfChar(Es)?e.EscapedJavaScript:e.BadEscapedJavaScript):null},n}(G),Ns=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zs=function(t){function n(){return t.call(this,new Rs)||this}return Ns(n,t),n.prototype._parseStylesheetStatement=function(n){return void 0===n&&(n=!1),this.peek(e.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},n.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var t=this.create(ze);if(this.consumeToken(),this.accept(e.ParenthesisL)){if(!this.accept(e.Ident))return this.finish(t,xt.IdentifierExpected,[e.SemiColon]);do{if(!this.accept(e.Comma))break}while(this.accept(e.Ident));if(!this.accept(e.ParenthesisR))return this.finish(t,xt.RightParenthesisExpected,[e.SemiColon])}return t.addChild(this._parseURILiteral())||t.addChild(this._parseStringLiteral())?(this.peek(e.SemiColon)||this.peek(e.EOF)||t.setMedialist(this._parseMediaQueryList()),this.finish(t)):this.finish(t,xt.URIOrStringExpected,[e.SemiColon])},n.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var t=this.createNode(Q.Plugin);return this.consumeToken(),t.addChild(this._parseStringLiteral())?this.accept(e.SemiColon)?this.finish(t):this.finish(t,xt.SemiColonExpected):this.finish(t,xt.StringLiteralExpected)},n.prototype._parseMediaQuery=function(e){var n=t.prototype._parseMediaQuery.call(this,e);if(!n){var r=this.create(Ve);return r.addChild(this._parseVariable())?this.finish(r):null}return n},n.prototype._parseMediaDeclaration=function(e){return void 0===e&&(e=!1),this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)},n.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},n.prototype._parseVariableDeclaration=function(t){void 0===t&&(t=[]);var n=this.create(tt),r=this.mark();if(!n.setVariable(this._parseVariable(!0)))return null;if(!this.accept(e.Colon))return this.restoreAtMark(r),null;if(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseDetachedRuleSet()))n.needsSemicolon=!1;else if(!n.setValue(this._parseExpr()))return this.finish(n,xt.VariableValueExpected,[],t);return n.addChild(this._parsePrio()),this.peek(e.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)},n.prototype._parseDetachedRuleSet=function(){var t=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(e.ParenthesisL))return this.restoreAtMark(t),null;var n=this.create(lt);if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(e.Comma)||this.accept(e.SemiColon))&&!this.peek(e.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,xt.IdentifierExpected,[],[e.ParenthesisR]);if(!this.accept(e.ParenthesisR))return this.restoreAtMark(t),null}if(!this.peek(e.CurlyL))return null;var r=this.create(ce);return this._parseBody(r,this._parseDetachedRuleSetBody.bind(this)),this.finish(r)},n.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},n.prototype._addLookupChildren=function(t){if(!t.addChild(this._parseLookupValue()))return!1;for(var n=!1;this.peek(e.BracketL)&&(n=!0),t.addChild(this._parseLookupValue());)n=!1;return!n},n.prototype._parseLookupValue=function(){var t=this.create(ie),n=this.mark();return this.accept(e.BracketL)&&((t.addChild(this._parseVariable(!1,!0))||t.addChild(this._parsePropertyIdentifier()))&&this.accept(e.BracketR)||this.accept(e.BracketR))?t:(this.restoreAtMark(n),null)},n.prototype._parseVariable=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=!t&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(e.AtKeyword))return null;for(var i=this.create(rt),s=this.mark();this.acceptDelim("@")||!t&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(s),null;return(this.accept(e.AtKeyword)||this.accept(e.Ident))&&(n||!this.peek(e.BracketL)||this._addLookupChildren(i))?i:(this.restoreAtMark(s),null)},n.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},n.prototype._parseEscaped=function(){if(this.peek(e.EscapedJavaScript)||this.peek(e.BadEscapedJavaScript)){var t=this.createNode(Q.EscapedValue);return this.consumeToken(),this.finish(t)}if(this.peekDelim("~")){t=this.createNode(Q.EscapedValue);return this.consumeToken(),this.accept(e.String)||this.accept(e.EscapedJavaScript)?this.finish(t):this.finish(t,xt.TermExpected)}return null},n.prototype._parseOperator=function(){var e=this._parseGuardOperator();return e||t.prototype._parseOperator.call(this)},n.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null},n.prototype._parseRuleSetDeclaration=function(){return this.peek(e.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},n.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])||this._parseVariable()},n.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},n.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},n.prototype._parseSelector=function(t){var n=this.create(he),r=!1;for(t&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());){r=!0;var i=this.mark();if(n.addChild(this._parseGuard())&&this.peek(e.CurlyL))break;this.restoreAtMark(i),n.addChild(this._parseCombinator())}return r?this.finish(n):null},n.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(Q.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(e.Num)||this.accept(e.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},n.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var e=this.createNode(Q.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null},n.prototype._parsePropertyIdentifier=function(e){void 0===e&&(e=!1);var t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;var n=this.mark(),r=this.create(oe);r.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");return(e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(t)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,t))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(r)):(this.restoreAtMark(n),null)},n.prototype.peekInterpolatedIdent=function(){return this.peek(e.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},n.prototype._acceptInterpolatedIdent=function(t,n){for(var r=this,i=!1,s=function(){var e=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(e),null):r._parseInterpolation()},o=n?function(){return r.acceptRegexp(n)}:function(){return r.accept(e.Ident)};(o()||t.addChild(this._parseInterpolation()||this.try(s)))&&(i=!0,!this.hasWhitespace()););return i},n.prototype._parseInterpolation=function(){var t=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var n=this.createNode(Q.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(e.CurlyL)?(this.restoreAtMark(t),null):n.addChild(this._parseIdent())?this.accept(e.CurlyR)?this.finish(n):this.finish(n,xt.RightCurlyExpected):this.finish(n,xt.IdentifierExpected)}return null},n.prototype._tryParseMixinDeclaration=function(){var t=this.mark(),n=this.create(lt);if(!n.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(e.ParenthesisL))return this.restoreAtMark(t),null;if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(e.Comma)||this.accept(e.SemiColon))&&!this.peek(e.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,xt.IdentifierExpected,[],[e.ParenthesisR]);return this.accept(e.ParenthesisR)?(n.setGuard(this._parseGuard()),this.peek(e.CurlyL)?this._parseBody(n,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(t),null)):(this.restoreAtMark(t),null)},n.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},n.prototype._parseMixinDeclarationIdentifier=function(){var t;if(this.peekDelim("#")||this.peekDelim(".")){if(t=this.create(oe),this.consumeToken(),this.hasWhitespace()||!t.addChild(this._parseIdent()))return null}else{if(!this.peek(e.Hash))return null;t=this.create(oe),this.consumeToken()}return t.referenceTypes=[Z.Mixin],this.finish(t)},n.prototype._parsePseudo=function(){if(!this.peek(e.Colon))return null;var n=this.mark(),r=this.create(it);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},n.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var t=this.mark(),n=this.create(it);return this.consumeToken(),!this.hasWhitespace()&&this.accept(e.Colon)&&this.acceptIdent("extend")?this._completeExtends(n):(this.restoreAtMark(t),null)},n.prototype._completeExtends=function(t){if(!this.accept(e.ParenthesisL))return this.finish(t,xt.LeftParenthesisExpected);var n=t.getSelectors();if(!n.addChild(this._parseSelector(!0)))return this.finish(t,xt.SelectorExpected);for(;this.accept(e.Comma);)if(!n.addChild(this._parseSelector(!0)))return this.finish(t,xt.SelectorExpected);return this.accept(e.ParenthesisR)?this.finish(t):this.finish(t,xt.RightParenthesisExpected)},n.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(e.AtKeyword))return null;var t=this.mark(),n=this.create(at);return!n.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(e.ParenthesisL)?this.accept(e.ParenthesisR)?this.finish(n):this.finish(n,xt.RightParenthesisExpected):(this.restoreAtMark(t),null)},n.prototype._tryParseMixinReference=function(t){void 0===t&&(t=!0);for(var n=this.mark(),r=this.create(at),i=this._parseMixinDeclarationIdentifier();i;){this.acceptDelim(">");var s=this._parseMixinDeclarationIdentifier();if(!s)break;r.getNamespaces().addChild(i),i=s}if(!r.setIdentifier(i))return this.restoreAtMark(n),null;var o=!1;if(this.accept(e.ParenthesisL)){if(o=!0,r.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(e.Comma)||this.accept(e.SemiColon))&&!this.peek(e.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,xt.ExpressionExpected);if(!this.accept(e.ParenthesisR))return this.finish(r,xt.RightParenthesisExpected);i.referenceTypes=[Z.Mixin]}else i.referenceTypes=[Z.Mixin,Z.Rule];return this.peek(e.BracketL)?t||this._addLookupChildren(r):r.addChild(this._parsePrio()),o||this.peek(e.SemiColon)||this.peek(e.CurlyR)||this.peek(e.EOF)?this.finish(r):(this.restoreAtMark(n),null)},n.prototype._parseMixinArgument=function(){var t=this.create(we),n=this.mark(),r=this._parseVariable();return r&&(this.accept(e.Colon)?t.setIdentifier(r):this.restoreAtMark(n)),t.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(t):(this.restoreAtMark(n),null)},n.prototype._parseMixinParameter=function(){var t=this.create(ye);if(this.peekKeyword("@rest")){var n=this.create(ie);return this.consumeToken(),this.accept(Ts)?(t.setIdentifier(this.finish(n)),this.finish(t)):this.finish(t,xt.DotExpected,[],[e.Comma,e.ParenthesisR])}if(this.peek(Ts)){var r=this.create(ie);return this.consumeToken(),t.setIdentifier(this.finish(r)),this.finish(t)}var i=!1;return t.setIdentifier(this._parseVariable())&&(this.accept(e.Colon),i=!0),t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||i?this.finish(t):null},n.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var t=this.create(ht);if(this.consumeToken(),t.isNegated=this.acceptIdent("not"),!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,xt.ConditionExpected);for(;this.acceptIdent("and")||this.accept(e.Comma);)if(!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,xt.ConditionExpected);return this.finish(t)},n.prototype._parseGuardCondition=function(){if(!this.peek(e.ParenthesisL))return null;var t=this.create(pt);return this.consumeToken(),t.addChild(this._parseExpr()),this.accept(e.ParenthesisR)?this.finish(t):this.finish(t,xt.RightParenthesisExpected)},n.prototype._parseFunction=function(){var t=this.mark(),n=this.create(ve);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(e.ParenthesisL))return this.restoreAtMark(t),null;if(n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(e.Comma)||this.accept(e.SemiColon))&&!this.peek(e.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,xt.ExpressionExpected);return this.accept(e.ParenthesisR)?this.finish(n):this.finish(n,xt.RightParenthesisExpected)},n.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var e=this.create(oe);return e.referenceTypes=[Z.Function],this.consumeToken(),this.finish(e)}return t.prototype._parseFunctionIdentifier.call(this)},n.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(e.ParenthesisR)){this.restoreAtMark(n);var i=this.create(ie);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},n}(en),As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Is=vt(),Ms=function(e){function t(t,n){return e.call(this,"@",t,n)||this}return As(t,e),t.prototype.createFunctionProposals=function(e,t,n,r){for(var i=0,s=e;i 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],t.colorProposals=[{name:"argb",example:"argb(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Is("vs/language/css/_deps/vscode-css-languageservice/services/lessCompletion","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}(qr);function Ps(t,n){return function(e,t){var n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort((function(e,t){var n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),i=[],s=-1;return r.forEach((function(e){e.startLine=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}var Ls={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ && ]#",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:60,description:"Aligns a flex container’s 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’s 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’s 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:84,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’s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item’s 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’s 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:71,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:81,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:"