(()=>{var e={105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{lexer:()=>we,Token:()=>h,any:()=>ie,selector:()=>se,value:()=>ae,keyword:()=>ce,variable:()=>te,formatting:()=>ue,comment:()=>F,whitespace:()=>L,ident:()=>T,string:()=>O,url:()=>Y,interpolation:()=>j,backtick:()=>q,parseMediaExpression:()=>pe,parsePropertyName:()=>fe,parsePropertyValue:()=>de,parseSelector:()=>le,createProperty:()=>ye,createRule:()=>me,createAtRule:()=>be,default:()=>Te});var r=n(2205),o=n(3240);class i{constructor(e){this.type=e,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){const e=this.index();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.index();return-1!==e?this.parent.children[e-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(e){return e&&(e.remove(),this.children.push(e),e.parent=this),this}remove(){if(this.parent){const e=this.index();-1!==e&&(this.parent.children.splice(e,1),this.parent=null)}return this}}class s extends i{constructor(){super("stylesheet"),this.comments=[]}get start(){const e=this.firstChild;return e&&e.start}get end(){const e=this.children[this.children.length-1];return e&&e.end}addComment(e){this.comments.push(e)}}function a(e){return function(e){let t;for(e=e.slice();t!==e.length;)t=e.length,c(e[0])&&e.shift(),c(d(e))&&e.pop();return e}(e)}function c(e){const t=e&&e.type;return"whitespace"===t||"comment"===t}function u(e,t){const n=e.pos;for(let r=0,o=t.length;r=128}function E(e){return(0,o.hj)(e)||C(e)}function A(e,t,n,r,o){const i=e.pos;if(e.eat(n)){const n=r(e,i);if(n||o)return e.start=i,new h(e,t,i).add(n)}e.pos=i}function _(e){return A(e,"at-keyword",64,T)}function j(e,t){const n=e.pos;if(t=t||$,(e.eat(35)||e.eat(64))&&e.eat(m)){const r=new h(e,"interpolation",n);let o,i=1;for(;!e.eof();)if(e.eat(m))i++;else if(e.eat(g)){if(i--,!i)return r.end=e.pos,r}else{if(!(o=t(e)))break;r.add(o)}}e.pos=n}function I(e){const t=e.pos;return(e.eat(35)||e.eat(64))&&(0,o.nC)(e,m,g)?(e.start=t,!0):(e.pos=t,!1)}function $(e){const t=e.pos;for(;!e.eof()&&e.peek()!==g;)P(e)||e.next();if(t!==e.pos)return new h(e,"expression",t)}function O(e){return P(e,!0)}function P(e,t){let n,r,i,s=e.peek();if((0,o.LN)(s)){e.start=e.pos,e.next();const o=s,a=e.pos;for(;!e.eof()&&(n=e.pos,!e.eat(o)&&!e.eat(N));)e.eat(92)?e.eat(N):t&&(i=j(e))&&(r?r.push(i):r=[i]),e.next();if(t){const t=new h(e,"string"),i=new h(e,"unquoted",a,n);return i.add(r),t.add(i),t.property("quote",o),t}return!0}return!1}function N(e){return 10===e||13===e}var F=function(e){return function(e){if(z(e)){const t=new h(e,"comment");return t.property("type","single-line"),t}}(e)||function(e){if(M(e)){const t=new h(e,"comment");return t.property("type","multiline"),t}}(e)};function R(e){return z(e)||M(e)}function z(e){const t=e.pos;if(e.eat(47)&&e.eat(47)){for(e.start=t;!e.eof()&&10!==(n=e.next())&&13!==n;);return!0}var n;return e.pos=t,!1}function M(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(;!(e.eof()||42===e.next()&&e.eat(47)););return e.start=t,!0}return e.pos=t,!1}function L(e){return U(e)&&new h(e,"whitespace")}function U(e){return f(e,o.Wd)}function W(e){for(;!e.eof();)if(!U(e)&&!R(e))return!0}function B(e){return 126===e||124===e||94===e||36===e||42===e||61===e}function q(e){if(D(e))return new h(e,"backtick")}function D(e){const t=e.pos;return!!(0,o.nC)(e,96,96)&&(e.start=t,!0)}const V={43:"adjacentSibling",126:"generalSibling",62:"child",38:"nesting"};function H(e){if(function(e){return f(e,G)}(e))return new h(e,"hash-value")}function G(e){return(0,o.hj)(e)||(0,o.$9)(e,65,70)||95===e||45===e||e>128}function J(e){return 45===e||43===e}function Z(e){return 33===e||60===e||61===e||62===e}function Q(e){return 42===e||43===e||45===e||47===e||Z(e)}function X(e){return f(e,K)}function K(e){return!(isNaN(e)||(0,o.LN)(e)||(0,o.Wd)(e)||40===e||41===e||92===e||function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}(e))}function Y(e){const t=e.pos;if(u(e,"url(")){U(e);const n=O(e)||function(e){return X(e)&&new h(e,"unquoted")}(e);return U(e),e.eat(41),new h(e,"url",t).add(n)}e.pos=t}function ee(e){const t=e.pos;return u(e,"url(")?(U(e),P(e)||X(e),U(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}function te(e){return A(e,"variable",36,ne)}function ne(e){if(function(e){return f(e,re)}(e))return new h(e,"name")}function re(e){return 36===e||E(e)}function oe(e){const t=ie(e)||v(e,oe);if(t&&"ident"===t.type){const n=v(e,oe);if(n)return new h(e,"function",t.start,n.end).add(t).add(n)}return t||function(e){if(e.start=e.pos,null!=e.next())return new h(e,"unknown")}(e)}function ie(e){return ue(e)||Y(e)||se(e)||ae(e)||function(e){if(44===(t=e.peek())||58===t||59===t||t===m||t===g){const t=e.pos,n=b.get(e.next()),r=new h(e,"separator",t);return r.property("type",n),r}var t}(e)}function se(e){return j(e)||q(e)||T(e)||_(e)||function(e){return A(e,"class",46,T)}(e)||function(e){return A(e,"id",35,T)}(e)||function(e){const t=e.pos;if(e.eatWhile(58)){const n=T(e);if(n)return new h(e,"pseudo",t).add(n)}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(91)){W(e);const n=T(e);W(e);const r=function(e){return f(e,B)&&new h(e,"operator")}(e);W(e);const o=O(e)||T(e);return W(e),e.eat(93),new h(e,"attribute",t).add(n).add(r).add(o)}}(e)||function(e){if(43===(t=e.peek())||126===t||38===t||62===t){const t=e.pos,n=V[e.next()],r=new h(e,"combinator",t);return r.property("type",n),r}var t}(e)}function ae(e){return Y(e)||O(e)||j(e)||q(e)||function(e){if(function(e){const t=e.pos;if(e.eat(J),e.eatWhile(o.hj)){e.start=t;const n=e.pos;return e.eat(46)&&e.eatWhile(o.hj)||(e.pos=n),!0}return e.eat(46)&&e.eatWhile(o.hj)?(e.start=t,!0):(e.pos=t,!1)}(e)){const t=e.start,n=new h(e,"value"),r=function(e){return S(e)||function(e){return l(e,37)}(e)}(e)?new h(e,"unit"):null;return new h(e,"number",t).add(n).add(r)}}(e)||function(e){return A(e,"hash",35,H,!0)}(e)||ce(e)||function(e){return A(e,"important",33,T)}(e)||function(e){return function(e){return l(e,Z)?(e.eatWhile(61),!0):!!l(e,Q)}(e)&&new h(e,"operator")}(e)}function ce(e){return q(e)||te(e)||_(e)||T(e)}function ue(e){return F(e)||L(e)}function le(e){return he(e,"selector")}function fe(e){const t="string"==typeof e?new r.Z(e):e,n=[];for(;!t.eof();)n.push(oe(t));let o;if(1===n.length)o=n[0];else{o=new h(t,"property-name",t.start,t.end);for(let e=0,t=n.length;e{const e=a(i);if(e.length){const r=new h(n,t,e[0].start,d(e).end);for(let t=0;t{i&&(u.push(i),i=null)};for(;!t.eof();)if(!U(t))if(a=F(t))n.addComment(a);else if(t.start=t.pos,t.eatWhile(58))u.length||(i?l():i=new h(t,"preparse"));else if(t.eat(59))l(),c.add(ye(t,u,new h(t,"termintator"))),u.length=0;else if(t.eat(123))l(),u.length>0&&(o="at-keyword"===u[0].type?be(t,u,new h(t,"body-start")):me(t,u,new h(t,"body-start")),c.add(o),c=o,u.length=0);else if(t.eat(125))l(),c.add(ye(t,u)),"stylesheet"!==c.type&&(c.contentEndToken=new h(t,"body-end"),c=c.parent),u.length=0;else if(a=_(t))l(),u.push(a);else{if(!(ee(t)||I(t)||D(t)||ke(t,n)||P(t)||t.next()))throw new Error(`Unexpected end-of-stream at ${t.pos}`);i=i||new h(t,"preparse"),i.end=t.pos}for(i&&u.push(i),c.add(ye(t,u)),t.start=t.pos;c&&c!==n;)c.contentEndToken=new h(t,"body-end"),c=c.parent;return n}},7378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultOptions:()=>S,match:()=>C,default:()=>_});var r=n(2205),o=n(3240);class i{constructor(e,t,n,r){this.stream=e,this.type=t,this.open=n,this.close=r,this.children=[],this.parent=null}get name(){return"tag"===this.type&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(e){return this.removeChild(e),this.children.push(e),e.parent=this,this}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&(this.children.splice(t,1),e.parent=null),this}}var s=function(e,t,n){return"function"==typeof t?function(e,t){const n=e.pos;if(e.eatWhile(t))return new a(e,n,e.pos);e.pos=n}(e,t):new a(e,t,n)};class a{constructor(e,t,n){this.stream=e,this.start=null!=t?t:e.start,this.end=null!=n?n:e.pos,this._value=null}get value(){if(null===this._value){const e=this.stream.start,t=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=e,this.stream.pos=t}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}}const c={throws:!0};var u=function(e){const t=e.pos;if((0,o.nC)(e,60,62,c)||(0,o.nC)(e,91,93,c)||(0,o.nC)(e,40,41,c)||(0,o.nC)(e,123,125,c))return s(e,t)};function l(e){return u(e)||s(e,d)}function f(e){const t=e.pos;if((0,o.Kv)(e)){const n=e.pos;let r,o;e.pos=t,e.next(),r=e.start=e.pos,e.pos=n,e.backUp(1),o=e.pos;const i=s(e,r,o);return e.pos=n,i}return u(e)||function(e){return s(e,h)}(e)}function d(e){return 61!==e&&!p(e)&&!(0,o.Wd)(e)}function p(e){return 62===e||47===e}function h(e){return!(isNaN(e)||(0,o.LN)(e)||(0,o.Wd)(e)||p(e))}var m=function(e){const t=e.pos;if(e.eat(60)){const n={type:e.eat(47)?"close":"open"};if((n.name=function(e){return s(e,g)}(e))&&("close"!==n.type&&(n.attributes=function(e){const t=[];let n;for(;!e.eof();)if(e.eatWhile(o.Wd),n={start:e.pos},n.name=l(e))e.eat(61)?n.value=f(e):n.boolean=!0,n.end=e.pos,t.push(n);else{if(p(e.peek()))break;e.next()}return t}(e),e.eatWhile(o.Wd),n.selfClosing=e.eat(47)),e.eat(62)))return Object.assign(s(e,t),n)}return e.pos=t,null};function g(e){return(0,o.bJ)(e)||58===e||46===e||45===e||95===e}function b(e,t){const n=e.pos;for(let r=0;re.charCodeAt(0)))}const x=y("\x3c!--"),w=y("--\x3e"),k=y(""),S={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function C(e){if(60===e.peek())return function(e){const t=e.pos;if(v(e,x,w,!0)){const n=s(e,t);return n.type="comment",n}return null}(e)||function(e){const t=e.pos;if(v(e,k,T,!0)){const n=s(e,t);return n.type="cdata",n}return null}(e)||m(e)}function E(e,t){const n=e.pos;for(;!e.eof();){if(b(e,t))return e.pos=e.start,m(e);e.next()}return e.pos=n,null}function A(e){return e[e.length-1]}const _=function(e,t){t=Object.assign({},S,t);const n="string"==typeof e?new r.Z(e):e,o=new i(n,"root"),s=new Set(t.empty),a=t.special.reduce(((e,t)=>e.set(t,y(``))),new Map),c=(e,n)=>e.selfClosing||!t.xml&&s.has(n);let u,l,f,d=[o];for(;!n.eof();)if(u=C(n))if(f=(p=u).name?p.name.value.toLowerCase():`#${p.type}`,"open"===u.type)l=new i(n,"tag",u),A(d).addChild(l),a.has(f)?l.close=E(n,a.get(f)):c(u,f)||d.push(l);else if("close"===u.type){for(let e=d.length-1;e>0;e--)if(d[e].name.toLowerCase()===f){d[e].close=u,d=d.slice(0,e);break}}else A(d).addChild(new i(n,u.type,u));else n.next();var p;return o}},2791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,extract:()=>g,parse:()=>i});var r=n(9790);const o=h("null",0);function i(e){const t="string"==typeof e?new r.ZP(e):e;let n,i=0,h=21;const m=[];for(;!t.eof();)t.eatWhile(r.FD),t.start=t.pos,s(t)?(0==(1&h)&&l("Unexpected number",t),m.push(a(t.current())),h=10):p(t.peek())?(n=t.next(),f(n)&&16&h?(d(n)&&m.push(c(n,i)),h=21):(0==(2&h)&&l("Unexpected operator",t),m.push(u(n,i)),h=21)):t.eat(40)?(0==(4&h)&&l('Unexpected "("',t),i+=10,h=53):t.eat(41)?(i-=10,32&h?m.push(o):0==(8&h)&&l('Unexpected ")"',t),h=14):l("Unknown character",t);(i<0||i>=10)&&l('Unmatched "()"',t);const g=function(e){const t=[],n=[];let r=0;for(let o=0;o=0;)if(!b(i)){if(s=v(i),41===s)c++;else if(40===s){if(!c)break;c--}else if(!(o.whitespace&&(0,r.Wd)(s)||f(s)||p(s)))break;i.pos--}if(i.pos!==a&&!c){for(;(0,r.Wd)(y(i));)i.pos++;return[i.pos,a]}return null}function b(e){if((0,r.hj)(v(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=v(e),46===t){if(n)break;n=!0}else if(!(0,r.hj)(t))break;e.pos--}return!0}return!1}function v(e){return e.text.charCodeAt(e.pos-1)}function y(e){return e.text.charCodeAt(e.pos)}const x={45:e=>-e},w={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)},k=function(e){if(Array.isArray(e)||(e=i(e)),!e||!e.length)return null;const t=[];let n,r,o;for(let i=0,s=e.length;i1)throw new Error("Invalid Expression (parity)");return t[0]}},9790:(e,t,n)=>{"use strict";function r(e){return e>47&&e<58}function o(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function i(e){return r(e)||s(e)}function s(e){return 95===e||o(e)}function a(e){return 32===e||9===e||160===e}function c(e){return a(e)||10===e||13===e}function u(e){return 39===e||34===e}n.d(t,{ZP:()=>d,u5:()=>f,$9:()=>o,T0:()=>i,QS:()=>s,hj:()=>r,LN:()=>u,Wd:()=>c,FD:()=>a});class l{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new l(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos{"use strict";n.d(t,{Kv:()=>o,LN:()=>i,$9:()=>a,hj:()=>s,bJ:()=>c,Wd:()=>u,nC:()=>f});const r={escape:92,throws:!1};var o=function(e,t){t=t?Object.assign({},r,t):r;const n=e.pos,o=e.peek();if(e.eat(i)){for(;!e.eof();)switch(e.next()){case o:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1};function i(e){return 39===e||34===e}function s(e){return e>47&&e<58}function a(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function c(e){return s(e)||a(e)}function u(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}const l={escape:92,throws:!1};function f(e,t,n,r){r=r?Object.assign({},l,r):l;const i=e.pos;if(e.eat(t)){let s,a=1;for(;!e.eof();)if(!o(e,r))if(s=e.next(),s===t)a++;else if(s===n){if(a--,!a)return e.start=i,!0}else s===r.escape&&e.next();if(e.pos=i,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}},2205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=class{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n}eof(){return this.pos>=this.end}limit(e,t){return new this.constructor(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos{"use strict";var r,o,i,s,a,c,u,l,f,d,p,h,m,g,b,v,y,x,w,k,T,S,C,E,A,_;n.r(t),n.d(t,{FileType:()=>ze,doComplete:()=>mi,emmetSnippetField:()=>Si,expandAbbreviation:()=>Ri,extractAbbreviation:()=>Ii,extractAbbreviationFromText:()=>$i,getDefaultSnippets:()=>_i,getDefaultSyntax:()=>Ai,getEmmetMode:()=>qi,getExpandOptions:()=>Pi,getSyntaxType:()=>Ei,isAbbreviationValid:()=>Oi,isStyleSheet:()=>Ci,parseAbbreviation:()=>Fi,updateExtensionsPath:()=>zi}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ce.objectLiteral(t)&&ce.uinteger(t.line)&&ce.uinteger(t.character)}}(i||(i={})),function(e){e.create=function(e,t,n,r){if(ce.uinteger(e)&&ce.uinteger(t)&&ce.uinteger(n)&&ce.uinteger(r))return{start:i.create(e,t),end:i.create(n,r)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return ce.objectLiteral(t)&&i.is(t.start)&&i.is(t.end)}}(s||(s={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ce.defined(t)&&s.is(t.range)&&(ce.string(t.uri)||ce.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ce.defined(t)&&s.is(t.targetRange)&&ce.string(t.targetUri)&&(s.is(t.targetSelectionRange)||ce.undefined(t.targetSelectionRange))&&(s.is(t.originSelectionRange)||ce.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ce.numberRange(t.red,0,1)&&ce.numberRange(t.green,0,1)&&ce.numberRange(t.blue,0,1)&&ce.numberRange(t.alpha,0,1)}}(u||(u={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return s.is(t.range)&&u.is(t.color)}}(l||(l={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ce.string(t.label)&&(ce.undefined(t.textEdit)||x.is(t))&&(ce.undefined(t.additionalTextEdits)||ce.typedArray(t.additionalTextEdits,x.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(d||(d={})),function(e){e.create=function(e,t,n,r,o){var i={startLine:e,endLine:t};return ce.defined(n)&&(i.startCharacter=n),ce.defined(r)&&(i.endCharacter=r),ce.defined(o)&&(i.kind=o),i},e.is=function(e){var t=e;return ce.uinteger(t.startLine)&&ce.uinteger(t.startLine)&&(ce.undefined(t.startCharacter)||ce.uinteger(t.startCharacter))&&(ce.undefined(t.endCharacter)||ce.uinteger(t.endCharacter))&&(ce.undefined(t.kind)||ce.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ce.defined(t)&&a.is(t.location)&&ce.string(t.message)}}(h||(h={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(m||(m={})),function(e){e.Unnecessary=1,e.Deprecated=2}(g||(g={})),function(e){e.is=function(e){var t=e;return null!=t&&ce.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,o,i){var s={range:e,message:t};return ce.defined(n)&&(s.severity=n),ce.defined(r)&&(s.code=r),ce.defined(o)&&(s.source=o),ce.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return ce.defined(n)&&s.is(n.range)&&ce.string(n.message)&&(ce.number(n.severity)||ce.undefined(n.severity))&&(ce.integer(n.code)||ce.string(n.code)||ce.undefined(n.code))&&(ce.undefined(n.codeDescription)||ce.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ce.string(n.source)||ce.undefined(n.source))&&(ce.undefined(n.relatedInformation)||ce.typedArray(n.relatedInformation,h.is))}}(v||(v={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.title)&&ce.string(t.command)}}(y||(y={})),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 ce.objectLiteral(t)&&ce.string(t.newText)&&s.is(t.range)}}(x||(x={})),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&&ce.objectLiteral(t)&&ce.string(t.label)&&(ce.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ce.string(t.description)||void 0===t.description)}}(w||(w={})),function(e){e.is=function(e){return"string"==typeof e}}(k||(k={})),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 x.is(t)&&(w.is(t.annotationId)||k.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ce.defined(t)&&$.is(t.textDocument)&&Array.isArray(t.edits)}}(S||(S={})),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&&ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ce.string(t.oldUri)&&ce.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(E||(E={})),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&&ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ce.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ce.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(A||(A={})),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 ce.string(e.kind)?C.is(e)||E.is(e)||A.is(e):S.is(e)})))}}(_||(_={}));var j,I,$,O,P,N,F,R,z,M,L,U,W,B,q,D,V,H,G,J,Z,Q,X,K,Y,ee,te,ne,re,oe,ie,se=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=x.insert(e,t):k.is(n)?(o=n,r=T.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=T.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=x.replace(e,t):k.is(n)?(o=n,r=T.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=T.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=x.del(e):k.is(t)?(r=t,n=T.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=T.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}(),ae=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(k.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 ae(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(S.is(e)){var n=new se(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new se(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($.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:o=[]};this._workspaceEdit.documentChanges.push(n),r=new se(o,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 o=[];this._workspaceEdit.changes[e]=o,r=new se(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ae,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,o,i;if(w.is(t)||k.is(t)?r=t:n=t,void 0===r?o=C.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),o=C.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},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 o,i,s;if(w.is(n)||k.is(n)?o=n:r=n,void 0===o?i=E.create(e,t,r):(s=k.is(o)?o:this._changeAnnotations.manage(o),i=E.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},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,o,i;if(w.is(t)||k.is(t)?r=t:n=t,void 0===r?o=A.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),o=A.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)}}(j||(j={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)&&ce.integer(t.version)}}(I||(I={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)&&(null===t.version||ce.integer(t.version))}}($||($={})),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 ce.defined(t)&&ce.string(t.uri)&&ce.string(t.languageId)&&ce.integer(t.version)&&ce.string(t.text)}}(O||(O={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(P||(P={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(P||(P={})),function(e){e.is=function(e){var t=e;return ce.objectLiteral(e)&&P.is(t.kind)&&ce.string(t.value)}}(N||(N={})),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}(F||(F={})),function(e){e.PlainText=1,e.Snippet=2}(R||(R={})),function(e){e.Deprecated=1}(z||(z={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ce.string(t.newText)&&s.is(t.insert)&&s.is(t.replace)}}(M||(M={})),function(e){e.asIs=1,e.adjustIndentation=2}(L||(L={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(W||(W={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ce.string(t)||ce.objectLiteral(t)&&ce.string(t.language)&&ce.string(t.value)}}(B||(B={})),function(e){e.is=function(e){var t=e;return!!t&&ce.objectLiteral(t)&&(N.is(t.contents)||B.is(t.contents)||ce.typedArray(t.contents,B.is))&&(void 0===e.range||s.is(e.range))}}(q||(q={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;s--){var a=o[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(u,r.length),i=c}return r}}(ie||(ie={}));var ce,ue,le=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 i.create(0,e);for(;ne?r=o:n=o+1}var s=n-1;return i.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+1=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function de(e){return 10===e||13===e||8232===e||8233===e}function pe(e){return e>=48&&e<=57}function he(e,t,n){void 0===n&&(n=ue.DEFAULT);var r=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,o="",i=0,s=16,a=0,c=0,u=0,l=0,f=0;function d(t,n){for(var o=0,i=0;o=48&&s<=57)i=16*i+s-48;else if(s>=65&&s<=70)i=16*i+s-65+10;else{if(!(s>=97&&s<=102))break;i=16*i+s-97+10}r++,o++}return o=n)return i=n,s=17;var t=e.charCodeAt(r);if(fe(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(fe(t));return s=15}if(de(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),a++,u=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),f=2;break}var i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(de(i)){t+=e.substring(o,r),f=2;break}f=6}r++}else{if(t+=e.substring(o,r),++r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=d(4,!0);s>=0?t+=String.fromCharCode(s):f=4;break;default:f=5}o=r}}return t}(),s=10;case 47:var p=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:p,getToken:function(){return s},getTokenValue:function(){return o},getTokenOffset:function(){return i},getTokenLength:function(){return r-i},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return i-l},getTokenError:function(){return f}}}(e,!1);function o(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function i(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=o(t.onObjectBegin),a=i(t.onObjectProperty),c=o(t.onObjectEnd),u=o(t.onArrayBegin),l=o(t.onArrayEnd),f=i(t.onLiteralValue),d=i(t.onSeparator),p=o(t.onComment),h=i(t.onError),m=n&&n.disallowComments,g=n&&n.allowTrailingComma;function b(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:m||v(11);break;case 2:v(12);break;case 6:v(16)}switch(e){case 12:case 13:m?v(10):p();break;case 16:v(1);break;case 15:case 14:break;default:return e}}}function v(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),h(e),t.length+n.length>0)for(var o=r.getToken();17!==o;){if(-1!==t.indexOf(o)){b();break}if(-1!==n.indexOf(o))break;o=b()}}function y(e){var t=r.getTokenValue();return e?f(t):a(t),b(),!0}return b(),17===r.getToken()?!!n.allowEmptyContent||(v(4,[],[]),!1):function e(){switch(r.getToken()){case 3:return function(){u(),b();for(var t=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||v(4,[],[]),d(","),b(),4===r.getToken()&&g)break}else t&&v(6,[],[]);e()||v(4,[],[4,5]),t=!0}return l(),4!==r.getToken()?v(8,[4],[]):b(),!0}();case 1:return function(){s(),b();for(var t=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||v(4,[],[]),d(","),b(),2===r.getToken()&&g)break}else t&&v(6,[],[]);(10!==r.getToken()?(v(3,[],[2,5]),0):(y(!1),6===r.getToken()?(d(":"),b(),e()||v(4,[],[2,5])):v(5,[],[2,5]),1))||v(4,[],[2,5]),t=!0}return c(),2!==r.getToken()?v(7,[2],[]):b(),!0}();case 10:return y(!0);default:return function(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(v(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return b(),!0}()}}()?(17!==r.getToken()&&v(9,[],[]),!0):(v(4,[],[]),!1)}!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(ce||(ce={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ue||(ue={}));const me={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},ge={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]};var be,ve,ye,xe=(be=function(e,t){return(be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}be(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});if("object"==typeof process)ye="win32"===process.platform;else if("object"==typeof navigator){var we=navigator.userAgent;ye=we.indexOf("Windows")>=0}var ke=/^\w[\w\d+.-]*$/,Te=/^\//,Se=/^\/\//,Ce="",Ee="/",Ae=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,_e=function(){function e(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||Ce,this.authority=e.authority||Ce,this.path=e.path||Ce,this.query=e.query||Ce,this.fragment=e.fragment||Ce):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||Ce,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ee&&(t=Ee+t):t=Ee}return t}(this.scheme,n||Ce),this.query=r||Ce,this.fragment=o||Ce,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&&!ke.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Te.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(Se.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,i))}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 Ne(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,o=e.query,i=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=Ce),void 0===n?n=this.authority:null===n&&(n=Ce),void 0===r?r=this.path:null===r&&(r=Ce),void 0===o?o=this.query:null===o&&(o=Ce),void 0===i?i=this.fragment:null===i&&(i=Ce),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new Ie(t,n,r,o,i)},e.parse=function(e,t){void 0===t&&(t=!1);var n=Ae.exec(e);return n?new Ie(n[2]||Ce,Le(n[4]||Ce),Le(n[5]||Ce),Le(n[7]||Ce),Le(n[9]||Ce),t):new Ie(Ce,Ce,Ce,Ce,Ce)},e.file=function(e){var t=Ce;if(ye&&(e=e.replace(/\\/g,Ee)),e[0]===Ee&&e[1]===Ee){var n=e.indexOf(Ee,2);-1===n?(t=e.substring(2),e=Ee):(t=e.substring(2,n),e=e.substring(n)||Ee)}return new Ie("file",t,e,Ce,Ce)},e.from=function(e){return new Ie(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),Fe(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new Ie(t);return n._formatted=t.external,n._fsPath=t._sep===je?t.fsPath:null,n}return t},e}(),je=ye?1:void 0,Ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return xe(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Ne(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?Fe(this,!0):(this._formatted||(this._formatted=Fe(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=je),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}(_e),$e=((ve={})[58]="%3A",ve[47]="%2F",ve[63]="%3F",ve[35]="%23",ve[91]="%5B",ve[93]="%5D",ve[64]="%40",ve[33]="%21",ve[36]="%24",ve[38]="%26",ve[39]="%27",ve[40]="%28",ve[41]="%29",ve[42]="%2A",ve[43]="%2B",ve[44]="%2C",ve[59]="%3B",ve[61]="%3D",ve[32]="%20",ve);function Oe(e,t){for(var n=void 0,r=-1,o=0;o=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=$e[i];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=s):-1===r&&(r=o)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function Pe(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,ye&&(n=n.replace(/\//g,"\\")),n}function Fe(e,t){var n=t?Pe:Oe,r="",o=e.scheme,i=e.authority,s=e.path,a=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=Ee,r+=Ee),i){var u=i.indexOf("@");if(-1!==u){var l=i.substr(0,u);i=i.substr(u+1),-1===(u=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,u),!1),r+=":",r+=n(l.substr(u+1),!1)),r+="@"}-1===(u=(i=i.toLowerCase()).indexOf(":"))?r+=n(i,!1):(r+=n(i.substr(0,u),!1),r+=i.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/"+String.fromCharCode(f+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s=String.fromCharCode(f+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),c&&(r+="#",r+=t?c:Oe(c,!1)),r}function Re(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Re(e.substr(3)):e}}var ze,Me=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Le(e){return e.match(Me)?e.replace(Me,(function(e){return Re(e)})):e}!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(ze||(ze={}));const Ue=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),We=".".charCodeAt(0);function Be(e){const t=[];for(const n of e)0===n.length||1===n.length&&n.charCodeAt(0)===We||(2===n.length&&n.charCodeAt(0)===We&&n.charCodeAt(1)===We?t.pop():t.push(n));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}function qe(e,...t){const n=e.path.split("/");for(const e of t)n.push(...e.split("/"));return e.with({path:Be(n)})}var De=n(1669),Ve=n(9790);function He(e){return e.tokens[e.pos]}function Ge(e){return e.tokens[e.pos++]}function Je(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function Ze(e){return e.pos=65&&t<=90}return!1}function mt(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function gt(e){return ut(e,"class")}function bt(e){return ct(e,"attribute",!0)}function vt(e){return ct(e,"attribute",!1)}function yt(e){return ct(e,"expression",!0)}function xt(e){return ct(e,"group",!0)}function wt(e){return!e.name&&!e.value&&!e.attributes}function kt(e){return ut(e,"child")}function Tt(e){return ut(e,"sibling")}function St(e){return ut(e,"climb")}function Ct(e){return ut(e,"close")}function Et(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function At(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let r="";if(e.eatWhile(Ve.hj)?(t=Number(e.current()),r=e.eat(58)?_t(e):""):(0,Ve.$9)(e.peek())&&(r=_t(e)),e.eat(125))return{type:"Field",index:t,name:r,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let r=!1,o=1,i=0;if(e.eat(64)){for(;e.eat(94);)i++;r=e.eat(45),e.start=e.pos,e.eatWhile(Ve.hj)&&(o=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:r,base:o,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(Ve.hj)?n=Number(e.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Ve.Wd))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let r="";for(;!e.eof();){if(Et(e)){r+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||jt(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!Ft(n))break;if(It(n,t)||$t(n,t)||(0,Ve.LN)(n)||Ot(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=Pt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if((0,Ve.LN)(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=Ot(t);if(n)return{type:"Bracket",open:Nt(t),context:n,start:e.pos++,end:e.pos}}(e)}function _t(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function jt(e,t){const n=Pt(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function It(e,t){return(0,Ve.Wd)(e)&&!t.expression}function $t(e,t){return 42===e&&!t.attribute&&!t.expression}function Ot(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function Pt(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function Nt(e){return 123===e||91===e||40===e}function Ft(e){return(0,Ve.T0)(e)||45===e||58===e||33===e}const Rt={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},zt={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>Rt[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const r=t.repeaters.length-1,o=t.repeaters[r];if(o&&(n=e.reverse?e.base+o.count-o.value-1:e.base+o.value,e.parent)){const i=Math.max(0,r-e.parent);if(i!==r){const e=t.repeaters[i];n+=o.count*e.value}}let i=String(n);for(;i.lengthe.value};function Mt(e,t){if(!zt[e.type])throw new Error(`Unknown token ${e.type}`);return zt[e.type](e,t)}const Lt=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Ut=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Wt(e,t){let n=[];if(e.repeat){const r=e.repeat,o=Object.assign({},r);let i;o.count=o.implicit&&Array.isArray(t.text)?t.cleanText.length:o.count||1,t.repeaters.push(o);for(let r=0;re.trim())):t.text);const o={type:"Abbreviation",children:qt(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var o;let i;if(r=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e"href"===e.name));o?o.value||(o.value=[r]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}(e,n)}}return o}(function(e,t={}){const n={tokens:r=e,start:0,pos:0,size:r.length};var r;const o=Ke(n,t);if(Ze(n))throw Xe(n,"Unexpected character");return o}("string"==typeof e?function(e){const t=new Ve.ZP(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let o,i=0;for(;!t.eof();){if(i=t.peek(),o=At(t,r),!o)throw t.error("Unexpected character");n.push(o),"Quote"===o.type?r.quote=i===r.quote?0:i:"Bracket"===o.type&&(r[o.context]+=o.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof Ve.u5&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}};function Yt(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let r="";if(e.eatWhile(Ve.hj)?(n=Number(e.current()),r=e.eat(58)?en(e):""):(0,Ve.$9)(e.peek())&&(r=en(e)),e.eat(125))return{type:"Field",index:n,name:r,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,r=e.eatWhile(Ve.hj),o=e.pos;if(e.eat(46)){const t=e.eatWhile(Ve.hj);r||t||(e.pos=o)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(Ve.QS),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let r="",o="";if(e.eatWhile(sn)?(r=e.substring(n,e.pos),o=nn(e)):e.eat(116)?(r="0",o=nn(e)||"0"):o=nn(e),r||o||e.eof()){const{r:n,g:i,b:s,a}=function(e,t){let n="0",r="0",o="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=r=o=e+e;break;case 2:n=r=o=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],o=e[2]+e[2];break;default:n=(e+=e).slice(0,2),r=e.slice(2,4),o=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(o,16),a:i}}(r,o);return{type:"ColorValue",r:n,g:i,b:s,a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return tn(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if((0,Ve.LN)(t)){for(e.pos++;!e.eof();){if(e.eat(t)){r=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(r?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||rn(e)||function(e){const t=e.pos;if(e.eatWhile(Ve.Wd))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(on)?e.eatWhile(n?an:cn):e.eat(Ve.QS)?e.eatWhile(t?cn:an):(e.eat(46),e.eatWhile(cn)),n!==e.pos)return e.start=n,tn(e,e.start=n)}(e,t)}function en(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function tn(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function nn(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(Ve.hj)?e.current():"1"):""}function rn(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function on(e){return 64===e||36===e}function sn(e){return(0,Ve.hj)(e)||(0,Ve.$9)(e,65,70)}function an(e){return(0,Ve.T0)(e)||45===e}function cn(e){return(0,Ve.QS)(e)||37===e||47===e}function un(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function ln(e,t){let n=0,r=0;for(;t.length;){const e=(o=t)[o.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,r||(r=e.end),t.pop()}var o;n!==r&&t.push(tn(e,n,r))}function fn(e){return e.tokens[e.pos]}function dn(e){return e.pos=0;t--){const n=e[t];if(Fn(n))return n}}(t),o=n.context?n.context.name:"",i=((r?r.name:o)||"").toLowerCase();e.name=Jn[i]||(Vn(i,n)?"span":"div")}const Qn={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},Xn=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Kn(e,t){return Math.floor(Math.random()*(t-e)+e)}function Yn(e,t){const n=e.length,r=Math.min(n,t),o=[];for(;o.length3&&t<=6?Kn(0,1):t>6&&t<=12?Kn(0,2):Kn(1,4);for(let o,i=0;i/^[a-z]\-/i.test(e),cr=e=>/^[a-z]/i.test(e);function ur(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=mr(n.value);break}e._bem=lr(t)}return e._bem}function lr(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:dr(t)}}function fr(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=ur(t);if(e.block)return e.block}}while(0{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,r,i,n,o),n.current=a,n.parent=s},o=(e,t,o)=>{n.ancestors.push(n.current),r(e,t,o),n.ancestors.pop()};e.children.forEach(r)}function vr(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:zn(e.options)}}const yr=[{type:"Field",index:0,name:""}];function xr(e){return!!e&&!e.name&&!e.attributes}function wr(e,t){return!!e&&Vn(e,t)}function kr(e){return"object"==typeof e&&"Field"===e.type}function Tr(e,t){const{out:n}=t;let r=-1;for(const o of e)"string"==typeof o?Ln(n,o):(Wn(n,t.field+o.index,o.name),o.index>r&&(r=o.index));-1!==r&&(t.field+=r+1)}function Sr(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function Cr(e){const t=[],n={pos:0,text:e};let r,o=n.pos,i=n.pos;for(;n.pos=65&&e<=90}function jr(e){return _r(e)||e>47&&e<58||95===e||45===e}function Ir(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function $r(e,t,n){const r={},{out:o}=n;for(const t of e.attributes)t.name&&t.value&&(r[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?Ln(o,e):r[e.name]&&(Ln(o,e.before),Tr(r[e.name],n),Ln(o,e.after))}const Or=/^<([\w\-:]+)[\s>]/;function Pr(e,t){const n=vr(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Cr(t["comment.before"]):void 0,after:t["comment.after"]?Cr(t["comment.after"]):void 0}}(t),br(e,Nr,n),n.out.value}function Nr(e,t,n,r,o){const{out:i,config:s}=r,a=zr(e,t,n,r),c=function(e){const{config:t,parent:n}=e;return!n||xr(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(r);if(i.level+=c,a&&Un(i,!0),e.name){const t=function(e,t){return Gn(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){Ir(e,t)&&t.comment.before&&$r(e,t.comment.before,t)}(e,r),Ln(i,`<${t}`),e.attributes)for(const t of e.attributes)Sr(t)&&Fr(t,r);if(!e.selfClosing||e.children.length||e.value){if(Ln(i,">"),!Rr(e,r,o)){if(e.value){const t=e.value.some(Mr)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=Or.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&Un(r.out,++i.level),Tr(e.value,r),t&&Un(r.out,--i.level)}if(e.children.forEach(o),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&Un(r.out,++i.level),Tr(yr,r),t&&Un(r.out,--i.level)}}Ln(i,``),function(e,t){Ir(e,t)&&t.comment.after&&$r(e,t.comment.after,t)}(e,r)}else Ln(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!Rr(e,r,o)&&e.value&&(Tr(e.value,r),e.children.forEach(o));if(a&&t===n.length-1&&r.parent){const e=xr(r.parent)?0:1;Un(i,i.level-e)}i.level-=c}function Fr(e,t){const{out:n,config:r}=t;if(e.name){const o=Bn(e.name,r),i=qn(e,r,!0),s=qn(e,r);let a=e.value;Dn(e,r)&&!a?r.options["output.compactBoolean"]||(a=[o]):a||(a=yr),Ln(n," "+o),a?(Ln(n,"="+i),Tr(a,t),Ln(n,s)):"html"!==r.options["output.selfClosingStyle"]&&Ln(n,"="+i+s)}}function Rr(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(kr);if(-1!==r){Tr(e.value.slice(0,r),t);const o=t.out.line;let i=r+1;return e.children.forEach(n),t.out.line!==o&&"string"==typeof e.value[i]&&Ln(t.out,e.value[i++].trimLeft()),Tr(e.value.slice(i),t),!0}}return!1}function zr(e,t,n,r){const{config:o,parent:i}=r;if(!o.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&xr(i)&&1===n.length)return!1;if(xr(e)&&(xr(n[t-1])||xr(n[t+1])||e.value.some(Mr)||e.value.some(kr)&&e.children.length))return!0;if(Vn(e,o)){if(0===t){for(let e=0;e=o.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(Ln(t.out,"#"),Tr(n.value,t)))}(a,r),function(e,t){if(e.length){const{out:n,config:r,options:o}=t;o.beforeAttribute&&Ln(n,o.beforeAttribute);for(let i=0;in&&(n=r)}o.level++;for(let s=0;s{t(e,r,n),r.push(e),e.children.forEach(o),r.pop()};e.children.forEach(o)}(e=function(e,t){const n=[],r=t.options["output.reverseAttributes"],o=e=>{const i=e.name&&t.snippets[e.name];if(!i||n.includes(i))return null;const s=Kt(i,t);n.push(i),Rn(s,o),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],o=e.attributes||[];t.attributes=r?o.concat(n):n.concat(o)}c=t,(a=e).selfClosing&&(c.selfClosing=!0),null!=a.value&&(c.value=a.value),a.repeat&&(c.repeat=a.repeat)}var a,c;return s};return Rn(e,o),e}(e,t),Hr,t),t.text=null!=n?n:t.text,e}function Vr(e,t){return(qr[t.syntax]||Pr)(e,t)}function Hr(e,t,n){!function(e,t,n){!e.name&&e.attributes&&Zn(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],r={};for(const o of e.attributes)if(o.name){const e=o.name;if(e in r){const n=r[e];"class"===e?n.value=$n(n.value,o.value," "):On(n,o,t)}else n.push(r[e]=Object.assign({},o))}else n.push(o);e.attributes=n}(e,n),function(e,t,n){let r;if(e.name&&(r=e.name.match(Xn))){const o=Qn[r[1]]||Qn.latin,i=r[2]?Math.max(1,Number(r[2])):30,s=Kn(i,r[3]?Math.max(i,Number(r[3].slice(1))):i),a=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[nr(o,s,!a||0===a.value)],e.repeat&&t.length>1&&Zn(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(or))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(rr)}(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=ur(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(gr),t.block=dr(t.classNames),hr(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=ur(e),o=[],{options:i}=n,s=t.slice(1).concat(e);for(let e of r.classNames){let t,r="";const a=e;(t=e.match(ir))&&(r=fr(s,t[1].length,n.context)+i["bem.element"]+t[2],o.push(r),e=e.slice(t[0].length)),(t=e.match(sr))&&(r||(r=fr(s,t[1].length),o.push(r)),o.push(`${r}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===a&&o.push(a)}const a=o.filter(gr);a.length&&hr(e,a.join(" "))}(e,t,n)}(e,t,n)}const Gr=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Jr={value:!0};function Zr(e,t){const n=t.match(Gr);if(n){const t={},r=n[2]?n[2].split("|").map(Xr):[];for(const e of r)for(const n of e)Yr(n,t);return{type:"Property",key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function Qr(e,t){return e.key===t.key?0:e.keyo)return 0;const i=Math.min(r,o),s=Math.max(r,o);let a=1,c=1,u=s,l=0,f=0,d=!1,p=!1;for(;a>4).toString(16)}function so(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}function ao(e,t){var n;const r=zn(t.options),o=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter((e=>e.snippet)));for(let n=0;nt.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const r=n.options["stylesheet.json"],o=r?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!o||o.unit&&"px"!==o.unit){const o=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);r&&Mn(t,o);for(let r=0;r0)}}function uo(e,t,n){e.important&&(n&&Mn(t," "),Mn(t,"!important"))}function lo(e,t,n){for(let r=0,o=-1;r"Raw"===e.type));if("@@property"===t.context.name)return e.filter((e=>"Property"===e.type))}return e}(r,t);for(const n of e)ho(n,o,t);return e}function ho(e,t,n){if(!function(e,t){let n=null;const r=1===e.value.length?e.value[0]:null;if(r&&1===r.value.length){const e=r.value[0];"FunctionCall"===e.type&&"lg"===e.name&&(n=e)}return!(!n&&"lg"!==e.name)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[yo(wo(0,""))]},t.context||(e.name="background-image"),e.value=[yo(n)],!0)}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(So(n)){const o=n.context.name,i=t.find((e=>"Property"===e.type&&e.property===o));mo(e,n,i,r),e.snippet=i}else if(e.name){const o=go(e.name,t,r,!0);e.snippet=o,o&&("Property"===o.type?function(e,t,n){const r=function(e,t){for(let n=0,r=0;nTo(e,n)))}}(e,o,n):function(e,t){let n,r=0;const o=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],s=[];for(;n=o.exec(t.value);)r!==n.index&&s.push(xo(t.value.slice(r,n.index))),r=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(wo(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(r);a&&s.push(xo(a)),e.name=void 0,e.value=[yo(...s)]}(e,o))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],r=t.options["stylesheet.unitless"];for(const o of e.value)for(const i of o.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||r.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function mo(e,t,n,r){for(const o of e.value){const e=[];for(const i of o.value)if("Literal"===i.type)e.push(vo(i.value,t,n,r)||i);else if("FunctionCall"===i.type){const o=vo(i.name,t,n,r);o&&"FunctionCall"===o.type?e.push(Object.assign(Object.assign({},o),{arguments:i.arguments.concat(o.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);o.value=e}}function go(e,t,n=0,r=!1){let o=null,i=0;for(const n of t){const t=eo(e,bo(n),r);if(1===t)return n;t&&t>=i&&(i=t,o=n)}return i>=n?o:null}function bo(e){return"string"==typeof e?e:e.key}function vo(e,t,n,r){let o;if(n){if(o=go(e,Object.keys(n.keywords),r))return n.keywords[o];for(const t of n.dependencies)if(o=go(e,Object.keys(t.keywords),r))return t.keywords[o]}return(o=go(e,t.options["stylesheet.keywords"],r))?xo(o):null}function yo(...e){return{type:"CSSValue",value:e}}function xo(e){return{type:"Literal",value:e}}function wo(e,t){return{type:"Field",index:e,name:t}}function ko(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(ko))return!0;return!1}function To(e,t,n={index:1}){let r=[];for(const o of e.value)switch(o.type){case"ColorValue":r.push(wo(n.index++,no(o,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(wo(n.index++,o.value));break;case"NumberValue":r.push(wo(n.index++,`${o.value}${o.unit}`));break;case"StringValue":const e="single"===o.quote?"'":'"';r.push(wo(n.index++,e+o.value+e));break;case"FunctionCall":r.push(wo(n.index++,o.name),xo("("));for(let e=0,i=o.arguments.length;et,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},Ao={markup:{snippets:_o({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}\x3c!--\x3e${0}\x3c!--xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:_o({"!!!":"{doctype html}"})},stylesheet:{snippets:_o({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function _o(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}function jo(e={},t={}){const n=e.type||"markup",r=e.syntax||Co[n];return Object.assign(Object.assign(Object.assign({},Eo),e),{type:n,syntax:r,variables:Io(n,r,"variables",e,t),snippets:Io(n,r,"snippets",e,t),options:Io(n,r,"options",e,t)})}function Io(e,t,n,r,o={}){const i=Ao[e],s=o[e],a=Ao[t],c=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Eo[n]),i&&i[n]),a&&a[n]),s&&s[n]),c&&c[n]),r[n])}function $o(e,t=0){return{text:e,start:t,pos:e.length}}function Oo(e){return e.pos===e.start}function Po(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function No(e){if(!Oo(e))return e.text.charCodeAt(--e.pos)}function Fo(e,t){if(Oo(e))return!1;const n="function"==typeof t?t(Po(e)):t===Po(e);return n&&e.pos--,!!n}function Ro(e,t){const n=e.pos;for(;Fo(e,t););return e.pos=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Do(e){return 32===e||9===e}function Vo(e){return!isNaN(e)&&61!==e&&!Do(e)&&!zo(e)}function Ho(e){return 123===e||40===e||91===e}function Go(e){return 125===e||41===e||93===e}const Jo=e=>e.charCodeAt(0),Zo="#.*:$-_!@%^+>/".split("").map(Jo),Qo={type:"markup",lookAhead:!0,prefix:""};function Xo(e,t=e.length,n={}){const r=Object.assign(Object.assign({},Qo),n);let o;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){for(zo(e.charCodeAt(t))&&t++;ni(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const i=function(e,t,n){if(!n)return 0;const r=$o(e),o=n.split("").map(Jo);let i;for(r.pos=t;!Oo(r);)if(!Ko(r,93,91)&&!Ko(r,125,123)){if(i=r.pos,Yo(r,o))return i;r.pos--}return-1}(e,t,r.prefix||"");if(-1===i)return;const s=$o(e,i);s.pos=t;const a=[];for(;!Oo(s);){if(o=Po(s),a.includes(125)){if(125===o){a.push(o),s.pos--;continue}if(123!==o){s.pos--;continue}}if(ni(o,r.type))a.push(o);else if(ti(o,r.type)){if(a.pop()!==Mo[o])break}else{if(a.includes(93)||a.includes(125)){s.pos--;continue}if(Lo(s)||!ei(o))break}s.pos--}if(!a.length&&s.pos!==t){const r=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:r,location:t-r.length,start:n.prefix?i-n.prefix.length:t-r.length,end:t}}}function Ko(e,t,n){const r=e.pos;if(Fo(e,t))for(;!Oo(e);){if(Fo(e,n))return!0;e.pos--}return e.pos=r,!1}function Yo(e,t){const n=e.pos;let r=!1;for(let n=t.length-1;n>=0&&!Oo(e)&&Fo(e,t[n]);n--)r=0===n;return r||(e.pos=n),r}function ei(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Zo.includes(e)}function ti(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function ni(e,t){return 41===e||"markup"===t&&(93===e||125===e)}const ri=function(e,t){const n=jo(t);return"stylesheet"===n.type?function(e,t){return ao(po(e,t),t)}(e,n):function(e,t){return Vr(Dr(e,t),t)}(e,n)},oi={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};var ii=n(8472);const si=ii.loadMessageBundle(),ai=new Map;let ci;const ui=new Map,li=/^[a-z,A-Z,!,(,[,#,\.\{]/,fi=/^[a-z,A-Z,!,(,[,#,\.]/,di=/^-?[a-z,A-Z,!,@,#]/,pi=/[a-z,A-Z\.]/,hi=[...ge.tags,"lorem"];function mi(e,t,n,r){var o,i;if("never"===r.showExpandedAbbreviation||!qi(n,r.excludeLanguages))return;const s=Ci(n);if(!s){if(!ai.has(n)){const e=Object.assign(Object.assign({},_i(n)),wi[n]);ai.set(n,Object.keys(e))}ci=null!==(o=ai.get(n))&&void 0!==o?o:[]}const a=Ii(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!a)return;const{abbreviationRange:c,abbreviation:u,filter:l}=a,f=xi(e,t).substr(0,t.character);if(function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(f)===u&&f.endsWith(`<${u}`)&&oi.markup.includes(n))return;const d=Pi(n,r,l);let p,h="",m=[];const g=(e,t)=>{if(Oi(e,u)){try{h=ri(t,d),s&&"!important".startsWith(t)&&(h="!important")}catch(e){}h&&!function(e,t,n,r){var o,i;if(Ci(e)&&r){const e=null!==(o=r["stylesheet.between"])&&void 0!==o?o:": ",s=null!==(i=r["stylesheet.after"])&&void 0!==i?i:";";let a=t.indexOf(e[0],Math.max(t.length-e.length,0));return a=a>=0?a:t.length,n===`${t.substring(0,a)}${e}\${0}${s}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+s}if("xml"===e&&hi.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(hi.includes(t.toLowerCase())||ci.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!ge.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}`}(e,t,h,d.options)&&(p=U.create(t),p.textEdit=x.replace(c,vi(yi(h))),p.documentation=bi(h),p.insertTextFormat=R.Snippet,p.detail=si("Emmet abbreviation","Emmet Abbreviation"),p.label=u,p.label+=l?"|"+l.replace(",","|"):"",m=[p])}};if(Ci(n)){if(g(n,u),u.length>4&&me.properties.find((e=>e.startsWith(u))))return W.create([],!0);if(p&&h.length){p.textEdit=x.replace(c,vi(yi(h))),p.documentation=bi(h),p.label=h.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),p.filterText=u;const e=ui.has(n)?ui.get(n):ui.get("css");if(m=gi(null!=e?e:[],u,u,c,d,"Emmet Custom Snippet",!1),!m.find((e=>{var t,n,r;return(null===(t=e.textEdit)||void 0===t?void 0:t.newText)&&(null===(n=e.textEdit)||void 0===n?void 0:n.newText)===(null===(r=null==p?void 0:p.textEdit)||void 0===r?void 0:r.newText)}))){const e=new RegExp(".*"+u.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(u)||e.test(p.label))&&m.push(p)}}}else{g(n,u);let e=u;const t=u.match(/(>|\+)([\w:-]+)$/);if(t&&3===t.length&&(e=t[2]),"xml"!==n){const t=gi(hi,e,u,c,d,"Emmet Abbreviation");m=m.concat(t)}if(!0===r.showAbbreviationSuggestions){const t=gi(ci.filter((e=>!hi.includes(e))),e,u,c,d,"Emmet Abbreviation");p&&t.length>0&&e!==u&&(p.sortText="0"+p.label,t.forEach((e=>{e.filterText=u,e.sortText="9"+u}))),m=m.concat(t)}"html"===n&&m.length>=2&&u.includes(":")&&(null===(i=null==p?void 0:p.textEdit)||void 0===i?void 0:i.newText)===`<${u}>\${0}`&&(m=m.filter((e=>e.label!==u)))}return!0===r.showSuggestionsAsSnippets&&m.forEach((e=>e.kind=F.Snippet)),m.length?W.create(m,!0):void 0}function gi(e,t,n,r,o,i,s=!0){if(!t||!e)return[];const a=[];return e.forEach((e=>{if(!e.startsWith(t.toLowerCase())||s&&e===t.toLowerCase())return;const c=n+e.substr(t.length);let u;try{u=ri(c,o)}catch(e){}if(!u)return;const l=U.create(t+e.substr(t.length));l.documentation=bi(u),l.detail=i,l.textEdit=x.replace(r,vi(yi(u))),l.insertTextFormat=R.Snippet,a.push(l)})),a}function bi(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function vi(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function yi(e){if(!e||!e.trim())return e;let t=-1,n=[],r=!1,o=!1,i=0;const s=e.length;try{for(;i=s||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(a,c);if(r="0"===u,r)break;let l=!1;if(":"==e[i++])for(;iNumber(t)?(t=Number(u),n=[{numberStart:a,numberEnd:c}],o=!l):Number(u)===t&&n.push({numberStart:a,numberEnd:c})}}catch(e){}if(o&&!r)for(let t=0;t=0;e--)if("\n"===r[e]){o=e+1;break}for(let e=n;e`\${${e}${t?":"+t:""}}`;function Ci(e){return oi.stylesheet.includes(e)}function Ei(e){return Ci(e)?"stylesheet":"markup"}function Ai(e){return Ci(e)?"css":"html"}function _i(e){const t=jo({type:Ei(e),syntax:e});return"xml"===e?{}:t.snippets}function ji(e,t){let n;for(let r=0;r<3;r++)if(e.endsWith("|bem",t))t-="bem".length+1,n=n?"bem,"+n:"bem";else if(e.endsWith("|c",t))t-="c".length+1,n=n?"c,"+n:"c";else{if(!e.endsWith("|t",t))break;t-="t".length+1,n=n?"t,"+n:"t"}return{pos:t,filter:n}}function Ii(e,t,n){const r=xi(e,t),o=r.substr(0,t.character),{pos:i,filter:a}=ji(o,t.character),c=a?a.length+1:0,u=Xo(r,i,n);if(u)return{abbreviationRange:s.create(t.line,u.location,t.line,u.location+u.abbreviation.length+c),abbreviation:u.abbreviation,filter:a}}function $i(e,t){if(!e)return;const{pos:n,filter:r}=ji(e,e.length),o=Xo(e,n,Ci(t)||"stylesheet"===t?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0});return o?{abbreviation:o.abbreviation,filter:r}:void 0}function Oi(e,t){if(!t)return!1;if(Ci(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(hi.includes(t.substring(0,t.indexOf("#"))))return!1}return di.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?fi.test(t)&&pi.test(t):li.test(t)&&pi.test(t))}function Pi(e,t,n){var r,o,i,s,a,c,u,l,f,d;(t=null!=t?t:{}).preferences=null!==(r=t.preferences)&&void 0!==r?r:{};const p=t.preferences,h=Ci(e)?e:"css",m=function(e,t){t||(t={});const n=Object.assign({},Ti,t)[e];if(!n||"string"==typeof n)return"xhtml"===n?{selfClosingStyle:"xhtml"}:{};const r={};for(const e in n)switch(e){case"tag_case":r.tagCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_case":r.attributeCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_quotes":r.attributeQuotes=n[e];break;case"tag_nl":r.format=!0!==n[e]&&!1!==n[e]||n[e];break;case"inline_break":r.inlineBreak=n[e];break;case"self_closing_tag":if(!0===n[e]){r.selfClosingStyle="xml";break}if(!1===n[e]){r.selfClosingStyle="html";break}r.selfClosingStyle=n[e];break;case"compact_bool":r.compactBooleanAttributes=n[e];break;default:r[e]=n[e]}return r}(e,null!==(o=t.syntaxProfiles)&&void 0!==o?o:{}),g=(m&&m.filters?m.filters.split(","):[]).map((e=>e.trim())),b=n&&n.split(",").some((e=>"bem"===e.trim()))||g.includes("bem"),v=n&&n.split(",").some((e=>"c"===e.trim()))||g.includes("c"),y=function(e,t){if(!t||"object"!=typeof t)return{};if(!Ci(e)){const e={};for(const n in t)switch(n){case"filter.commentAfter":e.after=t[n];break;case"filter.commentBefore":e.before=t[n];break;case"filter.commentTrigger":e.trigger=t[n]}return{comment:e}}let n="number"==typeof(null==t?void 0:t["css.fuzzySearchMinScore"])?t["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);const r={fuzzySearchMinScore:n};for(const n in t)switch(n){case"css.floatUnit":r.floatUnit=t[n];break;case"css.intUnit":r.intUnit=t[n];break;case"css.unitAliases":const o={};t[n].split(",").forEach((e=>{if(!e||!e.trim()||!e.includes(":"))return;const t=e.substr(0,e.indexOf(":")),n=e.substr(t.length+1);t.trim()&&n&&(o[t.trim()]=n)})),r.unitAliases=o;break;case`${e}.valueSeparator`:r.between=t[n];break;case`${e}.propertyEnd`:r.after=t[n]}return{stylesheet:r}}(e,t.preferences),x=(null==y?void 0:y.stylesheet)&&y.stylesheet.unitAliases||{},w={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":Si,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},k={"output.tagCase":m.tagCase,"output.attributeCase":m.attributeCase,"output.attributeQuotes":m.attributeQuotes,"output.format":null===(i=m.format)||void 0===i||i,"output.formatSkip":p["format.noIndentTags"],"output.formatForce":p["format.forceIndentationForTags"],"output.inlineBreak":null!==(s=m.inlineBreak)&&void 0!==s?s:p["output.inlineBreak"],"output.compactBoolean":null!==(a=m.compactBooleanAttributes)&&void 0!==a?a:p["profile.allowCompactBoolean"],"output.reverseAttributes":p["output.reverseAttributes"],"output.selfClosingStyle":null!==(u=null!==(c=m.selfClosingStyle)&&void 0!==c?c:p["output.selfClosingStyle"])&&void 0!==u?u:Ni(e),"output.field":Si,"comment.enabled":v,"comment.trigger":p["filter.commentTrigger"],"comment.before":p["filter.commentBefore"],"comment.after":p["filter.commentAfter"],"bem.enabled":b,"bem.element":null!==(l=p["bem.elementSeparator"])&&void 0!==l?l:"__","bem.modifier":null!==(f=p["bem.modifierSeparator"])&&void 0!==f?f:"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":p["css.color.short"],"stylesheet.between":p[`${h}.valueSeparator`],"stylesheet.after":p[`${h}.propertyEnd`],"stylesheet.intUnit":p["css.intUnit"],"stylesheet.floatUnit":p["css.floatUnit"],"stylesheet.unitAliases":x,"stylesheet.fuzzySearchMinScore":p["css.fuzzySearchMinScore"]},T={};[...Object.keys(w),...Object.keys(k)].forEach((e=>{var t;const n=e;T[n]=null!==(t=k[n])&&void 0!==t?t:w[n]}));const S=Object.assign(Object.assign({},w["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);T["stylesheet.unitAliases"]=S;const C=Ei(e),E=(j=t.variables)?Object.assign({},ki,j):ki,A=Ai(e),_="stylesheet"===C?null!==(d=wi[e])&&void 0!==d?d:wi[A]:wi[e];var j;return{type:C,options:T,variables:E,snippets:_,syntax:e,text:void 0,maxRepeat:1e3}}function Ni(e){switch(e){case"xhtml":return"xhtml";case"xml":case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function Fi(e,t){const n=jo(t);return"stylesheet"===t.type?po(e,n):Dr(e,n)}function Ri(e,t){let n;const r=jo(t);return n="stylesheet"===t.type?"string"==typeof e?ri(e,r):ao(e,r):"string"==typeof e?ri(e,r):Vr(e,r),vi(yi(n))}function zi(e,t,n,r){return o=this,i=void 0,a=function*(){if(Bi(),!e.length)return;const o=[];for(let t of e)if(t&&(t=t.trim()),t.length&&"~"===t[0])r&&o.push(qe(r,t.substr(1)));else if(i=t,Ue.test(i))o.push(_e.file(t));else if(n)for(const e of n)o.push(qe(e,t));var i;for(const e of o){try{if((yield t.stat(e)).type!==ze.Directory)continue}catch(e){continue}const n=qe(e,"snippets.json"),r=qe(e,"syntaxProfiles.json");let o;o="function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder:new De.TextDecoder;let i="";try{const e=yield t.readFile(n);i=o.decode(e)}catch(e){}if(i.length)try{const e=Mi(n,i);e.variables&&Li(e.variables),Wi(e)}catch(e){throw Bi(),e}let s="";try{const e=yield t.readFile(r);s=o.decode(e)}catch(e){}if(s.length)try{Ui(Mi(r,s))}catch(e){throw Bi(),e}}},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{c(a.next(e))}catch(e){t(e)}}function r(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}c((a=a.apply(o,i||[])).next())}));var o,i,s,a}function Mi(e,t){let n=[];const r=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=ue.DEFAULT);var r=null,o=[],i=[];function s(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return he(e,{onObjectBegin:function(){var e={};s(e),i.push(o),o=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){o=i.pop()},onArrayBegin:function(){var e=[];s(e),i.push(o),o=e,r=null},onArrayEnd:function(){o=i.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]}(t,n);if(n.length)throw new Error(`Found error ${function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function Li(e){if("object"!=typeof e||!e)throw new Error(si("emmetInvalidVariables","Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));ki=Object.assign({},ki,e)}function Ui(e){if("object"!=typeof e||!e)throw new Error(si("emmetInvalidProfiles","Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));Ti=Object.assign({},Ti,e)}function Wi(e){if("object"!=typeof e||!e)throw new Error(si("emmetInvalidSnippets","Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."));Object.keys(e).forEach((t=>{if(!e[t].snippets)return;const n=Ai(t);let r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),Ci(t)){const e=ui.get(t),n=Object.assign([],e,Object.keys(r));ui.set(t,n)}else for(const e in r)r.hasOwnProperty(e)&&r[e].startsWith("<")&&r[e].endsWith(">")&&(r[e]=`{${r[e]}}`);const o=wi[t],i=function(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}(r),s=Object.assign({},o,i);Object.keys(s),wi[t]=s}))}function Bi(){wi={},ai.clear(),ui.clear(),Ti={},ki={}}function qi(e,t=[]){if(e&&!t.includes(e))return/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?"jsx":"sass-indented"===e?"sass":"jade"===e?"pug":oi.markup.includes(e)||oi.stylesheet.includes(e)?e:void 0}},8849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detector=void 0;const r=n(9126),o=Object.keys(r.typeHandlers),i={56:"psd",66:"bmp",68:"dds",71:"gif",73:"tiff",77:"tiff",82:"webp",105:"icns",137:"png",255:"jpg"};t.detector=function(e){const t=e[0];if(t in i){const n=i[t];if(n&&r.typeHandlers[n].validate(e))return n}return o.find((t=>r.typeHandlers[t].validate(e)))}},7935:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.types=t.setConcurrency=t.disableTypes=t.disableFS=t.imageSize=void 0;const o=n(5747),i=n(5622),s=n(9189),a=n(9126),c=n(8849),u=524288,l=new s.default({concurrency:100,autostart:!0}),f={disabledFS:!1,disabledTypes:[]};function d(e,t){const n=c.detector(e);if(void 0!==n){if(f.disabledTypes.indexOf(n)>-1)throw new TypeError("disabled file type: "+n);if(n in a.typeHandlers){const r=a.typeHandlers[n].calculate(e,t);if(void 0!==r)return r.type=n,r}}throw new TypeError("unsupported file type: "+n+" (file: "+t+")")}function p(e,t){if(Buffer.isBuffer(e))return d(e);if("string"!=typeof e||f.disabledFS)throw new TypeError("invalid invocation. input should be a Buffer");const n=i.resolve(e);if("function"!=typeof t)return d(function(e){const t=o.openSync(e,"r"),{size:n}=o.fstatSync(t);if(n<=0)throw o.closeSync(t),new Error("Empty file");const r=Math.min(n,u),i=Buffer.alloc(r);return o.readSync(t,i,0,r,0),o.closeSync(t),i}(n),n);l.push((()=>function(e){return r(this,void 0,void 0,(function*(){const t=yield o.promises.open(e,"r"),{size:n}=yield t.stat();if(n<=0)throw yield t.close(),new Error("Empty file");const r=Math.min(n,u),i=Buffer.alloc(r);return yield t.read(i,0,r,0),yield t.close(),i}))}(n).then((e=>process.nextTick(t,null,d(e,n)))).catch(t)))}e.exports=t=p,t.default=p,t.imageSize=p,t.disableFS=e=>{f.disabledFS=e},t.disableTypes=e=>{f.disabledTypes=e},t.setConcurrency=e=>{l.concurrency=e},t.types=Object.keys(a.typeHandlers)},8557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readUInt=void 0,t.readUInt=function(e,t,n,r){return n=n||0,e["readUInt"+t+(r?"BE":"LE")].call(e,n)}},9126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandlers=void 0;const r=n(3645),o=n(3552),i=n(1680),s=n(1542),a=n(7163),c=n(7800),u=n(6625),l=n(1558),f=n(2229),d=n(4663),p=n(6221),h=n(7851),m=n(2602),g=n(8531),b=n(9948),v=n(5236);t.typeHandlers={bmp:r.BMP,cur:o.CUR,dds:i.DDS,gif:s.GIF,icns:a.ICNS,ico:c.ICO,j2c:u.J2C,jp2:l.JP2,jpg:f.JPG,ktx:d.KTX,png:p.PNG,pnm:h.PNM,psd:m.PSD,svg:g.SVG,tiff:b.TIFF,webp:v.WEBP}},3645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BMP=void 0,t.BMP={validate:e=>"BM"===e.toString("ascii",0,2),calculate:e=>({height:Math.abs(e.readInt32LE(22)),width:e.readUInt32LE(18)})}},3552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CUR=void 0;const r=n(7800);t.CUR={validate:e=>0===e.readUInt16LE(0)&&2===e.readUInt16LE(2),calculate:e=>r.ICO.calculate(e)}},1680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DDS=void 0,t.DDS={validate:e=>542327876===e.readUInt32LE(0),calculate:e=>({height:e.readUInt32LE(12),width:e.readUInt32LE(16)})}},1542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GIF=void 0;const n=/^GIF8[79]a/;t.GIF={validate(e){const t=e.toString("ascii",0,6);return n.test(t)},calculate:e=>({height:e.readUInt16LE(8),width:e.readUInt16LE(6)})}},7163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICNS=void 0;const n={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function r(e,t){const n=t+4;return[e.toString("ascii",t,n),e.readUInt32BE(n)]}function o(e){const t=n[e];return{width:t,height:t,type:e}}t.ICNS={validate:e=>"icns"===e.toString("ascii",0,4),calculate(e){const t=e.length,n=e.readUInt32BE(4);let i=8,s=r(e,i),a=o(s[0]);if(i+=s[1],i===n)return a;const c={height:a.height,images:[a],width:a.width};for(;i{"use strict";function n(e,t){const n=e.readUInt8(t);return 0===n?256:n}function r(e,t){const r=6+16*t;return{height:n(e,r+1),width:n(e,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ICO=void 0,t.ICO={validate:e=>0===e.readUInt16LE(0)&&1===e.readUInt16LE(2),calculate(e){const t=e.readUInt16LE(4),n=r(e,0);if(1===t)return n;const o=[n];for(let n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.J2C=void 0,t.J2C={validate:e=>"ff4fff51"===e.toString("hex",0,4),calculate:e=>({height:e.readUInt32BE(12),width:e.readUInt32BE(8)})}},1558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JP2=void 0;const n=e=>({height:e.readUInt32BE(4),width:e.readUInt32BE(8)});t.JP2={validate(e){const t=e.toString("hex",4,8),n=e.readUInt32BE(0);if("6a502020"!==t||n<1)return!1;const r=n+4,o=e.readUInt32BE(n);return"66747970"===e.slice(r,r+o).toString("hex",0,4)},calculate(e){const t=e.readUInt32BE(0);let r=t+4+e.readUInt16BE(t+2);switch(e.toString("hex",r,r+4)){case"72726571":return r=r+4+4+(e=>{const t=e.readUInt8(0);let n=1+2*t;return n=n+2+e.readUInt16BE(n)*(2+t),n+2+e.readUInt16BE(n)*(16+t)})(e.slice(r+4)),n(e.slice(r+8,r+24));case"6a703268":return n(e.slice(r+8,r+24));default:throw new TypeError("Unsupported header found: "+e.toString("ascii",r,r+4))}}}},2229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JPG=void 0;const r=n(8557);function o(e){return"45786966"===e.toString("hex",2,6)}function i(e,t){return{height:e.readUInt16BE(t),width:e.readUInt16BE(t+2)}}function s(e,t){const n=e.slice(2,t),o=n.toString("hex",6,8),i="4d4d"===o;if(i||"4949"===o)return function(e,t){const n=r.readUInt(e,16,14,t);for(let o=0;oe.length)return;const s=e.slice(n,i);if(274===r.readUInt(s,16,0,t)){if(3!==r.readUInt(s,16,2,t))return;if(1!==r.readUInt(s,32,4,t))return;return r.readUInt(s,16,8,t)}}}(n,i)}function a(e,t){if(t>e.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(255!==e[t])throw new TypeError("Invalid JPG, marker table corrupted")}t.JPG={validate:e=>"ffd8"===e.toString("hex",0,2),calculate(e){let t,n;for(e=e.slice(4);e.length;){const r=e.readUInt16BE(0);if(o(e)&&(t=s(e,r)),a(e,r),n=e[r+1],192===n||193===n||194===n){const n=i(e,r+5);return t?{height:n.height,orientation:t,width:n.width}:n}e=e.slice(r+2)}throw new TypeError("Invalid JPG, no size found")}}},4663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KTX=void 0,t.KTX={validate:e=>"KTX 11"===e.toString("ascii",1,7),calculate:e=>({height:e.readUInt32LE(40),width:e.readUInt32LE(36)})}},6221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PNG=void 0;const n="CgBI";t.PNG={validate(e){if("PNG\r\n\n"===e.toString("ascii",1,8)){let t=e.toString("ascii",12,16);if(t===n&&(t=e.toString("ascii",28,32)),"IHDR"!==t)throw new TypeError("Invalid PNG");return!0}return!1},calculate:e=>e.toString("ascii",12,16)===n?{height:e.readUInt32BE(36),width:e.readUInt32BE(32)}:{height:e.readUInt32BE(20),width:e.readUInt32BE(16)}}},7851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PNM=void 0;const n={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},r=Object.keys(n),o={default:e=>{let t=[];for(;e.length>0;){const n=e.shift();if("#"!==n[0]){t=n.split(" ");break}}if(2===t.length)return{height:parseInt(t[1],10),width:parseInt(t[0],10)};throw new TypeError("Invalid PNM")},pam:e=>{const t={};for(;e.length>0;){const n=e.shift();if(n.length>16||n.charCodeAt(0)>128)continue;const[r,o]=n.split(" ");if(r&&o&&(t[r.toLowerCase()]=parseInt(o,10)),t.height&&t.width)break}if(t.height&&t.width)return{height:t.height,width:t.width};throw new TypeError("Invalid PAM")}};t.PNM={validate(e){const t=e.toString("ascii",0,2);return r.includes(t)},calculate(e){const t=e.toString("ascii",0,2),r=n[t],i=e.toString("ascii",3).split(/[\r\n]+/);return(o[r]||o.default)(i)}}},2602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PSD=void 0,t.PSD={validate:e=>"8BPS"===e.toString("ascii",0,4),calculate:e=>({height:e.readUInt32BE(14),width:e.readUInt32BE(18)})}},8531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVG=void 0;const n=/"']|"[^"]*"|'[^']*')*>/,r={height:/\sheight=(['"])([^%]+?)\1/,root:n,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},o=2.54,i={in:96,cm:96/o,em:16,ex:8,m:96/o*100,mm:96/o/10,pc:96/72/12,pt:96/72,px:1},s=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(i).join("|")})?$`);function a(e){const t=s.exec(e);if(t)return Math.round(Number(t[1])*(i[t[2]]||1))}function c(e){const t=e.split(" ");return{height:a(t[3]),width:a(t[2])}}t.SVG={validate(e){const t=String(e);return n.test(t)},calculate(e){const t=e.toString("utf8").match(r.root);if(t){const e=function(e){const t=e.match(r.width),n=e.match(r.height),o=e.match(r.viewbox);return{height:n&&a(n[2]),viewbox:o&&c(o[2]),width:t&&a(t[2])}}(t[0]);if(e.width&&e.height)return function(e){return{height:e.height,width:e.width}}(e);if(e.viewbox)return function(e,t){const n=t.width/t.height;return e.width?{height:Math.floor(e.width/n),width:e.width}:e.height?{height:e.height,width:Math.floor(e.height*n)}:{height:t.height,width:t.width}}(e,e.viewbox)}throw new TypeError("Invalid SVG")}}},9948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIFF=void 0;const r=n(5747),o=n(8557);function i(e,t){const n=o.readUInt(e,16,8,t);return(o.readUInt(e,16,10,t)<<16)+n}function s(e){if(e.length>24)return e.slice(12)}const a=["49492a00","4d4d002a"];t.TIFF={validate:e=>a.includes(e.toString("hex",0,4)),calculate(e,t){if(!t)throw new TypeError("Tiff doesn't support buffer");const n="BE"===function(e){const t=e.toString("ascii",0,2);return"II"===t?"LE":"MM"===t?"BE":void 0}(e),a=function(e,t){const n={};let r=e;for(;r&&r.length;){const e=o.readUInt(r,16,0,t),a=o.readUInt(r,16,2,t),c=o.readUInt(r,32,4,t);if(0===e)break;1!==c||3!==a&&4!==a||(n[e]=i(r,t)),r=s(r)}return n}(function(e,t,n){const i=o.readUInt(e,32,4,n);let s=1024;const a=r.statSync(t).size;i+s>a&&(s=a-i-10);const c=Buffer.alloc(s),u=r.openSync(t,"r");return r.readSync(u,c,0,s,i),r.closeSync(u),c.slice(2)}(e,t,n),n),c=a[256],u=a[257];if(!c||!u)throw new TypeError("Invalid Tiff. Missing tags");return{height:u,width:c}}}},5236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBP=void 0,t.WEBP={validate(e){const t="RIFF"===e.toString("ascii",0,4),n="WEBP"===e.toString("ascii",8,12),r="VP8"===e.toString("ascii",12,15);return t&&n&&r},calculate(e){const t=e.toString("ascii",12,16);if(e=e.slice(20,30),"VP8X"===t){const t=e[0],n=0==(1&t);if(0==(192&t)&&n)return function(e){return{height:1+e.readUIntLE(7,3),width:1+e.readUIntLE(4,3)}}(e);throw new TypeError("Invalid WebP")}if("VP8 "===t&&47!==e[0])return function(e){return{height:16383&e.readInt16LE(8),width:16383&e.readInt16LE(6)}}(e);const n=e.toString("hex",3,6);if("VP8L"===t&&"9d012a"!==n)return function(e){return{height:1+((15&e[4])<<10|e[3]<<2|(192&e[2])>>6),width:1+((63&e[2])<<8|e[1])}}(e);throw new TypeError("Invalid WebP")}}},4378:(e,t,n)=>{try{var r=n(1669);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(5717)}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},9189:(e,t,n)=>{var r=n(4378),o=n(8614).EventEmitter;function i(e){if(!(this instanceof i))return new i(e);o.call(this),e=e||{},this.concurrency=e.concurrency||1/0,this.timeout=e.timeout||0,this.autostart=e.autostart||!1,this.results=e.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}function s(){for(var e in this.timers){var t=this.timers[e];delete this.timers[e],clearTimeout(t)}}function a(e){var t=this;function n(e){t.end(e)}this.on("error",n),this.on("end",(function r(o){t.removeListener("error",n),t.removeListener("end",r),e(o,this.results)}))}function c(e){this.session++,this.running=!1,this.emit("end",e)}e.exports=i,e.exports.default=i,r(i,o),["pop","shift","indexOf","lastIndexOf"].forEach((function(e){i.prototype[e]=function(){return Array.prototype[e].apply(this.jobs,arguments)}})),i.prototype.slice=function(e,t){return this.jobs=this.jobs.slice(e,t),this},i.prototype.reverse=function(){return this.jobs.reverse(),this},["push","unshift","splice"].forEach((function(e){i.prototype[e]=function(){var t=Array.prototype[e].apply(this.jobs,arguments);return this.autostart&&this.start(),t}})),Object.defineProperty(i.prototype,"length",{get:function(){return this.pending+this.jobs.length}}),i.prototype.start=function(e){if(e&&a.call(this,e),this.running=!0,!(this.pending>=this.concurrency))if(0!==this.jobs.length){var t=this,n=this.jobs.shift(),r=!0,o=this.session,i=null,s=!1,u=null,l=n.hasOwnProperty("timeout")?n.timeout:this.timeout;l&&(i=setTimeout((function(){s=!0,t.listeners("timeout").length>0?t.emit("timeout",d,n):d()}),l),this.timers[i]=i),this.results&&(u=this.results.length,this.results[u]=null),this.pending++,t.emit("start",n);var f=n(d);f&&f.then&&"function"==typeof f.then&&f.then((function(e){return d(null,e)})).catch((function(e){return d(e||!0)})),this.running&&this.jobs.length>0&&this.start()}else 0===this.pending&&c.call(this);function d(e,a){r&&t.session===o&&(r=!1,t.pending--,null!==i&&(delete t.timers[i],clearTimeout(i)),e?t.emit("error",e,n):!1===s&&(null!==u&&(t.results[u]=Array.prototype.slice.call(arguments,1)),t.emit("success",a,n)),t.session===o&&(0===t.pending&&0===t.jobs.length?c.call(t):t.running&&t.start()))}},i.prototype.stop=function(){this.running=!1},i.prototype.end=function(e){s.call(this),this.jobs.length=0,this.pending=0,c.call(this,e)}},6813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TextDocument:()=>o});class r{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let t of e)if(r.isIncremental(t)){const e=a(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const o=Math.max(e.start.line,0),i=Math.max(e.end.line,0);let c=this._lineOffsets;const u=s(t.text,!1,n);if(i-o===u.length)for(let e=0,t=u.length;ee?r=o:n=o+1}let o=n-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=a(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new r(e,t,n,o)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),r=i(t.map(c),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=0;const s=[];for(const t of r){let r=e.offsetAt(t.range.start);if(ro&&s.push(n.substring(o,r)),t.newText.length&&s.push(t.newText),o=e.offsetAt(t.range.end)}return s.push(n.substr(o)),s.join("")}}(o||(o={}))},800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,o,i,s=n(1926);function a(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],o=n[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}(i=t.MessageFormat||(t.MessageFormat={})).file="file",i.bundle="bundle",i.both="both",(o=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",o.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(r||(r={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r{"use strict";var n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},8472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var r=n(5622),o=n(5747),i=n(1926),s=n(800),a=n(800);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,u,l=Object.prototype.toString;function f(e){return"[object Number]"===l.call(e)}function d(e){return"[object String]"===l.call(e)}function p(e){return JSON.parse(o.readFileSync(e,"utf8"))}function h(e){return function(t,n){for(var r=[],o=2;o=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):s.format(e[t],r):d(n)?(console.warn("Message "+n+" didn't get externalized correctly."),s.format(n,r)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function m(e,t){return c[e]=t,t}function g(e){try{return function(e){var t=p(r.join(e,"nls.metadata.json")),n=Object.create(null);for(var o in t){var i=t[o];n[o]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function b(e,t){var n;if(!0===u.languagePackSupport&&void 0!==u.cacheRoot&&void 0!==u.languagePackId&&void 0!==u.translationsConfigFile&&void 0!==u.translationsConfig)try{n=function(e,t){var n,i,s,a=r.join(u.cacheRoot,e.id+"-"+e.hash+".json"),c=!1,l=!1;try{return n=JSON.parse(o.readFileSync(a,{encoding:"utf8",flag:"r"})),i=a,s=new Date,o.utimes(i,s,s,(function(){})),n}catch(e){if("ENOENT"===e.code)l=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),o.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle "+a+" failed.")})),c=!0}}if(!(n=function(e,t){var n=u.translationsConfig[e.id];if(n){var o=p(n).contents,i=p(r.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in i){var c=i[a],l=o[e.outDir+"/"+a];if(l){for(var f=[],h=0;h0?t.substring(0,i):void 0}if(void 0===t&&(n=r.join(e,"nls.bundle.json"),o.existsSync(n)))return n}(t);if(i)try{return p(i)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=g(t)}return n}function v(e){if(!e)return s.localize;var t=r.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.bundle){var n=function(e){for(var t,n=r.dirname(e);t=r.join(n,"nls.metadata.header.json"),!o.existsSync(t);){var i=r.dirname(n);if(i===n){t=void 0;break}n=i}return t}(e);if(n){var i=r.dirname(n),a=c[i];if(void 0===a)try{var l=JSON.parse(o.readFileSync(n,"utf8"));try{var f=b(l,i);a=m(i,f?{header:l,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),a=m(i,null)}}catch(e){console.error("Failed to read header file",e),a=m(i,null)}if(a){var d=e.substr(i.length+1).replace(/\\/g,"/"),g=a.nlsBundle[d];return void 0===g?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):h(g)}}}if(u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.file)try{var v=p(function(e){var t;if(u.cacheLanguageResolution&&t)t=t;else{if(s.isPseudo||!u.language)t=".nls.json";else for(var n=u.language;n;){var r=".nls."+n+".json";if(o.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}u.cacheLanguageResolution&&(t=t)}return e+t}(e));return Array.isArray(v)?h(v):s.isDefined(v.messages)&&s.isDefined(v.keys)?h(v.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}function y(e){return e&&(d(e.locale)&&(u.locale=e.locale.toLowerCase(),u.language=u.locale,c=Object.create(null)),void 0!==e.messageFormat&&(u.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===u.languagePackSupport&&(u.languagePackSupport=!1)),s.setPseudo("pseudo"===u.locale),v}!function(){if(u={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},d(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];d(n)&&(t=n)}if(d(e.locale)&&(u.locale=e.locale.toLowerCase()),void 0===t?u.language=u.locale:"en"!==t&&(u.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(u.languagePackSupport=e._languagePackSupport),d(e._cacheRoot)&&(u.cacheRoot=e._cacheRoot),d(e._languagePackId)&&(u.languagePackId=e._languagePackId),d(e._translationsConfigFile)){u.translationsConfigFile=e._translationsConfigFile;try{u.translationsConfig=p(u.translationsConfigFile)}catch(t){if(e._corruptedFile){var i=r.dirname(e._corruptedFile);o.exists(i,(function(t){t&&o.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}s.setPseudo("pseudo"===u.locale),c=Object.create(null)}(),t.loadMessageBundle=v,t.config=y,i.default.install(Object.freeze({loadMessageBundle:v,config:y}))},8603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSyntaxFromArgs=t.isValidLocationForEmmetAbbreviation=t.expandEmmetAbbreviation=t.wrapWithAbbreviation=void 0;const r=n(7549),o=n(8472),i=n(4056),s=n(443),a=o.loadMessageBundle(n(5622).join(__dirname,"abbreviationActions.ts")),c=/[\u00a0]*[\d#\-\*\u2022]+\.?/,u=/^#[\da-fA-F]{0,6}$/;function l(){return!0===r.workspace.getConfiguration("emmet").triggerExpansionOnTab?r.commands.executeCommand("tab"):Promise.resolve(!0)}function f(e,t,n,o,s,a){if((0,i.isStyleSheet)(o)){const i=t;if(i&&(i.comments||[]).some((e=>s>=e.start&&s<=e.end)))return!1;if(!n)return!0;const c=e.getText(new r.Range(a.start.line,a.start.character,a.end.line,a.end.character));if(c.startsWith("@"))return!0;if("sass"!==o&&"stylus"!==o&&"property"===n.type){if(n.parent&&"rule"!==n.parent.type&&"at-rule"!==n.parent.type)return!1;const e=n;if(e.terminatorToken&&e.separator&&s>=e.separatorToken.end&&s<=e.terminatorToken.start&&-1===c.indexOf(":"))return u.test(c)||"!"===c;if(!e.terminatorToken&&e.separator&&s>=e.separatorToken.end&&-1===c.indexOf(":"))return u.test(c)||"!"===c;if(u.test(c)||"!"===c)return!1}if("rule"!==n.type&&"at-rule"!==n.type)return!0;const l=n;if(s>l.contentStartToken.end)return!0;if(l.parent&&("rule"===l.parent.type||"at-rule"===l.parent.type)&&l.selectorToken){const t=e.positionAt(s),n=e.positionAt(l.selectorToken.start),r=e.positionAt(l.selectorToken.end);if(t.line!==r.line&&n.character===a.start.character&&n.line===a.start.line)return!0}return!1}const c="<",l=n;let f=0;if(l){if("script"===l.name){const e=(l.attributes||[]).filter((e=>"type"===e.name.toString()))[0],t=e?e.value.toString():"";return i.allowedMimeTypesInScriptTag.indexOf(t)>-1||!(t&&"application/javascript"!==t&&"text/javascript"!==t||!h({language:"javascript"}))}if(!l.open||!l.close||!(l.open.end<=s&&s<=l.close.start))return!1;f=l.open.end;let e=l.firstChild;for(;e&&!(e.end>s);)f=e.end,e=e.nextSibling}const d=e.positionAt(f);let p=e.getText(new r.Range(d.line,d.character,a.start.line,a.start.character));if(p.length>500&&(p=p.substr(p.length-500)),!p.trim())return!0;let m=!0,g=!1,b=p.length-1;if(p[b]===c)return!1;for(;b>=0;){const e=p[b];if(b--,g||!/\s/.test(e))if("?"!==e||p[b]!==c){if(/\s/.test(e)&&p[b]===c)b--;else if(e===c||">"===e)if(b>=0&&"\\"===p[b])b--;else{if(">"===e){if(b>=0&&"="===p[b])continue;break}if(e===c){m=!g;break}}}else b--;else g=!0}return m}function d(e,t,n){if(!t||0===t.length)return Promise.resolve(!1);const o=[];if(!n)return t.sort(((e,t)=>t.rangeToReplace.start.compareTo(e.rangeToReplace.start))).forEach((t=>{const n=p(t);n&&o.push(e.insertSnippet(new r.SnippetString(n),t.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}))})),0===o.length?Promise.resolve(!1):Promise.all(o).then((()=>Promise.resolve(!0)));const i=p(t[0]),s=t.map((e=>e.rangeToReplace));return i?e.insertSnippet(new r.SnippetString(i),s):Promise.resolve(!1)}function p(e){const t=(0,i.getEmmetHelper)(),n=t.getExpandOptions(e.syntax,(0,i.getEmmetConfiguration)(e.syntax),e.filter);let o;e.textToWrap&&(e.textToWrap=e.textToWrap.map((e=>e.replace(/\$\{/g,"\\${"))),e.filter&&e.filter.includes("t")&&(e.textToWrap=e.textToWrap.map((e=>e.replace(c,"").trim()))),n.text=e.textToWrap,n.options&&(e.rangeToReplace.isSingleLine||(n.options["output.inlineBreak"]=1),e.indent&&(n.options["output.indent"]=e.indent),e.baseIndent&&(n.options["output.baseIndent"]=e.baseIndent)));try{o=t.expandAbbreviation(e.abbreviation,n)}catch(e){r.window.showErrorMessage("Failed to expand abbreviation")}return o}function h(e){const t=(0,i.getMappingForIncludedLanguages)(),n=e.language,o=e.parentMode,s=r.workspace.getConfiguration("emmet").excludeLanguages?r.workspace.getConfiguration("emmet").excludeLanguages:[];if(s.includes(n))return;let a=(0,i.getEmmetMode)(t[n]??n,t,s);return a||(a=(0,i.getEmmetMode)(t[o]??o,t,s)),a}t.wrapWithAbbreviation=async function(e){if(!(0,i.validate)(!1))return!1;const t=r.window.activeTextEditor,n=t.document;(e=e||{}).language||(e.language=n.languageId);const o=h(e)||"html",c=(0,s.getRootNode)(n,!0),u=(0,i.getEmmetHelper)(),l=Array.from(t.selections).sort(((e,t)=>e.start.compareTo(t.start))).map((e=>{let t=e;{let{start:e,end:o}=t;const s=n.offsetAt(e),a=n.getText(),u=(0,i.getHtmlFlatNode)(a,c,s,!0);if(u&&(0,i.isOffsetInsideOpenOrCloseTag)(u,s)){e=n.positionAt(u.start);const t=n.positionAt(u.end);o=t.isAfter(o)?t:o}const l=n.offsetAt(o),f=(0,i.getHtmlFlatNode)(a,c,l,!0);if(f&&(0,i.isOffsetInsideOpenOrCloseTag)(f,l)){const t=n.positionAt(f.start);e=t.isBefore(e)?t:e;const r=n.positionAt(f.end);o=r.isAfter(o)?r:o}t=new r.Range(e,o)}if(!t.isSingleLine&&0===t.end.character){const e=t.end.line-1;t=new r.Range(t.start,n.lineAt(e).range.end)}t.isEmpty&&(t=n.lineAt(t.start).range);const o=n.lineAt(t.start);return!o.isEmptyOrWhitespace&&o.firstNonWhitespaceCharacterIndex>t.start.character&&(t=t.with(new r.Position(t.start.line,o.firstNonWhitespaceCharacterIndex))),t})).reduce(((e,t)=>(e.length>0&&t.intersection(e[e.length-1])?e.push(t.union(e.pop())):e.push(t),e)),[]),f=t.selections;t.selections=l.map((e=>new r.Selection(e.start,e.end)));const m=l.map((e=>{let t;const r=n.getText(e),o=n.lineAt(e.start).text.match(/^(\s*)/),i=o?o[1]:"";return t=e.isSingleLine?[r]:r.split("\n"+i).map((e=>e.trimEnd())),t=t.map((e=>e.replace(/(\$\d)/g,"\\$1"))),{previewRange:e,originalRange:e,originalContent:r,textToWrapInPreview:t,baseIndent:i}})),{tabSize:g,insertSpaces:b}=t.options,v=b?" ".repeat(g):"\t";function y(){return t.edit((e=>{for(const t of m)e.replace(t.previewRange,t.originalContent),t.previewRange=t.originalRange}),{undoStopBefore:!1,undoStopAfter:!1})}let x=!1;async function w(e,n){const i=e&&e.trim()&&u.isAbbreviationValid(o,e)?u.extractAbbreviationFromText(e,o):void 0;if(!i)return x&&(x=!1,await y()),!1;const{abbreviation:s,filter:a}=i;if(n){const e=m.map((e=>({syntax:o,abbreviation:s,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:a,indent:v,baseIndent:e.baseIndent})));return x=!0,function(e){let n=new r.Range(0,0,0,0),o=new r.Range(0,0,0,0),i=0;return t.edit((t=>{for(let s=0;st)).replace(/\\\$/g,"$");t.replace(c,u);const l=u.split("\n"),f=c.end.line-c.start.line+1,d=l.length-f,h=c.start.line+i;let g=c.start.character;const b=c.end.line+i+d;let v=l[l.length-1].length;s>0&&b===o.end.line?(g=o.end.character+(c.start.character-n.end.character),v+=g):s>0&&h===o.end.line?g=o.end.character+(c.start.character-n.end.character):1===l.length&&(v+=c.start.character),n=m[s].previewRange,o=new r.Range(h,g,b,v),m[s].previewRange=o,i+=d}}),{undoStopBefore:!1,undoStopAfter:!1})}(e)}const c=m.map((e=>({syntax:o,abbreviation:s,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:a,indent:v})));return x&&(x=!1,await y()),d(t,c,!1)}let k="";const T=a(0,null),S=e&&e.abbreviation?e.abbreviation:await r.window.showInputBox({prompt:T,validateInput:function(e){return e!==k&&(k=e,w(e,!0)),""}}),C=await w(S,!1);return C||(t.selections=f),C},t.expandEmmetAbbreviation=function(e){if(!(0,i.validate)()||!r.window.activeTextEditor)return l();if(1===r.window.activeTextEditor.selections.length&&r.window.activeTextEditor.selection.isEmpty){const e=r.window.activeTextEditor.selection.anchor;if(0===e.character)return l();const t=e.translate(0,-1),n=r.window.activeTextEditor.document.getText(new r.Range(t,e));if(" "===n||"\t"===n)return l()}if((e=e||{}).language){if((r.workspace.getConfiguration("emmet").excludeLanguages?r.workspace.getConfiguration("emmet").excludeLanguages:[]).indexOf(r.window.activeTextEditor.document.languageId)>-1)return l()}else e.language=r.window.activeTextEditor.document.languageId;const t=h(e);if(!t)return l();const n=r.window.activeTextEditor;if(!0===r.workspace.getConfiguration("emmet").triggerExpansionOnTab&&n.selections.find((e=>!e.isEmpty)))return l();const o=[];let a,c=!0;const u=(0,i.getEmmetHelper)(),p=n.selections.slice(0);let m;function g(){if(m)return m;const e=!0===r.workspace.getConfiguration("emmet").optimizeStylesheetParsing;return m=1===n.selections.length&&(0,i.isStyleSheet)(n.document.languageId)&&e&&n.document.lineCount>1e3?(0,i.parsePartialStylesheet)(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):(0,s.getRootNode)(n.document,!0),m}return p.sort(((e,t)=>{const n=e.isReversed?e.anchor:e.active,r=t.isReversed?t.anchor:t.active;return-1*n.compareTo(r)})),p.forEach((e=>{const s=e.isReversed?e.anchor:e.active,[l,d,p]=((e,t,o,s)=>{o=e.validatePosition(o);let a=t,c=e.getText(a);if(!a.isEmpty){const e=u.extractAbbreviationFromText(c,s);return e?[a,e.abbreviation,e.filter]:[null,"",""]}const l=n.document.lineAt(o.line).text.substr(0,o.character);if("html"===s){const e=l.match(/<(\w+)$/);if(e)return c=e[1],a=new r.Range(o.translate(0,-(c.length+1)),o),[a,c,""]}const f=u.extractAbbreviation((0,i.toLSTextDocument)(n.document),o,{lookAhead:!1});if(!f)return[null,"",""];const{abbreviationRange:d,abbreviation:p,filter:h}=f;return[new r.Range(d.start.line,d.start.character,d.end.line,d.end.character),p,h]})(n.document,e,s,t);if(!l)return;if(!u.isAbbreviationValid(t,d))return;if((0,i.isStyleSheet)(t)&&d.endsWith(":"))return;const h=n.document.offsetAt(s);let m=(0,i.getFlatNode)(g(),h,!0),b=!0,v=t;if("html"===n.document.languageId)if((0,i.isStyleAttribute)(m,h))v="css",b=!1;else{const e=(0,i.getEmbeddedCssNodeIfAny)(n.document,m,s);e&&(m=(0,i.getFlatNode)(e,h,!0),v="css")}b&&!f(n.document,g(),m,v,h,l)||(a?c&&a!==d&&(c=!1):a=d,o.push({syntax:v,abbreviation:d,rangeToReplace:l,filter:p}))})),d(n,o,c).then((e=>e?Promise.resolve(void 0):l()))},t.isValidLocationForEmmetAbbreviation=f,t.getSyntaxFromArgs=h},2827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.balanceIn=t.balanceOut=void 0;const r=n(7549),o=n(4056),i=n(443);let s=[],a=[];function c(e){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,c=(0,i.getRootNode)(n,!0);if(!c)return;const d=e?u:l;let p=t.selections.map((e=>d(n,c,e)));f(a,t.selections)?e?f(t.selections,p)||s.push(t.selections):s.length&&(p=s.pop()):s=e?[t.selections]:[],t.selections=p,a=t.selections}function u(e,t,n){const r=e.offsetAt(n.start),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!1);if(!i)return n;if(!i.open||!i.close)return(0,o.offsetRangeToSelection)(e,i.start,i.end);let s,a;return i.close.start<=r&&i.close.end>r?(s=(0,o.offsetRangeToSelection)(e,i.close.start,i.open.end),a=(0,o.offsetRangeToSelection)(e,i.close.end,i.open.start)):(s=(0,o.offsetRangeToSelection)(e,i.open.end,i.close.start),a=(0,o.offsetRangeToSelection)(e,i.open.start,i.close.end)),s.contains(n)&&!s.isEqual(n)?s:a.contains(n)&&!a.isEqual(n)?a:n}function l(e,t,n){const r=e.offsetAt(n.start),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!0);if(!i)return n;const s=e.offsetAt(n.start),a=e.offsetAt(n.end);if(i.open&&i.close){const t=s===i.start&&a===i.end,n=s>i.open.start&&si.close.start&&s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentStreamReader=void 0;class n{constructor(e,t,n){this.document=e,this.start=this.pos=t||0,this._sof=n?n[0]:0,this._eof=n?n[1]:e.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(e,t){return new n(this.document,e,[e,t])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;const e=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),e}backUp(e){return this.pos-=e,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.document.getText().substring(e,t)}error(e){return new Error(`${e} at offset ${this.pos}`)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}}t.DocumentStreamReader=n},1732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCompletionItemProvider=void 0;const r=n(7549),o=n(8603),i=n(4056),s=n(443);t.DefaultCompletionItemProvider=class{provideCompletionItems(e,t,n,r){const o=this.provideCompletionItemsInternal(e,t,r);if(o)return o.then((e=>{if(!e||!e.items.length)return this.lastCompletionType=void 0,e;const t=e.items[0],n=t.documentation?t.documentation.toString():"";return n.startsWith("<")?this.lastCompletionType="html":n.indexOf(":")>0&&n.endsWith(";")?this.lastCompletionType="css":this.lastCompletionType=void 0,e}));this.lastCompletionType=void 0}provideCompletionItemsInternal(e,t,n){const a=r.workspace.getConfiguration("emmet"),c=a.excludeLanguages?a.excludeLanguages:[];if(c.indexOf(e.languageId)>-1)return;const u=(0,i.getMappingForIncludedLanguages)(),l=!!u[e.languageId],f=(0,i.getEmmetMode)(l?u[e.languageId]:e.languageId,u,c);if(!f||"never"===a.showExpandedAbbreviation||(l||"jsx"===f)&&"always"!==a.showExpandedAbbreviation)return;let d,p,h=f,m="html"===h||"jsx"===h||"xml"===h;const g=(0,i.toLSTextDocument)(e);t=e.validatePosition(t);const b=new r.Range(t.line,0,t.line,t.character);if(e.getText(b).trimStart().startsWith("//"))return;const v=(0,i.getEmmetHelper)();if("html"===h){if(n.triggerKind===r.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":m=!1;break;case"css":m=!1,h="css"}if(m){const n=e.offsetAt(t),r=(0,s.getRootNode)(e,!0),a=(0,i.getHtmlFlatNode)(e.getText(),r,n,!1);if(a)if("script"===a.name){const e=a.attributes.find((e=>"type"===e.name.toString()));if(!e)return;{const t=e.value.toString();if("application/javascript"===t||"text/javascript"===t){if(!(0,o.getSyntaxFromArgs)({language:"javascript"}))return;m=!1}else i.allowedMimeTypesInScriptTag.includes(t)&&(m=!1)}}else if("style"===a.name)h="css",m=!1;else{const e=a.attributes.find((e=>"style"===e.name.toString()));e&&e.value.start<=n&&n<=e.value.end&&(h="css",m=!1)}}}const y=(0,i.isStyleSheet)(h)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=v.extractAbbreviation(g,t,y);if(!x||!v.isAbbreviationValid(h,x.abbreviation))return;const w=e.offsetAt(t);if((0,i.isStyleSheet)(e.languageId)&&n.triggerKind!==r.CompletionTriggerKind.TriggerForIncompleteCompletions){if(m=!0,d=!0===r.workspace.getConfiguration("emmet").optimizeStylesheetParsing&&e.lineCount>1e3?(0,i.parsePartialStylesheet)(e,t):(0,s.getRootNode)(e,!0),!d)return;p=(0,i.getFlatNode)(d,w,!0)}if(!(0,i.isStyleSheet)(e.languageId)&&(0,i.isStyleSheet)(h)&&n.triggerKind!==r.CompletionTriggerKind.TriggerForIncompleteCompletions){if(m=!0,d=(0,s.getRootNode)(e,!0),!d)return;const n=(0,i.getFlatNode)(d,w,!0),r=(0,i.getEmbeddedCssNodeIfAny)(e,n,t);p=(0,i.getFlatNode)(r,w,!0)}if(m&&!(0,o.isValidLocationForEmmetAbbreviation)(e,d,p,h,w,(k=x.abbreviationRange,new r.Range(k.start.line,k.start.character,k.end.line,k.end.character))))return;var k;let T=Promise.resolve(!1);if(!(0,i.isStyleSheet)(h)&&("javascript"===e.languageId||"javascriptreact"===e.languageId||"typescript"===e.languageId||"typescriptreact"===e.languageId)){const t=x.abbreviation;T=t.startsWith("this.")||/\[[^\]=]*\]/.test(t)?Promise.resolve(!0):r.commands.executeCommand("vscode.executeDocumentSymbolProvider",e.uri).then((e=>!!e&&e.some((e=>t===e.name||t.startsWith(e.name+".")&&!/>|\*|\+/.test(t)))))}return T.then((n=>{if(n)return;const o=(0,i.getEmmetConfiguration)(h),s=v.doComplete((0,i.toLSTextDocument)(e),t,h,o);if(s&&s.items&&1===s.items.length&&"widows: ;"===s.items[0].label)return;const c=[];return s&&s.items&&s.items.forEach((e=>{const t=new r.CompletionItem(e.label);t.documentation=e.documentation,t.detail=e.detail,t.insertText=new r.SnippetString(e.textEdit.newText);const n=e.textEdit.range;t.range=new r.Range(n.start.line,n.start.character,n.end.line,n.end.character),t.filterText=e.filterText,t.sortText=e.sortText,!0===a.showSuggestionsAsSnippets&&(t.kind=r.CompletionItemKind.Snippet),c.push(t)})),new r.CompletionList(c,!0)}))}}},3042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchEditPoint=void 0;const r=n(7549),o=n(4056);function i(e,t,n,o){const i=t.document.lineAt(e);let s=i.text;if(e!==n.line&&i.isEmptyOrWhitespace&&s.length)return new r.Selection(e,s.length,e,s.length);e===n.line&&"prev"===o&&(s=s.substr(0,n.character));const a="next"===o?s.indexOf('""',e===n.line?n.character:0):s.lastIndexOf('""'),c="next"===o?s.indexOf("><",e===n.line?n.character:0):s.lastIndexOf("><");let u=-1;return u=a>-1&&c>-1?"next"===o?Math.min(a,c):Math.max(a,c):a>-1?a:c,u>-1?new r.Selection(e,u+1,e,u+1):void 0}t.fetchEditPoint=function(e){if(!(0,o.validate)()||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=[];t.selections.forEach((r=>{const o="next"===e?function(e,t){for(let n=e.anchor.line;n=0;n--){const r=i(n,t,e.anchor,"prev");if(r)return r}return e}(r,t);n.push(o)})),t.selections=n,t.revealRange(t.selections[t.selections.length-1])}},139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deactivate=t.activateEmmetExtension=void 0;const r=n(7549),o=n(1732),i=n(8603),s=n(6950),a=n(7013),c=n(956),u=n(2827),l=n(4632),f=n(3103),d=n(7417),p=n(3042),h=n(2537),m=n(5097),g=n(8875),b=n(4056),v=n(3604),y=n(443);t.activateEmmetExtension=function(e){(0,b.migrateEmmetExtensionsPath)(),k(),(0,b.updateEmmetExtensionsPath)(),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",(e=>{(0,i.wrapWithAbbreviation)(e)}))),e.subscriptions.push(r.commands.registerCommand("emmet.expandAbbreviation",(e=>{(0,i.expandEmmetAbbreviation)(e)}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.removeTag",(()=>(0,s.removeTag)()))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.updateTag",(e=>e&&"string"==typeof e?(0,a.updateTag)(e):(0,a.updateTag)(void 0)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.matchTag",(()=>{(0,c.matchTag)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.balanceOut",(()=>{(0,u.balanceOut)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.balanceIn",(()=>{(0,u.balanceIn)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.splitJoinTag",(()=>(0,l.splitJoinTag)()))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.mergeLines",(()=>{(0,f.mergeLines)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.toggleComment",(()=>{(0,d.toggleComment)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.nextEditPoint",(()=>{(0,p.fetchEditPoint)("next")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.prevEditPoint",(()=>{(0,p.fetchEditPoint)("prev")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.selectNextItem",(()=>{(0,h.fetchSelectItem)("next")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.selectPrevItem",(()=>{(0,h.fetchSelectItem)("prev")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.evaluateMathExpression",(()=>{(0,m.evaluateMathExpression)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",(()=>(0,g.incrementDecrement)(.1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByOne",(()=>(0,g.incrementDecrement)(1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByTen",(()=>(0,g.incrementDecrement)(10)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",(()=>(0,g.incrementDecrement)(-.1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByOne",(()=>(0,g.incrementDecrement)(-1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByTen",(()=>(0,g.incrementDecrement)(-10)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.reflectCSSValue",(()=>(0,v.reflectCssValue)()))),e.subscriptions.push(r.commands.registerCommand("workbench.action.showEmmetCommands",(()=>{r.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")}))),e.subscriptions.push(r.workspace.onDidChangeConfiguration((e=>{(e.affectsConfiguration("emmet.includeLanguages")||e.affectsConfiguration("emmet.useInlineCompletions"))&&k(),e.affectsConfiguration("emmet.extensionsPath")&&(0,b.updateEmmetExtensionsPath)()}))),e.subscriptions.push(r.workspace.onDidSaveTextDocument((e=>{const t=(0,b.getPathBaseName)(e.fileName);t.startsWith("snippets")&&t.endsWith(".json")&&(0,b.updateEmmetExtensionsPath)(!0)}))),e.subscriptions.push(r.workspace.onDidOpenTextDocument((e=>{const t=(0,b.getEmmetMode)(e.languageId,{},[])??"",n=(0,b.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,y.addFileToParseCache)(e)}))),e.subscriptions.push(r.workspace.onDidCloseTextDocument((e=>{const t=(0,b.getEmmetMode)(e.languageId,{},[])??"",n=(0,b.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,y.removeFileFromParseCache)(e)})))};const x=new Map,w=[];function k(e){T();const t=new o.DefaultCompletionItemProvider,n={async provideInlineCompletionItems(e,n,o,i){const s=await t.provideCompletionItems(e,n,i,{triggerCharacter:void 0,triggerKind:r.CompletionTriggerKind.Invoke});if(!s)return;const a=s.items[0];if(!a)return;const c=a.range;return e.getText(c)===a.label?[{insertText:a.insertText,filterText:a.label,range:c}]:void 0}},i=r.workspace.getConfiguration("emmet").get("useInlineCompletions"),s=(0,b.getMappingForIncludedLanguages)();Object.keys(s).forEach((e=>{if(x.has(e)&&x.get(e)===s[e])return;if(i){const t=r.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);w.push(t)}const o=r.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...b.LANGUAGE_MODES[s[e]]);w.push(o),x.set(e,s[e])})),Object.keys(b.LANGUAGE_MODES).forEach((e=>{if(!x.has(e)){if(i){const t=r.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);w.push(t)}const o=r.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...b.LANGUAGE_MODES[e]);w.push(o),x.set(e,e)}}))}function T(){let e;for(x.clear();e=w.pop();)e.dispose()}t.deactivate=function(){T(),(0,y.clearParseCache)()}},5097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateMathExpression=void 0;const r=n(7549),o=n(2791);t.evaluateMathExpression=function(){if(!r.window.activeTextEditor)return r.window.showInformationMessage("No editor is active"),Promise.resolve(!1);const e=r.window.activeTextEditor;return e.edit((t=>{e.selections.forEach((n=>{const i=n.isReversed?n.active:n.anchor,s=n.isReversed?n.anchor:n.active,a=e.document.getText(new r.Range(i,s));try{if(a){const e=String((0,o.default)(a));t.replace(new r.Range(i,s),e)}else{const i=e.document.getText(new r.Range(new r.Position(n.end.line,0),s)),a=(0,o.extract)(i);if(!a)throw new Error("Invalid extracted indices");const c=String((0,o.default)(i.substr(a[0],a[1]))),u=new r.Range(new r.Position(n.end.line,a[0]),new r.Position(n.end.line,a[1]));t.replace(u,c)}}catch(e){r.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",e)}}))}))}},6075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSize=void 0;const r=n(5622),o=n(8605),i=n(7211),s=n(8835),a=n(7935),c=/^https?:/;function u(e,t){const n=e.match(/@(\d+)x\./),r=n?+n[1]:1;if(t&&t.width&&t.height)return{realWidth:t.width,realHeight:t.height,width:Math.floor(t.width/r),height:Math.floor(t.height/r)}}t.getImageSize=function(e){return e=e.replace(/^file:\/\//,""),c.test(e)?(t=e,new Promise(((e,n)=>{const c=new s.URL(t),l="https:"===c.protocol?i.get:o.get;if(!c.pathname)return n("Given url doesnt have pathname property");const f=c.pathname;l(c,(t=>{const o=[];let i=0;const s=n=>{try{const o=(0,a.imageSize)(Buffer.concat(n,i));t.removeListener("data",c),t.destroy(),e(u(r.basename(f),o))}catch(e){}},c=e=>{i+=e.length,o.push(e),s(o)};t.on("data",c).on("end",(()=>s(o))).once("error",(e=>{t.removeListener("data",c),n(e)}))})).once("error",n)}))):function(e){return new Promise(((t,n)=>{const o=e.match(/^data:.+?;base64,/);if(o)try{const n=Buffer.from(e.slice(o[0].length),"base64");return t(u("",(0,a.imageSize)(n)))}catch(e){return n(e)}(0,a.imageSize)(e,((o,i)=>{o?n(o):t(u(r.basename(e),i))}))}))}(e);var t}},8875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locate=t.update=t.incrementDecrement=void 0;const r=n(7549),o=/[0-9]/;function i(e,t){let n;const r=(n=e.match(/\.(\d+)$/))?n[1].length:1;let o=String((parseFloat(e)+t).toFixed(r)).replace(/\.0+$/,"");return(n=e.match(/^\-?(0\d+)/))&&(o=o.replace(/^(\-?)(\d+)/,((e,t,r)=>t+"0".repeat(Math.max(0,(n?n[1].length:0)-r.length))+r))),/^\-?\./.test(e)&&(o=o.replace(/^(\-?)0+/,"$1")),o}function s(e,t){const n=e.lineAt(t.line).text;let i,s=t.character,c=t.character,u=!1,l=!1;for(;s>0;){if(i=n[--s],"-"===i){l=!0;break}if("."!==i||u){if(!o.test(i)){s++;break}}else u=!0}for("-"!==n[c]||l||c++;c{t.selections.forEach((r=>{const o=s(t.document,r.isReversed?r.anchor:r.active);if(!o)return;const c=t.document.getText(o);a(c)&&n.replace(o,i(c,e))}))}))},t.update=i,t.locate=s},9892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locateFile=void 0;const r=n(5622),o=n(5747),i="/"===r.sep?/^\/+/:/^\\+/;function s(e){return new Promise(((t,n)=>{o.stat(e,((r,o)=>r?n(r):o.isFile()?void t(e):n(new Error(`${e} is not a file`))))}))}t.locateFile=function(e,t){return/^\w+:/.test(t)?Promise.resolve(t):(t=r.normalize(t),i.test(t)?function(e,t){return new Promise(((n,o)=>{t=t.replace(i,"");const a=e=>{s(r.resolve(e,t)).then(n,(()=>{const n=r.dirname(e);if(!n||n===e)return o(`Unable to locate absolute file ${t}`);a(n)}))};a(e)}))}(e,t):function(e,t){return s(r.resolve(e,t))}(e,t))}},956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchTag=void 0;const r=n(7549),o=n(4056),i=n(443);t.matchTag=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,i.getRootNode)(t,!0);if(!n)return;const s=[];e.selections.forEach((e=>{const r=function(e,t,n){const r=e.offsetAt(n),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!0);if(!i)return;if(!i.open||!i.close||r>i.open.end&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeLines=void 0;const r=n(7549),o=n(4056),i=n(443);t.mergeLines=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=(0,i.getRootNode)(e.document,!0);return t?e.edit((n=>{Array.from(e.selections).reverse().forEach((i=>{const s=function(e,t,n){let i,s;const a=e.offsetAt(t.start),c=e.offsetAt(t.end);if(t.isEmpty?i=s=(0,o.getFlatNode)(n,a,!0):(i=(0,o.getFlatNode)(n,a,!0),s=(0,o.getFlatNode)(n,c,!0)),!i||!s)return;const u=e.positionAt(i.start),l=u.line,f=u.character,d=e.positionAt(s.end).line;if(l===d)return;const p=(0,o.offsetRangeToVsRange)(e,i.start,s.end);let h=e.lineAt(l).text.substr(f);for(let t=l+1;t<=d;t++)h+=e.lineAt(t).text.trim();return new r.TextEdit(p,h)}(e.document,i,t);s&&n.replace(s.range,s.newText)}))})):void 0}},443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearParseCache=t.removeFileFromParseCache=t.addFileToParseCache=t.getRootNode=void 0;const r=n(7378),o=n(105),i=n(4056),s=new Map;t.getRootNode=function(e,t){const n=e.uri.toString(),a=s.get(n),c=e.version;if(t&&a&&c===a.key)return a.value;const u=((0,i.isStyleSheet)(e.languageId)?o.default:r.default)(e.getText());return t&&s.set(n,{key:c,value:u}),u},t.addFileToParseCache=function(e){const t=e.uri.toString();s.set(t,void 0)},t.removeFileFromParseCache=function(e){const t=e.uri.toString();s.delete(t)},t.clearParseCache=function(){s.clear()}},3604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reflectCssValue=void 0;const r=n(7549),o=n(4056),i=["-webkit-","-moz-","-ms-","-o-",""];t.reflectCssValue=function(){const e=r.window.activeTextEditor;if(!e)return void r.window.showInformationMessage("No editor is active.");const t=(0,o.getCssPropertyFromDocument)(e,e.selection.active);return t?function(e,t){const n=t.parent;let r="";for(const e of i)if(t.name.startsWith(e)){r=e;break}const s=t.name.substr(r.length),a=t.value;return e.edit((t=>{i.forEach((i=>{if(i===r)return;const c=(0,o.getCssPropertyFromRule)(n,i+s);if(c){const n=(0,o.offsetRangeToVsRange)(e.document,c.valueToken.start,c.valueToken.end);t.replace(n,a)}}))}))}(e,t):void 0}},6950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTag=void 0;const r=n(7549),o=n(443),i=n(4056);function s(e,t){if(t.start.line===t.end.line){const n=e.lineAt(t.start).text,r=e.getText(t);if(n.trim()===r)return!0}return!1}t.removeTag=function(){if(!(0,i.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,o.getRootNode)(t,!0);if(!n)return;const a=Array.from(e.selections).reverse().reduce(((t,o)=>t.concat(function(e,t,n){const o=e.offsetAt(n.start),a=(0,i.getHtmlFlatNode)(e.getText(),t,o,!0);if(!a)return[];let c,u;if(a.open&&(c=(0,i.offsetRangeToVsRange)(e,a.open.start,a.open.end)),a.close&&(u=(0,i.offsetRangeToVsRange)(e,a.close.start,a.close.end)),c&&u){const t=new r.Range(c.end.line,c.end.character,u.start.line,u.start.character),n=new r.Range(c.start.line,c.start.character,u.end.line,u.end.character);if(""===e.getText(t).trim()&&"pre"!==a.name)return[n]}const l=[];if(c&&(l.push(c),u)){const t=function(e,t,n){const r=t.start.line,o=n.start.line,i=e.lineAt(r).firstNonWhitespaceCharacterIndex,s=e.lineAt(o).firstNonWhitespaceCharacterIndex;let a;for(let t=r+1;t{a.forEach((t=>{e.delete(t)}))}))}},2537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSelectItem=void 0;const r=n(7549),o=n(4056),i=n(8213),s=n(5775),a=n(443);t.fetchSelectItem=function(e){if(!(0,o.validate)()||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,c=(0,a.getRootNode)(n,!0);if(!c)return;const u=[];t.selections.forEach((r=>{const a=r.isReversed?r.active:r.anchor,l=r.isReversed?r.anchor:r.active;let f;f=(0,o.isStyleSheet)(t.document.languageId)?"next"===e?(0,s.nextItemStylesheet)(n,a,l,c):(0,s.prevItemStylesheet)(n,a,l,c):"next"===e?(0,i.nextItemHTML)(n,a,l,c):(0,i.prevItemHTML)(n,a,l,c),u.push(f||r)})),t.selections=u,t.revealRange(t.selections[t.selections.length-1])}},8213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevItemHTML=t.nextItemHTML=void 0;const r=n(4056);function o(e,t){if(t&&t.open){const n=t.open.start+1,o=n+t.name.length;return(0,r.offsetRangeToSelection)(e,n,o)}}t.nextItemHTML=function(e,t,n,i){const s=e.offsetAt(n);let a,c=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(c){if("comment"!==c.type){if(c.open&&s<=c.open.start+c.name.length)return o(e,c);if(c.open&&s=0&&n>=0){const o=i.value.start+t,s=i.value.start+n;return(0,r.offsetRangeToSelection)(e,o,s)}}}}(e,n,s,c);if(o)return o}for(a=c.firstChild;a&&(s>=a.end||"comment"===a.type);)a=a.nextSibling}for(;!a&&c;)c.nextSibling?"comment"!==c.nextSibling.type?a=c.nextSibling:c=c.nextSibling:c=c.parent;return a&&o(e,a)}},t.prevItemHTML=function(e,t,n,i){const s=e.offsetAt(t);let a,c=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(!c)return;const u=e.offsetAt(n);if(c.open&&"comment"!==c.type&&s-1>c.open.start)if(s=a.nextSibling.end;)a&&"comment"!==a.type&&(e=a),a=a.nextSibling;a=(0,r.getDeepestFlatNode)(a&&"comment"!==a.type?a:e)}for(;!a&&c;)c.previousSibling?"comment"!==c.previousSibling.type?a=(0,r.getDeepestFlatNode)(c.previousSibling):c=c.previousSibling:a=c.parent;if(!a)return;return function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(let i=o.attributes.length-1;i>=0;i--){const s=o.attributes[i];if(t<=s.start)continue;if(!s.value||s.value.start===s.value.end||t=s.value.end?(0,r.offsetRangeToSelection)(e,s.start,s.end):(0,r.offsetRangeToSelection)(e,s.value.start,s.value.end);const a=e.positionAt(t).character,c=e.positionAt(s.value.start).character,u=t>s.value.end?s.value.toString().length:a-c,[l,f]=(0,r.findPrevWord)(s.value.toString(),u);if(void 0===l||void 0===f)return;if(l>=0&&f>=0){const t=s.value.start+l,n=s.value.start+f;return(0,r.offsetRangeToSelection)(e,t,n)}}}(e,s,u,a)||o(e,a)}},5775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevItemStylesheet=t.nextItemStylesheet=void 0;const r=n(7549),o=n(4056);function i(e,t){if(!t)return;const n="rule"===t.type?t.selectorToken:t;return(0,o.offsetRangeToSelection)(e,n.start,n.end)}function s(e,t,n,i,s,a){if(!t||"property"!==t.type)return;const c=t,u=c.valueToken.stream.substring(c.valueToken.start,c.valueToken.end);if(s=s||"prev"===a&&n===c.valueToken.start&&ic.valueToken.end?u.length:t-r}else if("next"===a){if(i===c.valueToken.end&&(n>c.valueToken.start||!u.includes(" ")))return;const t=e.positionAt(i).character,r=e.positionAt(c.valueToken.start).character;l=i===c.valueToken.end?-1:t-r-1}const[f,d]="prev"===a?(0,o.findPrevWord)(u,l):(0,o.findNextWord)(u,l);if(!f&&!d)return;const p=e.positionAt(c.valueToken.start),h=p.translate(0,f),m=p.translate(0,d);return new r.Selection(h,m)}t.nextItemStylesheet=function(e,t,n,r){const a=e.offsetAt(t),c=e.offsetAt(n);let u=(0,o.getFlatNode)(r,c,!0);if(u||(u=r),!u)return;if("property"===u.type&&a===u.start&&c===u.end)return s(e,u,a,c,!0,"next");if("property"===u.type&&a>=u.valueToken.start&&c<=u.valueToken.end){const t=s(e,u,a,c,!1,"next");if(t)return t}if("rule"===u.type&&c=l.end;)l=l.nextSibling;for(;!l&&u;)l=u.nextSibling,u=u.parent;return l?i(e,l):void 0},t.prevItemStylesheet=function(e,t,n,r){const a=e.offsetAt(t),c=e.offsetAt(n);let u=(0,o.getFlatNode)(r,a,!1);if(u||(u=r),!u)return;if("property"===u.type&&a===u.valueToken.start&&c===u.valueToken.end)return i(e,u);if("property"===u.type&&a>=u.valueToken.start&&c<=u.valueToken.end){const t=s(e,u,a,c,!1,"prev");if(t)return t}if("property"===u.type||!u.firstChild||"rule"===u.type&&a<=u.firstChild.start)return i(e,u);let l=u.firstChild;for(;l.nextSibling&&a>=l.nextSibling.end;)l=l.nextSibling;return l=(0,o.getDeepestFlatNode)(l),s(e,l,a,c,!1,"prev")}},4632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitJoinTag=void 0;const r=n(7549),o=n(4056),i=n(443);t.splitJoinTag=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,i.getRootNode)(e.document,!0);return n?e.edit((i=>{Array.from(e.selections).reverse().forEach((e=>{const s=t.getText(),a=t.offsetAt(e.start),c=(0,o.getHtmlFlatNode)(s,n,a,!0);if(c){const e=function(e,t){let n,i;if(t.open&&t.close){const r=t.open.end-1,s=t.end;n=(0,o.offsetRangeToVsRange)(e,r,s),i="/>";const a=(0,o.getEmmetMode)(e.languageId,{},[])??"",c=(0,o.getEmmetConfiguration)(a);a&&c.syntaxProfiles[a]&&("xhtml"===c.syntaxProfiles[a].selfClosingStyle||"xhtml"===c.syntaxProfiles[a].self_closing_tag)&&(i=" "+i)}else{const r=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),s=t.end,a=r?s-r[0].length:s;n=(0,o.offsetRangeToVsRange)(e,a,s),i=`>`}return new r.TextEdit(n,i)}(t,c);i.replace(e.range,e.newText)}}))})):void 0}},7417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleComment=void 0;const r=n(7549),o=n(4056),i=n(105),s=n(443);let a,c,u,l;function f(e,t){let n=[];return"comment"===e.type?(n.push(new r.TextEdit((0,o.offsetRangeToVsRange)(t,e.start,e.start+u.length),"")),n.push(new r.TextEdit((0,o.offsetRangeToVsRange)(t,e.end-l.length,e.end),"")),n):(e.children.forEach((e=>{n=n.concat(f(e,t))})),n)}function d(e,t,n){const i=t.isReversed?t.active:t.anchor,s=t.isReversed?t.anchor:t.active;let u=e.offsetAt(i),l=e.offsetAt(s);const f=(0,o.getFlatNode)(n,u,!0),d=(0,o.getFlatNode)(n,l,!0);t.isEmpty?f&&(u=f.start,l=f.end,t=(0,o.offsetRangeToSelection)(e,u,l)):(u=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.start;const r=e;if(to.end;)o=o.nextSibling;return o.start}(f,u,n),l=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.end;const r=e;if(t===r.contentEndToken.end||!r.firstChild)return r.end;if(t>r.children[r.children.length-1].end)return t;let o=r.children[r.children.length-1];for(;o.previousSibling&&t{const i=(0,o.offsetRangeToVsRange)(e,n.start,n.end);t.intersection(i)&&(p.push(i),h.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,n.start,n.start+a.length),"")),h.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,n.end-c.length,n.end),"")))})),h.length>0?h:[new r.TextEdit(new r.Range(t.start,t.start),a),new r.TextEdit(new r.Range(t.end,t.end),c)]}t.toggleComment=function(){if(!(0,o.validate)()||!r.window.activeTextEditor)return;r.workspace.getConfiguration("editor.comments").get("insertSpace")?(a="/* ",c=" */",u="\x3c!-- ",l=" --\x3e"):(a="/*",c="*/",u="\x3c!--",l="--\x3e");const e=r.window.activeTextEditor,t=(0,s.getRootNode)(e.document,!0);return t?e.edit((n=>{const s=[];Array.from(e.selections).reverse().forEach((n=>{const a=(0,o.isStyleSheet)(e.document.languageId)?d(e.document,n,t):function(e,t,n){const s=t.isReversed?t.active:t.anchor,a=t.isReversed?t.anchor:t.active,c=e.offsetAt(s),p=e.offsetAt(a),h=e.getText(),m=(0,o.getHtmlFlatNode)(h,n,c,!0),g=(0,o.getHtmlFlatNode)(h,n,p,!0);if(!m||!g)return[];if((0,o.sameNodes)(m,g)&&"style"===m.name&&m.open&&m.close&&m.open.endp){const n=" ".repeat(m.open.end)+h.substring(m.open.end,m.close.start),r=(0,i.default)(n);return d(e,t,r)}const b=(0,o.getNodesInBetween)(m,g);let v=[];return b.forEach((t=>{v=v.concat(f(t,e))})),"comment"===m.type||(v.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,b[0].start,b[0].start),u)),v.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,b[b.length-1].end,b[b.length-1].end),l))),v}(e.document,n,t);a.length>0&&s.push(a)})),s.sort(((e,t)=>{const n=e[0].range.start.line-t[0].range.start.line;return 0===n?e[0].range.start.character-t[0].range.start.character:n}));let a=new r.Position(0,0);for(const e of s)e[0].range.end.isAfterOrEqual(a)&&e.forEach((e=>{n.replace(e.range,e.newText),a=e.range.end}))})):void 0}},6846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateImageSize=void 0;const r=n(7549),o=n(5622),i=n(6075),s=n(4056),a=n(9892),c=n(105),u=n(443);function l(e,t,n){const c=n(e,t),u=c&&h(e,c,t);return u?(0,a.locateFile)(o.dirname(e.document.fileName),u).then(i.getImageSize).then((o=>{const i=n(e,t);return o&&i&&h(e,i,t)===u?function(e,t,n,o){const i=e.document,a=t.parent,c=(0,s.getCssPropertyFromRule)(a,"width"),u=(0,s.getCssPropertyFromRule)(a,"height"),l=t.separator||": ",f=function(e,t){let n;return(n=t.previousSibling||t.parent.contentStartToken)?e.document.getText().substring(n.end,t.start):(n=t.nextSibling||t.parent.contentEndToken)?e.document.getText().substring(t.end,n.start):""}(e,t),d=[];t.terminatorToken||d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,t.end,t.end),";"));let p="";return c?d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,c.valueToken.start,c.valueToken.end),`${n}px`)):p+=`${f}width${l}${n}px;`,u?d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,u.valueToken.start,u.valueToken.end),`${o}px`)):p+=`${f}height${l}${o}px;`,p&&d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,t.end,t.end),p)),d}(e,i,o.width,o.height):[]})).catch((e=>(console.warn("Error while updating image size:",e),[]))):Promise.reject(new Error("No valid image source"))}function f(e,t){const n=e.document,r=(0,u.getRootNode)(n,!0),o=n.offsetAt(t),i=(0,s.getFlatNode)(r,o,!0);return i&&"img"===i.name.toLowerCase()?i:null}function d(e,t){const n=e.document,r=(0,u.getRootNode)(n,!0),o=n.offsetAt(t),i=(0,s.getFlatNode)(r,o,!0);return i&&"property"===i.type?i:null}function p(e){const t=m(e,"src");if(t)return t.value.value}function h(e,t,n){if(!t)return;const r=function(e,t,n){const r=e.document.offsetAt(n);for(let e,n=0,o=t.parsedValue.length;n!("url"===t.type&&t.start<=r&&t.end>=r&&(e=t,1)))),e)return e}(e,t,n);if(!r)return;let o=r.item(0);return o&&"string"===o.type&&(o=o.item(0)),o&&o.valueOf()}function m(e,t){return t=t.toLowerCase(),e&&e.attributes.find((e=>e.name.toString().toLowerCase()===t))}t.updateImageSize=function(){if(!(0,s.validate)()||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=Array.from(e.selections).reverse().map((t=>{const n=t.isReversed?t.active:t.anchor;return(0,s.isStyleSheet)(e.document.languageId)?function(e,t){return l(e,t,d)}(e,n):function(e,t){const n=f(e,t),d=n&&p(n);return d?(0,a.locateFile)(o.dirname(e.document.fileName),d).then(i.getImageSize).then((n=>{const o=f(e,t);return o&&p(o)===d?function(e,t,n,o){const i=e.document,a=m(t,"src");if(!a)return[];const c=m(t,"width"),u=m(t,"height"),l=function(e,t){const n=t.value?t.value.end:t.end,r=t.end;return n===r?"":e.document.getText().substring(n,r)}(e,a),f=t.attributes[t.attributes.length-1].end,d=[];let p="";return c?d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,c.value.start,c.value.end),String(n))):p+=` width=${l}${n}${l}`,u?d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,u.value.start,u.value.end),String(o))):p+=` height=${l}${o}${l}`,p&&d.push(new r.TextEdit((0,s.offsetRangeToVsRange)(i,f,f),p)),d}(e,o,n.width,n.height):[]})).catch((e=>(console.warn("Error while updating image size:",e),[]))):function(e,t){return l(e,t,(e=>{const n=e.document,r=(0,u.getRootNode)(n,!0),o=n.offsetAt(t),i=(0,s.getFlatNode)(r,o,!0);if(i&&"style"===i.name&&i.open&&i.close&&i.open.endo){const e=" ".repeat(i.open.end)+n.getText().substring(i.open.end,i.close.start),t=(0,c.default)(e),r=(0,s.getFlatNode)(t,o,!0);return r&&"property"===r.type?r:null}return null}))}(e,t)}(e,n)}));return Promise.all(t).then((t=>e.edit((e=>{t.forEach((t=>{t.forEach((t=>{e.replace(t.range,t.newText)}))}))}))))}},7013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTag=void 0;const r=n(7549),o=n(4056),i=n(443);t.updateTag=async function(e){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,s=(0,i.getRootNode)(n,!0);if(!s)return;const a=Array.from(t.selections).reverse().reduce(((e,t)=>e.concat(function(e,t,n){const i=e.getText(),s=e.offsetAt(t.start),a=(0,o.getHtmlFlatNode)(i,n,s,!0);return a?function(e,t){const n=[];if(e.open){const o=t.positionAt(e.open.start);n.push({name:e.name,range:new r.Range(o.translate(0,1),o.translate(0,1).translate(0,e.name.length))})}if(e.close){const o=t.positionAt(e.close.start),i=t.positionAt(e.close.end);n.push({name:e.name,range:new r.Range(o.translate(0,2),i.translate(0,-1))})}return n}(a,e):[]}(n,t,s))),[]);if(!a.length)return;const c=a[0].name,u=a.every((e=>e.name===c));return!(void 0===e&&!(e=await r.window.showInputBox({prompt:"Enter Tag",value:u?c:void 0})))&&t.edit((t=>{a.forEach((n=>{t.replace(n.range,e)}))}))}},4056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSyntaxes=t.getPathBaseName=t.toLSTextDocument=t.isNumber=t.isStyleAttribute=t.getEmbeddedCssNodeIfAny=t.getCssPropertyFromDocument=t.getCssPropertyFromRule=t.iterateCSSToken=t.getEmmetConfiguration=t.sameNodes=t.getNodesInBetween=t.findPrevWord=t.findNextWord=t.getDeepestFlatNode=t.offsetRangeToVsRange=t.offsetRangeToSelection=t.isOffsetInsideOpenOrCloseTag=t.setupCdataNodeSubtree=t.setupScriptNodeSubtree=t.getHtmlFlatNode=t.allowedMimeTypesInScriptTag=t.getFlatNode=t.parsePartialStylesheet=t.getEmmetMode=t.getMappingForIncludedLanguages=t.validate=t.isStyleSheet=t.LANGUAGE_MODES=t.migrateEmmetExtensionsPath=t.updateEmmetExtensionsPath=t.getEmmetHelper=t.setHomeDir=void 0;const r=n(7549),o=n(7378),i=n(105),s=n(1894),a=n(6813),c=n(443);let u,l,f;function d(){return u||(u=n(6001)),u}function p(e){return["css","scss","sass","less","stylus"].includes(e)}t.setHomeDir=function(e){f=e},t.getEmmetHelper=d,t.updateEmmetExtensionsPath=function(e=!1){const t=d();let n=r.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||l!==n){l=n;const e=r.workspace.workspaceFolders?.length?r.workspace.workspaceFolders.map((e=>e.uri)):void 0,o=r.workspace.fs;t.updateExtensionsPath(n,o,e,f).catch((e=>{Array.isArray(n)&&n.length&&r.window.showErrorMessage(e.message)}))}},t.migrateEmmetExtensionsPath=function(){const e=r.workspace.getConfiguration().inspect("emmet.extensionsPath");"string"==typeof e?.globalValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):null===e?.globalValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),"string"==typeof e?.workspaceValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):null===e?.workspaceValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),"string"==typeof e?.workspaceFolderValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):null===e?.workspaceFolderValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[])},t.LANGUAGE_MODES={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},t.isStyleSheet=p,t.validate=function(e=!0){const t=r.window.activeTextEditor;return t?!(!e&&p(t.document.languageId)):(r.window.showInformationMessage("No editor is active"),!1)},t.getMappingForIncludedLanguages=function(){const e={},n=r.workspace.getConfiguration("emmet").get("includeLanguages"),o=Object.assign({},{handlebars:"html",php:"html"},n??{});return Object.keys(o).forEach((n=>{"string"==typeof o[n]&&t.LANGUAGE_MODES[o[n]]&&(e[n]=o[n])})),e},t.getEmmetMode=function(e,t,n){if(!e||n.includes(e))return;"jsx-tags"===e&&(e="javascriptreact"),t[e]&&(e=t[e]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?e="jsx":"sass-indented"===e?e="sass":"jade"!==e&&"pug"!==e||(e="pug");const r={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};return r.markup.includes(e)||r.stylesheet.includes(e)?e:void 0};const h=47;function m(e,t,n){if(e)return o(e.children);function r(e){if(!e)return;const r=e.start,i=e.end;if(rt||n&&r<=t&&i>=t)return o(e.children)??e;if("close"in e){const t=e;if(t.open&&!t.close)return o(t.children)}}function o(e){for(let t=0;t"type"===e.name.toString()&&t.allowedMimeTypesInScriptTag.includes(e.value.toString())))&&n.open){const t=" ".repeat(n.open.end),r=n.close?n.close.start:n.end,i=t+e.substring(n.open.end,r);return(0,o.default)(i).children.forEach((e=>{n.children.push(e),e.parent=n})),i}return""}function b(e,t){const n=t.start+"".length,i=" ".repeat(n)+e.substring(n,r);return(0,o.default)(i).children.forEach((e=>{t.children.push(e),e.parent=t})),i}function v(e,t){return!e&&!t||!(!e||!t)&&e.start===t.start&&e.end===t.end}t.parsePartialStylesheet=function(e,t){const n="css"===e.languageId,o=e.offsetAt(t);let a=0,c=e.getText().length;const u=o-5e3,l=u>0?u:a,f=new s.DocumentStreamReader(e,o);function d(){const t=e.positionAt(f.pos).line;if(!n&&b!==t){b=t;const n=e.lineAt(b).text.indexOf("//");n>-1&&(f.pos=e.offsetAt(new r.Position(b,n)))}}function p(){f.sof()||f.peek()!==h||(42===f.backUp(1)?f.pos=function(t){const n=e.getText().substring(0,t).lastIndexOf("/*");if(-1!==n)return n}(f.pos)??a:f.next())}function m(){if(f.eat(h))if(f.eat(h)&&!n){const t=e.positionAt(f.pos).line;f.pos=e.offsetAt(new r.Position(t+1,0))}else f.eat(42)&&(f.pos=function(t){let n=e.getText().substring(t).indexOf("*/");if(-1!==n)return n+=2+t,n}(f.pos)??c)}for(;!f.eof()&&!f.eat(125);)f.peek()===h?m():f.next();f.eof()||(c=f.pos),f.pos=o;let g=1,b=t.line,v=!1;for(;!v&&g>0&&!f.sof();){switch(d(),f.backUp(1)){case 123:g--;break;case 125:n?(f.next(),a=f.pos,v=!0):g++;break;case h:p()}(t.line-e.positionAt(f.pos).line>100||f.pos<=l)&&(v=!0)}b=e.positionAt(f.pos).line,g=0;let y=!1;for(;!v&&!f.sof()&&!y&&g>=0;){d();const e=f.backUp(1);if(!/\s/.test(String.fromCharCode(e))){switch(e){case h:p();break;case 125:g++;break;case 123:g--;break;default:g||(y=!0)}!f.sof()&&y&&(a=f.pos)}}try{const t=" ".repeat(a)+e.getText().substring(a,c);return(0,i.default)(t)}catch(e){return}},t.getFlatNode=m,t.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"],t.getHtmlFlatNode=function e(t,n,r,o){let i=m(n,r,o);if(i){if("script"===i.name&&0===i.children.length){const n=g(t,i);n&&(i=e(n,i,r,o)??i)}else"cdata"===i.type&&(i=e(b(t,i),i,r,o)??i);return i}},t.setupScriptNodeSubtree=g,t.setupCdataNodeSubtree=b,t.isOffsetInsideOpenOrCloseTag=function(e,t){const n=e;return!!(n.open&&t>n.open.start&&tn.close.start&&t"comment"!==e.type)))return t;for(let n=t.children.length-1;n>=0;n--)if("comment"!==t.children[n].type)return e(t.children[n])},t.findNextWord=function(e,t){let n,r,o=-1===t,i=!1,s=!1;for(;t-1;)if(t--,o){if(!o||s||" "!==e[t])if(s){if(" "===e[t]){n=t+1,i=!0;break}}else r=t+1,s=!0}else" "===e[t]&&(o=!0);return s&&!i&&(n=0),[n,r]},t.getNodesInBetween=function(e,t){if(v(e,t))return[e];if(!v(e.parent,t.parent)){if(t.starte.start;)t=t.parent}const n=[];let r=e;const o=t.end;for(;r&&o>r.start;)n.push(r),r=r.nextSibling;return n},t.sameNodes=v,t.getEmmetConfiguration=function(e){const t=r.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),o=Object.assign({},t.preferences||{});return"jsx"!==e&&"xml"!==e&&"xsl"!==e||(n[e]=n[e]||{},"object"!=typeof n[e]||n[e].hasOwnProperty("self_closing_tag")||n[e].hasOwnProperty("selfClosingStyle")||(n[e]={...n[e],selfClosingStyle:"jsx"===e?"xhtml":"xml"})),{preferences:o,showExpandedAbbreviation:t.showExpandedAbbreviation,showAbbreviationSuggestions:t.showAbbreviationSuggestions,syntaxProfiles:n,variables:t.variables,excludeLanguages:t.excludeLanguages,showSuggestionsAsSnippets:t.showSuggestionsAsSnippets}},t.iterateCSSToken=function e(t,n){for(let r=0,o=t.size;r"property"===e.type&&e.name===t))},t.getCssPropertyFromDocument=function(e,t){const n=e.document,r=(0,c.getRootNode)(n,!0),o=n.offsetAt(t),s=m(r,o,!0);if(p(e.document.languageId))return s&&"property"===s.type?s:null;const a=s;if(a&&"style"===a.name&&a.open&&a.close&&a.open.endo){const e=" ".repeat(a.start)+n.getText().substring(a.start,a.end),t=m((0,i.default)(e),o,!0);return t&&"property"===t.type?t:null}return null},t.getEmbeddedCssNodeIfAny=function(e,t,n){if(!t)return;const r=t;if(r&&r.open&&r.close){const t=e.offsetAt(n);if(r.open.end"style"===e.name.toString()));if(-1===r)return!1;const o=n.attributes[r];return t>=o.value.start&&t<=o.value.end},t.isNumber=function(e){return"number"==typeof e},t.toLSTextDocument=function(e){return a.TextDocument.create(e.uri.toString(),e.languageId,e.version,e.getText())},t.getPathBaseName=function(e){const t=e.split("/").pop();return(t?t.split("\\").pop():"")??""},t.getSyntaxes=function(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},7549:e=>{"use strict";e.exports=require("vscode")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(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.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})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.activate=void 0;const t=n(7549),o=n(2087),i=n(139),s=n(4056);e.activate=function(e){e.subscriptions.push(t.commands.registerCommand("editor.emmet.action.updateImageSize",(()=>Promise.resolve().then((()=>n(6846))).then((e=>e.updateImageSize()))))),(0,s.setHomeDir)(t.Uri.file((0,o.homedir)())),(0,i.activateEmmetExtension)(e)}})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/6261075646f055b99068d3688932416f2346dd3b/extensions/emmet/dist/node/emmetNodeMain.js.mapx

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586