@codingame/monaco-vscode-emmet-default-extension 11.1.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e={7545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Token:()=>h,any:()=>Me,backtick:()=>ne,comment:()=>V,createAtRule:()=>Ge,createProperty:()=>Qe,createRule:()=>Ve,default:()=>Ye,formatting:()=>ze,ident:()=>_,interpolation:()=>F,keyword:()=>Ne,lexer:()=>Ze,parseMediaExpression:()=>We,parsePropertyName:()=>Be,parsePropertyValue:()=>Ue,parseSelector:()=>Le,selector:()=>De,string:()=>L,url:()=>_e,value:()=>Fe,variable:()=>Pe,whitespace:()=>Q});var r=n(8769),o=n(6613);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(p(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<o;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function l(e,t){const n=e.pos;return!!e.eat(t)&&(e.start=n,!0)}function f(e,t){const n=e.pos;return!!e.eatWhile(t)&&(e.start=n,!0)}function p(e){return e[e.length-1]}function d(e){return e&&e.valueOf()}class h{constructor(e,t,n,r){this.stream=e,this.start=null!=n?n:e.start,this.end=null!=r?r:e.pos,this.type=t,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(e,t){return new this.constructor(this.stream,this.type,null!=e?e:this.start,null!=t?t:this.end)}add(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)this.add(e[t]);else e&&(this._items?this._items.push(e):this._items=[e]);return this}remove(e){if(this._items){const t=this._items.indexOf(e);-1!==t&&this._items.splice(t,1)}return this}item(e){const t=this.size;return this._items&&this._items[(t+e)%t]}limit(){return this.stream.limit(this.start,this.end)}slice(e,t){const n=this.clone(),r=this._items&&this._items.slice(e,t);return r&&r.length?(n.start=r[0].start,n.end=r[r.length-1].end,n.add(r)):r&&(n.start=n.end),n}property(e,t){return void 0!==t&&(this._props||(this._props={}),this._props[e]=t),this._props&&this._props[e]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return null===this._value&&(this._value=this.stream.substring(this.start,this.end)),this._value}}const m=44,g=58,b=59,y=123,v=125,x=(new Map).set(m,"comma").set(g,"propertyDelimiter").set(b,"propertyTerminator").set(y,"ruleStart").set(v,"ruleEnd");var w=function(e,t){if(40===e.peek()){const r=e.pos;e.next();const o=[];let i,s=!1;for(;!e.eof()&&(n=e.peek())!==y&&n!==v&&!e.eat(41)&&(i=t(e),i);)C(i)&&(s=!0),o.push(i);return e.start=r,function(e,t,n){const r=new h(e,"arguments"),o=n?C:S;let i=[];for(let n,s=0,a=t.length;s<a;s++)n=t[s],o(n)?(r.add(k(e,i)||A(e,n.start)),i.length=0):i.push(n);return i.length&&r.add(k(e,i)),r}(e,o,s)}var n};function k(e,t){if((t=a(t)).length){const n=new h(e,"argument",t[0].start,p(t).end);for(let e=0;e<t.length;e++)n.add(t[e]);return n}}function A(e,t){const n=new h(e,"argument",t,t);return n.property("empty",!0),n}function S(e){return"comma"===e.property("type")}function C(e){return"propertyTerminator"===e.property("type")}const O=45,T=95;function _(e){return j(e)&&new h(e,"ident")}function j(e){const t=e.pos;return e.eat(O),e.eat(E)?(e.eatWhile(P),e.start=t,!0):(e.pos=t,!1)}function E(e){return e===T||e===O||(0,o.R5)(e)||e>=128}function P(e){return(0,o.Et)(e)||E(e)}function $(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}const I=64;function R(e){return $(e,"at-keyword",I,_)}const M=35,D=64;function F(e,t){const n=e.pos;if(t=t||z,(e.eat(M)||e.eat(D))&&e.eat(y)){const r=new h(e,"interpolation",n);let o,i=1;for(;!e.eof();)if(e.eat(y))i++;else if(e.eat(v)){if(i--,!i)return r.end=e.pos,r}else{if(!(o=t(e)))break;r.add(o)}}e.pos=n}function N(e){const t=e.pos;return(e.eat(M)||e.eat(D))&&(0,o.Ji)(e,y,v)?(e.start=t,!0):(e.pos=t,!1)}function z(e){const t=e.pos;for(;!e.eof()&&e.peek()!==v;)B(e)||e.next();if(t!==e.pos)return new h(e,"expression",t)}function L(e){return B(e,!0)}function B(e,t){let n,r,i,s=e.peek();if((0,o.vG)(s)){e.start=e.pos,e.next();const o=s,a=e.pos;for(;!e.eof()&&(n=e.pos,!e.eat(o)&&!e.eat(U));)e.eat(92)?e.eat(U):t&&(i=F(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 U(e){return 10===e||13===e}const W=42,q=47;var V=function(e){return function(e){if(G(e)){const t=new h(e,"comment");return t.property("type","single-line"),t}}(e)||function(e){if(J(e)){const t=new h(e,"comment");return t.property("type","multiline"),t}}(e)};function H(e){return G(e)||J(e)}function G(e){const t=e.pos;if(e.eat(q)&&e.eat(q)){for(e.start=t;!e.eof()&&10!==(n=e.next())&&13!==n;);return!0}var n;return e.pos=t,!1}function J(e){const t=e.pos;if(e.eat(q)&&e.eat(W)){for(;!(e.eof()||e.next()===W&&e.eat(q)););return e.start=t,!0}return e.pos=t,!1}function Q(e){return K(e)&&new h(e,"whitespace")}function K(e){return f(e,o.xC)}const Z=91,X=93;function Y(e){for(;!e.eof();)if(!K(e)&&!H(e))return!0}function ee(e){return 126===e||124===e||94===e||36===e||42===e||61===e}const te=96;function ne(e){if(re(e))return new h(e,"backtick")}function re(e){const t=e.pos;return!!(0,o.Ji)(e,te,te)&&(e.start=t,!0)}const oe=46,ie={43:"adjacentSibling",126:"generalSibling",62:"child",38:"nesting"};var se=function(e){if(43===(t=e.peek())||126===t||38===t||62===t){const t=e.pos,n=ie[e.next()],r=new h(e,"combinator",t);return r.property("type",n),r}var t};const ae=35;function ce(e){if(function(e){return f(e,ue)}(e))return new h(e,"hash-value")}function ue(e){return(0,o.Et)(e)||(0,o.R5)(e,65,70)||95===e||45===e||e>128}const le=35,fe=33,pe=46;function de(e){return 45===e||43===e}const he=33,me=42,ge=43,be=45,ye=47,ve=60,xe=61,we=62;function ke(e){return e===he||e===ve||e===xe||e===we}function Ae(e){return e===me||e===ge||e===be||e===ye||ke(e)}var Se=function(e){const t=e.pos;if(e.eatWhile(58)){const n=_(e);if(n)return new h(e,"pseudo",t).add(n)}e.pos=t},Ce=function(e){return Oe(e)&&new h(e,"unquoted")};function Oe(e){return f(e,Te)}function Te(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||40===e||41===e||92===e||function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}(e))}function _e(e){const t=e.pos;if(u(e,"url(")){K(e);const n=L(e)||Ce(e);return K(e),e.eat(41),new h(e,"url",t).add(n)}e.pos=t}function je(e){const t=e.pos;return u(e,"url(")?(K(e),B(e)||Oe(e),K(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}const Ee=36;function Pe(e){return $(e,"variable",Ee,$e)}function $e(e){if(function(e){return f(e,Ie)}(e))return new h(e,"name")}function Ie(e){return e===Ee||P(e)}function Re(e){const t=Me(e)||w(e,Re);if(t&&"ident"===t.type){const n=w(e,Re);if(n)return new h(e,"function",t.start,n.end).add(t).add(n)}return t||function(e){e.start=e.pos;if(null!=e.next())return new h(e,"unknown")}(e)}function Me(e){return ze(e)||_e(e)||De(e)||Fe(e)||function(e){if((t=e.peek())===m||t===g||t===b||t===y||t===v){const t=e.pos,n=x.get(e.next()),r=new h(e,"separator",t);return r.property("type",n),r}var t}(e)}function De(e){return F(e)||ne(e)||_(e)||R(e)||function(e){return $(e,"class",oe,_)}(e)||function(e){return $(e,"id",le,_)}(e)||Se(e)||function(e){const t=e.pos;if(e.eat(Z)){Y(e);const n=_(e);Y(e);const r=function(e){return f(e,ee)&&new h(e,"operator")}(e);Y(e);const o=L(e)||_(e);return Y(e),e.eat(X),new h(e,"attribute",t).add(n).add(r).add(o)}}(e)||se(e)}function Fe(e){return _e(e)||L(e)||F(e)||ne(e)||function(e){if(function(e){const t=e.pos;if(e.eat(de),e.eatWhile(o.Et)){e.start=t;const n=e.pos;return e.eat(pe)&&e.eatWhile(o.Et)||(e.pos=n),!0}return e.eat(pe)&&e.eatWhile(o.Et)?(e.start=t,!0):(e.pos=t,!1)}(e)){const t=e.start,n=new h(e,"value"),r=function(e){return j(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 $(e,"hash",ae,ce,!0)}(e)||Ne(e)||function(e){return $(e,"important",fe,_)}(e)||function(e){return function(e){return l(e,ke)?(e.eatWhile(xe),!0):!!l(e,Ae)}(e)&&new h(e,"operator")}(e)}function Ne(e){return ne(e)||Pe(e)||R(e)||_(e)}function ze(e){return V(e)||Q(e)}function Le(e){return qe(e,"selector")}function Be(e){const t="string"==typeof e?new r.A(e):e,n=[];for(;!t.eof();)n.push(Re(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<t;e++)o.add(n[e])}return o}function Ue(e){return qe(e)}function We(e){return qe(e)}function qe(e,t){t=t||"item";const n="string"==typeof e?new r.A(e):e,o=[],i=[],s=()=>{const e=a(i);if(e.length){const r=new h(n,t,e[0].start,p(e).end);for(let t=0;t<e.length;t++)r.add(e[t]);o.push(r)}i.length=0};let c;for(;!n.eof();)if(n.eat(44))s();else{if(!(c=Re(n)))throw n.error("Unexpected character");"comment"!==c.type&&i.push(c)}return s(),o}function Ve(e,t,n,r){if(!t.length)return null;const o=t[0];return o.end=p(t).end,new He(e,o,n,r)}class He extends i{constructor(e,t,n,r){super("rule"),this.stream=e,this.selectorToken=t,this.contentStartToken=n,this.contentEndToken=r||n,this._parsedSelector=null}get selector(){return d(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Le(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function Ge(e,t,n,r){if(!t.length)return null;let o,i=0;const s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=p(t).end):o=new h(e,"expression",s.end,s.end),new Je(e,s,o,n,r)}class Je extends i{constructor(e,t,n,r,o){super("at-rule"),this.stream=e,this.nameToken=t,this.expressionToken=n,this.contentStartToken=r,this.contentEndToken=o||r,this._parsedExpression=null}get name(){return d(this.nameToken&&this.nameToken.item(0))}get expression(){return d(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=We(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function Qe(e,t,n){if(!t.length)return null;let r,o,i=0;const s=t[i++];return i<t.length&&(o=t[i++],o.type="value",o.end=p(t).end),s&&o&&(r=new h(e,"separator",s.end,o.start)),new Ke(e,s,o,r,n)}class Ke extends i{constructor(e,t,n,r,o){super("property"),this.stream=e,this.nameToken=t,this.valueToken=n,this._parsedName=null,this._parsedValue=null,this.separatorToken=r,this.terminatorToken=o}get name(){return d(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=Be(this.nameToken.limit())),this._parsedName}get value(){return d(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Ue(this.valueToken.limit())),this._parsedValue}get separator(){return d(this.separatorToken)}get terminator(){return d(this.terminatorToken)}get start(){const e=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return e&&e.start}get end(){const e=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return e&&e.end}}function Ze(e,t){t=t||Re;const n="string"==typeof e?new r.A(e):e,o=[];let i;for(;!n.eof()&&(i=t(n));)o.push(i);return o}function Xe(e,t){if(e.eat(40)){let n,r=1;for(;!e.eof();)if(e.eat(41)){if(r--,!r)break}else if(e.eat(40))r++;else{if(je(e)||B(e))continue;if(n=V(e)){t.addComment(n);continue}e.next()}return!0}return!1}const Ye=function(e){const t="string"==typeof e?new r.A(e):e,n=new s;let o,i,a,c=n,u=[];const l=()=>{i&&(u.push(i),i=null)};for(;!t.eof();)if(!K(t))if(a=V(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(Qe(t,u,new h(t,"termintator"))),u.length=0;else if(t.eat(123))l(),u.length>0&&(o="at-keyword"===u[0].type?Ge(t,u,new h(t,"body-start")):Ve(t,u,new h(t,"body-start")),c.add(o),c=o,u.length=0);else if(t.eat(125))l(),c.add(Qe(t,u)),"stylesheet"!==c.type&&(c.contentEndToken=new h(t,"body-end"),c=c.parent),u.length=0;else if(a=R(t))l(),u.push(a);else{if(!(je(t)||N(t)||re(t)||Xe(t,n)||B(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(Qe(t,u)),t.start=t.pos;c&&c!==n;)c.contentEndToken=new h(t,"body-end"),c=c.parent;return n}},1253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I,defaultOptions:()=>j,match:()=>E});var r=n(8769),o=n(6613);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.Ji)(e,60,62,c)||(0,o.Ji)(e,91,93,c)||(0,o.Ji)(e,40,41,c)||(0,o.Ji)(e,123,125,c))return s(e,t)};const l=47,f=61,p=62;function d(e){return u(e)||s(e,m)}function h(e){const t=e.pos;if((0,o.vP)(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,b)}(e)}function m(e){return e!==f&&!g(e)&&!(0,o.xC)(e)}function g(e){return e===p||e===l}function b(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||g(e))}var y=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,v)}(e))&&("close"!==n.type&&(n.attributes=function(e){const t=[];let n;for(;!e.eof();)if(e.eatWhile(o.xC),n={start:e.pos},n.name=d(e))e.eat(f)?n.value=h(e):n.boolean=!0,n.end=e.pos,t.push(n);else{if(g(e.peek()))break;e.next()}return t}(e),e.eatWhile(o.xC),n.selfClosing=e.eat(47)),e.eat(62)))return Object.assign(s(e,t),n)}return e.pos=t,null};function v(e){return(0,o.gA)(e)||58===e||46===e||45===e||95===e}function x(e,t){const n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function w(e,t,n,r){const o=e.pos;if(x(e,t)){for(;!e.eof();){if(x(e,n))return!0;e.next()}return!!r||(e.pos=o,!1)}return e.pos=o,null}function k(e){return e.split("").map((e=>e.charCodeAt(0)))}const A=k("\x3c!--"),S=k("--\x3e");var C=function(e){const t=e.pos;if(w(e,A,S,!0)){const n=s(e,t);return n.type="comment",n}return null};const O=k("<![CDATA["),T=k("]]>");var _=function(e){const t=e.pos;if(w(e,O,T,!0)){const n=s(e,t);return n.type="cdata",n}return null};const j={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function E(e){if(60===e.peek())return C(e)||_(e)||y(e)}function P(e,t){const n=e.pos;for(;!e.eof();){if(x(e,t))return e.pos=e.start,y(e);e.next()}return e.pos=n,null}function $(e){return e[e.length-1]}const I=function(e,t){t=Object.assign({},j,t);const n="string"==typeof e?new r.A(e):e,o=new i(n,"root"),s=new Set(t.empty),a=t.special.reduce(((e,t)=>e.set(t,k(`</${t}>`))),new Map),c=(e,n)=>e.selfClosing||!t.xml&&s.has(n);let u,l,f,p=[o];for(;!n.eof();)if(u=E(n))if(f=(d=u).name?d.name.value.toLowerCase():`#${d.type}`,"open"===u.type)l=new i(n,"tag",u),$(p).addChild(l),a.has(f)?l.close=P(n,a.get(f)):c(u,f)||p.push(l);else if("close"===u.type){for(let e=p.length-1;e>0;e--)if(p[e].name.toLowerCase()===f){p[e].close=u,p=p.slice(0,e);break}}else $(p).addChild(new i(n,u.type,u));else n.next();var d;return o}},2915:(e,t,n)=>{"use strict";function r(e){return e>47&&e<58}function o(e){return 32===e||9===e||160===e}function i(e){return o(e)||10===e||13===e}n.r(t),n.d(t,{default:()=>O,extract:()=>x,parse:()=>u});class s{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 s(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new a(`${e} at ${t+1}`,t,this.string)}}class a extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const c=y("null",0);function u(e){const t="string"==typeof e?new s(e):e;let n,r=0,i=21;const a=[];for(;!t.eof();)t.eatWhile(o),t.start=t.pos,l(t)?(1&i||h("Unexpected number",t),a.push(f(t.current())),i=10):b(t.peek())?(n=t.next(),m(n)&&16&i?(g(n)&&a.push(p(n,r)),i=21):(2&i||h("Unexpected operator",t),a.push(d(n,r)),i=21)):t.eat(40)?(4&i||h('Unexpected "("',t),r+=10,i=53):t.eat(41)?(r-=10,32&i?a.push(c):8&i||h('Unexpected ")"',t),i=14):h("Unknown character",t);(r<0||r>=10)&&h('Unmatched "()"',t);const u=function(e){const t=[],n=[];let r=0;for(let o=0;o<e.length;o++){const i=e[o];if("num"===i.type)n.push(i);else{for(r+="op1"===i.type?1:2;t.length&&i.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(i)}}return r+1===n.length+t.length?n.concat(t.reverse()):null}(a);return null===u&&h("Parity",t),u}function l(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(r))||!(!e.eatWhile(r)||e.eat(46)&&!e.eatWhile(r))||(e.pos=t,!1)}function f(e,t){return y("num",parseFloat(e),t)}function p(e,t=0){return 45===e&&(t+=2),y("op1",e,t)}function d(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),y("op2",e,t)}function h(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function m(e){return function(e){return 43===e}(e)||g(e)}function g(e){return 45===e}function b(e){return 43===e||45===e||42===e||47===e||92===e}function y(e,t,n=0){return{type:e,value:t,priority:n}}const v={lookAhead:!0,whitespace:!0};function x(e,t=e.length,n){const r=Object.assign(Object.assign({},v),n),o={text:e,pos:t};let s;if(r.lookAhead&&41===A(o)){o.pos++;const t=e.length;for(;o.pos<t&&(s=A(o),41===s||r.whitespace&&i(s));)o.pos++}const a=o.pos;let c=0;for(;o.pos>=0;)if(!w(o)){if(s=k(o),41===s)c++;else if(40===s){if(!c)break;c--}else if(!(r.whitespace&&i(s)||m(s)||b(s)))break;o.pos--}if(o.pos!==a&&!c){for(;i(A(o));)o.pos++;return[o.pos,a]}return null}function w(e){if(r(k(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=k(e),46===t){if(n)break;n=!0}else if(!r(t))break;e.pos--}return!0}return!1}function k(e){return e.text.charCodeAt(e.pos-1)}function A(e){return e.text.charCodeAt(e.pos)}const S={45:e=>-e},C={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)},O=function(e){if(Array.isArray(e)||(e=u(e)),!e||!e.length)return null;const t=[];let n,r,o;for(let i=0,s=e.length;i<s;i++){const s=e[i];if("num"===s.type)t.push(s.value);else if("op2"===s.type)r=t.pop(),n=t.pop(),o=C[s.value],t.push(o(n,r));else{if("op1"!==s.type)throw new Error("Invalid expression");n=t.pop(),o=S[s.value],t.push(o(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}},6613:(e,t,n)=>{"use strict";n.d(t,{Et:()=>c,Ji:()=>d,R5:()=>u,gA:()=>l,vG:()=>a,vP:()=>s,xC:()=>f});const r=39,o=34,i={escape:92,throws:!1};var s=function(e,t){t=t?Object.assign({},i,t):i;const n=e.pos,r=e.peek();if(e.eat(a)){for(;!e.eof();)switch(e.next()){case r: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 a(e){return e===r||e===o}function c(e){return e>47&&e<58}function u(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function l(e){return c(e)||u(e)}function f(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}const p={escape:92,throws:!1};function d(e,t,n,r){r=r?Object.assign({},p,r):p;const o=e.pos;if(e.eat(t)){let i,a=1;for(;!e.eof();)if(!s(e,r))if(i=e.next(),i===t)a++;else if(i===n){if(a--,!a)return e.start=o,!0}else i===r.escape&&e.next();if(e.pos=o,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}},8769:(e,t,n)=>{"use strict";n.d(t,{A:()=>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<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e){const t=new Error(`${e} at char ${this.pos+1}`);return t.originalMessage=e,t.pos=this.pos,t.string=this.string,t}}},3438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxes=t.parseSnippets=void 0,t.parseSnippets=function(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t},t.syntaxes={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]}},6173:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlData=t.cssData=void 0,t.cssData={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"]},t.htmlData={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"]}},8708:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=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.getEmmetMode=t.updateExtensionsPath=t.expandAbbreviation=t.parseAbbreviation=t.getExpandOptions=t.isAbbreviationValid=t.extractAbbreviationFromText=t.extractAbbreviation=t.getDefaultSnippets=t.getDefaultSyntax=t.getSyntaxType=t.isStyleSheet=t.emmetSnippetField=t.doComplete=t.FileType=void 0;const a=i(n(5887)),c=n(9208),u=n(7806),l=n(4756),f=n(6173),p=n(4709);Object.defineProperty(t,"FileType",{enumerable:!0,get:function(){return p.FileType}});const d=i(n(2172)),h=n(3438);let m;try{m=n(1398).l10n}catch(e){m={t:e=>e}}const g=new Map;let b;const y=new Map,v=/^[a-z,A-Z,!,(,[,#,\.\{]/,x=/^[a-z,A-Z,!,(,[,#,\.]/,w=/^-?[a-z,A-Z,!,@,#]/,k=/[a-z,A-Z\.]/,A=[...f.htmlData.tags,"lorem"],S="bem",C="|",O="t",T="c",_=3;function j(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 l;try{l=(0,d.default)(c,o)}catch(e){}if(!l)return;const f=u.CompletionItem.create(t+e.substr(t.length));f.documentation=E(l),f.detail=i,f.textEdit=u.TextEdit.replace(r,P($(l))),f.insertTextFormat=u.InsertTextFormat.Snippet,a.push(f)})),a}function E(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function P(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function $(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&&!r;){if("$"!=e[i++]||"{"!=e[i++])continue;let a=-1,c=-1;for(;i<s&&/\d/.test(e[i]);)a=a<0?i:a,c=i+1,i++;if(-1===a||-1===c||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(;i<s;){if("}"==e[i]){l=!0;break}i++}Number(u)>Number(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<n.length;t++){const r=n[t].numberStart,o=n[t].numberEnd;e=e.substr(0,r)+"0"+e.substr(o)}return e}function I(e,t){const n=e.offsetAt(t),r=e.getText();let o=0,i=r.length;for(let e=n-1;e>=0;e--)if("\n"===r[e]){o=e+1;break}for(let e=n;e<r.length;e++)if("\n"===r[e]){i=e;break}return r.substring(o,i)}t.doComplete=function(e,t,n,r){var o,i;if("never"===r.showExpandedAbbreviation||!Z(n,r.excludeLanguages))return;const s=F(n);if(!s){if(!g.has(n)){const e=Object.assign(Object.assign({},L(n)),R[n]);g.set(n,Object.keys(e))}b=null!==(o=g.get(n))&&void 0!==o?o:[]}const a=U(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!a)return;const{abbreviationRange:c,abbreviation:l,filter:p}=a,v=I(e,t).substr(0,t.character);if(function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(v)===l&&v.endsWith(`<${l}`)&&h.syntaxes.markup.includes(n))return;const x=q(n,r,p);let w,k="",S=[];const C=(e,t)=>{if(W(e,l)){try{k=(0,d.default)(t,x),s&&"!important".startsWith(t)&&(k="!important")}catch(e){}k&&!function(e,t,n,r){var o,i;if(F(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&&A.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(A.includes(t.toLowerCase())||b.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if(/^\.{2,}$/.test(t))return!0;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!f.htmlData.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(e,t,k,x.options)&&(w=u.CompletionItem.create(t),w.textEdit=u.TextEdit.replace(c,P($(k))),w.documentation=E(k),w.insertTextFormat=u.InsertTextFormat.Snippet,w.detail=m.t("Emmet Abbreviation"),w.label=l,w.label+=p?"|"+p.replace(",","|"):"",S=[w])}};if(F(n)){if(C(n,l),l.length>4&&f.cssData.properties.find((e=>e.startsWith(l))))return u.CompletionList.create([],!0);if(w&&k.length){w.textEdit=u.TextEdit.replace(c,P($(k))),w.documentation=E(k),w.label=k.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),w.filterText=l;const e=y.has(n)?y.get(n):y.get("css");if(S=j(null!=e?e:[],l,l,c,x,"Emmet Custom Snippet",!1),!S.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==w?void 0:w.textEdit)||void 0===r?void 0:r.newText)}))){const e=new RegExp(".*"+l.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(l)||e.test(w.label))&&S.push(w)}}}else{C(n,l);let e=l;const t=l.match(/(>|\+)([\w:-]+)$/);if(t&&3===t.length&&(e=t[2]),"xml"!==n){const t=j(A,e,l,c,x,"Emmet Abbreviation");S=S.concat(t)}if(!0===r.showAbbreviationSuggestions){const t=j(b.filter((e=>!A.includes(e))),e,l,c,x,"Emmet Abbreviation");w&&t.length>0&&e!==l&&(w.sortText="0"+w.label,t.forEach((e=>{e.filterText=l,e.sortText="9"+l}))),S=S.concat(t)}"html"===n&&S.length>=2&&l.includes(":")&&(null===(i=null==w?void 0:w.textEdit)||void 0===i?void 0:i.newText)===`<${l}>\${0}</${l}>`&&(S=S.filter((e=>e.label!==l)))}return!0===r.showSuggestionsAsSnippets&&S.forEach((e=>e.kind=u.CompletionItemKind.Snippet)),S.length?u.CompletionList.create(S,!0):void 0};let R={},M={},D={};function F(e){return h.syntaxes.stylesheet.includes(e)}function N(e){return F(e)?"stylesheet":"markup"}function z(e){return F(e)?"css":"html"}function L(e){const t={type:N(e),syntax:e},n=(0,d.resolveConfig)(t);return"xml"===e?{}:n.snippets}function B(e,t){let n;for(let r=0;r<_;r++)if(e.endsWith(`${C}${S}`,t))t-=S.length+1,n=n?S+","+n:S;else if(e.endsWith(`${C}${T}`,t))t-=T.length+1,n=n?T+","+n:T;else{if(!e.endsWith(`${C}${O}`,t))break;t-=O.length+1,n=n?O+","+n:O}return{pos:t,filter:n}}function U(e,t,n){const r=I(e,t),o=r.substr(0,t.character),{pos:i,filter:s}=B(o,t.character),a=s?s.length+1:0,c=(0,d.extract)(r,i,n);if(c)return{abbreviationRange:u.Range.create(t.line,c.location,t.line,c.location+c.abbreviation.length+a),abbreviation:c.abbreviation,filter:s}}function W(e,t){if(!t)return!1;if(F(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(A.includes(t.substring(0,t.indexOf("#"))))return!1}return w.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?x.test(t)&&k.test(t):!/^{%|{#|{{/.test(t)&&v.test(t)&&k.test(t))}function q(e,n,r){var o,i,s,a,c,u,l,f,p,d;(n=null!=n?n:{}).preferences=null!==(o=n.preferences)&&void 0!==o?o:{};const h=n.preferences,m=F(e)?e:"css",g=function(e,t){t||(t={});const n=Object.assign({},D,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!==(i=n.syntaxProfiles)&&void 0!==i?i:{}),b=(g&&g.filters?g.filters.split(","):[]).map((e=>e.trim())),y=r&&r.split(",").some((e=>"bem"===e.trim()))||b.includes("bem"),v=r&&r.split(",").some((e=>"c"===e.trim()))||b.includes("c"),x=function(e,t){if(!t||"object"!=typeof t)return{};if(!F(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,n.preferences),w=(null==x?void 0:x.stylesheet)&&x.stylesheet.unitAliases||{},k={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":t.emmetSnippetField,"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};let A={"output.tagCase":g.tagCase,"output.attributeCase":g.attributeCase,"output.attributeQuotes":g.attributeQuotes,"output.format":null===(s=g.format)||void 0===s||s,"output.formatSkip":h["format.noIndentTags"],"output.formatForce":h["format.forceIndentationForTags"],"output.inlineBreak":null!==(a=g.inlineBreak)&&void 0!==a?a:h["output.inlineBreak"],"output.compactBoolean":null!==(c=g.compactBooleanAttributes)&&void 0!==c?c:h["profile.allowCompactBoolean"],"output.reverseAttributes":h["output.reverseAttributes"],"output.selfClosingStyle":null!==(l=null!==(u=g.selfClosingStyle)&&void 0!==u?u:h["output.selfClosingStyle"])&&void 0!==l?l:V(e),"output.field":t.emmetSnippetField,"comment.enabled":v,"comment.trigger":h["filter.commentTrigger"],"comment.before":h["filter.commentBefore"],"comment.after":h["filter.commentAfter"],"bem.enabled":y,"bem.element":null!==(f=h["bem.elementSeparator"])&&void 0!==f?f:"__","bem.modifier":null!==(p=h["bem.modifierSeparator"])&&void 0!==p?p:"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":h["css.color.short"],"stylesheet.between":h[`${m}.valueSeparator`],"stylesheet.after":h[`${m}.propertyEnd`],"stylesheet.intUnit":h["css.intUnit"],"stylesheet.floatUnit":h["css.floatUnit"],"stylesheet.unitAliases":w,"stylesheet.fuzzySearchMinScore":h["css.fuzzySearchMinScore"]};if("jsx"===e){const e={class:"className","class*":"styleName",for:"htmlFor"},t={"class*":"styles"};g["markup.attributes"]&&(A["markup.attributes"]=Object.assign(Object.assign({},e),g["markup.attributes"])),g["markup.valuePrefix"]&&(A["markup.valuePrefix"]=Object.assign(Object.assign({},t),g["markup.valuePrefix"]))}if("vue"===e){const e={"class*":":class"},t={"class*":"$style"};g["markup.attributes"]&&(A["markup.attributes"]=Object.assign(Object.assign({},e),g["markup.attributes"])),g["markup.valuePrefix"]&&(A["markup.valuePrefix"]=Object.assign(Object.assign({},t),g["markup.valuePrefix"]))}const S={};[...Object.keys(k),...Object.keys(A)].forEach((e=>{var t;const n=e;S[n]=null!==(t=A[n])&&void 0!==t?t:k[n]}));const C=Object.assign(Object.assign({},k["stylesheet.unitAliases"]),A["stylesheet.unitAliases"]);S["stylesheet.unitAliases"]=C;const O=N(e),T=(E=n.variables)?Object.assign({},M,E):M,_=z(e),j="stylesheet"===O?null!==(d=R[e])&&void 0!==d?d:R[_]:R[e];var E;return{type:O,options:S,variables:T,snippets:j,syntax:e,text:void 0,maxRepeat:1e3}}function V(e){switch(e){case"xhtml":case"jsx":return"xhtml";case"xml":case"xsl":return"xml";default:return"html"}}function H(e,t){let n=[];const r=a.parse(t,n);if(n.length)throw new Error(`Found error ${a.printParseErrorCode(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function G(e){if("object"!=typeof e||!e)throw new Error(m.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));M=Object.assign({},M,e)}function J(e){if("object"!=typeof e||!e)throw new Error(m.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));D=Object.assign({},D,e)}function Q(e){if("object"!=typeof e||!e)throw new Error(m.t("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=z(t);let r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),F(t)){const e=y.get(t),n=Object.assign([],e,Object.keys(r));y.set(t,n)}else for(const e in r)r.hasOwnProperty(e)&&r[e].startsWith("<")&&r[e].endsWith(">")&&(r[e]=`{${r[e]}}`);const o=R[t],i=(0,h.parseSnippets)(r),s=Object.assign({},o,i);R[t]=s}))}function K(){R={},g.clear(),y.clear(),D={},M={}}function Z(e,t=[]){if(e&&!t.includes(e))return/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?"jsx":"sass-indented"===e?"sass":"jade"===e?"pug":h.syntaxes.markup.includes(e)||h.syntaxes.stylesheet.includes(e)?e:void 0}t.emmetSnippetField=(e,t)=>`\${${e}${t?":"+t:""}}`,t.isStyleSheet=F,t.getSyntaxType=N,t.getDefaultSyntax=z,t.getDefaultSnippets=L,t.extractAbbreviation=U,t.extractAbbreviationFromText=function(e,t){if(!e)return;const{pos:n,filter:r}=B(e,e.length),o=F(t)||"stylesheet"===t?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0},i=(0,d.extract)(e,n,o);return i?{abbreviation:i.abbreviation,filter:r}:void 0},t.isAbbreviationValid=W,t.getExpandOptions=q,t.parseAbbreviation=function(e,t){const n=(0,d.resolveConfig)(t);return"stylesheet"===t.type?(0,d.parseStylesheet)(e,n):(0,d.parseMarkup)(e,n)},t.expandAbbreviation=function(e,t){let n;const r=(0,d.resolveConfig)(t);return n="stylesheet"===t.type?"string"==typeof e?(0,d.default)(e,r):(0,d.stringifyStylesheet)(e,r):"string"==typeof e?(0,d.default)(e,r):(0,d.stringifyMarkup)(e,r),P($(n))},t.updateExtensionsPath=function(e,t,n,r){return s(this,void 0,void 0,(function*(){if(K(),!e.length)return;const o=[];for(let t of e)if("string"==typeof t){if(t=t.trim(),t.length&&"~"===t[0])r&&o.push((0,p.joinPath)(r,t.substring(1)));else if((0,p.isAbsolutePath)(t))o.push(l.URI.file(t));else if(n)for(const e of n)o.push((0,p.joinPath)(e,t))}else console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(t));for(const e of o){try{if((yield t.stat(e)).type!==p.FileType.Directory)continue}catch(e){continue}const n=(0,p.joinPath)(e,"snippets.json"),r=(0,p.joinPath)(e,"syntaxProfiles.json");let o;o="function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder:new c.TextDecoder;let i="";try{const e=yield t.readFile(n);i=o.decode(e)}catch(e){}if(i.length)try{const e=H(n,i);e.variables&&G(e.variables),Q(e)}catch(e){throw K(),e}let s="";try{const e=yield t.readFile(r);s=o.decode(e)}catch(e){}if(s.length)try{J(H(r,s))}catch(e){throw K(),e}}}))},t.getEmmetMode=Z},4709:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.joinPath=t.normalizePath=t.resolvePath=t.isAbsolutePath=t.FileType=void 0,(n=t.FileType||(t.FileType={}))[n.Unknown=0]="Unknown",n[n.File=1]="File",n[n.Directory=2]="Directory",n[n.SymbolicLink=64]="SymbolicLink";const r=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),o=".".charCodeAt(0);function i(e){return r.test(e)}function s(e){const t=[];for(const n of e)0===n.length||1===n.length&&n.charCodeAt(0)===o||(2===n.length&&n.charCodeAt(0)===o&&n.charCodeAt(1)===o?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 a(e,...t){const n=e.path.split("/");for(const e of t)n.push(...e.split("/"));return e.with({path:s(n)})}t.isAbsolutePath=i,t.resolvePath=function(e,t){return i(t)?e.with({path:s(t.split("/"))}):a(e,t)},t.normalizePath=s,t.joinPath=a},5887:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t=!1);var n=e.length,r=0,a="",c=0,u=16,l=0,f=0,p=0,d=0,h=0;function m(t,n){for(var o=0,i=0;o<t||!n;){var s=e.charCodeAt(r);if(s>=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<t&&(i=-1),i}function g(){if(a="",h=0,c=r,f=l,d=p,r>=n)return c=n,u=17;var t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return u=15}if(i(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),l++,p=r,u=14;switch(t){case 123:return r++,u=1;case 125:return r++,u=2;case 91:return r++,u=3;case 93:return r++,u=4;case 58:return r++,u=6;case 44:return r++,u=5;case 34:return r++,a=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),h=2;break}var s=e.charCodeAt(r);if(34===s){t+=e.substring(o,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(i(s)){t+=e.substring(o,r),h=2;break}h=6}r++}else{if(t+=e.substring(o,r),++r>=n){h=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 a=m(4,!0);a>=0?t+=String.fromCharCode(a):h=4;break;default:h=5}o=r}}return t}(),u=10;case 47:var g=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!i(e.charCodeAt(r));)r++;return a=e.substring(g,r),u=12}if(42===e.charCodeAt(r+1)){r+=2;for(var y=n-1,v=!1;r<y;){var x=e.charCodeAt(r);if(42===x&&47===e.charCodeAt(r+1)){r+=2,v=!0;break}r++,i(x)&&(13===x&&10===e.charCodeAt(r)&&r++,l++,p=r)}return v||(r++,h=1),a=e.substring(g,r),u=13}return a+=String.fromCharCode(t),r++,u=16;case 45:if(a+=String.fromCharCode(t),++r===n||!s(e.charCodeAt(r)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&s(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&s(e.charCodeAt(r))))return h=3,e.substring(t,r);for(r++;r<e.length&&s(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&s(e.charCodeAt(r))){for(r++;r<e.length&&s(e.charCodeAt(r));)r++;n=r}else h=3;return e.substring(t,n)}(),u=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(c!==r){switch(a=e.substring(c,r)){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return a+=String.fromCharCode(t),r++,u=16}}function b(e){if(o(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",c=0,u=16,h=0},getPosition:function(){return r},scan:t?function(){var e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:function(){return u},getTokenValue:function(){return a},getTokenOffset:function(){return c},getTokenLength:function(){return r-c},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return c-d},getTokenError:function(){return h}}}function o(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function i(e){return 10===e||13===e||8232===e||8233===e}function s(e){return e>=48&&e<=57}function a(e,t,n){var o,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!u(e,s-1);)s--;for(var f=l;f<e.length&&!u(e,f);)f++;i=e.substring(s,f),o=function(e,t){for(var n=0,r=0,o=t.tabSize||4;n<e.length;){var i=e.charAt(n);if(" "===i)r++;else{if("\t"!==i)break;r+=o}n++}return Math.floor(r/o)}(i,n)}else i=e,o=0,s=0,a=0,l=e.length;var p,d=function(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if("\r"===r)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===r)return"\n"}return e&&e.eol||"\n"}(n,e),h=!1,m=0;p=n.insertSpaces?c(" ",n.tabSize||4):"\t";var g=r(i,!1),b=!1;function y(){return d+c(p,o+m)}function v(){var e=g.scan();for(h=!1;15===e||14===e;)h=h||14===e,e=g.scan();return b=16===e||0!==g.getTokenError(),e}var x=[];function w(t,n,r){!b&&n<l&&r>a&&e.substring(n,r)!==t&&x.push({offset:n,length:r-n,content:t})}var k=v();if(17!==k){var A=g.getTokenOffset()+s;w(c(p,o),s,A)}for(;17!==k;){for(var S=g.getTokenOffset()+g.getTokenLength()+s,C=v(),O="";!h&&(12===C||13===C);)w(" ",S,g.getTokenOffset()+s),S=g.getTokenOffset()+g.getTokenLength()+s,O=12===C?y():"",C=v();if(2===C)1!==k&&(m--,O=y());else if(4===C)3!==k&&(m--,O=y());else{switch(k){case 3:case 1:m++,O=y();break;case 5:case 12:O=y();break;case 13:O=h?y():" ";break;case 6:O=" ";break;case 10:if(6===C){O="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===C||13===C?O=" ":5!==C&&17!==C&&(b=!0);break;case 16:b=!0}!h||12!==C&&13!==C||(O=y())}w(O,S,g.getTokenOffset()+s),k=C}return x}function c(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function u(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}var l;function f(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=l.DEFAULT);var r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(e){"property"===r.type&&(r.length=e-r.offset,r=r.parent)}function i(e){return r.children.push(e),e}d(e,{onObjectBegin:function(e){r=i({type:"object",offset:e,length:-1,parent:r,children:[]})},onObjectProperty:function(e,t,n){(r=i({type:"property",offset:t,length:-1,parent:r,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:r})},onObjectEnd:function(e,t){o(e+t),r.length=e+t-r.offset,r=r.parent,o(e+t)},onArrayBegin:function(e,t){r=i({type:"array",offset:e,length:-1,parent:r,children:[]})},onArrayEnd:function(e,t){r.length=e+t-r.offset,r=r.parent,o(e+t)},onLiteralValue:function(e,t,n){i({type:h(e),offset:t,length:n,parent:r,value:e}),o(t+n)},onSeparator:function(e,t,n){"property"===r.type&&(":"===e?r.colonOffset=t:","===e&&o(t))},onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n);var s=r.children[0];return s&&delete s.parent,s}function p(e,t){if(e){for(var n=e,r=0,o=t;r<o.length;r++){var i=o[r];if("string"==typeof i){if("object"!==n.type||!Array.isArray(n.children))return;for(var s=!1,a=0,c=n.children;a<c.length;a++){var u=c[a];if(Array.isArray(u.children)&&u.children[0].value===i){n=u.children[1],s=!0;break}}if(!s)return}else{var l=i;if("array"!==n.type||l<0||!Array.isArray(n.children)||l>=n.children.length)return;n=n.children[l]}}return n}}function d(e,t,n){void 0===n&&(n=l.DEFAULT);var o=r(e,!1);function i(e){return e?function(){return e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var a=i(t.onObjectBegin),c=s(t.onObjectProperty),u=i(t.onObjectEnd),f=i(t.onArrayBegin),p=i(t.onArrayEnd),d=s(t.onLiteralValue),h=s(t.onSeparator),m=i(t.onComment),g=s(t.onError),b=n&&n.disallowComments,y=n&&n.allowTrailingComma;function v(){for(;;){var e=o.scan();switch(o.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:b||x(11);break;case 2:x(12);break;case 6:x(16)}switch(e){case 12:case 13:b?x(10):m();break;case 16:x(1);break;case 15:case 14:break;default:return e}}}function x(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),g(e),t.length+n.length>0)for(var r=o.getToken();17!==r;){if(-1!==t.indexOf(r)){v();break}if(-1!==n.indexOf(r))break;r=v()}}function w(e){var t=o.getTokenValue();return e?d(t):c(t),v(),!0}return v(),17===o.getToken()?!!n.allowEmptyContent||(x(4,[],[]),!1):function e(){switch(o.getToken()){case 3:return function(){f(),v();for(var t=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||x(4,[],[]),h(","),v(),4===o.getToken()&&y)break}else t&&x(6,[],[]);e()||x(4,[],[4,5]),t=!0}return p(),4!==o.getToken()?x(8,[4],[]):v(),!0}();case 1:return function(){a(),v();for(var t=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||x(4,[],[]),h(","),v(),2===o.getToken()&&y)break}else t&&x(6,[],[]);(10!==o.getToken()?(x(3,[],[2,5]),0):(w(!1),6===o.getToken()?(h(":"),v(),e()||x(4,[],[2,5])):x(5,[],[2,5]),1))||x(4,[],[2,5]),t=!0}return u(),2!==o.getToken()?x(7,[2],[]):v(),!0}();case 10:return w(!0);default:return function(){switch(o.getToken()){case 11:var e=o.getTokenValue(),t=Number(e);isNaN(t)&&(x(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return v(),!0}()}}()?(17!==o.getToken()&&x(9,[],[]),!0):(x(4,[],[]),!1)}function h(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":return e?Array.isArray(e)?"array":"object":"null";default:return"null"}}function m(e,t,n){if(!n.formattingOptions)return[t];var r=g(e,t),o=t.offset,i=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!u(r,o-1);)o--;for(;i<r.length&&!u(r,i);)i++}for(var s=a(r,{offset:o,length:i-o},n.formattingOptions),c=s.length-1;c>=0;c--){var l=s[c];r=g(r,l),o=Math.min(o,l.offset),i=Math.max(i,l.offset+l.length),i+=l.content.length-l.length}return[{offset:o,length:e.length-(r.length-i)-o,content:r.substring(o,i)}]}function g(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}n.r(t),n.d(t,{applyEdits:()=>E,createScanner:()=>b,findNodeAtLocation:()=>w,findNodeAtOffset:()=>k,format:()=>_,getLocation:()=>y,getNodePath:()=>A,getNodeValue:()=>S,modify:()=>j,parse:()=>v,parseTree:()=>x,printParseErrorCode:()=>T,stripComments:()=>O,visit:()=>C}),function(e){e.DEFAULT={allowTrailingComma:!1}}(l||(l={}));var b=r,y=function(e,t){var n=[],r=new Object,o=void 0,i={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(e,t,n,r){i.value=e,i.offset=t,i.length=n,i.type=r,i.colonOffset=void 0,o=i}try{d(e,{onObjectBegin:function(e,i){if(t<=e)throw r;o=void 0,s=t>e,n.push("")},onObjectProperty:function(e,o,i){if(t<o)throw r;if(a(e,o,i,"property"),n[n.length-1]=e,t<=o+i)throw r},onObjectEnd:function(e,i){if(t<=e)throw r;o=void 0,n.pop()},onArrayBegin:function(e,i){if(t<=e)throw r;o=void 0,n.push(0)},onArrayEnd:function(e,i){if(t<=e)throw r;o=void 0,n.pop()},onLiteralValue:function(e,n,o){if(t<n)throw r;if(a(e,n,o,h(e)),t<=n+o)throw r},onSeparator:function(e,i,a){if(t<=i)throw r;if(":"===e&&o&&"property"===o.type)o.colonOffset=i,s=!1,o=void 0;else if(","===e){var c=n[n.length-1];"number"==typeof c?n[n.length-1]=c+1:(s=!0,n[n.length-1]=""),o=void 0}}})}catch(e){if(e!==r)throw e}return{path:n,previousNode:o,isAtPropertyKey:s,matches:function(e){for(var t=0,r=0;t<e.length&&r<n.length;r++)if(e[t]===n[r]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},v=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=l.DEFAULT);var r=null,o=[],i=[];function s(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return d(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]},x=f,w=p,k=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){var o=t.children;if(Array.isArray(o))for(var i=0;i<o.length&&o[i].offset<=n;i++){var s=e(o[i],n,r);if(s)return s}return t}},A=function e(t){if(!t.parent||!t.parent.children)return[];var n=e(t.parent);if("property"===t.parent.type){var r=t.parent.children[0].value;n.push(r)}else if("array"===t.parent.type){var o=t.parent.children.indexOf(t);-1!==o&&n.push(o)}return n},S=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,o=t.children;r<o.length;r++){var i=o[r],s=i.children[1];s&&(n[i.children[0].value]=e(s))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}},C=d,O=function(e,t){var n,o,i=r(e),s=[],a=0;do{switch(o=i.getPosition(),n=i.scan()){case 12:case 13:case 17:a!==o&&s.push(e.substring(a,o)),void 0!==t&&s.push(i.getTokenValue().replace(/[^\r\n]/g,t)),a=i.getPosition()}}while(17!==n);return s.join("")};function T(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"<unknown ParseErrorCode>"}function _(e,t,n){return a(e,t,n)}function j(e,t,n,r){return function(e,t,n,r){for(var o,i=t.slice(),s=f(e,[]),a=void 0,c=void 0;i.length>0&&(c=i.pop(),void 0===(a=p(s,i))&&void 0!==n);)"string"==typeof c?((o={})[c]=n,n=o):n=[n];if(a){if("object"===a.type&&"string"==typeof c&&Array.isArray(a.children)){var u=p(a,[c]);if(void 0!==u){if(void 0===n){if(!u.parent)throw new Error("Malformed AST");var l=a.children.indexOf(u.parent),d=void 0,h=u.parent.offset+u.parent.length;return l>0?d=(A=a.children[l-1]).offset+A.length:(d=a.offset+1,a.children.length>1&&(h=a.children[1].offset)),m(e,{offset:d,length:h-d,content:""},r)}return m(e,{offset:u.offset,length:u.length,content:JSON.stringify(n)},r)}if(void 0===n)return[];var g=JSON.stringify(c)+": "+JSON.stringify(n),b=void 0;return m(e,b=(S=r.getInsertionIndex?r.getInsertionIndex(a.children.map((function(e){return e.children[0].value}))):a.children.length)>0?{offset:(A=a.children[S-1]).offset+A.length,length:0,content:","+g}:0===a.children.length?{offset:a.offset+1,length:0,content:g}:{offset:a.offset+1,length:0,content:g+","},r)}if("array"===a.type&&"number"==typeof c&&Array.isArray(a.children)){var y=c;if(-1===y)return g=""+JSON.stringify(n),b=void 0,m(e,b=0===a.children.length?{offset:a.offset+1,length:0,content:g}:{offset:(A=a.children[a.children.length-1]).offset+A.length,length:0,content:","+g},r);if(void 0===n&&a.children.length>=0){var v=c,x=a.children[v];if(b=void 0,1===a.children.length)b={offset:a.offset+1,length:a.length-2,content:""};else if(a.children.length-1===v){var w=(A=a.children[v-1]).offset+A.length;b={offset:w,length:a.offset+a.length-2-w,content:""}}else b={offset:x.offset,length:a.children[v+1].offset-x.offset,content:""};return m(e,b,r)}if(void 0!==n){if(b=void 0,g=""+JSON.stringify(n),!r.isArrayInsertion&&a.children.length>c){var k=a.children[c];b={offset:k.offset,length:k.length,content:g}}else if(0===a.children.length||0===c)b={offset:a.offset+1,length:0,content:0===a.children.length?g:g+","};else{var A,S=c>a.children.length?a.children.length:c;b={offset:(A=a.children[S-1]).offset+A.length,length:0,content:","+g}}return m(e,b,r)}throw new Error("Can not "+(void 0===n?"remove":r.isArrayInsertion?"insert":"modify")+" Array index "+y+" as length is not sufficient")}throw new Error("Can not add "+("number"!=typeof c?"index":"property")+" to parent of type "+a.type)}if(void 0===n)throw new Error("Can not delete in empty document");return m(e,{offset:s?s.offset:0,length:s?s.length:0,content:JSON.stringify(n)},r)}(e,t,n,r)}function E(e,t){for(var n=t.length-1;n>=0;n--)e=g(e,t[n]);return e}},2367:(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;e<t;e++)c[e+o+1]=u[e];else u.length<1e4?c.splice(o+1,i-o,...u):this._lineOffsets=c=c.slice(0,o+1).concat(u,c.slice(i+1));const l=t.text.length-(r-n);if(0!==l)for(let e=o+1+u.length,t=c.length;e<t;e++)c[e]=c[e]+l}else{if(!r.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let o=Math.floor((n+r)/2);t[o]>e?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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let s=0,a=0,c=0;for(;s<r.length&&a<o.length;){let n=t(r[s],o[a]);e[c++]=n<=0?r[s++]:o[a++]}for(;s<r.length;)e[c++]=r[s++];for(;a<o.length;)e[c++]=o[a++];return e}function s(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);13!==o&&10!==o||(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function a(e){const t=e.start,n=e.end;return t.line>n.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(r<o)throw new Error("Overlapping edit");r>o&&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={}))},7806:(e,t,n)=>{"use strict";var r,o,i,s,a,c,u,l,f,p,d,h,m,g,b,y,v,x,w,k,A,S,C,O,T,_,j,E;n.r(t),n.d(t,{AnnotatedTextEdit:()=>C,ChangeAnnotation:()=>A,ChangeAnnotationIdentifier:()=>S,CodeAction:()=>ie,CodeActionContext:()=>oe,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>re,CodeDescription:()=>v,CodeLens:()=>se,Color:()=>f,ColorInformation:()=>p,ColorPresentation:()=>d,Command:()=>w,CompletionItem:()=>W,CompletionItemKind:()=>F,CompletionItemLabelDetails:()=>U,CompletionItemTag:()=>z,CompletionList:()=>q,CreateFile:()=>T,DeleteFile:()=>j,Diagnostic:()=>x,DiagnosticRelatedInformation:()=>g,DiagnosticSeverity:()=>b,DiagnosticTag:()=>y,DocumentHighlight:()=>K,DocumentHighlightKind:()=>Q,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>r,EOL:()=>Ce,FoldingRange:()=>m,FoldingRangeKind:()=>h,FormattingOptions:()=>ae,Hover:()=>H,InlayHint:()=>ve,InlayHintKind:()=>be,InlayHintLabelPart:()=>ye,InlineValueContext:()=>ge,InlineValueEvaluatableExpression:()=>me,InlineValueText:()=>de,InlineValueVariableLookup:()=>he,InsertReplaceEdit:()=>L,InsertTextFormat:()=>N,InsertTextMode:()=>B,Location:()=>u,LocationLink:()=>l,MarkedString:()=>V,MarkupContent:()=>D,MarkupKind:()=>M,OptionalVersionedTextDocumentIdentifier:()=>I,ParameterInformation:()=>G,Position:()=>a,Range:()=>c,RenameFile:()=>_,SelectionRange:()=>ue,SemanticTokenModifiers:()=>fe,SemanticTokenTypes:()=>le,SemanticTokens:()=>pe,SignatureInformation:()=>J,SymbolInformation:()=>Y,SymbolKind:()=>Z,SymbolTag:()=>X,TextDocument:()=>Se,TextDocumentEdit:()=>O,TextDocumentIdentifier:()=>P,TextDocumentItem:()=>R,TextEdit:()=>k,URI:()=>o,VersionedTextDocumentIdentifier:()=>$,WorkspaceChange:()=>Ae,WorkspaceEdit:()=>E,WorkspaceFolder:()=>xe,WorkspaceSymbol:()=>ee,integer:()=>i,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(i||(i={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.line)&&Oe.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,r){if(Oe.uinteger(e)&&Oe.uinteger(t)&&Oe.uinteger(n)&&Oe.uinteger(r))return{start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&c.is(t.range)&&(Oe.string(t.uri)||Oe.undefined(t.uri))}}(u||(u={})),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 Oe.objectLiteral(t)&&c.is(t.targetRange)&&Oe.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Oe.undefined(t.originSelectionRange))}}(l||(l={})),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 Oe.objectLiteral(t)&&Oe.numberRange(t.red,0,1)&&Oe.numberRange(t.green,0,1)&&Oe.numberRange(t.blue,0,1)&&Oe.numberRange(t.alpha,0,1)}}(f||(f={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&c.is(t.range)&&f.is(t.color)}}(p||(p={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.undefined(t.textEdit)||k.is(t))&&(Oe.undefined(t.additionalTextEdits)||Oe.typedArray(t.additionalTextEdits,k.is))}}(d||(d={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(h||(h={})),function(e){e.create=function(e,t,n,r,o,i){var s={startLine:e,endLine:t};return Oe.defined(n)&&(s.startCharacter=n),Oe.defined(r)&&(s.endCharacter=r),Oe.defined(o)&&(s.kind=o),Oe.defined(i)&&(s.collapsedText=i),s},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.startLine)&&Oe.uinteger(t.startLine)&&(Oe.undefined(t.startCharacter)||Oe.uinteger(t.startCharacter))&&(Oe.undefined(t.endCharacter)||Oe.uinteger(t.endCharacter))&&(Oe.undefined(t.kind)||Oe.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Oe.defined(t)&&u.is(t.location)&&Oe.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(b||(b={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.href)}}(v||(v={})),function(e){e.create=function(e,t,n,r,o,i){var s={range:e,message:t};return Oe.defined(n)&&(s.severity=n),Oe.defined(r)&&(s.code=r),Oe.defined(o)&&(s.source=o),Oe.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return Oe.defined(n)&&c.is(n.range)&&Oe.string(n.message)&&(Oe.number(n.severity)||Oe.undefined(n.severity))&&(Oe.integer(n.code)||Oe.string(n.code)||Oe.undefined(n.code))&&(Oe.undefined(n.codeDescription)||Oe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Oe.string(n.source)||Oe.undefined(n.source))&&(Oe.undefined(n.relatedInformation)||Oe.typedArray(n.relatedInformation,g.is))}}(x||(x={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return Oe.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.title)&&Oe.string(t.command)}}(w||(w={})),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 Oe.objectLiteral(t)&&Oe.string(t.newText)&&c.is(t.range)}}(k||(k={})),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 Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Oe.string(t.description)||void 0===t.description)}}(A||(A={})),function(e){e.is=function(e){var t=e;return Oe.string(t)}}(S||(S={})),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 k.is(t)&&(A.is(t.annotationId)||S.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Oe.defined(t)&&I.is(t.textDocument)&&Array.isArray(t.edits)}}(O||(O={})),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&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(T||(T={})),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&&Oe.string(t.oldUri)&&Oe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(_||(_={})),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&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Oe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Oe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(j||(j={})),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 Oe.string(e.kind)?T.is(e)||_.is(e)||j.is(e):O.is(e)})))}}(E||(E={}));var P,$,I,R,M,D,F,N,z,L,B,U,W,q,V,H,G,J,Q,K,Z,X,Y,ee,te,ne,re,oe,ie,se,ae,ce,ue,le,fe,pe,de,he,me,ge,be,ye,ve,xe,we=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=k.insert(e,t):S.is(n)?(o=n,r=C.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=C.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=k.replace(e,t):S.is(n)?(o=n,r=C.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=C.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=k.del(e):S.is(t)?(r=t,n=C.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=C.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}(),ke=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(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Ae=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ke(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(O.is(e)){var n=new we(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new we(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}return 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(I.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 we(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 we(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ke,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(A.is(t)||S.is(t)?r=t:n=t,void 0===r?o=T.create(e,n):(i=S.is(r)?r:this._changeAnnotations.manage(r),o=T.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(A.is(n)||S.is(n)?o=n:r=n,void 0===o?i=_.create(e,t,r):(s=S.is(o)?o:this._changeAnnotations.manage(o),i=_.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(A.is(t)||S.is(t)?r=t:n=t,void 0===r?o=j.create(e,n):(i=S.is(r)?r:this._changeAnnotations.manage(r),o=j.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)}}(P||(P={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)&&Oe.integer(t.version)}}($||($={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)&&(null===t.version||Oe.integer(t.version))}}(I||(I={})),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 Oe.defined(t)&&Oe.string(t.uri)&&Oe.string(t.languageId)&&Oe.integer(t.version)&&Oe.string(t.text)}}(R||(R={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(M||(M={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(e)&&M.is(t.kind)&&Oe.string(t.value)}}(D||(D={})),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}(N||(N={})),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&&Oe.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(L||(L={})),function(e){e.asIs=1,e.adjustIndentation=2}(B||(B={})),function(e){e.is=function(e){var t=e;return t&&(Oe.string(t.detail)||void 0===t.detail)&&(Oe.string(t.description)||void 0===t.description)}}(U||(U={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(q||(q={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Oe.string(t)||Oe.objectLiteral(t)&&Oe.string(t.language)&&Oe.string(t.value)}}(V||(V={})),function(e){e.is=function(e){var t=e;return!!t&&Oe.objectLiteral(t)&&(D.is(t.contents)||V.is(t.contents)||Oe.typedArray(t.contents,V.is))&&(void 0===e.range||c.is(e.range))}}(H||(H={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(G||(G={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={label:e};return Oe.defined(t)&&(o.documentation=t),Oe.defined(n)?o.parameters=n:o.parameters=[],o}}(J||(J={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Q||(Q={})),function(e){e.create=function(e,t){var n={range:e};return Oe.number(t)&&(n.kind=t),n}}(K||(K={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Z||(Z={})),function(e){e.Deprecated=1}(X||(X={})),function(e){e.create=function(e,t,n,r,o){var i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(Y||(Y={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(ee||(ee={})),function(e){e.create=function(e,t,n,r,o,i){var s={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(s.children=i),s},e.is=function(e){var t=e;return t&&Oe.string(t.name)&&Oe.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Oe.string(t.detail))&&(void 0===t.deprecated||Oe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(te||(te={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ne||(ne={})),function(e){e.Invoked=1,e.Automatic=2}(re||(re={})),function(e){e.create=function(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.typedArray(t.diagnostics,x.is)&&(void 0===t.only||Oe.typedArray(t.only,Oe.string))&&(void 0===t.triggerKind||t.triggerKind===re.Invoked||t.triggerKind===re.Automatic)}}(oe||(oe={})),function(e){e.create=function(e,t,n){var r={title:e},o=!0;return"string"==typeof t?(o=!1,r.kind=t):w.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&Oe.string(t.title)&&(void 0===t.diagnostics||Oe.typedArray(t.diagnostics,x.is))&&(void 0===t.kind||Oe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||w.is(t.command))&&(void 0===t.isPreferred||Oe.boolean(t.isPreferred))&&(void 0===t.edit||E.is(t.edit))}}(ie||(ie={})),function(e){e.create=function(e,t){var n={range:e};return Oe.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return Oe.defined(t)&&c.is(t.range)&&(Oe.undefined(t.command)||w.is(t.command))}}(se||(se={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.uinteger(t.tabSize)&&Oe.boolean(t.insertSpaces)}}(ae||(ae={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return Oe.defined(t)&&c.is(t.range)&&(Oe.undefined(t.target)||Oe.string(t.target))}}(ce||(ce={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return Oe.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ue||(ue={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(le||(le={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(fe||(fe={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(pe||(pe={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&Oe.string(t.text)}}(de||(de={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&Oe.boolean(t.caseSensitiveLookup)&&(Oe.string(t.variableName)||void 0===t.variableName)}}(he||(he={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&(Oe.string(t.expression)||void 0===t.expression)}}(me||(me={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Oe.defined(t)&&c.is(e.stoppedLocation)}}(ge||(ge={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(be||(be={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&(void 0===t.tooltip||Oe.string(t.tooltip)||D.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||w.is(t.command))}}(ye||(ye={})),function(e){e.create=function(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&a.is(t.position)&&(Oe.string(t.label)||Oe.typedArray(t.label,ye.is))&&(void 0===t.kind||be.is(t.kind))&&void 0===t.textEdits||Oe.typedArray(t.textEdits,k.is)&&(void 0===t.tooltip||Oe.string(t.tooltip)||D.is(t.tooltip))&&(void 0===t.paddingLeft||Oe.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Oe.boolean(t.paddingRight))}}(ve||(ve={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(t)&&o.is(t.uri)&&Oe.string(t.name)}}(xe||(xe={}));var Se,Ce=["\n","\r\n","\r"];!function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);for(var s=0,a=0,c=0;s<o.length&&a<i.length;){var u=n(o[s],i[a]);e[c++]=u<=0?o[s++]:i[a++]}for(;s<o.length;)e[c++]=o[s++];for(;a<i.length;)e[c++]=i[a++];return e}e.create=function(e,t,n,r){return new Te(e,t,n,r)},e.is=function(e){var t=e;return!!(Oe.defined(t)&&Oe.string(t.uri)&&(Oe.undefined(t.languageId)||Oe.string(t.languageId))&&Oe.uinteger(t.lineCount)&&Oe.func(t.getText)&&Oe.func(t.positionAt)&&Oe.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),o=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=r.length,s=o.length-1;s>=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}}(Se||(Se={}));var Oe,Te=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;r<t.length;r++){n&&(e.push(r),n=!1);var o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&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 a.create(0,e);for(;n<r;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}var i=n-1;return a.create(i,e-t[i])},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<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!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)}}(Oe||(Oe={}))},4756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{URI:()=>h,uriToFsPath:()=>x});var r,o,i,s=(r=function(e,t){return r=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])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});if("object"==typeof process)i=!1;else if("object"==typeof navigator){var a=navigator.userAgent;i=a.indexOf("Windows")>=0}var c=/^\w[\w\d+.-]*$/,u=/^\//,l=/^\/\//,f="",p="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=function(){function e(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}(this.scheme,n||f),this.query=r||f,this.fragment=o||f,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&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(l.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 x(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=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===o?o=this.query:null===o&&(o=f),void 0===i?i=this.fragment:null===i&&(i=f),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new g(t,n,r,o,i)},e.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new g(n[2]||f,S(n[4]||f),S(n[5]||f),S(n[7]||f),S(n[9]||f),t):new g(f,f,f,f,f)},e.file=function(e){var t=f;if(i&&(e=e.replace(/\\/g,p)),e[0]===p&&e[1]===p){var n=e.indexOf(p,2);-1===n?(t=e.substring(2),e=p):(t=e.substring(2,n),e=e.substring(n)||p)}return new g("file",t,e,f,f)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new g(t);return n._formatted=t.external,n._fsPath=t._sep===m?t.fsPath:null,n}return t},e}(),m=i?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),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}(h),b=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function y(e,t){for(var n=void 0,r=-1,o=0;o<e.length;o++){var i=e.charCodeAt(o);if(i>=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=b[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 v(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=b[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function x(e,t){var n;return n=e.authority&&e.path.length>1&&"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,i&&(n=n.replace(/\//g,"\\")),n}function w(e,t){var n=t?v:y,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+=p,r+=p),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:y(c,!1)),r}function k(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(A)?e.replace(A,(function(e){return k(e)})):e}},9818:(e,t,n)=>{"use strict";var r=n(528),o=n(8498),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},8498:(e,t,n)=>{"use strict";var r=n(9138),o=n(528),i=n(6108),s=n(3468),a=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(c,a),l=n(4940),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(r,c,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return u(r,a,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},686:(e,t,n)=>{"use strict";var r=n(4940),o=n(5731),i=n(3468),s=n(9336);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===a&&f?f.enumerable:!a,value:n,writable:null===c&&f?f.writable:!c});else{if(!l&&(a||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4940:(e,t,n)=>{"use strict";var r=n(528)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},9110:e=>{"use strict";e.exports=EvalError},9838:e=>{"use strict";e.exports=Error},1155:e=>{"use strict";e.exports=RangeError},4943:e=>{"use strict";e.exports=ReferenceError},5731:e=>{"use strict";e.exports=SyntaxError},3468:e=>{"use strict";e.exports=TypeError},2140:e=>{"use strict";e.exports=URIError},705:(e,t,n)=>{"use strict";var r=n(9617),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,s):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s)}},8794:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e,t){for(var n=[],r=1,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments),a=n(0,o.length-s.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=",");return n}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9138:(e,t,n)=>{"use strict";var r=n(8794);e.exports=Function.prototype.bind||r},528:(e,t,n)=>{"use strict";var r,o=n(9838),i=n(9110),s=n(1155),a=n(4943),c=n(5731),u=n(3468),l=n(2140),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(e){d=null}var h=function(){throw new u},m=d?function(){try{return h}catch(e){try{return d(arguments,"callee").get}catch(e){return h}}}():h,g=n(3558)(),b=n(6869)(),y=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},x="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var k=y(y(e));w["%Error.prototype%"]=k}var A=function e(t){var n;if("%AsyncFunction%"===t)n=p("async function () {}");else if("%GeneratorFunction%"===t)n=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=p("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return w[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(9138),O=n(8554),T=C.call(Function.call,Array.prototype.concat),_=C.call(Function.apply,Array.prototype.splice),j=C.call(Function.call,String.prototype.replace),E=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,R=function(e,t){var n,r=e;if(O(S,r)&&(r="%"+(n=S[r])[0]+"%"),O(w,r)){var o=w[r];if(o===v&&(o=A(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return j(e,$,(function(e,t,n,o){r[r.length]=n?j(o,I,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(r=l[0],_(n,T([0,1],l)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],m=E(h,0,1),g=E(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(a=!0),O(w,i="%"+(r+="."+h)+"%"))s=w[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&f+1>=n.length){var b=d(s,h);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[h]}else p=O(s,h),s=s[h];p&&!a&&(w[i]=s)}}return s}},9336:(e,t,n)=>{"use strict";var r=n(528)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},7239:(e,t,n)=>{"use strict";var r=n(4940),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},6869:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},3558:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2908);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},2908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1913:(e,t,n)=>{"use strict";var r=n(2908);e.exports=function(){return r()&&!!Symbol.toStringTag}},8554:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(9138);e.exports=i.call(r,o)},5615: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}}},5387:(e,t,n)=>{"use strict";var r=n(1913)(),o=n(9818)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},9617:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=o?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},2625:e=>{"use strict";var t,n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(r.call(e)))return!0;if(!i)return"[object GeneratorFunction]"===n.call(e);if(!s)return!1;if(void 0===t){var a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}();t=!!a&&s(a)}return s(e)===t}},5943:(e,t,n)=>{"use strict";var r=n(2730);e.exports=function(e){return!!r(e)}},6108:(e,t,n)=>{"use strict";var r=n(528),o=n(686),i=n(7239)(),s=n(9336),a=n(3468),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2698:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapWithAbbreviation=async function(e){if(!(0,a.validate)(!1))return!1;const t=s.window.activeTextEditor,n=t.document;(e=e||{}).language||(e.language=n.languageId);const r=m(e)||"html",o=(0,c.getRootNode)(n,!0),i=(0,a.getEmmetHelper)(),u=Array.from(t.selections).sort(((e,t)=>e.start.compareTo(t.start))).map((e=>{let t=e;{let{start:e,end:r}=t;const i=n.offsetAt(e),c=n.getText(),u=(0,a.getHtmlFlatNode)(c,o,i,!0);if(u&&(0,a.isOffsetInsideOpenOrCloseTag)(u,i)){e=n.positionAt(u.start);const t=n.positionAt(u.end);r=t.isAfter(r)?t:r}const l=n.offsetAt(r),f=(0,a.getHtmlFlatNode)(c,o,l,!0);if(f&&(0,a.isOffsetInsideOpenOrCloseTag)(f,l)){const t=n.positionAt(f.start);e=t.isBefore(e)?t:e;const o=n.positionAt(f.end);r=o.isAfter(r)?o:r}t=new s.Range(e,r)}if(!t.isSingleLine&&0===t.end.character){const e=t.end.line-1;t=new s.Range(t.start,n.lineAt(e).range.end)}t.isEmpty&&(t=n.lineAt(t.start).range);const r=n.lineAt(t.start);return!r.isEmptyOrWhitespace&&r.firstNonWhitespaceCharacterIndex>t.start.character&&(t=t.with(new s.Position(t.start.line,r.firstNonWhitespaceCharacterIndex))),t})).reduce(((e,t)=>(e.length>0&&t.intersection(e[e.length-1])?e.push(t.union(e.pop())):e.push(t),e)),[]),l=t.selections;t.selections=u.map((e=>new s.Selection(e.start,e.end)));const f=u.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:p,insertSpaces:g}=t.options,b=g?" ".repeat(p):"\t";function y(){return t.edit((e=>{for(const t of f)e.replace(t.previewRange,t.originalContent),t.previewRange=t.originalRange}),{undoStopBefore:!1,undoStopAfter:!1})}let v=!1;async function x(e,n){const o=e&&e.trim()&&i.isAbbreviationValid(r,e)?i.extractAbbreviationFromText(e,r):void 0;if(!o)return v&&(v=!1,await y()),!1;const{abbreviation:a,filter:c}=o;if(n){const e=f.map((e=>({syntax:r,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:c,indent:b,baseIndent:e.baseIndent})));return v=!0,function(e){let n=new s.Range(0,0,0,0),r=new s.Range(0,0,0,0),o=0;return t.edit((t=>{for(let i=0;i<f.length;i++){const a=h(e[i])||"";if(!a)break;const c=f[i].previewRange,u=a.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,((e,t)=>t)).replace(/\\\$/g,"$");t.replace(c,u);const l=u.split("\n"),p=c.end.line-c.start.line+1,d=l.length-p,m=c.start.line+o;let g=c.start.character;const b=c.end.line+o+d;let y=l[l.length-1].length;i>0&&b===r.end.line?(g=r.end.character+(c.start.character-n.end.character),y+=g):i>0&&m===r.end.line?g=r.end.character+(c.start.character-n.end.character):1===l.length&&(y+=c.start.character),n=f[i].previewRange,r=new s.Range(m,g,b,y),f[i].previewRange=r,o+=d}}),{undoStopBefore:!1,undoStopAfter:!1})}(e)}const u=f.map((e=>({syntax:r,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:c,indent:b})));return v&&(v=!1,await y()),d(t,u,!1)}let w="";const k=s.l10n.t("Enter Abbreviation"),A=e&&e.abbreviation?e.abbreviation:await s.window.showInputBox({prompt:k,validateInput:async function(e){return e!==w&&(w=e,await x(e,!0)),""}}),S=await x(A,!1);return S||(t.selections=l),S},t.expandEmmetAbbreviation=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return f();if(1===s.window.activeTextEditor.selections.length&&s.window.activeTextEditor.selection.isEmpty){const e=s.window.activeTextEditor.selection.anchor;if(0===e.character)return f();const t=e.translate(0,-1),n=s.window.activeTextEditor.document.getText(new s.Range(t,e));if(" "===n||"\t"===n)return f()}if((e=e||{}).language){if((s.workspace.getConfiguration("emmet").excludeLanguages?s.workspace.getConfiguration("emmet").excludeLanguages:[]).includes(s.window.activeTextEditor.document.languageId))return f()}else e.language=s.window.activeTextEditor.document.languageId;const t=m(e);if(!t)return f();const n=s.window.activeTextEditor;if(!0===s.workspace.getConfiguration("emmet").triggerExpansionOnTab&&n.selections.find((e=>!e.isEmpty)))return f();const r=[];let o,i=!0;const u=(0,a.getEmmetHelper)(),l=n.selections.slice(0);let h;function g(){if(h)return h;const e=!0===s.workspace.getConfiguration("emmet").optimizeStylesheetParsing;return h=1===n.selections.length&&(0,a.isStyleSheet)(n.document.languageId)&&e&&n.document.lineCount>1e3?(0,a.parsePartialStylesheet)(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):(0,c.getRootNode)(n.document,!0),h}return l.sort(((e,t)=>{const n=e.isReversed?e.anchor:e.active,r=t.isReversed?t.anchor:t.active;return-1*n.compareTo(r)})),l.forEach((e=>{const c=e.isReversed?e.anchor:e.active,[l,f,d]=((e,t,r,o)=>{r=e.validatePosition(r);let i=t,c=e.getText(i);if(!i.isEmpty){const e=u.extractAbbreviationFromText(c,o);return e?[i,e.abbreviation,e.filter]:[null,"",""]}const l=n.document.lineAt(r.line).text.substr(0,r.character);if("html"===o){const e=l.match(/<(\w+)$/);if(e)return c=e[1],i=new s.Range(r.translate(0,-(c.length+1)),r),[i,c,""]}const f=u.extractAbbreviation((0,a.toLSTextDocument)(n.document),r,{lookAhead:!1});if(!f)return[null,"",""];const{abbreviationRange:p,abbreviation:d,filter:h}=f;return[new s.Range(p.start.line,p.start.character,p.end.line,p.end.character),d,h]})(n.document,e,c,t);if(!l)return;if(!u.isAbbreviationValid(t,f))return;if((0,a.isStyleSheet)(t)&&f.endsWith(":"))return;const h=n.document.offsetAt(c);let m=(0,a.getFlatNode)(g(),h,!0),b=!0,y=t;if("html"===n.document.languageId)if((0,a.isStyleAttribute)(m,h))y="css",b=!1;else{const e=(0,a.getEmbeddedCssNodeIfAny)(n.document,m,c);e&&(m=(0,a.getFlatNode)(e,h,!0),y="css")}b&&!p(n.document,g(),m,y,h,l)||(o?i&&o!==f&&(i=!1):o=f,r.push({syntax:y,abbreviation:f,rangeToReplace:l,filter:d}))})),d(n,r,i).then((e=>e?Promise.resolve(void 0):f()))},t.isValidLocationForEmmetAbbreviation=p,t.getSyntaxFromArgs=m;const s=i(n(1398)),a=n(7937),c=n(6647),u=/[\u00a0]*[\d#\-\*\u2022]+\.?/,l=/^#[\da-fA-F]{0,6}$/;function f(){return!0===s.workspace.getConfiguration("emmet").triggerExpansionOnTab?s.commands.executeCommand("tab"):Promise.resolve(!0)}function p(e,t,n,r,o,i){if((0,a.isStyleSheet)(r)){if(t&&(t.comments||[]).some((e=>o>=e.start&&o<=e.end)))return!1;if(!n)return!0;const a=e.getText(new s.Range(i.start.line,i.start.character,i.end.line,i.end.character));if(a.startsWith("@"))return!0;if("sass"!==r&&"stylus"!==r&&"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&&o>=e.separatorToken.end&&o<=e.terminatorToken.start&&!a.includes(":"))return l.test(a)||"!"===a;if(!e.terminatorToken&&e.separator&&o>=e.separatorToken.end&&!a.includes(":"))return l.test(a)||"!"===a;if(l.test(a)||"!"===a)return!1}if("rule"!==n.type&&"at-rule"!==n.type)return!0;const c=n;if(o>c.contentStartToken.end)return!0;if(c.parent&&("rule"===c.parent.type||"at-rule"===c.parent.type)&&c.selectorToken){const t=e.positionAt(o),n=e.positionAt(c.selectorToken.start),r=e.positionAt(c.selectorToken.end);if(t.line!==r.line&&n.character===i.start.character&&n.line===i.start.line)return!0}return!1}const c="<",u=n;let f=0;if(u){if("script"===u.name){const e=(u.attributes||[]).filter((e=>"type"===e.name.toString()))[0],t=e?e.value.toString():"";return!!a.allowedMimeTypesInScriptTag.includes(t)||!(t&&"application/javascript"!==t&&"text/javascript"!==t||!m({language:"javascript"}))}if(!u.open||!u.close||!(u.open.end<=o&&o<=u.close.start))return!1;f=u.open.end;let e=u.firstChild;for(;e&&!(e.end>o);)f=e.end,e=e.nextSibling}const p=e.positionAt(f);let d=e.getText(new s.Range(p.line,p.character,i.start.line,i.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let h=!0,g=!1,b=d.length-1;if(d[b]===c)return!1;for(;b>=0;){const e=d[b];if(b--,g||!/\s/.test(e))if("?"!==e||d[b]!==c){if(/\s/.test(e)&&d[b]===c)b--;else if(e===c||">"===e)if(b>=0&&"\\"===d[b])b--;else{if(">"===e){if(b>=0&&"="===d[b])continue;break}if(e===c){h=!g;break}}}else b--;else g=!0}return h}async function d(e,t,n){if(!t||0===t.length)return!1;let r=0;if(!n){t.sort(((e,t)=>t.rangeToReplace.start.compareTo(e.rangeToReplace.start)));for(const n of t){const t=h(n);t&&(await e.insertSnippet(new s.SnippetString(t),n.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}),r++)}return r>0}const o=h(t[0]),i=t.map((e=>e.rangeToReplace));return!!o&&e.insertSnippet(new s.SnippetString(o),i)}function h(e){const t=(0,a.getEmmetHelper)(),n=t.getExpandOptions(e.syntax,(0,a.getEmmetConfiguration)(e.syntax),e.filter);let r;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(u,"").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{r=t.expandAbbreviation(e.abbreviation,n)}catch(e){s.window.showErrorMessage("Failed to expand abbreviation")}return r}function m(e){const t=(0,a.getMappingForIncludedLanguages)(),n=e.language,r=e.parentMode,o=s.workspace.getConfiguration("emmet").excludeLanguages?s.workspace.getConfiguration("emmet").excludeLanguages:[];if(o.includes(n))return;let i=(0,a.getEmmetMode)(t[n]??n,t,o);return i||(i=(0,a.getEmmetMode)(t[r]??r,t,o)),i}},5921:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.balanceOut=function(){f(!0)},t.balanceIn=function(){f(!1)};const s=i(n(1398)),a=n(7937),c=n(6647);let u=[],l=[];function f(e){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,c.getRootNode)(n,!0);if(!r)return;const o=e?p:d;let i=t.selections.map((e=>o(n,r,e)));h(l,t.selections)?e?h(t.selections,i)||u.push(t.selections):u.length&&(i=u.pop()):u=e?[t.selections]:[],t.selections=i,l=t.selections}function p(e,t,n){const r=e.offsetAt(n.start),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!1);if(!o)return n;if(!o.open||!o.close)return(0,a.offsetRangeToSelection)(e,o.start,o.end);let i,s;return o.close.start<=r&&o.close.end>r?(i=(0,a.offsetRangeToSelection)(e,o.close.start,o.open.end),s=(0,a.offsetRangeToSelection)(e,o.close.end,o.open.start)):(i=(0,a.offsetRangeToSelection)(e,o.open.end,o.close.start),s=(0,a.offsetRangeToSelection)(e,o.open.start,o.close.end)),i.contains(n)&&!i.isEqual(n)?i:s.contains(n)&&!s.isEqual(n)?s:n}function d(e,t,n){const r=e.offsetAt(n.start),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return n;const i=e.offsetAt(n.start),s=e.offsetAt(n.end);if(o.open&&o.close){const t=i===o.start&&s===o.end,n=i>o.open.start&&i<o.open.end,r=i>o.close.start&&i<o.close.end;if(t||n||r)return(0,a.offsetRangeToSelection)(e,o.open.end,o.close.start)}if(!o.firstChild)return n;const c=o.firstChild;return i===c.start&&s===c.end&&c.open&&c.close?(0,a.offsetRangeToSelection)(e,c.open.end,c.close.start):(0,a.offsetRangeToSelection)(e,c.start,c.end)}function h(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}},4367:(e,t)=>{"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},5315:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCompletionItemProvider=void 0;const s=i(n(1398)),a=n(2698),c=n(7937),u=n(6647);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 r=s.workspace.getConfiguration("emmet"),o=r.excludeLanguages?r.excludeLanguages:[];if(o.includes(e.languageId))return;const i=(0,c.getMappingForIncludedLanguages)(),l=!!i[e.languageId],f=(0,c.getEmmetMode)(l?i[e.languageId]:e.languageId,i,o);if(!f||"never"===r.showExpandedAbbreviation||(l||"jsx"===f)&&"always"!==r.showExpandedAbbreviation)return;let p,d,h=f,m="html"===h||"jsx"===h||"xml"===h;const g=(0,c.toLSTextDocument)(e);t=e.validatePosition(t);const b=new s.Range(t.line,0,t.line,t.character);if(e.getText(b).trimStart().startsWith("//"))return;const y=(0,c.getEmmetHelper)();if("html"===h){if(n.triggerKind===s.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,u.getRootNode)(e,!0),o=(0,c.getHtmlFlatNode)(e.getText(),r,n,!1);if(o)if("script"===o.name){const e=o.attributes.find((e=>"type"===e.name.toString()));if(!e)return;{const t=e.value.toString();if("application/javascript"===t||"text/javascript"===t){if(!(0,a.getSyntaxFromArgs)({language:"javascript"}))return;m=!1}else c.allowedMimeTypesInScriptTag.includes(t)&&(m=!1)}}else if("style"===o.name)h="css",m=!1;else{const e=o.attributes.find((e=>"style"===e.name.toString()));e&&e.value.start<=n&&n<=e.value.end&&(h="css",m=!1)}}}const v=(0,c.isStyleSheet)(h)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=y.extractAbbreviation(g,t,v);if(!x||!y.isAbbreviationValid(h,x.abbreviation))return;const w=e.offsetAt(t);if((0,c.isStyleSheet)(e.languageId)&&n.triggerKind!==s.CompletionTriggerKind.TriggerForIncompleteCompletions){if(m=!0,p=!0===s.workspace.getConfiguration("emmet").optimizeStylesheetParsing&&e.lineCount>1e3?(0,c.parsePartialStylesheet)(e,t):(0,u.getRootNode)(e,!0),!p)return;d=(0,c.getFlatNode)(p,w,!0)}if(!(0,c.isStyleSheet)(e.languageId)&&(0,c.isStyleSheet)(h)&&n.triggerKind!==s.CompletionTriggerKind.TriggerForIncompleteCompletions){if(m=!0,p=(0,u.getRootNode)(e,!0),!p)return;const n=(0,c.getFlatNode)(p,w,!0),r=(0,c.getEmbeddedCssNodeIfAny)(e,n,t);d=(0,c.getFlatNode)(r,w,!0)}if(m&&!(0,a.isValidLocationForEmmetAbbreviation)(e,p,d,h,w,(k=x.abbreviationRange,new s.Range(k.start.line,k.start.character,k.end.line,k.end.character))))return;var k;let A=Promise.resolve(!1);if(!(0,c.isStyleSheet)(h)&&("javascript"===e.languageId||"javascriptreact"===e.languageId||"typescript"===e.languageId||"typescriptreact"===e.languageId)){const t=x.abbreviation;A=t.startsWith("this.")||/\[[^\]=]*\]/.test(t)?Promise.resolve(!0):s.commands.executeCommand("vscode.executeDocumentSymbolProvider",e.uri).then((e=>!!e&&e.some((e=>t===e.name||t.startsWith(e.name+".")&&!/>|\*|\+/.test(t)))))}return A.then((n=>{if(n)return;const o=(0,c.getEmmetConfiguration)(h),i=y.doComplete((0,c.toLSTextDocument)(e),t,h,o),a=[];return i&&i.items&&i.items.forEach((e=>{const t=new s.CompletionItem(e.label);t.documentation=e.documentation,t.detail=e.detail,t.insertText=new s.SnippetString(e.textEdit.newText);const n=e.textEdit.range;t.range=new s.Range(n.start.line,n.start.character,n.end.line,n.end.character),t.filterText=e.filterText,t.sortText=e.sortText,!0===r.showSuggestionsAsSnippets&&(t.kind=s.CompletionItemKind.Snippet),a.push(t)})),new s.CompletionList(a,!0)}))}}},2727:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchEditPoint=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=[];t.selections.forEach((r=>{const o="next"===e?function(e,t){for(let n=e.anchor.line;n<t.document.lineCount;n++){const r=c(n,t,e.anchor,"next");if(r)return r}return e}(r,t):function(e,t){for(let n=e.anchor.line;n>=0;n--){const r=c(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])};const s=i(n(1398)),a=n(7937);function c(e,t,n,r){const o=t.document.lineAt(e);let i=o.text;if(e!==n.line&&o.isEmptyOrWhitespace&&i.length)return new s.Selection(e,i.length,e,i.length);e===n.line&&"prev"===r&&(i=i.substr(0,n.character));const a="next"===r?i.indexOf('""',e===n.line?n.character:0):i.lastIndexOf('""'),c="next"===r?i.indexOf("><",e===n.line?n.character:0):i.lastIndexOf("><");let u=-1;return u=a>-1&&c>-1?"next"===r?Math.min(a,c):Math.max(a,c):a>-1?a:c,u>-1?new s.Selection(e,u+1,e,u+1):void 0}},1212:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activateEmmetExtension=function(e){(0,x.migrateEmmetExtensionsPath)(),C(),(0,x.updateEmmetExtensionsPath)(),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",(e=>{(0,c.wrapWithAbbreviation)(e)}))),e.subscriptions.push(s.commands.registerCommand("emmet.expandAbbreviation",(e=>{(0,c.expandEmmetAbbreviation)(e)}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.removeTag",(()=>(0,u.removeTag)()))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.updateTag",(e=>e&&"string"==typeof e?(0,l.updateTag)(e):(0,l.updateTag)(void 0)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.matchTag",(()=>{(0,f.matchTag)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.balanceOut",(()=>{(0,p.balanceOut)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.balanceIn",(()=>{(0,p.balanceIn)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.splitJoinTag",(()=>(0,d.splitJoinTag)()))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.mergeLines",(()=>{(0,h.mergeLines)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.toggleComment",(()=>{(0,m.toggleComment)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.nextEditPoint",(()=>{(0,g.fetchEditPoint)("next")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.prevEditPoint",(()=>{(0,g.fetchEditPoint)("prev")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.selectNextItem",(()=>{(0,b.fetchSelectItem)("next")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.selectPrevItem",(()=>{(0,b.fetchSelectItem)("prev")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.evaluateMathExpression",(()=>{(0,y.evaluateMathExpression)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",(()=>(0,v.incrementDecrement)(.1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByOne",(()=>(0,v.incrementDecrement)(1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByTen",(()=>(0,v.incrementDecrement)(10)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",(()=>(0,v.incrementDecrement)(-.1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByOne",(()=>(0,v.incrementDecrement)(-1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByTen",(()=>(0,v.incrementDecrement)(-10)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.reflectCSSValue",(()=>(0,w.reflectCssValue)()))),e.subscriptions.push(s.commands.registerCommand("workbench.action.showEmmetCommands",(()=>{s.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")}))),e.subscriptions.push(s.workspace.onDidChangeConfiguration((e=>{(e.affectsConfiguration("emmet.includeLanguages")||e.affectsConfiguration("emmet.useInlineCompletions"))&&C(),e.affectsConfiguration("emmet.extensionsPath")&&(0,x.updateEmmetExtensionsPath)()}))),e.subscriptions.push(s.workspace.onDidSaveTextDocument((e=>{const t=(0,x.getPathBaseName)(e.fileName);t.startsWith("snippets")&&t.endsWith(".json")&&(0,x.updateEmmetExtensionsPath)(!0)}))),e.subscriptions.push(s.workspace.onDidOpenTextDocument((e=>{const t=(0,x.getEmmetMode)(e.languageId,{},[])??"",n=(0,x.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,k.addFileToParseCache)(e)}))),e.subscriptions.push(s.workspace.onDidCloseTextDocument((e=>{const t=(0,x.getEmmetMode)(e.languageId,{},[])??"",n=(0,x.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,k.removeFileFromParseCache)(e)})))},t.deactivate=function(){O(),(0,k.clearParseCache)()};const s=i(n(1398)),a=n(5315),c=n(2698),u=n(5893),l=n(8306),f=n(3642),p=n(5921),d=n(5197),h=n(4754),m=n(6676),g=n(2727),b=n(5186),y=n(5774),v=n(8727),x=n(7937),w=n(7284),k=n(6647),A=new Map,S=[];function C(e){O();const t=new a.DefaultCompletionItemProvider,n={async provideInlineCompletionItems(e,n,r,o){const i=await t.provideCompletionItems(e,n,o,{triggerCharacter:void 0,triggerKind:s.CompletionTriggerKind.Invoke});if(!i)return;const a=i.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}},r=s.workspace.getConfiguration("emmet").get("useInlineCompletions"),o=(0,x.getMappingForIncludedLanguages)();Object.keys(o).forEach((e=>{if(A.has(e)&&A.get(e)===o[e])return;if(r){const t=s.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);S.push(t)}const i=s.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...x.LANGUAGE_MODES[o[e]]);S.push(i),A.set(e,o[e])})),Object.keys(x.LANGUAGE_MODES).forEach((e=>{if(!A.has(e)){if(r){const t=s.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);S.push(t)}const o=s.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...x.LANGUAGE_MODES[e]);S.push(o),A.set(e,e)}}))}function O(){let e;for(A.clear();e=S.pop();)e.dispose()}},5774:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateMathExpression=function(){if(!s.window.activeTextEditor)return s.window.showInformationMessage("No editor is active"),Promise.resolve(!1);const e=s.window.activeTextEditor;return e.edit((t=>{e.selections.forEach((n=>{const r=n.isReversed?n.active:n.anchor,o=n.isReversed?n.anchor:n.active,i=e.document.getText(new s.Range(r,o));try{if(i){const e=String((0,a.default)(i));t.replace(new s.Range(r,o),e)}else{const r=e.document.getText(new s.Range(new s.Position(n.end.line,0),o)),i=(0,a.extract)(r);if(!i)throw new Error("Invalid extracted indices");const c=String((0,a.default)(r.substr(i[0],i[1]))),u=new s.Range(new s.Position(n.end.line,i[0]),new s.Position(n.end.line,i[1]));t.replace(u,c)}}catch(e){s.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",e)}}))}))};const s=i(n(1398)),a=i(n(2915))},8727:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.incrementDecrement=function(e){if(!s.window.activeTextEditor)return void s.window.showInformationMessage("No editor is active");const t=s.window.activeTextEditor;return t.edit((n=>{t.selections.forEach((r=>{const o=u(t.document,r.isReversed?r.anchor:r.active);if(!o)return;const i=t.document.getText(o);l(i)&&n.replace(o,c(i,e))}))}))},t.update=c,t.locate=u;const s=i(n(1398)),a=/[0-9]/;function c(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 u(e,t){const n=e.lineAt(t.line).text;let r,o=t.character,i=t.character,c=!1,u=!1;for(;o>0;){if(r=n[--o],"-"===r){u=!0;break}if("."!==r||c){if(!a.test(r)){o++;break}}else c=!0}for("-"!==n[i]||u||i++;i<n.length;)if(r=n[i++],"."===r&&!c&&a.test(n[i]))c=!0;else if(!a.test(r)){i--;break}if(o!==i&&l(n.slice(o,i)))return new s.Range(t.line,o,t.line,i)}function l(e){return!!e&&!isNaN(parseFloat(e))}},3642:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.matchTag=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,c.getRootNode)(t,!0);if(!n)return;const r=[];e.selections.forEach((e=>{const o=function(e,t,n){const r=e.offsetAt(n),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return;if(!o.open||!o.close||r>o.open.end&&r<o.close.start)return;const i=r<=o.open.end?o.close.start+2:o.start+1;return(0,a.offsetRangeToSelection)(e,i,i)}(t,n,e.start);o&&r.push(o)})),r.length&&(e.selections=r,e.revealRange(e.selections[r.length-1]))};const s=i(n(1398)),a=n(7937),c=n(6647)},4754:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeLines=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=(0,c.getRootNode)(e.document,!0);return t?e.edit((n=>{Array.from(e.selections).reverse().forEach((r=>{const o=function(e,t,n){let r,o;const i=e.offsetAt(t.start),c=e.offsetAt(t.end);if(t.isEmpty?r=o=(0,a.getFlatNode)(n,i,!0):(r=(0,a.getFlatNode)(n,i,!0),o=(0,a.getFlatNode)(n,c,!0)),!r||!o)return;const u=e.positionAt(r.start),l=u.line,f=u.character,p=e.positionAt(o.end).line;if(l===p)return;const d=(0,a.offsetRangeToVsRange)(e,r.start,o.end);let h=e.lineAt(l).text.substr(f);for(let t=l+1;t<=p;t++)h+=e.lineAt(t).text.trim();return new s.TextEdit(d,h)}(e.document,r,t);o&&n.replace(o.range,o.newText)}))})):void 0};const s=i(n(1398)),a=n(7937),c=n(6647)},6647:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getRootNode=function(e,t){const n=e.uri.toString(),r=a.get(n),c=e.version;if(t&&r&&c===r.key)return r.value;const u=((0,s.isStyleSheet)(e.languageId)?i.default:o.default)(e.getText());return t&&a.set(n,{key:c,value:u}),u},t.addFileToParseCache=function(e){const t=e.uri.toString();a.set(t,void 0)},t.removeFileFromParseCache=function(e){const t=e.uri.toString();a.delete(t)},t.clearParseCache=function(){a.clear()};const o=r(n(1253)),i=r(n(7545)),s=n(7937),a=new Map},7284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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};const r=n(1398),o=n(7937),i=["-webkit-","-moz-","-ms-","-o-",""]},5893:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.removeTag=function(){if(!(0,c.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,a.getRootNode)(t,!0);if(!n)return;const r=Array.from(e.selections).reverse().reduce(((t,r)=>t.concat(function(e,t,n){const r=e.offsetAt(n.start),o=(0,c.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return[];let i,a;if(o.open&&(i=(0,c.offsetRangeToVsRange)(e,o.open.start,o.open.end)),o.close&&(a=(0,c.offsetRangeToVsRange)(e,o.close.start,o.close.end)),i&&a){const t=new s.Range(i.end.line,i.end.character,a.start.line,a.start.character),n=new s.Range(i.start.line,i.start.character,a.end.line,a.end.character);if(""===e.getText(t).trim()&&"pre"!==o.name)return[n]}const l=[];if(i&&(l.push(i),a)){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<o;t++){const n=e.lineAt(t);if(!n.isEmptyOrWhitespace){const e=n.firstNonWhitespaceCharacterIndex;a=a?Math.min(a,e):e}}let c=0;return a&&(c=a<i||a<s?0:Math.min(a-i,a-s)),c}(e,i,a);let n,r;for(let o=i.start.line+1;o<a.start.line;o++)e.lineAt(o).isEmptyOrWhitespace||(l.push(new s.Range(o,0,o,t)),void 0===n&&(n=o),r=o);u(e,a)&&r?l.push(new s.Range(r,e.lineAt(r).range.end.character,a.end.line,a.end.character)):l.push(a),u(e,i)&&n&&(l[1]=new s.Range(i.start.line,i.start.character,n,e.lineAt(n).firstNonWhitespaceCharacterIndex),l.shift())}return l}(e.document,n,r))),[]);return e.edit((e=>{r.forEach((t=>{e.delete(t)}))}))};const s=i(n(1398)),a=n(6647),c=n(7937);function u(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}},5186:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSelectItem=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,l.getRootNode)(n,!0);if(!r)return;const o=[];t.selections.forEach((i=>{const s=i.isReversed?i.active:i.anchor,l=i.isReversed?i.anchor:i.active;let f;f=(0,a.isStyleSheet)(t.document.languageId)?"next"===e?(0,u.nextItemStylesheet)(n,s,l,r):(0,u.prevItemStylesheet)(n,s,l,r):"next"===e?(0,c.nextItemHTML)(n,s,l,r):(0,c.prevItemHTML)(n,s,l,r),o.push(f||i)})),t.selections=o,t.revealRange(t.selections[t.selections.length-1])};const s=i(n(1398)),a=n(7937),c=n(2703),u=n(4950),l=n(6647)},2703:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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<c.open.end){const n=e.offsetAt(t),o=function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(const i of o.attributes){if(n<i.start)return(0,r.offsetRangeToSelection)(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&n===i.end||n<i.value.start)return(0,r.offsetRangeToSelection)(e,i.value.start,i.value.end);if(!i.value.toString().includes(" "))continue;let o;if(t===i.value.start&&n===i.value.end&&(o=-1),void 0===o&&n<i.end&&(o=e.positionAt(n).character-e.positionAt(i.value.start).character-1),void 0!==o){const[t,n]=(0,r.findNextWord)(i.value.toString(),o);if(void 0===t||void 0===n)return;if(t>=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<c.open.end||!c.firstChild||u<=c.firstChild.start)a=c;else{let e;for(a=c.firstChild;a.nextSibling&&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;const l=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.start)return(0,r.offsetRangeToSelection)(e,s.start,s.end);if(t===s.value.start)return n>=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);return l||o(e,a)};const r=n(7937);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)}}},4950:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.nextItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,a.getFlatNode)(r,i,!0);if(s||(s=r),!s)return;if("property"===s.type&&o===s.start&&i===s.end)return u(e,s,o,i,!0,"next");if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=u(e,s,o,i,!1,"next");if(t)return t}if("rule"===s.type&&i<s.selectorToken.end||"property"===s.type&&i<s.valueToken.end)return c(e,s);let l=s.firstChild;for(;l&&i>=l.end;)l=l.nextSibling;for(;!l&&s;)l=s.nextSibling,s=s.parent;return l?c(e,l):void 0},t.prevItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,a.getFlatNode)(r,o,!1);if(s||(s=r),!s)return;if("property"===s.type&&o===s.valueToken.start&&i===s.valueToken.end)return c(e,s);if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=u(e,s,o,i,!1,"prev");if(t)return t}if("property"===s.type||!s.firstChild||"rule"===s.type&&o<=s.firstChild.start)return c(e,s);let l=s.firstChild;for(;l.nextSibling&&o>=l.nextSibling.end;)l=l.nextSibling;return l=(0,a.getDeepestFlatNode)(l),u(e,l,o,i,!1,"prev")};const s=i(n(1398)),a=n(7937);function c(e,t){if(!t)return;const n="rule"===t.type?t.selectorToken:t;return(0,a.offsetRangeToSelection)(e,n.start,n.end)}function u(e,t,n,r,o,i){if(!t||"property"!==t.type)return;const c=t,u=c.valueToken.stream.substring(c.valueToken.start,c.valueToken.end);if(o=o||"prev"===i&&n===c.valueToken.start&&r<c.valueToken.end)return(0,a.offsetRangeToSelection)(e,c.valueToken.start,c.valueToken.end);let l=-1;if("prev"===i){if(n===c.valueToken.start)return;const t=e.positionAt(n).character,r=e.positionAt(c.valueToken.start).character;l=n>c.valueToken.end?u.length:t-r}else if("next"===i){if(r===c.valueToken.end&&(n>c.valueToken.start||!u.includes(" ")))return;const t=e.positionAt(r).character,o=e.positionAt(c.valueToken.start).character;l=r===c.valueToken.end?-1:t-o-1}const[f,p]="prev"===i?(0,a.findPrevWord)(u,l):(0,a.findNextWord)(u,l);if(!f&&!p)return;const d=e.positionAt(c.valueToken.start),h=d.translate(0,f),m=d.translate(0,p);return new s.Selection(h,m)}},5197:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.splitJoinTag=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,c.getRootNode)(e.document,!0);return n?e.edit((r=>{Array.from(e.selections).reverse().forEach((e=>{const o=t.getText(),i=t.offsetAt(e.start),c=(0,a.getHtmlFlatNode)(o,n,i,!0);if(c){const e=function(e,t){let n,r;if(t.open&&t.close){const o=t.open.end-1,i=t.end;n=(0,a.offsetRangeToVsRange)(e,o,i),r="/>";const s=(0,a.getEmmetMode)(e.languageId,{},[])??"",c=(0,a.getEmmetConfiguration)(s);s&&c.syntaxProfiles[s]&&("xhtml"===c.syntaxProfiles[s].selfClosingStyle||"xhtml"===c.syntaxProfiles[s].self_closing_tag)&&(r=" "+r)}else{const o=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),i=t.end,s=o?i-o[0].length:i;n=(0,a.offsetRangeToVsRange)(e,s,i),r=`></${t.name}>`}return new s.TextEdit(n,r)}(t,c);r.replace(e.range,e.newText)}}))})):void 0};const s=i(n(1398)),a=n(7937),c=n(6647)},6676:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toggleComment=function(){if(!(0,c.validate)()||!a.window.activeTextEditor)return;a.workspace.getConfiguration("editor.comments").get("insertSpace")?(f="/* ",p=" */",d="\x3c!-- ",h=" --\x3e"):(f="/*",p="*/",d="\x3c!--",h="--\x3e");const e=a.window.activeTextEditor,t=(0,l.getRootNode)(e.document,!0);return t?e.edit((n=>{const r=[];Array.from(e.selections).reverse().forEach((n=>{const o=(0,c.isStyleSheet)(e.document.languageId)?g(e.document,n,t):function(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active,i=e.offsetAt(r),s=e.offsetAt(o),l=e.getText(),f=(0,c.getHtmlFlatNode)(l,n,i,!0),p=(0,c.getHtmlFlatNode)(l,n,s,!0);if(!f||!p)return[];if((0,c.sameNodes)(f,p)&&"style"===f.name&&f.open&&f.close&&f.open.end<i&&f.close.start>s){const n=" ".repeat(f.open.end)+l.substring(f.open.end,f.close.start),r=(0,u.default)(n);return g(e,t,r)}const b=(0,c.getNodesInBetween)(f,p);let y=[];return b.forEach((t=>{y=y.concat(m(t,e))})),"comment"===f.type||(y.push(new a.TextEdit((0,c.offsetRangeToVsRange)(e,b[0].start,b[0].start),d)),y.push(new a.TextEdit((0,c.offsetRangeToVsRange)(e,b[b.length-1].end,b[b.length-1].end),h))),y}(e.document,n,t);o.length>0&&r.push(o)})),r.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 o=new a.Position(0,0);for(const e of r)e[0].range.end.isAfterOrEqual(o)&&e.forEach((e=>{n.replace(e.range,e.newText),o=e.range.end}))})):void 0};const a=i(n(1398)),c=n(7937),u=s(n(7545)),l=n(6647);let f,p,d,h;function m(e,t){let n=[];return"comment"===e.type?(n.push(new a.TextEdit((0,c.offsetRangeToVsRange)(t,e.start,e.start+d.length),"")),n.push(new a.TextEdit((0,c.offsetRangeToVsRange)(t,e.end-h.length,e.end),"")),n):(e.children.forEach((e=>{n=n.concat(m(e,t))})),n)}function g(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active;let i=e.offsetAt(r),s=e.offsetAt(o);const u=(0,c.getFlatNode)(n,i,!0),l=(0,c.getFlatNode)(n,s,!0);t.isEmpty?u&&(i=u.start,s=u.end,t=(0,c.offsetRangeToSelection)(e,i,s)):(i=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(t<r.contentStartToken.end||!r.firstChild)return r.start;if(t<r.firstChild.start)return t;let o=r.firstChild;for(;o.nextSibling&&t>o.end;)o=o.nextSibling;return o.start}(u,i,n),s=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<o.start;)o=o.previousSibling;return o.end}(l,s,n),t=(0,c.offsetRangeToSelection)(e,i,s));const d=[],h=[];return n.comments.forEach((n=>{const r=(0,c.offsetRangeToVsRange)(e,n.start,n.end);t.intersection(r)&&(d.push(r),h.push(new a.TextEdit((0,c.offsetRangeToVsRange)(e,n.start,n.start+f.length),"")),h.push(new a.TextEdit((0,c.offsetRangeToVsRange)(e,n.end-p.length,n.end),"")))})),h.length>0?h:[new a.TextEdit(new a.Range(t.start,t.start),f),new a.TextEdit(new a.Range(t.end,t.end),p)]}},8306:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.updateTag=async function(e){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,c.getRootNode)(n,!0);if(!r)return;const o=t.selections.reduceRight(((e,t)=>e.concat(function(e,t,n){const r=e.getText(),o=e.offsetAt(t.start),i=(0,a.getHtmlFlatNode)(r,n,o,!0);return i?function(e,t){const n=[];if(e.open){const r=t.positionAt(e.open.start);n.push({name:e.name,range:new s.Range(r.translate(0,1),r.translate(0,1).translate(0,e.name.length))})}if(e.close){const r=t.positionAt(e.close.start),o=t.positionAt(e.close.end);n.push({name:e.name,range:new s.Range(r.translate(0,2),o.translate(0,-1))})}return n}(i,e):[]}(n,t,r))),[]);if(!o.length)return;const i=o[0].name,u=o.every((e=>e.name===i));return!(void 0===e&&!(e=await s.window.showInputBox({prompt:"Enter Tag",value:u?i:void 0})))&&t.edit((t=>{o.forEach((n=>{t.replace(n.range,e)}))}))};const s=i(n(1398)),a=n(7937),c=n(6647)},7937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.allowedMimeTypesInScriptTag=t.LANGUAGE_MODES=void 0,t.setHomeDir=function(e){m=e},t.getEmmetHelper=g,t.updateEmmetExtensionsPath=function(e=!1){const t=g();let n=a.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||h!==n){h=n;const e=a.workspace.workspaceFolders?.length?a.workspace.workspaceFolders.map((e=>e.uri)):void 0,r=a.workspace.fs;t.updateExtensionsPath(n,r,e,m).catch((e=>{Array.isArray(n)&&n.length&&a.window.showErrorMessage(e.message)}))}},t.migrateEmmetExtensionsPath=function(){const e=a.workspace.getConfiguration().inspect("emmet.extensionsPath");"string"==typeof e?.globalValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):null===e?.globalValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),"string"==typeof e?.workspaceValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):null===e?.workspaceValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),"string"==typeof e?.workspaceFolderValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):null===e?.workspaceFolderValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[])},t.isStyleSheet=b,t.validate=function(e=!0){const t=a.window.activeTextEditor;return t?!(!e&&b(t.document.languageId)):(a.window.showInformationMessage("No editor is active"),!1)},t.getMappingForIncludedLanguages=function(){const e={},n=a.workspace.getConfiguration("emmet").get("includeLanguages"),r=Object.assign({},{handlebars:"html",php:"html"},n??{});return Object.keys(r).forEach((n=>{"string"==typeof r[n]&&t.LANGUAGE_MODES[r[n]]&&(e[n]=r[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},t.parsePartialStylesheet=function(e,t){const n="css"===e.languageId,r=e.offsetAt(t);let o=0,i=e.getText().length;const s=r-5e3,c=s>0?s:o,f=new l.DocumentStreamReader(e,r);function p(){const t=e.positionAt(f.pos).line;if(!n&&g!==t){g=t;const n=e.lineAt(g).text.indexOf("//");n>-1&&(f.pos=e.offsetAt(new a.Position(g,n)))}}function d(){f.sof()||f.peek()!==x||(f.backUp(1)===w?f.pos=function(t){const n=e.getText().substring(0,t).lastIndexOf("/*");if(-1!==n)return n}(f.pos)??o:f.next())}function h(){if(f.eat(x))if(f.eat(x)&&!n){const t=e.positionAt(f.pos).line;f.pos=e.offsetAt(new a.Position(t+1,0))}else f.eat(w)&&(f.pos=function(t){let n=e.getText().substring(t).indexOf("*/");if(-1!==n)return n+=2+t,n}(f.pos)??i)}for(;!f.eof()&&!f.eat(y);)f.peek()===x?h():f.next();f.eof()||(i=f.pos),f.pos=r;let m=1,g=t.line,b=!1;for(;!b&&m>0&&!f.sof();){switch(p(),f.backUp(1)){case v:m--;break;case y:n?(f.next(),o=f.pos,b=!0):m++;break;case x:d()}(t.line-e.positionAt(f.pos).line>100||f.pos<=c)&&(b=!0)}g=e.positionAt(f.pos).line,m=0;let k=!1;for(;!b&&!f.sof()&&!k&&m>=0;){p();const e=f.backUp(1);if(!/\s/.test(String.fromCharCode(e))){switch(e){case x:d();break;case y:m++;break;case v:m--;break;default:m||(k=!0)}!f.sof()&&k&&(o=f.pos)}}try{const t=" ".repeat(o)+e.getText().substring(o,i);return(0,u.default)(t)}catch(e){return}},t.getFlatNode=k,t.getHtmlFlatNode=function e(t,n,r,o){let i=k(n,r,o);if(i){if("script"===i.name&&0===i.children.length){const n=A(t,i);n&&(i=e(n,i,r,o)??i)}else if("cdata"===i.type){i=e(S(t,i),i,r,o)??i}return i}},t.setupScriptNodeSubtree=A,t.setupCdataNodeSubtree=S,t.isOffsetInsideOpenOrCloseTag=function(e,t){const n=e;return!!(n.open&&t>n.open.start&&t<n.open.end||n.close&&t>n.close.start&&t<n.close.end)},t.offsetRangeToSelection=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new a.Selection(r,o)},t.offsetRangeToVsRange=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new a.Range(r,o)},t.getDeepestFlatNode=function e(t){if(!t||!t.children||0===t.children.length||!t.children.find((e=>"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<e.length-1;)if(t++,o){if(!o||i||" "!==e[t])if(i){if(" "===e[t]){r=t,s=!0;break}}else n=t,i=!0}else" "===e[t]&&(o=!0);return i&&!s&&(r=e.length),[n,r]},t.findPrevWord=function(e,t){let n,r,o=t===e.length,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(C(e,t))return[e];if(!C(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.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=C,t.getEmmetConfiguration=function(e){const t=a.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),r=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:r,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<o;r++)if(!1===n(t.item(r))||!1===e(t.item(r),n))return!1;return!0},t.getCssPropertyFromRule=function(e,t){return e.children.find((e=>"property"===e.type&&e.name===t))},t.getCssPropertyFromDocument=function(e,t){const n=e.document,r=(0,p.getRootNode)(n,!0),o=n.offsetAt(t),i=k(r,o,!0);if(b(e.document.languageId))return i&&"property"===i.type?i:null;const s=i;if(s&&"style"===s.name&&s.open&&s.close&&s.open.end<o&&s.close.start>o){const e=" ".repeat(s.start)+n.getText().substring(s.start,s.end),t=k((0,u.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<t&&t<=r.close.start&&"style"===r.name){const t=" ".repeat(r.open.end)+e.getText().substring(r.open.end,r.close.start);return(0,u.default)(t)}}},t.isStyleAttribute=function(e,t){if(!e)return!1;const n=e,r=(n.attributes||[]).findIndex((e=>"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 f.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"]}};const a=i(n(1398)),c=s(n(1253)),u=s(n(7545)),l=n(4367),f=n(2367),p=n(6647);let d,h,m;function g(){return d||(d=n(8708)),d}function b(e){return["css","scss","sass","less","stylus"].includes(e)}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"]};const y=125,v=123,x=47,w=42;function k(e,t,n){if(e)return o(e.children);function r(e){if(!e)return;const r=e.start,i=e.end;if(r<t&&i>t||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<e.length;t++){const n=r(e[t]);if(n)return n}}}function A(e,n){if("script"===n.name&&n.attributes&&n.attributes.some((e=>"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,o=t+e.substring(n.open.end,r);return(0,c.default)(o).children.forEach((e=>{n.children.push(e),e.parent=n})),o}return""}function S(e,t){const n=t.start+9,r=t.end-3,o=" ".repeat(n)+e.substring(n,r);return(0,c.default)(o).children.forEach((e=>{t.children.push(e),e.parent=t})),o}function C(e,t){return!e&&!t||!(!e||!t)&&e.start===t.start&&e.end===t.end}t.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"]},5272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1531:(e,t,n)=>{"use strict";var r=n(5387),o=n(2625),i=n(2730),s=n(5943);function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(c)var h=a(BigInt.prototype.valueOf);if(u)var m=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===l(e)}function y(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function x(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=k,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function T(e){return void 0!==C&&(void 0===O.working&&(O.working=O(new C)),O.working?O(e):e instanceof C)}function _(e){return g(e,f)}function j(e){return g(e,p)}function E(e){return g(e,d)}function P(e){return c&&g(e,h)}function $(e){return u&&g(e,m)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=_,t.isStringObject=j,t.isBooleanObject=E,t.isBigIntObject=P,t.isSymbolObject=$,t.isBoxedPrimitive=function(e){return _(e)||j(e)||E(e)||P(e)||$(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9208:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])g(a)||!w(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},s=/^$/;if({}.NODE_DEBUG){var a={}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function c(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=f(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),A(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(S(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return p(n)}var u,l="",w=!1,C=["{","}"];return h(n)&&(w=!0,C=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),A(n)&&(l=" "+p(n)),0!==s.length||w&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=w?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)_(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,C)):C[0]+l+C[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),_(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=g(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return w(e)&&"[object RegExp]"===C(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===C(e)}function A(e){return w(e)&&("[object Error]"===C(e)||e instanceof Error)}function S(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(1531),t.isArray=h,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=w,t.isDate=k,t.types.isDate=k,t.isError=A,t.types.isNativeError=A,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(5272);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5615),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){process.nextTick(i.bind(null,null,e))}),(function(e){process.nextTick(E.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},2730:(e,t,n)=>{"use strict";var r=n(705),o=n(4834),i=n(8498),s=n(9818),a=n(9336),c=s("Object.prototype.toString"),u=n(1913)(),l="undefined"==typeof globalThis?n.g:globalThis,f=o(),p=s("String.prototype.slice"),d=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,u&&a&&d?function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);if(!r){var o=d(n);r=a(o,Symbol.toStringTag)}m["$"+e]=i(r.get)}}:function(e){var t=new l[e];m["$"+e]=i(t.slice)}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}})),t}(e):null}},1398:e=>{"use strict";e.exports=require("vscode")},2172:(e,t)=>{"use strict";function n(e){return e>47&&e<58}function r(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function o(e){return n(e)||i(e)}function i(e){return 95===e||r(e)}function s(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function a(e){return 39===e||34===e}Object.defineProperty(t,"__esModule",{value:!0});class c{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 c(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new u(`${e} at ${t+1}`,t,this.string)}}class u extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function l(e){return e.tokens[e.pos]}function f(e){return e.tokens[e.pos++]}function p(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function d(e){return e.pos<e.size}function h(e,t){const n=l(e);return!(!n||!t(n)||(e.pos++,0))}function m(e,t,n=l(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function g(e,t){const n={type:"TokenGroup",elements:[]};let r,o=n;const i=[];for(;d(e)&&(r=y(e,t)||b(e,t));)if(o.elements.push(r),h(e,L))i.push(o),o=r;else{if(h(e,B))continue;if(h(e,U))do{i.length&&(o=i.pop())}while(h(e,U))}return n}function b(e,t){if(h(e,N)){const n=g(e,t);return O(f(e),"group",!1)&&(n.repeat=function(e){return P(l(e))?e.tokens[e.pos++]:void 0}(e)),n}}function y(e,t){let n;const r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&h(e,$))for(;d(e);){const{pos:t}=e;if(!h(e,R)||!h(e,$)){e.pos=t;break}}for(;d(e)&&h(e,I););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(r.name=p(e));d(e);)if(e.start=e.pos,r.repeat||z(r)||!h(e,P))if(!r.value&&S(e))r.value=C(e);else{if(!(n=x(e,"id",t)||x(e,"class",t)||v(e))){!z(r)&&h(e,W)&&(r.selfClose=!0,!r.repeat&&h(e,P)&&(r.repeat=e.tokens[e.pos-1]));break}r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n]}else r.repeat=e.tokens[e.pos-1];return z(r)?void 0:r}function v(e){if(h(e,M)){const t=[];let n;for(;d(e);)if(n=w(e))t.push(n);else{if(h(e,D))break;if(!h(e,j))throw m(e,`Unexpected "${l(e).type}" token`)}return t}}function x(e,t,n){if(T(l(e),t)){e.pos++;let o=1;for(;T(l(e),t);)e.pos++,o++;const i={name:[(r=t,{type:"Literal",value:r})]};return o>1&&(i.multiple=!0),n.jsx&&S(e)?(i.value=C(e),i.expression=!0):i.value=A(e)?p(e):void 0,i}var r}function w(e){if(k(e))return{value:p(e)};if(A(e,!0)){const t=p(e);let n;return h(e,E)&&(k(e)||A(e,!0))&&(n=p(e)),{name:t,value:n}}}function k(e){const t=e.pos,n=l(e);if(_(n)){for(e.pos++;d(e);)if(_(f(e),n.single))return e.start=t,!0;throw m(e,"Unclosed quote",n)}return!1}function A(e,t){const n=e.pos,r={attribute:0,expression:0,group:0};for(;d(e);){const n=l(e);if(r.expression)O(n,"expression")&&(r[n.context]+=n.open?1:-1);else{if(_(n)||T(n)||j(n)||P(n))break;if(O(n)){if(!t)break;if(n.open)r[n.context]++;else{if(!r[n.context])break;r[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function S(e){const t=e.pos;if(h(e,F)){let n=0;for(;d(e);){const t=f(e);if(O(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function C(e){let t=e.start,n=e.pos;return O(e.tokens[t],"expression",!0)&&t++,O(e.tokens[n-1],"expression",!1)&&n--,p(e,t,n)}function O(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function T(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function _(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function j(e){return Boolean(e&&"WhiteSpace"===e.type)}function E(e){return T(e,"equal")}function P(e){return Boolean(e&&"Repeater"===e.type)}function $(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function I(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function R(e){return T(e,"class")}function M(e){return O(e,"attribute",!0)}function D(e){return O(e,"attribute",!1)}function F(e){return O(e,"expression",!0)}function N(e){return O(e,"group",!0)}function z(e){return!e.name&&!e.value&&!e.attributes}function L(e){return T(e,"child")}function B(e){return T(e,"sibling")}function U(e){return T(e,"climb")}function W(e){return T(e,"close")}var q;function V(e){return!!e.eat(q.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function H(e,t){return function(e,t){const o=e.pos;if((t.expression||t.attribute)&&e.eat(q.Dollar)&&e.eat(q.CurlyBracketOpen)){let t;e.start=e.pos;let i="";if(e.eatWhile(n)?(t=Number(e.current()),i=e.eat(q.Colon)?G(e):""):r(e.peek())&&(i=G(e)),e.eat(q.CurlyBracketClose))return{type:"Field",index:t,name:i,start:o,end:e.pos};throw e.error("Expecting }")}e.pos=o}(e,t)||function(e){const t=e.pos;if(e.eat(q.Dollar)&&e.eat(q.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(q.Dollar)){const r=e.pos-t;let o=!1,i=1,s=0;if(e.eat(q.At)){for(;e.eat(q.Climb);)s++;o=e.eat(q.Dash),e.start=e.pos,e.eatWhile(n)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:r,reverse:o,base:i,parent:s,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(q.Asterisk)){e.start=e.pos;let r=1,o=!1;return e.eatWhile(n)?r=Number(e.current()):o=!0,{type:"Repeater",count:r,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(s))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const r=e.pos,o=t.expression;let i="";for(;!e.eof();){if(V(e)){i+=e.current();continue}const r=e.peek();if(r===q.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),r=e.string.charCodeAt(e.pos+1);if(n(t)&&n(r)){i+=e.string[e.pos++];continue}}if(r===t.quote||r===q.Dollar||J(r,t))break;if(o){if(r===q.CurlyBracketOpen)t.expression++;else if(r===q.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!ee(r))break;if(Q(r,t)||K(r,t)||a(r)||Z(r))break}i+=e.string[e.pos++]}if(r!==e.pos)return e.start=r,{type:"Literal",value:i,start:r,end:e.pos}}(e,t)||function(e){const t=X(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(a(t))return{type:"Quote",single:t===q.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=Z(t);if(n)return{type:"Bracket",open:Y(t),context:n,start:e.pos++,end:e.pos}}(e)}function G(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(q.CurlyBracketOpen))t.push(e.pos);else if(e.eat(q.CurlyBracketClose)){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 J(e,t){const n=X(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Q(e,t){return s(e)&&!t.expression}function K(e,t){return e===q.Asterisk&&!t.attribute&&!t.expression}function Z(e){return e===q.RoundBracketOpen||e===q.RoundBracketClose?"group":e===q.SquareBracketOpen||e===q.SquareBracketClose?"attribute":e===q.CurlyBracketOpen||e===q.CurlyBracketClose?"expression":void 0}function X(e){return(e===q.Child?"child":e===q.Sibling&&"sibling")||e===q.Climb&&"climb"||e===q.Dot&&"class"||e===q.Hash&&"id"||e===q.Slash&&"close"||e===q.Equals&&"equal"||void 0}function Y(e){return e===q.CurlyBracketOpen||e===q.SquareBracketOpen||e===q.RoundBracketOpen}function ee(e){return o(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===q.Dash||e===q.Colon||e===q.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(q||(q={}));const te={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},ne={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>te[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.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function re(e,t){if(!ne[e.type])throw new Error(`Unknown token ${e.type}`);return ne[e.type](e,t)}const oe=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,ie=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function se(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;r<o.count;r++){if(o.value=r,e.repeat=o,i=pe(e)?ce(e,t):ae(e,t),o.implicit&&!t.inserted){const e=he(i),n=e&&me(e);n&&ge(n,t.getText(o.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,o.implicit&&(t.inserted=!0)}else n=n.concat(pe(e)?ce(e,t):ae(e,t));return n}function ae(e,t){let n=[];const r={type:"AbbreviationNode",name:e.name&&le(e.name,t),value:e.value&&fe(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let o=[r];for(const r of e.elements)n=n.concat(se(r,t));if(e.attributes){r.attributes=[];for(const n of e.attributes)r.attributes.push(ue(n,t))}return r.name||r.attributes||!r.value||r.value.some(de)?r.children=n:o=o.concat(n),o}function ce(e,t){let n=[];for(const r of e.elements)n=n.concat(se(r,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function ue(e,t){let n,r=!1,o=!1,i=e.expression?"expression":"raw";const s=e.name&&le(e.name,t);if(s&&"!"===s[0]&&(r=!0),s&&"."===s[s.length-1]&&(o=!0),e.value){const r=e.value.slice();if(_(r[0])){const e=r.shift();r.length&&he(r).type===e.type&&r.pop(),i=e.single?"singleQuote":"doubleQuote"}else O(r[0],"expression",!0)&&(i="expression",r.shift(),O(he(r),"expression",!1)&&r.pop());n=fe(r,t)}return{name:o||r?s.slice(r?1:0,o?-1:void 0):s,value:n,boolean:o,implied:r,valueType:i,multiple:e.multiple}}function le(e,t){let n="";for(let r=0;r<e.length;r++)n+=re(e[r],t);return n}function fe(e,t){const n=[];let r="";for(let o,i=0;i<e.length;i++)o=e[i],de(o)?(r&&(n.push(r),r=""),n.push(o)):r+=re(o,t);return r&&n.push(r),n}function pe(e){return"TokenGroup"===e.type}function de(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function he(e){return e[e.length-1]}function me(e){return e.children.length?me(he(e.children)):e}function ge(e,t){e.value?"string"==typeof he(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function be(e,t){try{return function(e,t={}){let n,r=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const o={type:"Abbreviation",children:ce(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<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(o=t.text)&&void 0!==o?o:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!r){const e=me(he(o.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ge(e,n),"a"===e.name&&t.href&&function(e,t){var n;let r="";oe.test(t)?(r=t,/\w+:/.test(r)||r.startsWith("//")||(r=`http://${r}`)):ie.test(t)&&(r=`mailto:${t}`);const o=null===(n=e.attributes)||void 0===n?void 0:n.find((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=g(n,t);if(d(n))throw m(n,"Unexpected character");return o}("string"==typeof e?function(e){const t=new c(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let o,i=0;for(;!t.eof();){if(i=t.peek(),o=H(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 u&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var ye,ve;function xe(e,t){return function(e){const t=e.pos;if(e.eat(ve.Dollar)&&e.eat(ve.CurlyBracketOpen)){let o;e.start=e.pos;let i="";if(e.eatWhile(n)?(o=Number(e.current()),i=e.eat(ve.Colon)?we(e):""):r(e.peek())&&(i=we(e)),e.eat(ve.CurlyBracketClose))return{type:"Field",index:o,name:i,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(ve.Dash)&&e.eat(ve.Dash))return e.start=t,e.eatWhile(Te),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(ve.Dash);const r=e.pos,o=e.eatWhile(n),i=e.pos;if(e.eat(ve.Dot)){const t=e.eatWhile(n);o||t||(e.pos=i)}return e.pos===r&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(ve.Percent)||e.eatWhile(i),{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(ve.Hash)){const n=e.pos;let r="",o="";if(e.eatWhile(Oe)?(r=e.substring(n,e.pos),o=Ae(e)):e.eat(ve.Transparent)?(r="0",o=Ae(e)||"0"):o=Ae(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 ke(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if(a(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:t===ve.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===ve.RoundBracketOpen||e===ve.RoundBracketClose}(t))return{type:"Bracket",open:t===ve.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||Se(e)||function(e){const t=e.pos;if(e.eatWhile(s))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Ce)?e.eatWhile(n?Te:_e):e.eat(i)?e.eatWhile(t?_e:Te):(e.eat(ve.Dot),e.eatWhile(_e)),n!==e.pos)return e.start=n,ke(e,e.start=n)}(e,t)}function we(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(ve.CurlyBracketOpen))t.push(e.pos);else if(e.eat(ve.CurlyBracketClose)){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 ke(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function Ae(e){const t=e.pos;return e.eat(ve.Dot)?(e.start=t,e.eatWhile(n)?e.current():"1"):""}function Se(e){const t=(n=e.peek())===ve.Sibling&&ye.Sibling||n===ve.Excl&&ye.Important||n===ve.Comma&&ye.ArgumentDelimiter||n===ve.Colon&&ye.PropertyDelimiter||n===ve.Dash&&ye.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Ce(e){return e===ve.At||e===ve.Dollar}function Oe(e){return n(e)||r(e,65,70)}function Te(e){return o(e)||e===ve.Dash}function _e(e){return i(e)||e===ve.Percent||e===ve.Slash}function je(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Ee(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(ke(e,n,r))}function Pe(e){return e.tokens[e.pos]}function $e(e){return e.pos<e.size}function Ie(e,t){return!!t(Pe(e))&&(e.pos++,!0)}function Re(e,t,n=Pe(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function Me(e,t){let n,r,o=!1;const i=[],s=Pe(e),a=!!t.value;for(a||!Ne(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Ne(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Ie(e,Qe)),a&&Ie(e,Ue);$e(e);)if(Ie(e,Ge))o=!0;else if(r=De(e,a))i.push(r);else if(!Ie(e,He))break;if(n||i.length||o)return{name:n,value:i,important:o}}function De(e,t){const n=[];let r,o;for(;$e(e);)if(r=Pe(e),Je(r))e.pos++,Ne(r)&&(o=Fe(e))?n.push({type:"FunctionCall",name:r.value,arguments:o}):n.push(r);else{if(!(Qe(r)||t&&Ue(r)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Fe(e){const t=e.pos;if(Ie(e,Le)){const n=[];let r;for(;$e(e)&&!Ie(e,Be);)if(r=De(e,!0))n.push(r);else if(!Ie(e,Ue)&&!Ie(e,Ve))throw Re(e,"Unexpected token");return e.start=t,n}}function Ne(e){return e&&"Literal"===e.type}function ze(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Le(e){return ze(e,!0)}function Be(e){return ze(e,!1)}function Ue(e){return e&&"WhiteSpace"===e.type}function We(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function qe(e){return We(e,ye.Sibling)}function Ve(e){return We(e,ye.ArgumentDelimiter)}function He(e){return Ve(e)}function Ge(e){return We(e,ye.Important)}function Je(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function Qe(e){return We(e,ye.PropertyDelimiter)||We(e,ye.ValueDelimiter)}function Ke(e,t){try{const n="string"==typeof e?function(e,t){let n,r=0;const o=new c(e),i=[];for(;!o.eof();){if(n=xe(o,0===r&&!t),!n)throw o.error("Unexpected character");if("Bracket"===n.type&&(!r&&n.open&&Ee(o,i),r+=n.open?1:-1,r<0))throw o.error("Unexpected bracket",n.start);i.push(n),je(n)&&(n=Se(o))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),r=[];let o;for(;$e(n);)if(o=Me(n,t))r.push(o);else if(!Ie(n,qe))throw Re(n,"Unexpected token");return r}(n,t)}catch(t){throw t instanceof u&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function Ze(e,t,n){if(e&&t){e.length&&n&&Ye(e,n);for(const n of t)Ye(e,n);return e}const r=e||t;return r&&r.slice()}function Xe(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function Ye(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function et(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];if(t(r))return r;const o=et(r,t);if(o)return o}}function tt(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function nt(e){return"AbbreviationNode"===e.type}function rt(e,t,n){let r=[];for(const n of e.children){const e=t(n);if(e){r=r.concat(e.children);const o=tt(e);nt(o.node)&&(o.node.children=o.node.children.concat(rt(n,t)))}else r.push(n),n.children=rt(n,t)}return e.children=r}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}(ye||(ye={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(ve||(ve={}));const ot="{",it="}";function st(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function at(e,t){mt(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ct(e,t){const n=function(e){return e.split(/\r\n|\r|\n/g)}(t);for(let t=0,r=n.length-1;t<=r;t++)at(e,n[t]),t!==r&&ut(e,!0)}function ut(e,t){const n=e.options["output.baseIndent"];at(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){at(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function lt(e,t,n){mt(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function ft(e,t){return gt(e,t.options["output.attributeCase"])}function pt(e,t,n){return"expression"===e.valueType?n?ot:it:"single"===t.options["output.attributeQuotes"]?"'":'"'}function dt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function ht(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?ht(e.name,t):Boolean(e.value&&!e.attributes)}function mt(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function gt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const bt={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function yt(e,t,n){const r=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(nt(n))return n}}(t),o=n.context?n.context.name:"",i=((r?r.name:o)||"").toLowerCase();e.name=bt[i]||(ht(i,n)?"span":"div")}const vt={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"]}},xt=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function wt(e,t){return Math.floor(Math.random()*(t-e)+e)}function kt(e,t){const n=e.length,r=Math.min(n,t),o=[];for(;o.length<r;){const t=e[wt(0,n)];o.includes(t)||o.push(t)}return o}function At(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[wt(0,4)])}function St(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let r=0;r=t>3&&t<=6?wt(0,1):t>6&&t<=12?wt(0,2):wt(1,4);for(let o,i=0;i<r;i++)o=wt(0,t-2),n.test(e[o])||(e[o]+=",");return e}function Ct(e,t,n){const r=[];let o,i=0;for(n&&e.common&&(o=e.common.slice(0,t),i+=o.length,r.push(At(St(o),".")));i<t;)o=kt(e.words,Math.min(wt(2,30),t-i)),i+=o.length,r.push(At(St(o)));return r.join(" ")}function Ot(e){return"select"!==e.name}const Tt=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,_t=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,jt=e=>/^[a-z]\-/i.test(e),Et=e=>/^[a-z]/i.test(e);function Pt(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Ft(n.value);break}e._bem=$t(t)}return e._bem}function $t(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:Rt(t)}}function It(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=Pt(t);if(e.block)return e.block}}while(0<r--);if(n){const e=function(e){return e._bem||(e._bem=$t(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function Rt(e){return Mt(e,jt)||Mt(e,Et)||void 0}function Mt(e,t){for(const n of e){if(Tt.test(n)||_t.test(n))break;if(t(n))return n}}function Dt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Ft(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Nt(e,t,n){return!!e&&n.indexOf(e)===t}function zt(e){if("label"===e.name){const t=et(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Lt(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Lt(e))))))}}function Lt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Bt(e,t,n){const r=(e,r,i)=>{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 Ut(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:st(e.options)}}const Wt=[{type:"Field",index:0,name:""}];function qt(e){return!!e&&!e.name&&!e.attributes}function Vt(e,t){return!!e&&ht(e,t)}function Ht(e){return"object"==typeof e&&"Field"===e.type}function Gt(e,t){const{out:n}=t;let r=-1;for(const o of e)"string"==typeof o?ct(n,o):(lt(n,t.field+o.index,o.name),o.index>r&&(r=o.index));-1!==r&&(t.field+=r+1)}function Jt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var Qt;function Kt(e){const t=[],n={pos:0,text:e};let r,o=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(r=Zt(n))?(o!==n.pos&&t.push(e.slice(o,i)),t.push(r),o=n.pos):n.pos++;return o!==n.pos&&t.push(e.slice(o)),t}function Zt(e){if(Xt(e)===Qt.Start){const t=++e.pos;let n=t,r=t,o=1;for(;e.pos<e.text.length;){const i=Xt(e);if(Yt(i)){for(n=e.pos;en(Xt(e));)e.pos++;r=e.pos}else{if(i===Qt.Start)o++;else if(i===Qt.End&&0==--o)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function Xt(e,t=e.pos){return e.text.charCodeAt(t)}function Yt(e){return e>=65&&e<=90}function en(e){return Yt(e)||e>47&&e<58||e===Qt.Underscore||e===Qt.Dash}function tn(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 nn(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?ct(o,e):r[e.name]&&(ct(o,e.before),Gt(r[e.name],n),ct(o,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(Qt||(Qt={}));const rn=/^<([\w\-:]+)[\s>]/,on=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function sn(e,t){const n=Ut(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Kt(t["comment.before"]):void 0,after:t["comment.after"]?Kt(t["comment.after"]):void 0}}(t),Bt(e,an,n),n.out.value}function an(e,t,n,r,o){const{out:i,config:s}=r,a=ln(e,t,n,r),c=function(e){const{config:t,parent:n}=e;return!n||qt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(r);if(i.level+=c,a&&ut(i,!0),e.name){const t=function(e,t){return gt(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){tn(e,t)&&t.comment.before&&nn(e,t.comment.before,t)}(e,r),ct(i,`<${t}`),e.attributes)for(const t of e.attributes)Jt(t)&&cn(t,r);if(!e.selfClosing||e.children.length||e.value){if(ct(i,">"),!un(e,r,o)){if(e.value){const t=e.value.some(fn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=rn.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&&ut(r.out,++i.level),Gt(e.value,r),t&&ut(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&&ut(r.out,++i.level),Gt(Wt,r),t&&ut(r.out,--i.level)}}ct(i,`</${t}>`),function(e,t){tn(e,t)&&t.comment.after&&nn(e,t.comment.after,t)}(e,r)}else ct(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!un(e,r,o)&&e.value&&(Gt(e.value,r),e.children.forEach(o));if(a&&t===n.length-1&&r.parent){const e=qt(r.parent)?0:1;ut(i,i.level-e)}i.level-=c}function cn(e,t){const{out:n,config:r}=t;if(e.name){const o=r.options["markup.attributes"],i=r.options["markup.valuePrefix"];let{name:s,value:a}=e,c=pt(e,r,!0),u=pt(e,r);o&&(s=pn(s,o,e.multiple)||s),s=ft(s,r),r.options["jsx.enabled"]&&e.multiple&&(c=ot,u=it);const l=i?pn(e.name,i,e.multiple):null;if(l&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[dn(e)?`${l}.${e}`:`${l}['${e}']`],r.options["jsx.enabled"]&&(c=ot,u=it)}dt(e,r)&&!a?r.options["output.compactBoolean"]||(a=[s]):a||(a=Wt),ct(n," "+s),a?(ct(n,"="+c),Gt(a,t),ct(n,u)):"html"!==r.options["output.selfClosingStyle"]&&ct(n,"="+c+u)}}function un(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(Ht);if(-1!==r){Gt(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]&&ct(t.out,e.value[i++].trimLeft()),Gt(e.value.slice(i),t),!0}}return!1}function ln(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&&qt(i)&&1===n.length)return!1;if(qt(e)&&(qt(n[t-1])||qt(n[t+1])||e.value.some(fn)||e.value.some(Ht)&&e.children.length))return!0;if(ht(e,o)){if(0===t){for(let e=0;e<n.length;e++)if(!ht(n[e],o))return!0}else if(!ht(n[t-1],o))return!0;if(o.options["output.inlineBreak"]){let e=1,r=t,i=t;for(;Vt(n[--r],o);)e++;for(;Vt(n[++i],o);)e++;if(e>=o.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(ln(e.children[t],t,e.children,r))return!0;return!1}return!0}function fn(e){return"string"==typeof e&&/\r|\n/.test(e)}function pn(e,t,n){return n&&t[`${e}*`]||t[e]}function dn(e){return!on.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function hn(e,t,n){const r=Ut(t);return r.options=n||{},Bt(e,mn,r),r.out.value}function mn(e,t,n,r,o){const{out:i,options:s}=r,{primary:a,secondary:c}=function(e){const t=[],n=[];if(e.attributes)for(const r of e.attributes)gn(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}(e),u=r.parent?1:0;i.level+=u,function(e,t,n,r){return!(!r.parent&&0===t)&&!qt(e)}(e,t,0,r)&&ut(i,!0),!e.name||"div"===e.name&&a.length||ct(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ct(t.out,"."),Gt(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ct(t.out,"#"),Gt(n.value,t)))}(a,r),function(e,t){if(e.length){const{out:n,config:r,options:o}=t;o.beforeAttribute&&ct(n,o.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];ct(n,ft(s.name||"",r)),dt(s,r)&&!s.value?!r.options["output.compactBoolean"]&&o.booleanValue&&ct(n,"="+o.booleanValue):(ct(n,"="+pt(s,r,!0)),Gt(s.value||Wt,t),ct(n,pt(s,r))),i!==e.length-1&&o.glueAttribute&&ct(n,o.glueAttribute)}o.afterAttribute&&ct(n,o.afterAttribute)}}(c.filter(Jt),r),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Wt,r=function(e){const t=[];let n=[];for(const r of e)if("string"==typeof r){const e=r.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(r);return n.length&&t.push(n),t}(n),{out:o,options:i}=t;if(1===r.length)(e.name||e.attributes)&&at(o," "),Gt(n,t);else{const e=[];let n=0;for(const t of r){const r=bn(t);e.push(r),r>n&&(n=r)}o.level++;for(let s=0;s<r.length;s++)ut(o,!0),i.beforeTextLine&&at(o,i.beforeTextLine),Gt(r[s],t),i.afterTextLine&&(at(o," ".repeat(n-e[s])),at(o,i.afterTextLine));o.level--}}(e,r),e.children.forEach(o)):r.options.selfClose&&ct(i,r.options.selfClose),i.level-=u}function gn(e){return"class"===e.name||"id"===e.name}function bn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const yn={html:sn,haml:function(e,t){return hn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return hn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return hn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function vn(e,t){let n;if("string"==typeof e){const r=Object.assign({},t);t.options["jsx.enabled"]&&(r.jsx=!0),t.options["markup.href"]&&(r.href=!0),e=be(e,r),n=t.text,t.text=void 0}return 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=be(i,t);n.push(i),rt(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 rt(e,o),e}(e,t),function(e,t,n){const r=[e],o=e=>{t(e,r,n),r.push(e),e.children.forEach(o),r.pop()};e.children.forEach(o)}(e,wn,t),t.text=null!=n?n:t.text,e}function xn(e,t){return(yn[t.syntax]||sn)(e,t)}function wn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&yt(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=Ze(n.value,o.value," "):Xe(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(xt))){const o=vt[r[1]]||vt.latin,i=r[2]?Math.max(1,Number(r[2])):30,s=wt(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=[Ct(o,s,!a||0===a.value)],e.repeat&&t.length>1&&yt(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(Ot))}(e),"markup"===n.type&&zt(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Pt(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(Nt),t.block=Rt(t.classNames),Dt(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=Pt(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(Tt))&&(r=It(s,t[1].length,n.context)+i["bem.element"]+t[2],o.push(r),e=e.slice(t[0].length)),(t=e.match(_t))&&(r||(r=It(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(Nt);a.length&&Dt(e,a.join(" "))}(e,t,n)}(e,t,n)}var kn;!function(e){e.Raw="Raw",e.Property="Property"}(kn||(kn={}));const An=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Sn={value:!0};function Cn(e,t){const n=t.match(An);if(n){const t={},r=n[2]?n[2].split("|").map(Tn):[];for(const e of r)for(const n of e)jn(n,t);return{type:kn.Property,key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:kn.Raw,key:e,value:t}}function On(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Tn(e){return Ke(e.trim(),Sn)[0].value}function _n(e){return e.type===kn.Property}function jn(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function En(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const r=e.length,o=t.length;if(!n&&r>o)return 0;const i=Math.min(r,o),s=Math.max(r,o);let a=1,c=1,u=s,l=0,f=0,p=!1,d=!1;for(;a<r;){for(l=e.charCodeAt(a),p=!1,d=!1;c<o;){if(f=t.charCodeAt(c),l===f){p=!0,u+=s-(d?a:c);break}d=45===f,c++}if(!p){if(!n)return 0;break}a++}const h=s-i;return u*(a/s)/(Pn(s)-Pn(h))}function Pn(e){return e*(e+1)/2}function $n(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Rn(e.r)&&Rn(e.g)&&Rn(e.b)?Mn:Dn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(In(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function In(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Rn(e){return!(e%17)}function Mn(e){return(e>>4).toString(16)}function Dn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Fn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Nn(e,t){var n;const r=st(t.options),o=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Fn.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)o&&0!==n&&ut(r,!0),zn(e[n],r,t);return r.value}function zn(e,t,n){const r=n.options["stylesheet.json"];if(e.name)ct(t,(r?e.name.replace(/\-(\w)/g,((e,t)=>t.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&&at(t,o);for(let r=0;r<e.value.length;r++)0!==r&&at(t,", "),Bn(e.value[r],t,n);r&&at(t,o)}else at(t,String(o.value))}(e,t,n):lt(t,0,""),r?at(t,","):(Ln(e,t,!0),at(t,n.options["stylesheet.after"]));else{for(const r of e.value)for(const e of r.value)Un(e,t,n);Ln(e,t,e.value.length>0)}}function Ln(e,t,n){e.important&&(n&&at(t," "),at(t,"!important"))}function Bn(e,t,n){for(let r=0,o=-1;r<e.value.length;r++){const i=e.value[r];0===r||"Field"===i.type&&i.start===o||at(t," "),Un(i,t,n),o=i.end}}function Un(e,t,n){if("ColorValue"===e.type)at(t,$n(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ct(t,e.value);else if("NumberValue"===e.type)ct(t,In(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ct(t,n+e.value+n)}else if("Field"===e.type)lt(t,e.index,e.name);else if("FunctionCall"===e.type){at(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&at(t,", "),Bn(e.arguments[r],t,n);at(t,")")}}const Wn="lg";function qn(e,t){var n;const r=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||Vn(t.snippets);t.cache&&(t.cache.stylesheetSnippets=r),"string"==typeof e&&(e=Ke(e,{value:nr(t)}));const o=function(e,t){if(t.context){if(t.context.name===Fn.Section)return e.filter((e=>e.type===kn.Raw));if(t.context.name===Fn.Property)return e.filter((e=>e.type===kn.Property))}return e}(r,t);for(const n of e)Hn(n,o,t);return e}function Vn(e){const t=[];for(const n of Object.keys(e))t.push(Cn(n,e[n]));return function(e){e=e.slice().sort(On);const t=[];let n;for(const r of e.filter(_n)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&45===r.property.charCodeAt(n.property.length)){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}(t)}function Hn(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&&e.name===Wn&&(n=e)}return!(!n&&e.name!==Wn)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Zn(Yn(0,""))]},t.context||(e.name="background-image"),e.value=[Zn(n)],!0)}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(nr(n)){const o=n.context.name,i=t.find((e=>e.type===kn.Property&&e.property===o));Gn(e,n,i,r),e.snippet=i}else if(e.name){const o=Jn(e.name,t,r,!0);e.snippet=o,o&&(o.type===kn.Property?function(e,t,n){const r=function(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),-1===r)return e.slice(n);r++}return""}(e.name,t.key);if(r){if(e.value.length)return e;const o=Kn(r,n,t);if(!o)return e;e.value.push(Zn(o))}if(e.name=t.property,e.value.length)Gn(e,n,t);else if(t.value.length){const r=t.value[0];e.value=1===t.value.length||r.some(er)?r:r.map((e=>tr(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(Xn(t.value.slice(r,n.index))),r=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(Yn(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(r);a&&s.push(Xn(a)),e.name=void 0,e.value=[Zn(...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 Gn(e,t,n,r){for(const o of e.value){const e=[];for(const i of o.value)if("Literal"===i.type)e.push(Kn(i.value,t,n,r)||i);else if("FunctionCall"===i.type){const o=Kn(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 Jn(e,t,n=0,r=!1){let o=null,i=0;for(const n of t){const t=En(e,Qn(n),r);if(1===t)return n;t&&t>=i&&(i=t,o=n)}return i>=n?o:null}function Qn(e){return"string"==typeof e?e:e.key}function Kn(e,t,n,r){let o;if(n){if(o=Jn(e,Object.keys(n.keywords),r))return n.keywords[o];for(const t of n.dependencies)if(o=Jn(e,Object.keys(t.keywords),r))return t.keywords[o]}return(o=Jn(e,t.options["stylesheet.keywords"],r))?Xn(o):null}function Zn(...e){return{type:"CSSValue",value:e}}function Xn(e){return{type:"Literal",value:e}}function Yn(e,t){return{type:"Field",index:e,name:t}}function er(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(er))return!0;return!1}function tr(e,t,n={index:1}){let r=[];for(const o of e.value)switch(o.type){case"ColorValue":r.push(Yn(n.index++,$n(o,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(Yn(n.index++,o.value));break;case"NumberValue":r.push(Yn(n.index++,`${o.value}${o.unit}`));break;case"StringValue":const e="single"===o.quote?"'":'"';r.push(Yn(n.index++,e+o.value+e));break;case"FunctionCall":r.push(Yn(n.index++,o.name),Xn("("));for(let e=0,i=o.arguments.length;e<i;e++)r=r.concat(tr(o.arguments[e],t,n).value),e!==i-1&&r.push(Xn(", "));r.push(Xn(")"));break;default:r.push(o)}return Object.assign(Object.assign({},e),{value:r})}function nr(e){return!(!e.context||e.context.name!==Fn.Value&&e.context.name.startsWith("@@"))}const rr={markup:"html",stylesheet:"css"},or={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"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}},ir={markup:{snippets:sr({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:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module 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}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"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:b|button:b|button:button":"button[type=button]","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",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","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","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:sr({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:sr({"!!!":"{doctype html}"})},stylesheet:{snippets:sr({"@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",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",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",bs:"block-size",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|contents|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",g:"gap",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",is:"inline-size",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",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",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",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",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|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"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 sr(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}function ar(e={},t={}){const n=e.type||"markup",r=e.syntax||rr[n];return Object.assign(Object.assign(Object.assign({},or),e),{type:n,syntax:r,variables:cr(n,r,"variables",e,t),snippets:cr(n,r,"snippets",e,t),options:cr(n,r,"options",e,t)})}function cr(e,t,n,r,o={}){const i=ir[e],s=o[e],a=ir[t],c=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},or[n]),i&&i[n]),a&&a[n]),s&&s[n]),c&&c[n]),r[n])}function ur(e,t=0){return{text:e,start:t,pos:e.length}}function lr(e){return e.pos===e.start}function fr(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function pr(e){if(!lr(e))return e.text.charCodeAt(--e.pos)}function dr(e,t){if(lr(e))return!1;const n="function"==typeof t?t(fr(e)):t===fr(e);return n&&e.pos--,!!n}function hr(e,t){const n=e.pos;for(;dr(e,t););return e.pos<n}var mr,gr;function br(e){return e===mr.SingleQuote||e===mr.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(mr||(mr={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(gr||(gr={}));const yr={[gr.SquareL]:gr.SquareR,[gr.RoundL]:gr.RoundR,[gr.CurlyL]:gr.CurlyR};var vr;function xr(e){const t=e.pos;if(!dr(e,vr.AngleRight))return!1;let n=!1;for(dr(e,vr.Slash);!lr(e);){if(hr(e,Cr),Ar(e)){if(dr(e,vr.Slash)){n=dr(e,vr.AngleLeft);break}if(dr(e,vr.AngleLeft)){n=!0;break}if(dr(e,Cr))continue;if(dr(e,vr.Equals)){if(Ar(e))continue;break}if(kr(e)){n=!0;break}break}if(!wr(e))break}return e.pos=t,n}function wr(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=pr(e);if(br(n))for(;!lr(e);)if(pr(e)===n&&fr(e)!==mr.Escape)return!0;return e.pos=t,!1}(e)&&dr(e,vr.Equals)&&Ar(e))||(e.pos=t,!1)}(e)||kr(e)}function kr(e){const t=e.pos,n=[];for(;!lr(e);){const t=fr(e);if(_r(t))n.push(t);else if(Tr(t)){if(n.pop()!==yr[t])break}else if(!Or(t))break;e.pos--}return!(t===e.pos||!dr(e,vr.Equals)||!Ar(e))||(e.pos=t,!1)}function Ar(e){return hr(e,Sr)}function Sr(e){return e===vr.Colon||e===vr.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Cr(e){return e===vr.Space||e===vr.Tab}function Or(e){return!isNaN(e)&&e!==vr.Equals&&!Cr(e)&&!br(e)}function Tr(e){return e===gr.CurlyL||e===gr.RoundL||e===gr.SquareL}function _r(e){return e===gr.CurlyR||e===gr.RoundR||e===gr.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(vr||(vr={}));const jr=e=>e.charCodeAt(0),Er="#.*:$-_!@%^+>/".split("").map(jr),Pr={type:"markup",lookAhead:!0,prefix:""};function $r(e,t,n){const r=e.pos;if(dr(e,t))for(;!lr(e);){if(dr(e,n))return!0;e.pos--}return e.pos=r,!1}function Ir(e,t){const n=e.pos;let r=!1;for(let n=t.length-1;n>=0&&!lr(e)&&dr(e,t[n]);n--)r=0===n;return r||(e.pos=n),r}function Rr(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Er.includes(e)}function Mr(e,t){return e===gr.RoundL||"markup"===t&&(e===gr.SquareL||e===gr.CurlyL)}function Dr(e,t){return e===gr.RoundR||"markup"===t&&(e===gr.SquareR||e===gr.CurlyR)}function Fr(e,t){return xn(vn(e,t),t)}function Nr(e,t){return Nn(qn(e,t),t)}t.CSSAbbreviationScope=Fn,t.default=function(e,t){const n=ar(t);return"stylesheet"===n.type?Nr(e,n):Fr(e,n)},t.extract=function(e,t=e.length,n={}){const r=Object.assign(Object.assign({},Pr),n);let o;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){for(br(e.charCodeAt(t))&&t++;Dr(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const i=function(e,t,n){if(!n)return 0;const r=ur(e),o=n.split("").map(jr);let i;for(r.pos=t;!lr(r);)if(!$r(r,gr.SquareR,gr.SquareL)&&!$r(r,gr.CurlyR,gr.CurlyL)){if(i=r.pos,Ir(r,o))return i;r.pos--}return-1}(e,t,r.prefix||"");if(-1===i)return;const s=ur(e,i);s.pos=t;const a=[];for(;!lr(s);){if(o=fr(s),a.includes(gr.CurlyR)){if(o===gr.CurlyR){a.push(o),s.pos--;continue}if(o!==gr.CurlyL){s.pos--;continue}}if(Dr(o,r.type))a.push(o);else if(Mr(o,r.type)){if(a.pop()!==yr[o])break}else{if(a.includes(gr.SquareR)||a.includes(gr.CurlyR)){s.pos--;continue}if(xr(s)||!Rr(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}}},t.markup=Fr,t.markupAbbreviation=be,t.parseMarkup=vn,t.parseStylesheet=qn,t.parseStylesheetSnippets=Vn,t.resolveConfig=ar,t.stringifyMarkup=xn,t.stringifyStylesheet=Nn,t.stylesheet=Nr,t.stylesheetAbbreviation=Ke},4834:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}}},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(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=function(e){(0,t.activateEmmetExtension)(e)};const t=n(1212)})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{var e={7545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Token:()=>m,any:()=>Me,backtick:()=>ne,comment:()=>V,createAtRule:()=>He,createProperty:()=>Je,createRule:()=>Ve,default:()=>Ye,formatting:()=>De,ident:()=>j,interpolation:()=>z,keyword:()=>Fe,lexer:()=>Ze,parseMediaExpression:()=>qe,parsePropertyName:()=>Le,parsePropertyValue:()=>Ue,parseSelector:()=>Be,selector:()=>Ne,string:()=>B,url:()=>je,value:()=>ze,variable:()=>Pe,whitespace:()=>J});var r=n(8769),o=n(6613);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,u(e[0])&&e.shift(),u(p(e))&&e.pop();return e}(e)}function u(e){const t=e&&e.type;return"whitespace"===t||"comment"===t}function c(e,t){const n=e.pos;for(let r=0,o=t.length;r<o;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function l(e,t){const n=e.pos;return!!e.eat(t)&&(e.start=n,!0)}function f(e,t){const n=e.pos;return!!e.eatWhile(t)&&(e.start=n,!0)}function p(e){return e[e.length-1]}function d(e){return e&&e.valueOf()}class m{constructor(e,t,n,r){this.stream=e,this.start=null!=n?n:e.start,this.end=null!=r?r:e.pos,this.type=t,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(e,t){return new this.constructor(this.stream,this.type,null!=e?e:this.start,null!=t?t:this.end)}add(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)this.add(e[t]);else e&&(this._items?this._items.push(e):this._items=[e]);return this}remove(e){if(this._items){const t=this._items.indexOf(e);-1!==t&&this._items.splice(t,1)}return this}item(e){const t=this.size;return this._items&&this._items[(t+e)%t]}limit(){return this.stream.limit(this.start,this.end)}slice(e,t){const n=this.clone(),r=this._items&&this._items.slice(e,t);return r&&r.length?(n.start=r[0].start,n.end=r[r.length-1].end,n.add(r)):r&&(n.start=n.end),n}property(e,t){return void 0!==t&&(this._props||(this._props={}),this._props[e]=t),this._props&&this._props[e]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return null===this._value&&(this._value=this.stream.substring(this.start,this.end)),this._value}}const h=44,g=58,b=59,y=123,v=125,x=(new Map).set(h,"comma").set(g,"propertyDelimiter").set(b,"propertyTerminator").set(y,"ruleStart").set(v,"ruleEnd");var w=function(e,t){if(40===e.peek()){const r=e.pos;e.next();const o=[];let i,s=!1;for(;!e.eof()&&(n=e.peek())!==y&&n!==v&&!e.eat(41)&&(i=t(e),i);)C(i)&&(s=!0),o.push(i);return e.start=r,function(e,t,n){const r=new m(e,"arguments"),o=n?C:S;let i=[];for(let n,s=0,a=t.length;s<a;s++)n=t[s],o(n)?(r.add(k(e,i)||A(e,n.start)),i.length=0):i.push(n);return i.length&&r.add(k(e,i)),r}(e,o,s)}var n};function k(e,t){if((t=a(t)).length){const n=new m(e,"argument",t[0].start,p(t).end);for(let e=0;e<t.length;e++)n.add(t[e]);return n}}function A(e,t){const n=new m(e,"argument",t,t);return n.property("empty",!0),n}function S(e){return"comma"===e.property("type")}function C(e){return"propertyTerminator"===e.property("type")}const O=45,T=95;function j(e){return _(e)&&new m(e,"ident")}function _(e){const t=e.pos;return e.eat(O),e.eat(E)?(e.eatWhile(P),e.start=t,!0):(e.pos=t,!1)}function E(e){return e===T||e===O||(0,o.R5)(e)||e>=128}function P(e){return(0,o.Et)(e)||E(e)}function $(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 m(e,t,i).add(n)}e.pos=i}const R=64;function I(e){return $(e,"at-keyword",R,j)}const M=35,N=64;function z(e,t){const n=e.pos;if(t=t||D,(e.eat(M)||e.eat(N))&&e.eat(y)){const r=new m(e,"interpolation",n);let o,i=1;for(;!e.eof();)if(e.eat(y))i++;else if(e.eat(v)){if(i--,!i)return r.end=e.pos,r}else{if(!(o=t(e)))break;r.add(o)}}e.pos=n}function F(e){const t=e.pos;return(e.eat(M)||e.eat(N))&&(0,o.Ji)(e,y,v)?(e.start=t,!0):(e.pos=t,!1)}function D(e){const t=e.pos;for(;!e.eof()&&e.peek()!==v;)L(e)||e.next();if(t!==e.pos)return new m(e,"expression",t)}function B(e){return L(e,!0)}function L(e,t){let n,r,i,s=e.peek();if((0,o.vG)(s)){e.start=e.pos,e.next();const o=s,a=e.pos;for(;!e.eof()&&(n=e.pos,!e.eat(o)&&!e.eat(U));)e.eat(92)?e.eat(U):t&&(i=z(e))&&(r?r.push(i):r=[i]),e.next();if(t){const t=new m(e,"string"),i=new m(e,"unquoted",a,n);return i.add(r),t.add(i),t.property("quote",o),t}return!0}return!1}function U(e){return 10===e||13===e}const q=42,W=47;var V=function(e){return function(e){if(H(e)){const t=new m(e,"comment");return t.property("type","single-line"),t}}(e)||function(e){if(Q(e)){const t=new m(e,"comment");return t.property("type","multiline"),t}}(e)};function G(e){return H(e)||Q(e)}function H(e){const t=e.pos;if(e.eat(W)&&e.eat(W)){for(e.start=t;!e.eof()&&10!==(n=e.next())&&13!==n;);return!0}var n;return e.pos=t,!1}function Q(e){const t=e.pos;if(e.eat(W)&&e.eat(q)){for(;!(e.eof()||e.next()===q&&e.eat(W)););return e.start=t,!0}return e.pos=t,!1}function J(e){return K(e)&&new m(e,"whitespace")}function K(e){return f(e,o.xC)}const Z=91,X=93;function Y(e){for(;!e.eof();)if(!K(e)&&!G(e))return!0}function ee(e){return 126===e||124===e||94===e||36===e||42===e||61===e}const te=96;function ne(e){if(re(e))return new m(e,"backtick")}function re(e){const t=e.pos;return!!(0,o.Ji)(e,te,te)&&(e.start=t,!0)}const oe=46,ie={43:"adjacentSibling",126:"generalSibling",62:"child",38:"nesting"};var se=function(e){if(43===(t=e.peek())||126===t||38===t||62===t){const t=e.pos,n=ie[e.next()],r=new m(e,"combinator",t);return r.property("type",n),r}var t};const ae=35;function ue(e){if(function(e){return f(e,ce)}(e))return new m(e,"hash-value")}function ce(e){return(0,o.Et)(e)||(0,o.R5)(e,65,70)||95===e||45===e||e>128}const le=35,fe=33,pe=46;function de(e){return 45===e||43===e}const me=33,he=42,ge=43,be=45,ye=47,ve=60,xe=61,we=62;function ke(e){return e===me||e===ve||e===xe||e===we}function Ae(e){return e===he||e===ge||e===be||e===ye||ke(e)}var Se=function(e){const t=e.pos;if(e.eatWhile(58)){const n=j(e);if(n)return new m(e,"pseudo",t).add(n)}e.pos=t},Ce=function(e){return Oe(e)&&new m(e,"unquoted")};function Oe(e){return f(e,Te)}function Te(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||40===e||41===e||92===e||function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}(e))}function je(e){const t=e.pos;if(c(e,"url(")){K(e);const n=B(e)||Ce(e);return K(e),e.eat(41),new m(e,"url",t).add(n)}e.pos=t}function _e(e){const t=e.pos;return c(e,"url(")?(K(e),L(e)||Oe(e),K(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}const Ee=36;function Pe(e){return $(e,"variable",Ee,$e)}function $e(e){if(function(e){return f(e,Re)}(e))return new m(e,"name")}function Re(e){return e===Ee||P(e)}function Ie(e){const t=Me(e)||w(e,Ie);if(t&&"ident"===t.type){const n=w(e,Ie);if(n)return new m(e,"function",t.start,n.end).add(t).add(n)}return t||function(e){e.start=e.pos;if(null!=e.next())return new m(e,"unknown")}(e)}function Me(e){return De(e)||je(e)||Ne(e)||ze(e)||function(e){if((t=e.peek())===h||t===g||t===b||t===y||t===v){const t=e.pos,n=x.get(e.next()),r=new m(e,"separator",t);return r.property("type",n),r}var t}(e)}function Ne(e){return z(e)||ne(e)||j(e)||I(e)||function(e){return $(e,"class",oe,j)}(e)||function(e){return $(e,"id",le,j)}(e)||Se(e)||function(e){const t=e.pos;if(e.eat(Z)){Y(e);const n=j(e);Y(e);const r=function(e){return f(e,ee)&&new m(e,"operator")}(e);Y(e);const o=B(e)||j(e);return Y(e),e.eat(X),new m(e,"attribute",t).add(n).add(r).add(o)}}(e)||se(e)}function ze(e){return je(e)||B(e)||z(e)||ne(e)||function(e){if(function(e){const t=e.pos;if(e.eat(de),e.eatWhile(o.Et)){e.start=t;const n=e.pos;return e.eat(pe)&&e.eatWhile(o.Et)||(e.pos=n),!0}return e.eat(pe)&&e.eatWhile(o.Et)?(e.start=t,!0):(e.pos=t,!1)}(e)){const t=e.start,n=new m(e,"value"),r=function(e){return _(e)||function(e){return l(e,37)}(e)}(e)?new m(e,"unit"):null;return new m(e,"number",t).add(n).add(r)}}(e)||function(e){return $(e,"hash",ae,ue,!0)}(e)||Fe(e)||function(e){return $(e,"important",fe,j)}(e)||function(e){return function(e){return l(e,ke)?(e.eatWhile(xe),!0):!!l(e,Ae)}(e)&&new m(e,"operator")}(e)}function Fe(e){return ne(e)||Pe(e)||I(e)||j(e)}function De(e){return V(e)||J(e)}function Be(e){return We(e,"selector")}function Le(e){const t="string"==typeof e?new r.A(e):e,n=[];for(;!t.eof();)n.push(Ie(t));let o;if(1===n.length)o=n[0];else{o=new m(t,"property-name",t.start,t.end);for(let e=0,t=n.length;e<t;e++)o.add(n[e])}return o}function Ue(e){return We(e)}function qe(e){return We(e)}function We(e,t){t=t||"item";const n="string"==typeof e?new r.A(e):e,o=[],i=[],s=()=>{const e=a(i);if(e.length){const r=new m(n,t,e[0].start,p(e).end);for(let t=0;t<e.length;t++)r.add(e[t]);o.push(r)}i.length=0};let u;for(;!n.eof();)if(n.eat(44))s();else{if(!(u=Ie(n)))throw n.error("Unexpected character");"comment"!==u.type&&i.push(u)}return s(),o}function Ve(e,t,n,r){if(!t.length)return null;const o=t[0];return o.end=p(t).end,new Ge(e,o,n,r)}class Ge extends i{constructor(e,t,n,r){super("rule"),this.stream=e,this.selectorToken=t,this.contentStartToken=n,this.contentEndToken=r||n,this._parsedSelector=null}get selector(){return d(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Be(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function He(e,t,n,r){if(!t.length)return null;let o,i=0;const s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=p(t).end):o=new m(e,"expression",s.end,s.end),new Qe(e,s,o,n,r)}class Qe extends i{constructor(e,t,n,r,o){super("at-rule"),this.stream=e,this.nameToken=t,this.expressionToken=n,this.contentStartToken=r,this.contentEndToken=o||r,this._parsedExpression=null}get name(){return d(this.nameToken&&this.nameToken.item(0))}get expression(){return d(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=qe(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function Je(e,t,n){if(!t.length)return null;let r,o,i=0;const s=t[i++];return i<t.length&&(o=t[i++],o.type="value",o.end=p(t).end),s&&o&&(r=new m(e,"separator",s.end,o.start)),new Ke(e,s,o,r,n)}class Ke extends i{constructor(e,t,n,r,o){super("property"),this.stream=e,this.nameToken=t,this.valueToken=n,this._parsedName=null,this._parsedValue=null,this.separatorToken=r,this.terminatorToken=o}get name(){return d(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=Le(this.nameToken.limit())),this._parsedName}get value(){return d(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Ue(this.valueToken.limit())),this._parsedValue}get separator(){return d(this.separatorToken)}get terminator(){return d(this.terminatorToken)}get start(){const e=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return e&&e.start}get end(){const e=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return e&&e.end}}function Ze(e,t){t=t||Ie;const n="string"==typeof e?new r.A(e):e,o=[];let i;for(;!n.eof()&&(i=t(n));)o.push(i);return o}function Xe(e,t){if(e.eat(40)){let n,r=1;for(;!e.eof();)if(e.eat(41)){if(r--,!r)break}else if(e.eat(40))r++;else{if(_e(e)||L(e))continue;if(n=V(e)){t.addComment(n);continue}e.next()}return!0}return!1}const Ye=function(e){const t="string"==typeof e?new r.A(e):e,n=new s;let o,i,a,u=n,c=[];const l=()=>{i&&(c.push(i),i=null)};for(;!t.eof();)if(!K(t))if(a=V(t))n.addComment(a);else if(t.start=t.pos,t.eatWhile(58))c.length||(i?l():i=new m(t,"preparse"));else if(t.eat(59))l(),u.add(Je(t,c,new m(t,"termintator"))),c.length=0;else if(t.eat(123))l(),c.length>0&&(o="at-keyword"===c[0].type?He(t,c,new m(t,"body-start")):Ve(t,c,new m(t,"body-start")),u.add(o),u=o,c.length=0);else if(t.eat(125))l(),u.add(Je(t,c)),"stylesheet"!==u.type&&(u.contentEndToken=new m(t,"body-end"),u=u.parent),c.length=0;else if(a=I(t))l(),c.push(a);else{if(!(_e(t)||F(t)||re(t)||Xe(t,n)||L(t)||t.next()))throw new Error(`Unexpected end-of-stream at ${t.pos}`);i=i||new m(t,"preparse"),i.end=t.pos}for(i&&c.push(i),u.add(Je(t,c)),t.start=t.pos;u&&u!==n;)u.contentEndToken=new m(t,"body-end"),u=u.parent;return n}},1253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R,defaultOptions:()=>_,match:()=>E});var r=n(8769),o=n(6613);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 u={throws:!0};var c=function(e){const t=e.pos;if((0,o.Ji)(e,60,62,u)||(0,o.Ji)(e,91,93,u)||(0,o.Ji)(e,40,41,u)||(0,o.Ji)(e,123,125,u))return s(e,t)};const l=47,f=61,p=62;function d(e){return c(e)||s(e,h)}function m(e){const t=e.pos;if((0,o.vP)(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 c(e)||function(e){return s(e,b)}(e)}function h(e){return e!==f&&!g(e)&&!(0,o.xC)(e)}function g(e){return e===p||e===l}function b(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||g(e))}var y=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,v)}(e))&&("close"!==n.type&&(n.attributes=function(e){const t=[];let n;for(;!e.eof();)if(e.eatWhile(o.xC),n={start:e.pos},n.name=d(e))e.eat(f)?n.value=m(e):n.boolean=!0,n.end=e.pos,t.push(n);else{if(g(e.peek()))break;e.next()}return t}(e),e.eatWhile(o.xC),n.selfClosing=e.eat(47)),e.eat(62)))return Object.assign(s(e,t),n)}return e.pos=t,null};function v(e){return(0,o.gA)(e)||58===e||46===e||45===e||95===e}function x(e,t){const n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function w(e,t,n,r){const o=e.pos;if(x(e,t)){for(;!e.eof();){if(x(e,n))return!0;e.next()}return!!r||(e.pos=o,!1)}return e.pos=o,null}function k(e){return e.split("").map((e=>e.charCodeAt(0)))}const A=k("\x3c!--"),S=k("--\x3e");var C=function(e){const t=e.pos;if(w(e,A,S,!0)){const n=s(e,t);return n.type="comment",n}return null};const O=k("<![CDATA["),T=k("]]>");var j=function(e){const t=e.pos;if(w(e,O,T,!0)){const n=s(e,t);return n.type="cdata",n}return null};const _={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function E(e){if(60===e.peek())return C(e)||j(e)||y(e)}function P(e,t){const n=e.pos;for(;!e.eof();){if(x(e,t))return e.pos=e.start,y(e);e.next()}return e.pos=n,null}function $(e){return e[e.length-1]}const R=function(e,t){t=Object.assign({},_,t);const n="string"==typeof e?new r.A(e):e,o=new i(n,"root"),s=new Set(t.empty),a=t.special.reduce(((e,t)=>e.set(t,k(`</${t}>`))),new Map),u=(e,n)=>e.selfClosing||!t.xml&&s.has(n);let c,l,f,p=[o];for(;!n.eof();)if(c=E(n))if(f=(d=c).name?d.name.value.toLowerCase():`#${d.type}`,"open"===c.type)l=new i(n,"tag",c),$(p).addChild(l),a.has(f)?l.close=P(n,a.get(f)):u(c,f)||p.push(l);else if("close"===c.type){for(let e=p.length-1;e>0;e--)if(p[e].name.toLowerCase()===f){p[e].close=c,p=p.slice(0,e);break}}else $(p).addChild(new i(n,c.type,c));else n.next();var d;return o}},2915:(e,t,n)=>{"use strict";function r(e){return e>47&&e<58}function o(e){return 32===e||9===e||160===e}function i(e){return o(e)||10===e||13===e}n.r(t),n.d(t,{default:()=>O,extract:()=>x,parse:()=>c});class s{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 s(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new a(`${e} at ${t+1}`,t,this.string)}}class a extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const u=y("null",0);function c(e){const t="string"==typeof e?new s(e):e;let n,r=0,i=21;const a=[];for(;!t.eof();)t.eatWhile(o),t.start=t.pos,l(t)?(1&i||m("Unexpected number",t),a.push(f(t.current())),i=10):b(t.peek())?(n=t.next(),h(n)&&16&i?(g(n)&&a.push(p(n,r)),i=21):(2&i||m("Unexpected operator",t),a.push(d(n,r)),i=21)):t.eat(40)?(4&i||m('Unexpected "("',t),r+=10,i=53):t.eat(41)?(r-=10,32&i?a.push(u):8&i||m('Unexpected ")"',t),i=14):m("Unknown character",t);(r<0||r>=10)&&m('Unmatched "()"',t);const c=function(e){const t=[],n=[];let r=0;for(let o=0;o<e.length;o++){const i=e[o];if("num"===i.type)n.push(i);else{for(r+="op1"===i.type?1:2;t.length&&i.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(i)}}return r+1===n.length+t.length?n.concat(t.reverse()):null}(a);return null===c&&m("Parity",t),c}function l(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(r))||!(!e.eatWhile(r)||e.eat(46)&&!e.eatWhile(r))||(e.pos=t,!1)}function f(e,t){return y("num",parseFloat(e),t)}function p(e,t=0){return 45===e&&(t+=2),y("op1",e,t)}function d(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),y("op2",e,t)}function m(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function h(e){return function(e){return 43===e}(e)||g(e)}function g(e){return 45===e}function b(e){return 43===e||45===e||42===e||47===e||92===e}function y(e,t,n=0){return{type:e,value:t,priority:n}}const v={lookAhead:!0,whitespace:!0};function x(e,t=e.length,n){const r=Object.assign(Object.assign({},v),n),o={text:e,pos:t};let s;if(r.lookAhead&&41===A(o)){o.pos++;const t=e.length;for(;o.pos<t&&(s=A(o),41===s||r.whitespace&&i(s));)o.pos++}const a=o.pos;let u=0;for(;o.pos>=0;)if(!w(o)){if(s=k(o),41===s)u++;else if(40===s){if(!u)break;u--}else if(!(r.whitespace&&i(s)||h(s)||b(s)))break;o.pos--}if(o.pos!==a&&!u){for(;i(A(o));)o.pos++;return[o.pos,a]}return null}function w(e){if(r(k(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=k(e),46===t){if(n)break;n=!0}else if(!r(t))break;e.pos--}return!0}return!1}function k(e){return e.text.charCodeAt(e.pos-1)}function A(e){return e.text.charCodeAt(e.pos)}const S={45:e=>-e},C={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)},O=function(e){if(Array.isArray(e)||(e=c(e)),!e||!e.length)return null;const t=[];let n,r,o;for(let i=0,s=e.length;i<s;i++){const s=e[i];if("num"===s.type)t.push(s.value);else if("op2"===s.type)r=t.pop(),n=t.pop(),o=C[s.value],t.push(o(n,r));else{if("op1"!==s.type)throw new Error("Invalid expression");n=t.pop(),o=S[s.value],t.push(o(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}},6613:(e,t,n)=>{"use strict";n.d(t,{Et:()=>u,Ji:()=>d,R5:()=>c,gA:()=>l,vG:()=>a,vP:()=>s,xC:()=>f});const r=39,o=34,i={escape:92,throws:!1};var s=function(e,t){t=t?Object.assign({},i,t):i;const n=e.pos,r=e.peek();if(e.eat(a)){for(;!e.eof();)switch(e.next()){case r: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 a(e){return e===r||e===o}function u(e){return e>47&&e<58}function c(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function l(e){return u(e)||c(e)}function f(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}const p={escape:92,throws:!1};function d(e,t,n,r){r=r?Object.assign({},p,r):p;const o=e.pos;if(e.eat(t)){let i,a=1;for(;!e.eof();)if(!s(e,r))if(i=e.next(),i===t)a++;else if(i===n){if(a--,!a)return e.start=o,!0}else i===r.escape&&e.next();if(e.pos=o,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}},8769:(e,t,n)=>{"use strict";n.d(t,{A:()=>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<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e){const t=new Error(`${e} at char ${this.pos+1}`);return t.originalMessage=e,t.pos=this.pos,t.string=this.string,t}}},3547:(e,t,n)=>{"use strict";function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function o(e){return 10===e||13===e||8232===e||8233===e}function i(e){return e>=48&&e<=57}var s;function a(e,t,n){void 0===n&&(n=s.DEFAULT);var a=function(e,t){void 0===t&&(t=!1);var n=e.length,s=0,a="",u=0,c=16,l=0,f=0,p=0,d=0,m=0;function h(t,n){for(var r=0,o=0;r<t||!n;){var i=e.charCodeAt(s);if(i>=48&&i<=57)o=16*o+i-48;else if(i>=65&&i<=70)o=16*o+i-65+10;else{if(!(i>=97&&i<=102))break;o=16*o+i-97+10}s++,r++}return r<t&&(o=-1),o}function g(){if(a="",m=0,u=s,f=l,d=p,s>=n)return u=n,c=17;var t=e.charCodeAt(s);if(r(t)){do{s++,a+=String.fromCharCode(t),t=e.charCodeAt(s)}while(r(t));return c=15}if(o(t))return s++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(s)&&(s++,a+="\n"),l++,p=s,c=14;switch(t){case 123:return s++,c=1;case 125:return s++,c=2;case 91:return s++,c=3;case 93:return s++,c=4;case 58:return s++,c=6;case 44:return s++,c=5;case 34:return s++,a=function(){for(var t="",r=s;;){if(s>=n){t+=e.substring(r,s),m=2;break}var i=e.charCodeAt(s);if(34===i){t+=e.substring(r,s),s++;break}if(92!==i){if(i>=0&&i<=31){if(o(i)){t+=e.substring(r,s),m=2;break}m=6}s++}else{if(t+=e.substring(r,s),++s>=n){m=2;break}switch(e.charCodeAt(s++)){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 a=h(4,!0);a>=0?t+=String.fromCharCode(a):m=4;break;default:m=5}r=s}}return t}(),c=10;case 47:var g=s-1;if(47===e.charCodeAt(s+1)){for(s+=2;s<n&&!o(e.charCodeAt(s));)s++;return a=e.substring(g,s),c=12}if(42===e.charCodeAt(s+1)){s+=2;for(var y=n-1,v=!1;s<y;){var x=e.charCodeAt(s);if(42===x&&47===e.charCodeAt(s+1)){s+=2,v=!0;break}s++,o(x)&&(13===x&&10===e.charCodeAt(s)&&s++,l++,p=s)}return v||(s++,m=1),a=e.substring(g,s),c=13}return a+=String.fromCharCode(t),s++,c=16;case 45:if(a+=String.fromCharCode(t),++s===n||!i(e.charCodeAt(s)))return c=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){var t=s;if(48===e.charCodeAt(s))s++;else for(s++;s<e.length&&i(e.charCodeAt(s));)s++;if(s<e.length&&46===e.charCodeAt(s)){if(!(++s<e.length&&i(e.charCodeAt(s))))return m=3,e.substring(t,s);for(s++;s<e.length&&i(e.charCodeAt(s));)s++}var n=s;if(s<e.length&&(69===e.charCodeAt(s)||101===e.charCodeAt(s)))if((++s<e.length&&43===e.charCodeAt(s)||45===e.charCodeAt(s))&&s++,s<e.length&&i(e.charCodeAt(s))){for(s++;s<e.length&&i(e.charCodeAt(s));)s++;n=s}else m=3;return e.substring(t,n)}(),c=11;default:for(;s<n&&b(t);)s++,t=e.charCodeAt(s);if(u!==s){switch(a=e.substring(u,s)){case"true":return c=8;case"false":return c=9;case"null":return c=7}return c=16}return a+=String.fromCharCode(t),s++,c=16}}function b(e){if(r(e)||o(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){s=e,a="",u=0,c=16,m=0},getPosition:function(){return s},scan:t?function(){var e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:function(){return c},getTokenValue:function(){return a},getTokenOffset:function(){return u},getTokenLength:function(){return s-u},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return u-d},getTokenError:function(){return m}}}(e,!1);function u(e){return e?function(){return e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(e){return e?function(t){return e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var l=u(t.onObjectBegin),f=c(t.onObjectProperty),p=u(t.onObjectEnd),d=u(t.onArrayBegin),m=u(t.onArrayEnd),h=c(t.onLiteralValue),g=c(t.onSeparator),b=u(t.onComment),y=c(t.onError),v=n&&n.disallowComments,x=n&&n.allowTrailingComma;function w(){for(;;){var e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:v||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:v?k(10):b();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),y(e),t.length+n.length>0)for(var r=a.getToken();17!==r;){if(-1!==t.indexOf(r)){w();break}if(-1!==n.indexOf(r))break;r=w()}}function A(e){var t=a.getTokenValue();return e?h(t):f(t),w(),!0}return w(),17===a.getToken()?!!n.allowEmptyContent||(k(4,[],[]),!1):function e(){switch(a.getToken()){case 3:return function(){d(),w();for(var t=!1;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&x)break}else t&&k(6,[],[]);e()||k(4,[],[4,5]),t=!0}return m(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){l(),w();for(var t=!1;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),2===a.getToken()&&x)break}else t&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),0):(A(!1),6===a.getToken()?(g(":"),w(),e()||k(4,[],[2,5])):k(5,[],[2,5]),1))||k(4,[],[2,5]),t=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return A(!0);default:return function(){switch(a.getToken()){case 11:var e=a.getTokenValue(),t=Number(e);isNaN(t)&&(k(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return w(),!0}()}}()?(17!==a.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}n.r(t),n.d(t,{FileType:()=>Ue,doComplete:()=>Gi,emmetSnippetField:()=>ts,expandAbbreviation:()=>ds,extractAbbreviation:()=>as,extractAbbreviationFromText:()=>us,getDefaultSnippets:()=>is,getDefaultSyntax:()=>os,getEmmetMode:()=>xs,getExpandOptions:()=>ls,getSyntaxType:()=>rs,isAbbreviationValid:()=>cs,isStyleSheet:()=>ns,parseAbbreviation:()=>ps,updateExtensionsPath:()=>ms}),function(e){e.DEFAULT={allowTrailingComma:!1}}(s||(s={}));var u,c,l,f,p,d,m,h,g,b,y,v,x,w,k,A,S,C,O,T,j,_,E,P,$,R,I,M,N,z,F,D,B,L,U,q,W,V,G,H,Q,J,K,Z,X,Y,ee,te,ne,re,oe,ie,se,ae,ue,ce,le,fe,pe,de,me,he,ge,be,ye,ve,xe,we,ke,Ae,Se,Ce,Oe,Te,je,_e,Ee,Pe,$e,Re,Ie,Me=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=s.DEFAULT);var r=null,o=[],i=[];function u(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}var c={onObjectBegin:function(){var e={};u(e),i.push(o),o=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){o=i.pop()},onArrayBegin:function(){var e=[];u(e),i.push(o),o=e,r=null},onArrayEnd:function(){o=i.pop()},onLiteralValue:u,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}};return a(e,c,n),o[0]},Ne=n(9208);!function(e){e.is=function(e){return"string"==typeof e}}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e}}(c||(c={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(l||(l={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(f||(f={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&Re.uinteger(t.line)&&Re.uinteger(t.character)}}(p||(p={})),function(e){e.create=function(e,t,n,r){if(Re.uinteger(e)&&Re.uinteger(t)&&Re.uinteger(n)&&Re.uinteger(r))return{start:p.create(e,t),end:p.create(n,r)};if(p.is(e)&&p.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return Re.objectLiteral(t)&&p.is(t.start)&&p.is(t.end)}}(d||(d={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&d.is(t.range)&&(Re.string(t.uri)||Re.undefined(t.uri))}}(m||(m={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&d.is(t.targetRange)&&Re.string(t.targetUri)&&d.is(t.targetSelectionRange)&&(d.is(t.originSelectionRange)||Re.undefined(t.originSelectionRange))}}(h||(h={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.numberRange(t.red,0,1)&&Re.numberRange(t.green,0,1)&&Re.numberRange(t.blue,0,1)&&Re.numberRange(t.alpha,0,1)}}(g||(g={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&d.is(t.range)&&g.is(t.color)}}(b||(b={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.label)&&(Re.undefined(t.textEdit)||T.is(t))&&(Re.undefined(t.additionalTextEdits)||Re.typedArray(t.additionalTextEdits,T.is))}}(y||(y={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(v||(v={})),function(e){e.create=function(e,t,n,r,o,i){const s={startLine:e,endLine:t};return Re.defined(n)&&(s.startCharacter=n),Re.defined(r)&&(s.endCharacter=r),Re.defined(o)&&(s.kind=o),Re.defined(i)&&(s.collapsedText=i),s},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.uinteger(t.startLine)&&Re.uinteger(t.startLine)&&(Re.undefined(t.startCharacter)||Re.uinteger(t.startCharacter))&&(Re.undefined(t.endCharacter)||Re.uinteger(t.endCharacter))&&(Re.undefined(t.kind)||Re.string(t.kind))}}(x||(x={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Re.defined(t)&&m.is(t.location)&&Re.string(t.message)}}(w||(w={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(k||(k={})),function(e){e.Unnecessary=1,e.Deprecated=2}(A||(A={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.href)}}(S||(S={})),function(e){e.create=function(e,t,n,r,o,i){let s={range:e,message:t};return Re.defined(n)&&(s.severity=n),Re.defined(r)&&(s.code=r),Re.defined(o)&&(s.source=o),Re.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t;let n=e;return Re.defined(n)&&d.is(n.range)&&Re.string(n.message)&&(Re.number(n.severity)||Re.undefined(n.severity))&&(Re.integer(n.code)||Re.string(n.code)||Re.undefined(n.code))&&(Re.undefined(n.codeDescription)||Re.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Re.string(n.source)||Re.undefined(n.source))&&(Re.undefined(n.relatedInformation)||Re.typedArray(n.relatedInformation,w.is))}}(C||(C={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return Re.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.title)&&Re.string(t.command)}}(O||(O={})),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){const t=e;return Re.objectLiteral(t)&&Re.string(t.newText)&&d.is(t.range)}}(T||(T={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.label)&&(Re.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Re.string(t.description)||void 0===t.description)}}(j||(j={})),function(e){e.is=function(e){const t=e;return Re.string(t)}}(_||(_={})),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){const t=e;return T.is(t)&&(j.is(t.annotationId)||_.is(t.annotationId))}}(E||(E={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Re.defined(t)&&F.is(t.textDocument)&&Array.isArray(t.edits)}}(P||(P={})),function(e){e.create=function(e,t,n){let 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){let t=e;return t&&"create"===t.kind&&Re.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Re.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}($||($={})),function(e){e.create=function(e,t,n,r){let 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){let t=e;return t&&"rename"===t.kind&&Re.string(t.oldUri)&&Re.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Re.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(R||(R={})),function(e){e.create=function(e,t,n){let 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){let t=e;return t&&"delete"===t.kind&&Re.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Re.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Re.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(I||(I={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Re.string(e.kind)?$.is(e)||R.is(e)||I.is(e):P.is(e))))}}(M||(M={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&Re.integer(t.version)}}(z||(z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&(null===t.version||Re.integer(t.version))}}(F||(F={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&Re.string(t.languageId)&&Re.integer(t.version)&&Re.string(t.text)}}(D||(D={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(B||(B={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(e)&&B.is(t.kind)&&Re.string(t.value)}}(L||(L={})),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}(U||(U={})),function(e){e.PlainText=1,e.Snippet=2}(q||(q={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Re.string(t.newText)&&d.is(t.insert)&&d.is(t.replace)}}(V||(V={})),function(e){e.asIs=1,e.adjustIndentation=2}(G||(G={})),function(e){e.is=function(e){const t=e;return t&&(Re.string(t.detail)||void 0===t.detail)&&(Re.string(t.description)||void 0===t.description)}}(H||(H={})),function(e){e.create=function(e){return{label:e}}}(Q||(Q={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(J||(J={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Re.string(t)||Re.objectLiteral(t)&&Re.string(t.language)&&Re.string(t.value)}}(K||(K={})),function(e){e.is=function(e){let t=e;return!!t&&Re.objectLiteral(t)&&(L.is(t.contents)||K.is(t.contents)||Re.typedArray(t.contents,K.is))&&(void 0===e.range||d.is(e.range))}}(Z||(Z={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(X||(X={})),function(e){e.create=function(e,t,...n){let r={label:e};return Re.defined(t)&&(r.documentation=t),Re.defined(n)?r.parameters=n:r.parameters=[],r}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ee||(ee={})),function(e){e.create=function(e,t){let n={range:e};return Re.number(t)&&(n.kind=t),n}}(te||(te={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ne||(ne={})),function(e){e.Deprecated=1}(re||(re={})),function(e){e.create=function(e,t,n,r,o){let i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(oe||(oe={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(ie||(ie={})),function(e){e.create=function(e,t,n,r,o,i){let s={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(s.children=i),s},e.is=function(e){let t=e;return t&&Re.string(t.name)&&Re.number(t.kind)&&d.is(t.range)&&d.is(t.selectionRange)&&(void 0===t.detail||Re.string(t.detail))&&(void 0===t.deprecated||Re.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(se||(se={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ae||(ae={})),function(e){e.Invoked=1,e.Automatic=2}(ue||(ue={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return Re.defined(t)&&Re.typedArray(t.diagnostics,C.is)&&(void 0===t.only||Re.typedArray(t.only,Re.string))&&(void 0===t.triggerKind||t.triggerKind===ue.Invoked||t.triggerKind===ue.Automatic)}}(ce||(ce={})),function(e){e.create=function(e,t,n){let r={title:e},o=!0;return"string"==typeof t?(o=!1,r.kind=t):O.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&Re.string(t.title)&&(void 0===t.diagnostics||Re.typedArray(t.diagnostics,C.is))&&(void 0===t.kind||Re.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||O.is(t.command))&&(void 0===t.isPreferred||Re.boolean(t.isPreferred))&&(void 0===t.edit||M.is(t.edit))}}(le||(le={})),function(e){e.create=function(e,t){let n={range:e};return Re.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Re.defined(t)&&d.is(t.range)&&(Re.undefined(t.command)||O.is(t.command))}}(fe||(fe={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.uinteger(t.tabSize)&&Re.boolean(t.insertSpaces)}}(pe||(pe={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Re.defined(t)&&d.is(t.range)&&(Re.undefined(t.target)||Re.string(t.target))}}(de||(de={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return Re.objectLiteral(n)&&d.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(me||(me={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(he||(he={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(ge||(ge={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(be||(be={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&Re.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&Re.boolean(t.caseSensitiveLookup)&&(Re.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&(Re.string(t.expression)||void 0===t.expression)}}(xe||(xe={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Re.defined(t)&&d.is(e.stoppedLocation)}}(we||(we={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(ke||(ke={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&(void 0===t.tooltip||Re.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.location||m.is(t.location))&&(void 0===t.command||O.is(t.command))}}(Ae||(Ae={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return Re.objectLiteral(t)&&p.is(t.position)&&(Re.string(t.label)||Re.typedArray(t.label,Ae.is))&&(void 0===t.kind||ke.is(t.kind))&&void 0===t.textEdits||Re.typedArray(t.textEdits,T.is)&&(void 0===t.tooltip||Re.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.paddingLeft||Re.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Re.boolean(t.paddingRight))}}(Se||(Se={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Ce||(Ce={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Oe||(Oe={})),function(e){e.create=function(e){return{items:e}}}(Te||(Te={})),function(e){e.Invoked=0,e.Automatic=1}(je||(je={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(_e||(_e={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Ee||(Ee={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&c.is(t.uri)&&Re.string(t.name)}}(Pe||(Pe={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);let s=0,a=0,u=0;for(;s<o.length&&a<i.length;){let t=n(o[s],i[a]);e[u++]=t<=0?o[s++]:i[a++]}for(;s<o.length;)e[u++]=o[s++];for(;a<i.length;)e[u++]=i[a++];return e}e.create=function(e,t,n,r){return new ze(e,t,n,r)},e.is=function(e){let t=e;return!!(Re.defined(t)&&Re.string(t.uri)&&(Re.undefined(t.languageId)||Re.string(t.languageId))&&Re.uinteger(t.lineCount)&&Re.func(t.getText)&&Re.func(t.positionAt)&&Re.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),o=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=r.length;for(let t=o.length-1;t>=0;t--){let n=o[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=i))throw new Error("Overlapping edit");r=r.substring(0,s)+n.newText+r.substring(a,r.length),i=s}return r}}($e||($e={}));class ze{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){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return p.create(0,e);for(;n<r;){let o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}let o=n-1;return p.create(o,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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const 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)}}(Re||(Re={})),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,s=i-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(o+f);if(p!==n.charCodeAt(a+f))break;47===p&&(l=f)}var d="";for(f=o+l+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){o=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(i=!1,o=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===s?s=l:1!==f&&(f=1):-1!==s&&(f=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===f||1===f&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&i?e.slice(1,u):e.slice(a,u)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>l,Utils:()=>S}),"object"==typeof process)e=!1;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,o=/^\//,i=/^\/\//;function s(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.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(i.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",u="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class l{static isUri(e){return e instanceof l||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,o,i=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||a),this.query=r||a,this.fragment=o||a,s(this,i))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===o?o=this.query:null===o&&(o=a),void 0===i?i=this.fragment:null===i&&(i=a),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new p(t,n,r,o,i)}static parse(e,t=!1){const n=c.exec(e);return n?new p(n[2]||a,x(n[4]||a),x(n[5]||a),x(n[7]||a),x(n[9]||a),t):new p(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,u)),t[0]===u&&t[1]===u){const e=t.indexOf(u,2);-1===e?(n=t.substring(2),t=u):(n=t.substring(2,e),t=t.substring(e)||u)}return new p("file",n,t,a,a)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return s(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof l)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}const f=e?1:void 0;class p extends l{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const d={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let r,o=-1;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=d[s];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function h(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=d[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function b(e,t){const n=t?h:m;let r="",{scheme:o,authority:i,path:s,query:a,fragment:c}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=u,r+=u),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:m(c,!1,!1)),r}function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(v)?e.replace(v,(e=>y(e))):e}var w=n(470);const k=w.posix||w,A="/";var S;!function(e){e.joinPath=function(e,...t){return e.with({path:k.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==A&&(n=A+n,r=!0);let o=k.resolve(n,...t);return r&&o[0]===A&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===A)return e;let t=k.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return k.basename(e.path)},e.extname=function(e){return k.extname(e.path)}}(S||(S={}))})(),Ie=r})();const{URI:Fe,Utils:De}=Ie,Be={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"]},Le={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","audio","bdi","data","datalist","dialog","embed","mark","math","meter","output","picture","portal","progress","rp","rt","ruby","search","slot","source","template","time","track","video","wbr"]};var Ue;!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(Ue||(Ue={}));const qe=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),We=".".charCodeAt(0);function Ve(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 Ge(e,...t){const n=e.path.split("/");for(const e of t)n.push(...e.split("/"));return e.with({path:Ve(n)})}function He(e){return e>47&&e<58}function Qe(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function Je(e){return He(e)||Ke(e)}function Ke(e){return 95===e||Qe(e)}function Ze(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function Xe(e){return 39===e||34===e}class Ye{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 Ye(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(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}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new et(`${e} at ${t+1}`,t,this.string)}}class et extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function tt(e){return e.tokens[e.pos]}function nt(e){return e.tokens[e.pos++]}function rt(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function ot(e){return e.pos<e.size}function it(e,t){const n=tt(e);return!(!n||!t(n)||(e.pos++,0))}function st(e,t,n=tt(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function at(e,t){const n={type:"TokenGroup",elements:[]};let r,o=n;const i=[];for(;ot(e)&&(r=ct(e,t)||ut(e,t));)if(o.elements.push(r),it(e,Pt))i.push(o),o=r;else{if(it(e,$t))continue;if(it(e,Rt))do{i.length&&(o=i.pop())}while(it(e,Rt))}return n}function ut(e,t){if(it(e,_t)){const n=at(e,t);return bt(nt(e),"group",!1)&&(n.repeat=function(e){return kt(tt(e))?e.tokens[e.pos++]:void 0}(e)),n}}function ct(e,t){let n;const r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&it(e,At))for(;ot(e);){const{pos:t}=e;if(!it(e,Ct)||!it(e,At)){e.pos=t;break}}for(;ot(e)&&it(e,St););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(r.name=rt(e));ot(e);)if(e.start=e.pos,r.repeat||Et(r)||!it(e,kt))if(!r.value&&ht(e))r.value=gt(e);else{if(!(n=ft(e,"id",t)||ft(e,"class",t)||lt(e))){!Et(r)&&it(e,It)&&(r.selfClose=!0,!r.repeat&&it(e,kt)&&(r.repeat=e.tokens[e.pos-1]));break}r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n]}else r.repeat=e.tokens[e.pos-1];return Et(r)?void 0:r}function lt(e){if(it(e,Ot)){const t=[];let n;for(;ot(e);)if(n=pt(e))t.push(n);else{if(it(e,Tt))break;if(!it(e,xt))throw st(e,`Unexpected "${tt(e).type}" token`)}return t}}function ft(e,t,n){if(yt(tt(e),t)){e.pos++;let o=1;for(;yt(tt(e),t);)e.pos++,o++;const i={name:[(r=t,{type:"Literal",value:r})]};return o>1&&(i.multiple=!0),n.jsx&&ht(e)?(i.value=gt(e),i.expression=!0):i.value=mt(e)?rt(e):void 0,i}var r}function pt(e){if(dt(e))return{value:rt(e)};if(mt(e,!0)){const t=rt(e);let n;return it(e,wt)&&(dt(e)||mt(e,!0))&&(n=rt(e)),{name:t,value:n}}}function dt(e){const t=e.pos,n=tt(e);if(vt(n)){for(e.pos++;ot(e);)if(vt(nt(e),n.single))return e.start=t,!0;throw st(e,"Unclosed quote",n)}return!1}function mt(e,t){const n=e.pos,r={attribute:0,expression:0,group:0};for(;ot(e);){const n=tt(e);if(r.expression)bt(n,"expression")&&(r[n.context]+=n.open?1:-1);else{if(vt(n)||yt(n)||xt(n)||kt(n))break;if(bt(n)){if(!t)break;if(n.open)r[n.context]++;else{if(!r[n.context])break;r[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function ht(e){const t=e.pos;if(it(e,jt)){let n=0;for(;ot(e);){const t=nt(e);if(bt(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function gt(e){let t=e.start,n=e.pos;return bt(e.tokens[t],"expression",!0)&&t++,bt(e.tokens[n-1],"expression",!1)&&n--,rt(e,t,n)}function bt(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function yt(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function vt(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function xt(e){return Boolean(e&&"WhiteSpace"===e.type)}function wt(e){return yt(e,"equal")}function kt(e){return Boolean(e&&"Repeater"===e.type)}function At(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function St(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function Ct(e){return yt(e,"class")}function Ot(e){return bt(e,"attribute",!0)}function Tt(e){return bt(e,"attribute",!1)}function jt(e){return bt(e,"expression",!0)}function _t(e){return bt(e,"group",!0)}function Et(e){return!e.name&&!e.value&&!e.attributes}function Pt(e){return yt(e,"child")}function $t(e){return yt(e,"sibling")}function Rt(e){return yt(e,"climb")}function It(e){return yt(e,"close")}var Mt;function Nt(e){return!!e.eat(Mt.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function zt(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(Mt.Dollar)&&e.eat(Mt.CurlyBracketOpen)){let t;e.start=e.pos;let r="";if(e.eatWhile(He)?(t=Number(e.current()),r=e.eat(Mt.Colon)?Ft(e):""):Qe(e.peek())&&(r=Ft(e)),e.eat(Mt.CurlyBracketClose))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(Mt.Dollar)&&e.eat(Mt.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(Mt.Dollar)){const n=e.pos-t;let r=!1,o=1,i=0;if(e.eat(Mt.At)){for(;e.eat(Mt.Climb);)i++;r=e.eat(Mt.Dash),e.start=e.pos,e.eatWhile(He)&&(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(Mt.Asterisk)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(He)?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(Ze))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,r=t.expression;let o="";for(;!e.eof();){if(Nt(e)){o+=e.current();continue}const n=e.peek();if(n===Mt.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(He(t)&&He(n)){o+=e.string[e.pos++];continue}}if(n===t.quote||n===Mt.Dollar||Dt(n,t))break;if(r){if(n===Mt.CurlyBracketOpen)t.expression++;else if(n===Mt.CurlyBracketClose){if(!(t.expression>r))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!Vt(n))break;if(Bt(n,t)||Lt(n,t)||Xe(n)||Ut(n))break}o+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:o,start:n,end:e.pos}}(e,t)||function(e){const t=qt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Xe(t))return{type:"Quote",single:t===Mt.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=Ut(t);if(n)return{type:"Bracket",open:Wt(t),context:n,start:e.pos++,end:e.pos}}(e)}function Ft(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Mt.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Mt.CurlyBracketClose)){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 Dt(e,t){const n=qt(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Bt(e,t){return Ze(e)&&!t.expression}function Lt(e,t){return e===Mt.Asterisk&&!t.attribute&&!t.expression}function Ut(e){return e===Mt.RoundBracketOpen||e===Mt.RoundBracketClose?"group":e===Mt.SquareBracketOpen||e===Mt.SquareBracketClose?"attribute":e===Mt.CurlyBracketOpen||e===Mt.CurlyBracketClose?"expression":void 0}function qt(e){return(e===Mt.Child?"child":e===Mt.Sibling&&"sibling")||e===Mt.Climb&&"climb"||e===Mt.Dot&&"class"||e===Mt.Hash&&"id"||e===Mt.Slash&&"close"||e===Mt.Equals&&"equal"||void 0}function Wt(e){return e===Mt.CurlyBracketOpen||e===Mt.SquareBracketOpen||e===Mt.RoundBracketOpen}function Vt(e){return Je(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===Mt.Dash||e===Mt.Colon||e===Mt.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(Mt||(Mt={}));const Gt={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},Ht={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>Gt[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.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function Qt(e,t){if(!Ht[e.type])throw new Error(`Unknown token ${e.type}`);return Ht[e.type](e,t)}const Jt=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Kt=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Zt(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;r<o.count;r++){if(o.value=r,e.repeat=o,i=rn(e)?Yt(e,t):Xt(e,t),o.implicit&&!t.inserted){const e=sn(i),n=e&&an(e);n&&un(n,t.getText(o.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,o.implicit&&(t.inserted=!0)}else n=n.concat(rn(e)?Yt(e,t):Xt(e,t));return n}function Xt(e,t){let n=[];const r={type:"AbbreviationNode",name:e.name&&tn(e.name,t),value:e.value&&nn(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let o=[r];for(const r of e.elements)n=n.concat(Zt(r,t));if(e.attributes){r.attributes=[];for(const n of e.attributes)r.attributes.push(en(n,t))}return r.name||r.attributes||!r.value||r.value.some(on)?r.children=n:o=o.concat(n),o}function Yt(e,t){let n=[];for(const r of e.elements)n=n.concat(Zt(r,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function en(e,t){let n,r=!1,o=!1,i=e.expression?"expression":"raw";const s=e.name&&tn(e.name,t);if(s&&"!"===s[0]&&(r=!0),s&&"."===s[s.length-1]&&(o=!0),e.value){const r=e.value.slice();if(vt(r[0])){const e=r.shift();r.length&&sn(r).type===e.type&&r.pop(),i=e.single?"singleQuote":"doubleQuote"}else bt(r[0],"expression",!0)&&(i="expression",r.shift(),bt(sn(r),"expression",!1)&&r.pop());n=nn(r,t)}return{name:o||r?s.slice(r?1:0,o?-1:void 0):s,value:n,boolean:o,implied:r,valueType:i,multiple:e.multiple}}function tn(e,t){let n="";for(let r=0;r<e.length;r++)n+=Qt(e[r],t);return n}function nn(e,t){const n=[];let r="";for(let o,i=0;i<e.length;i++)o=e[i],on(o)?(r&&(n.push(r),r=""),n.push(o)):r+=Qt(o,t);return r&&n.push(r),n}function rn(e){return"TokenGroup"===e.type}function on(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function sn(e){return e[e.length-1]}function an(e){return e.children.length?an(sn(e.children)):e}function un(e,t){e.value?"string"==typeof sn(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function cn(e,t){try{return function(e,t={}){let n,r=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const o={type:"Abbreviation",children:Yt(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<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(o=t.text)&&void 0!==o?o:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!r){const e=an(sn(o.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;un(e,n),"a"===e.name&&t.href&&function(e,t){var n;let r="";Jt.test(t)?(r=t,/\w+:/.test(r)||r.startsWith("//")||(r=`http://${r}`)):Kt.test(t)&&(r=`mailto:${t}`);const o=null===(n=e.attributes)||void 0===n?void 0:n.find((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=at(n,t);if(ot(n))throw st(n,"Unexpected character");return o}("string"==typeof e?function(e){const t=new Ye(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let o,i=0;for(;!t.eof();){if(i=t.peek(),o=zt(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 et&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var ln,fn;function pn(e,t){return function(e){const t=e.pos;if(e.eat(fn.Dollar)&&e.eat(fn.CurlyBracketOpen)){let n;e.start=e.pos;let r="";if(e.eatWhile(He)?(n=Number(e.current()),r=e.eat(fn.Colon)?dn(e):""):Qe(e.peek())&&(r=dn(e)),e.eat(fn.CurlyBracketClose))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(e.eat(fn.Dash)&&e.eat(fn.Dash))return e.start=t,e.eatWhile(vn),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(fn.Dash);const n=e.pos,r=e.eatWhile(He),o=e.pos;if(e.eat(fn.Dot)){const t=e.eatWhile(He);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(fn.Percent)||e.eatWhile(Ke),{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(fn.Hash)){const n=e.pos;let r="",o="";if(e.eatWhile(yn)?(r=e.substring(n,e.pos),o=hn(e)):e.eat(fn.Transparent)?(r="0",o=hn(e)||"0"):o=hn(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 mn(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if(Xe(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:t===fn.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===fn.RoundBracketOpen||e===fn.RoundBracketClose}(t))return{type:"Bracket",open:t===fn.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||gn(e)||function(e){const t=e.pos;if(e.eatWhile(Ze))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(bn)?e.eatWhile(n?vn:xn):e.eat(Ke)?e.eatWhile(t?xn:vn):(e.eat(fn.Dot),e.eatWhile(xn)),n!==e.pos)return e.start=n,mn(e,e.start=n)}(e,t)}function dn(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(fn.CurlyBracketOpen))t.push(e.pos);else if(e.eat(fn.CurlyBracketClose)){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 mn(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function hn(e){const t=e.pos;return e.eat(fn.Dot)?(e.start=t,e.eatWhile(He)?e.current():"1"):""}function gn(e){const t=(n=e.peek())===fn.Sibling&&ln.Sibling||n===fn.Excl&&ln.Important||n===fn.Comma&&ln.ArgumentDelimiter||n===fn.Colon&&ln.PropertyDelimiter||n===fn.Dash&&ln.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function bn(e){return e===fn.At||e===fn.Dollar}function yn(e){return He(e)||Qe(e,65,70)}function vn(e){return Je(e)||e===fn.Dash}function xn(e){return Ke(e)||e===fn.Percent||e===fn.Slash}function wn(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function kn(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(mn(e,n,r))}function An(e){return e.tokens[e.pos]}function Sn(e){return e.pos<e.size}function Cn(e,t){return!!t(An(e))&&(e.pos++,!0)}function On(e,t,n=An(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function Tn(e,t){let n,r,o=!1;const i=[],s=An(e),a=!!t.value;for(a||!En(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&En(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Cn(e,Ln)),a&&Cn(e,In);Sn(e);)if(Cn(e,Dn))o=!0;else if(r=jn(e,a))i.push(r);else if(!Cn(e,Fn))break;if(n||i.length||o)return{name:n,value:i,important:o}}function jn(e,t){const n=[];let r,o;for(;Sn(e);)if(r=An(e),Bn(r))e.pos++,En(r)&&(o=_n(e))?n.push({type:"FunctionCall",name:r.value,arguments:o}):n.push(r);else{if(!(Ln(r)||t&&In(r)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function _n(e){const t=e.pos;if(Cn(e,$n)){const n=[];let r;for(;Sn(e)&&!Cn(e,Rn);)if(r=jn(e,!0))n.push(r);else if(!Cn(e,In)&&!Cn(e,zn))throw On(e,"Unexpected token");return e.start=t,n}}function En(e){return e&&"Literal"===e.type}function Pn(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function $n(e){return Pn(e,!0)}function Rn(e){return Pn(e,!1)}function In(e){return e&&"WhiteSpace"===e.type}function Mn(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Nn(e){return Mn(e,ln.Sibling)}function zn(e){return Mn(e,ln.ArgumentDelimiter)}function Fn(e){return zn(e)}function Dn(e){return Mn(e,ln.Important)}function Bn(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function Ln(e){return Mn(e,ln.PropertyDelimiter)||Mn(e,ln.ValueDelimiter)}function Un(e,t){try{const n="string"==typeof e?function(e,t){let n,r=0;const o=new Ye(e),i=[];for(;!o.eof();){if(n=pn(o,0===r&&!t),!n)throw o.error("Unexpected character");if("Bracket"===n.type&&(!r&&n.open&&kn(o,i),r+=n.open?1:-1,r<0))throw o.error("Unexpected bracket",n.start);i.push(n),wn(n)&&(n=gn(o))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),r=[];let o;for(;Sn(n);)if(o=Tn(n,t))r.push(o);else if(!Cn(n,Nn))throw On(n,"Unexpected token");return r}(n,t)}catch(t){throw t instanceof et&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function qn(e,t,n){if(e&&t){e.length&&n&&Vn(e,n);for(const n of t)Vn(e,n);return e}const r=e||t;return r&&r.slice()}function Wn(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function Vn(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function Gn(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];if(t(r))return r;const o=Gn(r,t);if(o)return o}}function Hn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Qn(e){return"AbbreviationNode"===e.type}function Jn(e,t,n){let r=[];for(const n of e.children){const e=t(n);if(e){r=r.concat(e.children);const o=Hn(e);Qn(o.node)&&(o.node.children=o.node.children.concat(Jn(n,t)))}else r.push(n),n.children=Jn(n,t)}return e.children=r}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}(ln||(ln={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(fn||(fn={}));const Kn="{",Zn="}";function Xn(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function Yn(e,t){ar(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function er(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,r=n.length-1;t<=r;t++)Yn(e,n[t]),t!==r&&tr(e,!0)}function tr(e,t){const n=e.options["output.baseIndent"];Yn(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){Yn(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function nr(e,t,n){ar(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function rr(e,t){return ur(e,t.options["output.attributeCase"])}function or(e,t,n){return"expression"===e.valueType?n?Kn:Zn:"single"===t.options["output.attributeQuotes"]?"'":'"'}function ir(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function sr(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?sr(e.name,t):Boolean(e.value&&!e.attributes)}function ar(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function ur(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const cr={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function lr(e,t,n){const r=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Qn(n))return n}}(t),o=n.context?n.context.name:"",i=((r?r.name:o)||"").toLowerCase();e.name=cr[i]||(sr(i,n)?"span":"div")}const fr={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"]}},pr=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function dr(e,t){return Math.floor(Math.random()*(t-e)+e)}function mr(e,t){const n=e.length,r=Math.min(n,t),o=[];for(;o.length<r;){const t=e[dr(0,n)];o.includes(t)||o.push(t)}return o}function hr(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[dr(0,4)])}function gr(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let r=0;r=t>3&&t<=6?dr(0,1):t>6&&t<=12?dr(0,2):dr(1,4);for(let o,i=0;i<r;i++)o=dr(0,t-2),n.test(e[o])||(e[o]+=",");return e}function br(e,t,n){const r=[];let o,i=0;for(n&&e.common&&(o=e.common.slice(0,t),i+=o.length,r.push(hr(gr(o),".")));i<t;)o=mr(e.words,Math.min(dr(2,30),t-i)),i+=o.length,r.push(hr(gr(o)));return r.join(" ")}function yr(e){return"select"!==e.name}const vr=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,xr=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,wr=e=>/^[a-z]\-/i.test(e),kr=e=>/^[a-z]/i.test(e);function Ar(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=_r(n.value);break}e._bem=Sr(t)}return e._bem}function Sr(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:Or(t)}}function Cr(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=Ar(t);if(e.block)return e.block}}while(0<r--);if(n){const e=function(e){return e._bem||(e._bem=Sr(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function Or(e){return Tr(e,wr)||Tr(e,kr)||void 0}function Tr(e,t){for(const n of e){if(vr.test(n)||xr.test(n))break;if(t(n))return n}}function jr(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function _r(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Er(e,t,n){return!!e&&n.indexOf(e)===t}function Pr(e){if("label"===e.name){const t=Gn(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&$r(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&$r(e))))))}}function $r(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Rr(e,t,n){const r=(e,r,i)=>{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 Ir(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Xn(e.options)}}const Mr=[{type:"Field",index:0,name:""}];function Nr(e){return!!e&&!e.name&&!e.attributes}function zr(e,t){return!!e&&sr(e,t)}function Fr(e){return"object"==typeof e&&"Field"===e.type}function Dr(e,t){const{out:n}=t;let r=-1;for(const o of e)"string"==typeof o?er(n,o):(nr(n,t.field+o.index,o.name),o.index>r&&(r=o.index));-1!==r&&(t.field+=r+1)}function Br(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var Lr;function Ur(e){const t=[],n={pos:0,text:e};let r,o=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(r=qr(n))?(o!==n.pos&&t.push(e.slice(o,i)),t.push(r),o=n.pos):n.pos++;return o!==n.pos&&t.push(e.slice(o)),t}function qr(e){if(Wr(e)===Lr.Start){const t=++e.pos;let n=t,r=t,o=1;for(;e.pos<e.text.length;){const i=Wr(e);if(Vr(i)){for(n=e.pos;Gr(Wr(e));)e.pos++;r=e.pos}else{if(i===Lr.Start)o++;else if(i===Lr.End&&0==--o)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function Wr(e,t=e.pos){return e.text.charCodeAt(t)}function Vr(e){return e>=65&&e<=90}function Gr(e){return Vr(e)||e>47&&e<58||e===Lr.Underscore||e===Lr.Dash}function Hr(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 Qr(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?er(o,e):r[e.name]&&(er(o,e.before),Dr(r[e.name],n),er(o,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(Lr||(Lr={}));const Jr=/^<([\w\-:]+)[\s>]/,Kr=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function Zr(e,t){const n=Ir(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Ur(t["comment.before"]):void 0,after:t["comment.after"]?Ur(t["comment.after"]):void 0}}(t),Rr(e,Xr,n),n.out.value}function Xr(e,t,n,r,o){const{out:i,config:s}=r,a=to(e,t,n,r),u=function(e){const{config:t,parent:n}=e;return!n||Nr(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(r);if(i.level+=u,a&&tr(i,!0),e.name){const t=function(e,t){return ur(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){Hr(e,t)&&t.comment.before&&Qr(e,t.comment.before,t)}(e,r),er(i,`<${t}`),e.attributes)for(const t of e.attributes)Br(t)&&Yr(t,r);if(!e.selfClosing||e.children.length||e.value){if(er(i,">"),!eo(e,r,o)){if(e.value){const t=e.value.some(no)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=Jr.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&&tr(r.out,++i.level),Dr(e.value,r),t&&tr(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&&tr(r.out,++i.level),Dr(Mr,r),t&&tr(r.out,--i.level)}}er(i,`</${t}>`),function(e,t){Hr(e,t)&&t.comment.after&&Qr(e,t.comment.after,t)}(e,r)}else er(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!eo(e,r,o)&&e.value&&(Dr(e.value,r),e.children.forEach(o));if(a&&t===n.length-1&&r.parent){const e=Nr(r.parent)?0:1;tr(i,i.level-e)}i.level-=u}function Yr(e,t){const{out:n,config:r}=t;if(e.name){const o=r.options["markup.attributes"],i=r.options["markup.valuePrefix"];let{name:s,value:a}=e,u=or(e,r,!0),c=or(e,r);o&&(s=ro(s,o,e.multiple)||s),s=rr(s,r),r.options["jsx.enabled"]&&e.multiple&&(u=Kn,c=Zn);const l=i?ro(e.name,i,e.multiple):null;if(l&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[oo(e)?`${l}.${e}`:`${l}['${e}']`],r.options["jsx.enabled"]&&(u=Kn,c=Zn)}ir(e,r)&&!a?r.options["output.compactBoolean"]||(a=[s]):a||(a=Mr),er(n," "+s),a?(er(n,"="+u),Dr(a,t),er(n,c)):"html"!==r.options["output.selfClosingStyle"]&&er(n,"="+u+c)}}function eo(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(Fr);if(-1!==r){Dr(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]&&er(t.out,e.value[i++].trimLeft()),Dr(e.value.slice(i),t),!0}}return!1}function to(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&&Nr(i)&&1===n.length)return!1;if(Nr(e)&&(Nr(n[t-1])||Nr(n[t+1])||e.value.some(no)||e.value.some(Fr)&&e.children.length))return!0;if(sr(e,o)){if(0===t){for(let e=0;e<n.length;e++)if(!sr(n[e],o))return!0}else if(!sr(n[t-1],o))return!0;if(o.options["output.inlineBreak"]){let e=1,r=t,i=t;for(;zr(n[--r],o);)e++;for(;zr(n[++i],o);)e++;if(e>=o.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(to(e.children[t],t,e.children,r))return!0;return!1}return!0}function no(e){return"string"==typeof e&&/\r|\n/.test(e)}function ro(e,t,n){return n&&t[`${e}*`]||t[e]}function oo(e){return!Kr.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function io(e,t,n){const r=Ir(t);return r.options=n||{},Rr(e,so,r),r.out.value}function so(e,t,n,r,o){const{out:i,options:s}=r,{primary:a,secondary:u}=function(e){const t=[],n=[];if(e.attributes)for(const r of e.attributes)ao(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}(e),c=r.parent?1:0;i.level+=c,function(e,t,n,r){return!(!r.parent&&0===t)&&!Nr(e)}(e,t,0,r)&&tr(i,!0),!e.name||"div"===e.name&&a.length||er(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(er(t.out,"."),Dr(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(er(t.out,"#"),Dr(n.value,t)))}(a,r),function(e,t){if(e.length){const{out:n,config:r,options:o}=t;o.beforeAttribute&&er(n,o.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];er(n,rr(s.name||"",r)),ir(s,r)&&!s.value?!r.options["output.compactBoolean"]&&o.booleanValue&&er(n,"="+o.booleanValue):(er(n,"="+or(s,r,!0)),Dr(s.value||Mr,t),er(n,or(s,r))),i!==e.length-1&&o.glueAttribute&&er(n,o.glueAttribute)}o.afterAttribute&&er(n,o.afterAttribute)}}(u.filter(Br),r),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Mr,r=function(e){const t=[];let n=[];for(const r of e)if("string"==typeof r){const e=r.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(r);return n.length&&t.push(n),t}(n),{out:o,options:i}=t;if(1===r.length)(e.name||e.attributes)&&Yn(o," "),Dr(n,t);else{const e=[];let n=0;for(const t of r){const r=uo(t);e.push(r),r>n&&(n=r)}o.level++;for(let s=0;s<r.length;s++)tr(o,!0),i.beforeTextLine&&Yn(o,i.beforeTextLine),Dr(r[s],t),i.afterTextLine&&(Yn(o," ".repeat(n-e[s])),Yn(o,i.afterTextLine));o.level--}}(e,r),e.children.forEach(o)):r.options.selfClose&&er(i,r.options.selfClose),i.level-=c}function ao(e){return"class"===e.name||"id"===e.name}function uo(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const co={html:Zr,haml:function(e,t){return io(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return io(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return io(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function lo(e,t){let n;if("string"==typeof e){const r=Object.assign({},t);t.options["jsx.enabled"]&&(r.jsx=!0),t.options["markup.href"]&&(r.href=!0),e=cn(e,r),n=t.text,t.text=void 0}return e=function(e,t){const n=[],r=t.options["output.reverseAttributes"],{warn:o}=t,i=e=>{const s=e.name&&t.snippets[e.name];if(!s||n.includes(s))return null;let a;try{a=cn(s,t)}catch(e){return null==o||o(`Unable to parse "${s}" snippet`,e),null}n.push(s),Jn(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],o=e.attributes||[];t.attributes=r?o.concat(n):n.concat(o)}c=t,(u=e).selfClosing&&(c.selfClosing=!0),null!=u.value&&(c.value=u.value),u.repeat&&(c.repeat=u.repeat)}var u,c;return a};return Jn(e,i),e}(e,t),function(e,t,n){const r=[e],o=e=>{t(e,r,n),r.push(e),e.children.forEach(o),r.pop()};e.children.forEach(o)}(e,po,t),t.text=null!=n?n:t.text,e}function fo(e,t){return(co[t.syntax]||Zr)(e,t)}function po(e,t,n){!function(e,t,n){!e.name&&e.attributes&&lr(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=qn(n.value,o.value," "):Wn(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(pr))){const o=fr[r[1]]||fr.latin,i=r[2]?Math.max(1,Number(r[2])):30,s=dr(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=[br(o,s,!a||0===a.value)],e.repeat&&t.length>1&&lr(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(yr))}(e),"markup"===n.type&&Pr(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Ar(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(Er),t.block=Or(t.classNames),jr(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=Ar(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(vr))&&(r=Cr(s,t[1].length,n.context)+i["bem.element"]+t[2],o.push(r),e=e.slice(t[0].length)),(t=e.match(xr))&&(r||(r=Cr(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(Er);a.length&&jr(e,a.join(" "))}(e,t,n)}(e,t,n)}var mo;!function(e){e.Raw="Raw",e.Property="Property"}(mo||(mo={}));const ho=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,go={value:!0};function bo(e,t){const n=t.match(ho);if(n){const t={},r=n[2]?n[2].split("|").map(vo):[];for(const e of r)for(const n of e)wo(n,t);return{type:mo.Property,key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:mo.Raw,key:e,value:t}}function yo(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function vo(e){return Un(e.trim(),go)[0].value}function xo(e){return e.type===mo.Property}function wo(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function ko(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const r=e.length,o=t.length;if(!n&&r>o)return 0;const i=Math.min(r,o),s=Math.max(r,o);let a=1,u=1,c=s,l=0,f=0,p=!1,d=!1;for(;a<r;){for(l=e.charCodeAt(a),p=!1,d=!1;u<o;){if(f=t.charCodeAt(u),l===f){p=!0,c+=s-(d?a:u);break}d=45===f,u++}if(!p){if(!n)return 0;break}a++}const m=s-i;return c*(a/s)/(Ao(s)-Ao(m))}function Ao(e){return e*(e+1)/2}function So(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Oo(e.r)&&Oo(e.g)&&Oo(e.b)?To:jo;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(Co(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Co(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Oo(e){return!(e%17)}function To(e){return(e>>4).toString(16)}function jo(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const _o={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Eo(e,t){var n;const r=Xn(t.options),o=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===_o.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)o&&0!==n&&tr(r,!0),Po(e[n],r,t);return r.value}function Po(e,t,n){const r=n.options["stylesheet.json"];if(e.name)er(t,(r?e.name.replace(/\-(\w)/g,((e,t)=>t.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&&Yn(t,o);for(let r=0;r<e.value.length;r++)0!==r&&Yn(t,", "),Ro(e.value[r],t,n);r&&Yn(t,o)}else Yn(t,String(o.value))}(e,t,n):nr(t,0,""),r?Yn(t,","):($o(e,t,!0),Yn(t,n.options["stylesheet.after"]));else{for(const r of e.value)for(const e of r.value)Io(e,t,n);$o(e,t,e.value.length>0)}}function $o(e,t,n){e.important&&(n&&Yn(t," "),Yn(t,"!important"))}function Ro(e,t,n){for(let r=0,o=-1;r<e.value.length;r++){const i=e.value[r];0===r||"Field"===i.type&&i.start===o||Yn(t," "),Io(i,t,n),o=i.end}}function Io(e,t,n){if("ColorValue"===e.type)Yn(t,So(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)er(t,e.value);else if("NumberValue"===e.type)er(t,Co(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";er(t,n+e.value+n)}else if("Field"===e.type)nr(t,e.index,e.name);else if("FunctionCall"===e.type){Yn(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&Yn(t,", "),Ro(e.arguments[r],t,n);Yn(t,")")}}const Mo="lg";function No(e,t){var n;const r=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(bo(n,e[n]));return function(e){e=e.slice().sort(yo);const t=[];let n;for(const r of e.filter(xo)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&45===r.property.charCodeAt(n.property.length)){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}(t)}(t.snippets),o=[];t.cache&&(t.cache.stylesheetSnippets=r),"string"==typeof e&&(e=Un(e,{value:Ho(t)}));const i=function(e,t){if(t.context){if(t.context.name===_o.Section)return e.filter((e=>e.type===mo.Raw));if(t.context.name===_o.Property)return e.filter((e=>e.type===mo.Property))}return e}(r,t);for(const n of e){const e=zo(n,i,t);e&&o.push(e)}return o}function zo(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&&e.name===Mo&&(n=e)}return!(!n&&e.name!==Mo)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Uo(Wo(0,""))]},t.context||(e.name="background-image"),e.value=[Uo(n)],!0)}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(Ho(n)){const o=n.context.name,i=t.find((e=>e.type===mo.Property&&e.property===o));Fo(e,n,i,r),e.snippet=i}else if(e.name){const o=Do(e.name,t,r,!0);if(e.snippet=o,o){const t=o.type===mo.Property?function(e,t,n){const r=function(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),-1===r)return e.slice(n);r++}return""}(e.name,t.key);if(r){if(e.value.length)return null;const o=Lo(r,n,t);if(!o)return null;e.value.push(Uo(o))}if(e.name=t.property,e.value.length)Fo(e,n,t);else if(t.value.length){const r=t.value[0];e.value=1===t.value.length||r.some(Vo)?r:r.map((e=>Go(e,n)))}return e}(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(qo(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);return a&&s.push(qo(a)),e.name=void 0,e.value=[Uo(...s)],e}(e,o);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}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 Fo(e,t,n,r){for(const o of e.value){const e=[];for(const i of o.value)if("Literal"===i.type)e.push(Lo(i.value,t,n,r)||i);else if("FunctionCall"===i.type){const o=Lo(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 Do(e,t,n=0,r=!1){let o=null,i=0;for(const n of t){const t=ko(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 Lo(e,t,n,r){let o;if(n){if(o=Do(e,Object.keys(n.keywords),r))return n.keywords[o];for(const t of n.dependencies)if(o=Do(e,Object.keys(t.keywords),r))return t.keywords[o]}return(o=Do(e,t.options["stylesheet.keywords"],r))?qo(o):null}function Uo(...e){return{type:"CSSValue",value:e}}function qo(e){return{type:"Literal",value:e}}function Wo(e,t){return{type:"Field",index:e,name:t}}function Vo(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Vo))return!0;return!1}function Go(e,t,n={index:1}){let r=[];for(const o of e.value)switch(o.type){case"ColorValue":r.push(Wo(n.index++,So(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),qo("("));for(let e=0,i=o.arguments.length;e<i;e++)r=r.concat(Go(o.arguments[e],t,n).value),e!==i-1&&r.push(qo(", "));r.push(qo(")"));break;default:r.push(o)}return Object.assign(Object.assign({},e),{value:r})}function Ho(e){return!(!e.context||e.context.name!==_o.Value&&e.context.name.startsWith("@@"))}const Qo={markup:"html",stylesheet:"css"},Jo={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"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,"stylesheet.strictMatch":!1}},Ko={markup:{snippets:Zo({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:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module 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}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"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:b|button:b|button:button":"button[type=button]","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",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","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","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Zo({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:Zo({"!!!":"{doctype html}"})},stylesheet:{snippets:Zo({"@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",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",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",bs:"block-size",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}",cg:"column-gap",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|contents|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",g:"gap",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",is:"inline-size",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",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",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",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",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|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"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 Zo(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}function Xo(e={},t={}){const n=e.type||"markup",r=e.syntax||Qo[n];return Object.assign(Object.assign(Object.assign({},Jo),e),{type:n,syntax:r,variables:Yo(n,r,"variables",e,t),snippets:Yo(n,r,"snippets",e,t),options:Yo(n,r,"options",e,t)})}function Yo(e,t,n,r,o={}){const i=Ko[e],s=o[e],a=Ko[t],u=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jo[n]),i&&i[n]),a&&a[n]),s&&s[n]),u&&u[n]),r[n])}function ei(e,t=0){return{text:e,start:t,pos:e.length}}function ti(e){return e.pos===e.start}function ni(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function ri(e){if(!ti(e))return e.text.charCodeAt(--e.pos)}function oi(e,t){if(ti(e))return!1;const n="function"==typeof t?t(ni(e)):t===ni(e);return n&&e.pos--,!!n}function ii(e,t){const n=e.pos;for(;oi(e,t););return e.pos<n}var si,ai;function ui(e){return e===si.SingleQuote||e===si.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(si||(si={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(ai||(ai={}));const ci={[ai.SquareL]:ai.SquareR,[ai.RoundL]:ai.RoundR,[ai.CurlyL]:ai.CurlyR};var li;function fi(e){const t=e.pos;if(!oi(e,li.AngleRight))return!1;let n=!1;for(oi(e,li.Slash);!ti(e);){if(ii(e,gi),mi(e)){if(oi(e,li.Slash)){n=oi(e,li.AngleLeft);break}if(oi(e,li.AngleLeft)){n=!0;break}if(oi(e,gi))continue;if(oi(e,li.Equals)){if(mi(e))continue;break}if(di(e)){n=!0;break}break}if(!pi(e))break}return e.pos=t,n}function pi(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=ri(e);if(ui(n))for(;!ti(e);)if(ri(e)===n&&ni(e)!==si.Escape)return!0;return e.pos=t,!1}(e)&&oi(e,li.Equals)&&mi(e))||(e.pos=t,!1)}(e)||di(e)}function di(e){const t=e.pos,n=[];for(;!ti(e);){const t=ni(e);if(vi(t))n.push(t);else if(yi(t)){if(n.pop()!==ci[t])break}else if(!bi(t))break;e.pos--}return!(t===e.pos||!oi(e,li.Equals)||!mi(e))||(e.pos=t,!1)}function mi(e){return ii(e,hi)}function hi(e){return e===li.Colon||e===li.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function gi(e){return e===li.Space||e===li.Tab}function bi(e){return!isNaN(e)&&e!==li.Equals&&!gi(e)&&!ui(e)}function yi(e){return e===ai.CurlyL||e===ai.RoundL||e===ai.SquareL}function vi(e){return e===ai.CurlyR||e===ai.RoundR||e===ai.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(li||(li={}));const xi=e=>e.charCodeAt(0),wi="#.*:$-_!@%^+>/".split("").map(xi),ki={type:"markup",lookAhead:!0,prefix:""};function Ai(e,t=e.length,n={}){const r=Object.assign(Object.assign({},ki),n);let o;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){for(ui(e.charCodeAt(t))&&t++;ji(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const i=function(e,t,n){if(!n)return 0;const r=ei(e),o=n.split("").map(xi);let i;for(r.pos=t;!ti(r);)if(!Si(r,ai.SquareR,ai.SquareL)&&!Si(r,ai.CurlyR,ai.CurlyL)){if(i=r.pos,Ci(r,o))return i;r.pos--}return-1}(e,t,r.prefix||"");if(-1===i)return;const s=ei(e,i);s.pos=t;const a=[];for(;!ti(s);){if(o=ni(s),a.includes(ai.CurlyR)){if(o===ai.CurlyR){a.push(o),s.pos--;continue}if(o!==ai.CurlyL){s.pos--;continue}}if(ji(o,r.type))a.push(o);else if(Ti(o,r.type)){if(a.pop()!==ci[o])break}else{if(a.includes(ai.SquareR)||a.includes(ai.CurlyR)){s.pos--;continue}if(fi(s)||!Oi(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 Si(e,t,n){const r=e.pos;if(oi(e,t))for(;!ti(e);){if(oi(e,n))return!0;e.pos--}return e.pos=r,!1}function Ci(e,t){const n=e.pos;let r=!1;for(let n=t.length-1;n>=0&&!ti(e)&&oi(e,t[n]);n--)r=0===n;return r||(e.pos=n),r}function Oi(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||wi.includes(e)}function Ti(e,t){return e===ai.RoundL||"markup"===t&&(e===ai.SquareL||e===ai.CurlyL)}function ji(e,t){return e===ai.RoundR||"markup"===t&&(e===ai.SquareR||e===ai.CurlyR)}function _i(e,t){const n=Xo(t);return"stylesheet"===n.type?function(e,t){return Eo(No(e,t),t)}(e,n):function(e,t){return fo(lo(e,t),t)}(e,n)}const Ei={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]};var Pi=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};let $i;try{$i=n(1398).l10n}catch(e){$i={t:e=>e}}const Ri=new Map;let Ii;const Mi=new Map,Ni=/^[a-z,A-Z,!,(,[,#,\.\{]/,zi=/^[a-z,A-Z,!,(,[,#,\.]/,Fi=/^-?[a-z,A-Z,!,@,#]/,Di=/[a-z,A-Z\.]/,Bi=[...Le.tags,"lorem"],Li="bem",Ui="|",qi="t",Wi="c",Vi=3;function Gi(e,t,n,r){var o,i;if("never"===r.showExpandedAbbreviation||!xs(n,r.excludeLanguages))return;const s=ns(n);if(!s){if(!Ri.has(n)){const e=Object.assign(Object.assign({},is(n)),Xi[n]);Ri.set(n,Object.keys(e))}Ii=null!==(o=Ri.get(n))&&void 0!==o?o:[]}const a=as(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!a)return;const{abbreviationRange:u,abbreviation:c,filter:l}=a,f=Zi(e,t).substr(0,t.character),p=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(f);if(p===c&&f.endsWith(`<${c}`)&&Ei.markup.includes(n))return;const d=ls(n,r,l);let m,h="",g=[];const b=(e,t)=>{if(cs(e,c)){try{h=_i(t,d),s&&"!important".startsWith(t)&&(h="!important")}catch(e){}h&&!function(e,t,n,r){var o,i;if(ns(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&&Bi.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Bi.includes(t.toLowerCase())||Ii.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if(/^\.{2,}$/.test(t))return!0;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!Le.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(e,t,h,d.options)&&(m=Q.create(t),m.textEdit=T.replace(u,Ji(Ki(h))),m.documentation=Qi(h),m.insertTextFormat=q.Snippet,m.detail=$i.t("Emmet Abbreviation"),m.label=c,m.label+=l?"|"+l.replace(",","|"):"",g=[m])}};if(ns(n)){if(b(n,c),c.length>4&&Be.properties.find((e=>e.startsWith(c))))return J.create([],!0);if(m&&h.length){m.textEdit=T.replace(u,Ji(Ki(h))),m.documentation=Qi(h),m.label=h.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),m.filterText=c;const e=Mi.has(n)?Mi.get(n):Mi.get("css");if(g=Hi(null!=e?e:[],c,c,u,d,"Emmet Custom Snippet",!1),!g.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==m?void 0:m.textEdit)||void 0===r?void 0:r.newText)}))){const e=new RegExp(".*"+c.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(c)||e.test(m.label))&&g.push(m)}}}else{b(n,c);let e=c;const t=c.match(/(>|\+)([\w:-]+)$/);if(t&&3===t.length&&(e=t[2]),"xml"!==n){const t=Hi(Bi,e,c,u,d,"Emmet Abbreviation");g=g.concat(t)}if(!0===r.showAbbreviationSuggestions){const t=Hi(Ii.filter((e=>!Bi.includes(e))),e,c,u,d,"Emmet Abbreviation");m&&t.length>0&&e!==c&&(m.sortText="0"+m.label,t.forEach((e=>{e.filterText=c,e.sortText="9"+c}))),g=g.concat(t)}"html"===n&&g.length>=2&&c.includes(":")&&(null===(i=null==m?void 0:m.textEdit)||void 0===i?void 0:i.newText)===`<${c}>\${0}</${c}>`&&(g=g.filter((e=>e.label!==c)))}return!0===r.showSuggestionsAsSnippets&&g.forEach((e=>e.kind=U.Snippet)),g.length?J.create(g,!0):void 0}function Hi(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 u=n+e.substr(t.length);let c;try{c=_i(u,o)}catch(e){}if(!c)return;const l=Q.create(t+e.substr(t.length));l.documentation=Qi(c),l.detail=i,l.textEdit=T.replace(r,Ji(Ki(c))),l.insertTextFormat=q.Snippet,a.push(l)})),a}function Qi(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Ji(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function Ki(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&&!r;){if("$"!=e[i++]||"{"!=e[i++])continue;let a=-1,u=-1;for(;i<s&&/\d/.test(e[i]);)a=a<0?i:a,u=i+1,i++;if(-1===a||-1===u||i>=s||"}"!=e[i]&&":"!=e[i])continue;const c=e.substring(a,u);if(r="0"===c,r)break;let l=!1;if(":"==e[i++])for(;i<s;){if("}"==e[i]){l=!0;break}i++}Number(c)>Number(t)?(t=Number(c),n=[{numberStart:a,numberEnd:u}],o=!l):Number(c)===t&&n.push({numberStart:a,numberEnd:u})}}catch(e){}if(o&&!r)for(let t=0;t<n.length;t++){const r=n[t].numberStart,o=n[t].numberEnd;e=e.substr(0,r)+"0"+e.substr(o)}return e}function Zi(e,t){const n=e.offsetAt(t),r=e.getText();let o=0,i=r.length;for(let e=n-1;e>=0;e--)if("\n"===r[e]){o=e+1;break}for(let e=n;e<r.length;e++)if("\n"===r[e]){i=e;break}return r.substring(o,i)}let Xi={},Yi={},es={};const ts=(e,t)=>`\${${e}${t?":"+t:""}}`;function ns(e){return Ei.stylesheet.includes(e)}function rs(e){return ns(e)?"stylesheet":"markup"}function os(e){return ns(e)?"css":"html"}function is(e){const t=Xo({type:rs(e),syntax:e});return"xml"===e?{}:t.snippets}function ss(e,t){let n;for(let r=0;r<Vi;r++)if(e.endsWith(`${Ui}${Li}`,t))t-=Li.length+1,n=n?Li+","+n:Li;else if(e.endsWith(`${Ui}${Wi}`,t))t-=Wi.length+1,n=n?Wi+","+n:Wi;else{if(!e.endsWith(`${Ui}${qi}`,t))break;t-=qi.length+1,n=n?qi+","+n:qi}return{pos:t,filter:n}}function as(e,t,n){const r=Zi(e,t),o=r.substr(0,t.character),{pos:i,filter:s}=ss(o,t.character),a=s?s.length+1:0,u=Ai(r,i,n);if(u)return{abbreviationRange:d.create(t.line,u.location,t.line,u.location+u.abbreviation.length+a),abbreviation:u.abbreviation,filter:s}}function us(e,t){if(!e)return;const{pos:n,filter:r}=ss(e,e.length),o=Ai(e,n,ns(t)||"stylesheet"===t?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0});return o?{abbreviation:o.abbreviation,filter:r}:void 0}function cs(e,t){if(!t)return!1;if(ns(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Bi.includes(t.substring(0,t.indexOf("#"))))return!1}return Fi.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?zi.test(t)&&Di.test(t):!/^{%|{#|{{/.test(t)&&Ni.test(t)&&Di.test(t))}function ls(e,t,n){var r,o,i,s,a,u,c,l,f,p;(t=null!=t?t:{}).preferences=null!==(r=t.preferences)&&void 0!==r?r:{};const d=t.preferences,m=ns(e)?e:"css",h=function(e,t){t||(t={});const n=Object.assign({},es,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=(h&&h.filters?h.filters.split(","):[]).map((e=>e.trim())),b=n&&n.split(",").some((e=>"bem"===e.trim()))||g.includes("bem"),y=n&&n.split(",").some((e=>"c"===e.trim()))||g.includes("c"),v=function(e,t){if(!t||"object"!=typeof t)return{};if(!ns(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==v?void 0:v.stylesheet)&&v.stylesheet.unitAliases||{},w={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":ts,"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};let k={"output.tagCase":h.tagCase,"output.attributeCase":h.attributeCase,"output.attributeQuotes":h.attributeQuotes,"output.format":null===(i=h.format)||void 0===i||i,"output.formatSkip":d["format.noIndentTags"],"output.formatForce":d["format.forceIndentationForTags"],"output.inlineBreak":null!==(s=h.inlineBreak)&&void 0!==s?s:d["output.inlineBreak"],"output.compactBoolean":null!==(a=h.compactBooleanAttributes)&&void 0!==a?a:d["profile.allowCompactBoolean"],"output.reverseAttributes":d["output.reverseAttributes"],"output.selfClosingStyle":null!==(c=null!==(u=h.selfClosingStyle)&&void 0!==u?u:d["output.selfClosingStyle"])&&void 0!==c?c:fs(e),"output.field":ts,"comment.enabled":y,"comment.trigger":d["filter.commentTrigger"],"comment.before":d["filter.commentBefore"],"comment.after":d["filter.commentAfter"],"bem.enabled":b,"bem.element":null!==(l=d["bem.elementSeparator"])&&void 0!==l?l:"__","bem.modifier":null!==(f=d["bem.modifierSeparator"])&&void 0!==f?f:"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":d["css.color.short"],"stylesheet.between":d[`${m}.valueSeparator`],"stylesheet.after":d[`${m}.propertyEnd`],"stylesheet.intUnit":d["css.intUnit"],"stylesheet.floatUnit":d["css.floatUnit"],"stylesheet.unitAliases":x,"stylesheet.fuzzySearchMinScore":d["css.fuzzySearchMinScore"]};if("jsx"===e){const e={class:"className","class*":"styleName",for:"htmlFor"},t={"class*":"styles"};h["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},e),h["markup.attributes"])),h["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},t),h["markup.valuePrefix"]))}if("vue"===e){const e={"class*":":class"},t={"class*":"$style"};h["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},e),h["markup.attributes"])),h["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},t),h["markup.valuePrefix"]))}const A={};[...Object.keys(w),...Object.keys(k)].forEach((e=>{var t;const n=e;A[n]=null!==(t=k[n])&&void 0!==t?t:w[n]}));const S=Object.assign(Object.assign({},w["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);A["stylesheet.unitAliases"]=S;const C=rs(e),O=(_=t.variables)?Object.assign({},Yi,_):Yi,T=os(e),j="stylesheet"===C?null!==(p=Xi[e])&&void 0!==p?p:Xi[T]:Xi[e];var _;return{type:C,options:A,variables:O,snippets:j,syntax:e,text:void 0,maxRepeat:1e3}}function fs(e){switch(e){case"xhtml":case"jsx":return"xhtml";case"xml":case"xsl":return"xml";default:return"html"}}function ps(e,t){const n=Xo(t);return"stylesheet"===t.type?No(e,n):lo(e,n)}function ds(e,t){let n;const r=Xo(t);return n="stylesheet"===t.type?"string"==typeof e?_i(e,r):Eo(e,r):"string"==typeof e?_i(e,r):fo(e,r),Ji(Ki(n))}function ms(e,t,n,r){return Pi(this,void 0,void 0,(function*(){if(vs(),!e.length)return;const o=[];for(let t of e)if("string"==typeof t){if(t=t.trim(),t.length&&"~"===t[0])r&&o.push(Ge(r,t.substring(1)));else if(i=t,qe.test(i))o.push(Fe.file(t));else if(n)for(const e of n)o.push(Ge(e,t))}else console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(t));var i;for(const e of o){try{if((yield t.stat(e)).type!==Ue.Directory)continue}catch(e){continue}const n=Ge(e,"snippets.json"),r=Ge(e,"syntaxProfiles.json");let o;o="function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder:new Ne.TextDecoder;let i="";try{const e=yield t.readFile(n);i=o.decode(e)}catch(e){}if(i.length)try{const e=hs(n,i);e.variables&&gs(e.variables),ys(e)}catch(e){throw vs(),e}let s="";try{const e=yield t.readFile(r);s=o.decode(e)}catch(e){}if(s.length)try{bs(hs(r,s))}catch(e){throw vs(),e}}}))}function hs(e,t){let n=[];const r=Me(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"<unknown ParseErrorCode>"}(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function gs(e){if("object"!=typeof e||!e)throw new Error($i.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));Yi=Object.assign({},Yi,e)}function bs(e){if("object"!=typeof e||!e)throw new Error($i.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));es=Object.assign({},es,e)}function ys(e){if("object"!=typeof e||!e)throw new Error($i.t("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=os(t);let r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),ns(t)){const e=Mi.get(t),n=Object.assign([],e,Object.keys(r));Mi.set(t,n)}else for(const e in r)r.hasOwnProperty(e)&&r[e].startsWith("<")&&r[e].endsWith(">")&&(r[e]=`{${r[e]}}`);const o=Xi[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);Xi[t]=s}))}function vs(){Xi={},Ri.clear(),Mi.clear(),es={},Yi={}}function xs(e,t=[]){if(e&&!t.includes(e))return/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?"jsx":"sass-indented"===e?"sass":"jade"===e?"pug":Ei.markup.includes(e)||Ei.stylesheet.includes(e)?e:void 0}},9818:(e,t,n)=>{"use strict";var r=n(528),o=n(8498),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},8498:(e,t,n)=>{"use strict";var r=n(9138),o=n(528),i=n(6108),s=n(3468),a=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(u,a),l=n(4940),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,u,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(r,a,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},686:(e,t,n)=>{"use strict";var r=n(4940),o=n(5731),i=n(3468),s=n(9336);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===a&&f?f.enumerable:!a,value:n,writable:null===u&&f?f.writable:!u});else{if(!l&&(a||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4940:(e,t,n)=>{"use strict";var r=n(528)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},9110:e=>{"use strict";e.exports=EvalError},9838:e=>{"use strict";e.exports=Error},1155:e=>{"use strict";e.exports=RangeError},4943:e=>{"use strict";e.exports=ReferenceError},5731:e=>{"use strict";e.exports=SyntaxError},3468:e=>{"use strict";e.exports=TypeError},2140:e=>{"use strict";e.exports=URIError},705:(e,t,n)=>{"use strict";var r=n(9617),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,s):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s)}},8794:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e,t){for(var n=[],r=1,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments),a=n(0,o.length-s.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=",");return n}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9138:(e,t,n)=>{"use strict";var r=n(8794);e.exports=Function.prototype.bind||r},528:(e,t,n)=>{"use strict";var r,o=n(9838),i=n(9110),s=n(1155),a=n(4943),u=n(5731),c=n(3468),l=n(2140),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(e){d=null}var m=function(){throw new c},h=d?function(){try{return m}catch(e){try{return d(arguments,"callee").get}catch(e){return m}}}():m,g=n(3558)(),b=n(6869)(),y=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},x="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":h,"%TypedArray%":x,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var k=y(y(e));w["%Error.prototype%"]=k}var A=function e(t){var n;if("%AsyncFunction%"===t)n=p("async function () {}");else if("%GeneratorFunction%"===t)n=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=p("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return w[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(9138),O=n(8554),T=C.call(Function.call,Array.prototype.concat),j=C.call(Function.apply,Array.prototype.splice),_=C.call(Function.call,String.prototype.replace),E=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,I=function(e,t){var n,r=e;if(O(S,r)&&(r="%"+(n=S[r])[0]+"%"),O(w,r)){var o=w[r];if(o===v&&(o=A(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,$,(function(e,t,n,o){r[r.length]=n?_(o,R,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=I("%"+r+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(r=l[0],j(n,T([0,1],l)));for(var f=1,p=!0;f<n.length;f+=1){var m=n[f],h=E(m,0,1),g=E(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==m&&p||(a=!0),O(w,i="%"+(r+="."+m)+"%"))s=w[i];else if(null!=s){if(!(m in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&f+1>=n.length){var b=d(s,m);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[m]}else p=O(s,m),s=s[m];p&&!a&&(w[i]=s)}}return s}},9336:(e,t,n)=>{"use strict";var r=n(528)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},7239:(e,t,n)=>{"use strict";var r=n(4940),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},6869:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},3558:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2908);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},2908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1913:(e,t,n)=>{"use strict";var r=n(2908);e.exports=function(){return r()&&!!Symbol.toStringTag}},8554:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(9138);e.exports=i.call(r,o)},5615: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}}},5387:(e,t,n)=>{"use strict";var r=n(1913)(),o=n(9818)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},9617:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=o?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},2625:e=>{"use strict";var t,n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(r.call(e)))return!0;if(!i)return"[object GeneratorFunction]"===n.call(e);if(!s)return!1;if(void 0===t){var a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}();t=!!a&&s(a)}return s(e)===t}},5943:(e,t,n)=>{"use strict";var r=n(2730);e.exports=function(e){return!!r(e)}},6108:(e,t,n)=>{"use strict";var r=n(528),o=n(686),i=n(7239)(),s=n(9336),a=n(3468),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2698:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapWithAbbreviation=async function(e){if(!(0,a.validate)(!1))return!1;const t=s.window.activeTextEditor,n=t.document;(e=e||{}).language||(e.language=n.languageId);const r=h(e)||"html",o=(0,u.getRootNode)(n,!0),i=(0,a.getEmmetHelper)(),c=Array.from(t.selections).sort(((e,t)=>e.start.compareTo(t.start))).map((e=>{let t=e;{let{start:e,end:r}=t;const i=n.offsetAt(e),u=n.getText(),c=(0,a.getHtmlFlatNode)(u,o,i,!0);if(c&&(0,a.isOffsetInsideOpenOrCloseTag)(c,i)){e=n.positionAt(c.start);const t=n.positionAt(c.end);r=t.isAfter(r)?t:r}const l=n.offsetAt(r),f=(0,a.getHtmlFlatNode)(u,o,l,!0);if(f&&(0,a.isOffsetInsideOpenOrCloseTag)(f,l)){const t=n.positionAt(f.start);e=t.isBefore(e)?t:e;const o=n.positionAt(f.end);r=o.isAfter(r)?o:r}t=new s.Range(e,r)}if(!t.isSingleLine&&0===t.end.character){const e=t.end.line-1;t=new s.Range(t.start,n.lineAt(e).range.end)}t.isEmpty&&(t=n.lineAt(t.start).range);const r=n.lineAt(t.start);return!r.isEmptyOrWhitespace&&r.firstNonWhitespaceCharacterIndex>t.start.character&&(t=t.with(new s.Position(t.start.line,r.firstNonWhitespaceCharacterIndex))),t})).reduce(((e,t)=>(e.length>0&&t.intersection(e[e.length-1])?e.push(t.union(e.pop())):e.push(t),e)),[]),l=t.selections;t.selections=c.map((e=>new s.Selection(e.start,e.end)));const f=c.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:p,insertSpaces:g}=t.options,b=g?" ".repeat(p):"\t";function y(){return t.edit((e=>{for(const t of f)e.replace(t.previewRange,t.originalContent),t.previewRange=t.originalRange}),{undoStopBefore:!1,undoStopAfter:!1})}let v=!1;async function x(e,n){const o=e&&e.trim()&&i.isAbbreviationValid(r,e)?i.extractAbbreviationFromText(e,r):void 0;if(!o)return v&&(v=!1,await y()),!1;const{abbreviation:a,filter:u}=o;if(n){const e=f.map((e=>({syntax:r,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:u,indent:b,baseIndent:e.baseIndent})));return v=!0,function(e){let n=new s.Range(0,0,0,0),r=new s.Range(0,0,0,0),o=0;return t.edit((t=>{for(let i=0;i<f.length;i++){const a=m(e[i])||"";if(!a)break;const u=f[i].previewRange,c=a.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,((e,t)=>t)).replace(/\\\$/g,"$");t.replace(u,c);const l=c.split("\n"),p=u.end.line-u.start.line+1,d=l.length-p,h=u.start.line+o;let g=u.start.character;const b=u.end.line+o+d;let y=l[l.length-1].length;i>0&&b===r.end.line?(g=r.end.character+(u.start.character-n.end.character),y+=g):i>0&&h===r.end.line?g=r.end.character+(u.start.character-n.end.character):1===l.length&&(y+=u.start.character),n=f[i].previewRange,r=new s.Range(h,g,b,y),f[i].previewRange=r,o+=d}}),{undoStopBefore:!1,undoStopAfter:!1})}(e)}const c=f.map((e=>({syntax:r,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:u,indent:b})));return v&&(v=!1,await y()),d(t,c,!1)}let w="";const k=s.l10n.t("Enter Abbreviation"),A=e&&e.abbreviation?e.abbreviation:await s.window.showInputBox({prompt:k,validateInput:async function(e){return e!==w&&(w=e,await x(e,!0)),""}}),S=await x(A,!1);return S||(t.selections=l),S},t.expandEmmetAbbreviation=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return f();if(1===s.window.activeTextEditor.selections.length&&s.window.activeTextEditor.selection.isEmpty){const e=s.window.activeTextEditor.selection.anchor;if(0===e.character)return f();const t=e.translate(0,-1),n=s.window.activeTextEditor.document.getText(new s.Range(t,e));if(" "===n||"\t"===n)return f()}if((e=e||{}).language){if((s.workspace.getConfiguration("emmet").excludeLanguages?s.workspace.getConfiguration("emmet").excludeLanguages:[]).includes(s.window.activeTextEditor.document.languageId))return f()}else e.language=s.window.activeTextEditor.document.languageId;const t=h(e);if(!t)return f();const n=s.window.activeTextEditor;if(!0===s.workspace.getConfiguration("emmet").triggerExpansionOnTab&&n.selections.find((e=>!e.isEmpty)))return f();const r=[];let o,i=!0;const c=(0,a.getEmmetHelper)(),l=n.selections.slice(0);let m;function g(){if(m)return m;const e=!0===s.workspace.getConfiguration("emmet").optimizeStylesheetParsing;return m=1===n.selections.length&&(0,a.isStyleSheet)(n.document.languageId)&&e&&n.document.lineCount>1e3?(0,a.parsePartialStylesheet)(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):(0,u.getRootNode)(n.document,!0),m}return l.sort(((e,t)=>{const n=e.isReversed?e.anchor:e.active,r=t.isReversed?t.anchor:t.active;return-1*n.compareTo(r)})),l.forEach((e=>{const u=e.isReversed?e.anchor:e.active,[l,f,d]=((e,t,r,o)=>{r=e.validatePosition(r);let i=t,u=e.getText(i);if(!i.isEmpty){const e=c.extractAbbreviationFromText(u,o);return e?[i,e.abbreviation,e.filter]:[null,"",""]}const l=n.document.lineAt(r.line).text.substr(0,r.character);if("html"===o){const e=l.match(/<(\w+)$/);if(e)return u=e[1],i=new s.Range(r.translate(0,-(u.length+1)),r),[i,u,""]}const f=c.extractAbbreviation((0,a.toLSTextDocument)(n.document),r,{lookAhead:!1});if(!f)return[null,"",""];const{abbreviationRange:p,abbreviation:d,filter:m}=f;return[new s.Range(p.start.line,p.start.character,p.end.line,p.end.character),d,m]})(n.document,e,u,t);if(!l)return;if(!c.isAbbreviationValid(t,f))return;if((0,a.isStyleSheet)(t)&&f.endsWith(":"))return;const m=n.document.offsetAt(u);let h=(0,a.getFlatNode)(g(),m,!0),b=!0,y=t;if("html"===n.document.languageId)if((0,a.isStyleAttribute)(h,m))y="css",b=!1;else{const e=(0,a.getEmbeddedCssNodeIfAny)(n.document,h,u);e&&(h=(0,a.getFlatNode)(e,m,!0),y="css")}b&&!p(n.document,g(),h,y,m,l)||(o?i&&o!==f&&(i=!1):o=f,r.push({syntax:y,abbreviation:f,rangeToReplace:l,filter:d}))})),d(n,r,i).then((e=>e?Promise.resolve(void 0):f()))},t.isValidLocationForEmmetAbbreviation=p,t.getSyntaxFromArgs=h;const s=i(n(1398)),a=n(7937),u=n(6647),c=/[\u00a0]*[\d#\-\*\u2022]+\.?/,l=/^#[\da-fA-F]{0,6}$/;function f(){return!0===s.workspace.getConfiguration("emmet").triggerExpansionOnTab?s.commands.executeCommand("tab"):Promise.resolve(!0)}function p(e,t,n,r,o,i){if((0,a.isStyleSheet)(r)){if(t&&(t.comments||[]).some((e=>o>=e.start&&o<=e.end)))return!1;if(!n)return!0;const a=e.getText(new s.Range(i.start.line,i.start.character,i.end.line,i.end.character));if(a.startsWith("@"))return!0;if("sass"!==r&&"stylus"!==r&&"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&&o>=e.separatorToken.end&&o<=e.terminatorToken.start&&!a.includes(":"))return l.test(a)||"!"===a;if(!e.terminatorToken&&e.separator&&o>=e.separatorToken.end&&!a.includes(":"))return l.test(a)||"!"===a;if(l.test(a)||"!"===a)return!1}if("rule"!==n.type&&"at-rule"!==n.type)return!0;const u=n;if(o>u.contentStartToken.end)return!0;if(u.parent&&("rule"===u.parent.type||"at-rule"===u.parent.type)&&u.selectorToken){const t=e.positionAt(o),n=e.positionAt(u.selectorToken.start),r=e.positionAt(u.selectorToken.end);if(t.line!==r.line&&n.character===i.start.character&&n.line===i.start.line)return!0}return!1}const u="<",c=n;let f=0;if(c){if("script"===c.name){const e=(c.attributes||[]).filter((e=>"type"===e.name.toString()))[0],t=e?e.value.toString():"";return!!a.allowedMimeTypesInScriptTag.includes(t)||!(t&&"application/javascript"!==t&&"text/javascript"!==t||!h({language:"javascript"}))}if(!c.open||!c.close||!(c.open.end<=o&&o<=c.close.start))return!1;f=c.open.end;let e=c.firstChild;for(;e&&!(e.end>o);)f=e.end,e=e.nextSibling}const p=e.positionAt(f);let d=e.getText(new s.Range(p.line,p.character,i.start.line,i.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let m=!0,g=!1,b=d.length-1;if(d[b]===u)return!1;for(;b>=0;){const e=d[b];if(b--,g||!/\s/.test(e))if("?"!==e||d[b]!==u){if(/\s/.test(e)&&d[b]===u)b--;else if(e===u||">"===e)if(b>=0&&"\\"===d[b])b--;else{if(">"===e){if(b>=0&&"="===d[b])continue;break}if(e===u){m=!g;break}}}else b--;else g=!0}return m}async function d(e,t,n){if(!t||0===t.length)return!1;let r=0;if(!n){t.sort(((e,t)=>t.rangeToReplace.start.compareTo(e.rangeToReplace.start)));for(const n of t){const t=m(n);t&&(await e.insertSnippet(new s.SnippetString(t),n.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}),r++)}return r>0}const o=m(t[0]),i=t.map((e=>e.rangeToReplace));return!!o&&e.insertSnippet(new s.SnippetString(o),i)}function m(e){const t=(0,a.getEmmetHelper)(),n=t.getExpandOptions(e.syntax,(0,a.getEmmetConfiguration)(e.syntax),e.filter);let r;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{r=t.expandAbbreviation(e.abbreviation,n)}catch(e){s.window.showErrorMessage("Failed to expand abbreviation")}return r}function h(e){const t=(0,a.getMappingForIncludedLanguages)(),n=e.language,r=e.parentMode,o=s.workspace.getConfiguration("emmet").excludeLanguages?s.workspace.getConfiguration("emmet").excludeLanguages:[];if(o.includes(n))return;let i=(0,a.getEmmetMode)(t[n]??n,t,o);return i||(i=(0,a.getEmmetMode)(t[r]??r,t,o)),i}},5921:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.balanceOut=function(){f(!0)},t.balanceIn=function(){f(!1)};const s=i(n(1398)),a=n(7937),u=n(6647);let c=[],l=[];function f(e){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,u.getRootNode)(n,!0);if(!r)return;const o=e?p:d;let i=t.selections.map((e=>o(n,r,e)));m(l,t.selections)?e?m(t.selections,i)||c.push(t.selections):c.length&&(i=c.pop()):c=e?[t.selections]:[],t.selections=i,l=t.selections}function p(e,t,n){const r=e.offsetAt(n.start),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!1);if(!o)return n;if(!o.open||!o.close)return(0,a.offsetRangeToSelection)(e,o.start,o.end);let i,s;return o.close.start<=r&&o.close.end>r?(i=(0,a.offsetRangeToSelection)(e,o.close.start,o.open.end),s=(0,a.offsetRangeToSelection)(e,o.close.end,o.open.start)):(i=(0,a.offsetRangeToSelection)(e,o.open.end,o.close.start),s=(0,a.offsetRangeToSelection)(e,o.open.start,o.close.end)),i.contains(n)&&!i.isEqual(n)?i:s.contains(n)&&!s.isEqual(n)?s:n}function d(e,t,n){const r=e.offsetAt(n.start),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return n;const i=e.offsetAt(n.start),s=e.offsetAt(n.end);if(o.open&&o.close){const t=i===o.start&&s===o.end,n=i>o.open.start&&i<o.open.end,r=i>o.close.start&&i<o.close.end;if(t||n||r)return(0,a.offsetRangeToSelection)(e,o.open.end,o.close.start)}if(!o.firstChild)return n;const u=o.firstChild;return i===u.start&&s===u.end&&u.open&&u.close?(0,a.offsetRangeToSelection)(e,u.open.end,u.close.start):(0,a.offsetRangeToSelection)(e,u.start,u.end)}function m(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}},4367:(e,t)=>{"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},5315:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCompletionItemProvider=void 0;const s=i(n(1398)),a=n(2698),u=n(7937),c=n(6647);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 r=s.workspace.getConfiguration("emmet"),o=r.excludeLanguages?r.excludeLanguages:[];if(o.includes(e.languageId))return;const i=(0,u.getMappingForIncludedLanguages)(),l=!!i[e.languageId],f=(0,u.getEmmetMode)(l?i[e.languageId]:e.languageId,i,o);if(!f||"never"===r.showExpandedAbbreviation||(l||"jsx"===f)&&"always"!==r.showExpandedAbbreviation)return;let p,d,m=f,h="html"===m||"jsx"===m||"xml"===m;const g=(0,u.toLSTextDocument)(e);t=e.validatePosition(t);const b=new s.Range(t.line,0,t.line,t.character);if(e.getText(b).trimStart().startsWith("//"))return;const y=(0,u.getEmmetHelper)();if("html"===m){if(n.triggerKind===s.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":h=!1;break;case"css":h=!1,m="css"}if(h){const n=e.offsetAt(t),r=(0,c.getRootNode)(e,!0),o=(0,u.getHtmlFlatNode)(e.getText(),r,n,!1);if(o)if("script"===o.name){const e=o.attributes.find((e=>"type"===e.name.toString()));if(!e)return;{const t=e.value.toString();if("application/javascript"===t||"text/javascript"===t){if(!(0,a.getSyntaxFromArgs)({language:"javascript"}))return;h=!1}else u.allowedMimeTypesInScriptTag.includes(t)&&(h=!1)}}else if("style"===o.name)m="css",h=!1;else{const e=o.attributes.find((e=>"style"===e.name.toString()));e&&e.value.start<=n&&n<=e.value.end&&(m="css",h=!1)}}}const v=(0,u.isStyleSheet)(m)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=y.extractAbbreviation(g,t,v);if(!x||!y.isAbbreviationValid(m,x.abbreviation))return;const w=e.offsetAt(t);if((0,u.isStyleSheet)(e.languageId)&&n.triggerKind!==s.CompletionTriggerKind.TriggerForIncompleteCompletions){if(h=!0,p=!0===s.workspace.getConfiguration("emmet").optimizeStylesheetParsing&&e.lineCount>1e3?(0,u.parsePartialStylesheet)(e,t):(0,c.getRootNode)(e,!0),!p)return;d=(0,u.getFlatNode)(p,w,!0)}if(!(0,u.isStyleSheet)(e.languageId)&&(0,u.isStyleSheet)(m)&&n.triggerKind!==s.CompletionTriggerKind.TriggerForIncompleteCompletions){if(h=!0,p=(0,c.getRootNode)(e,!0),!p)return;const n=(0,u.getFlatNode)(p,w,!0),r=(0,u.getEmbeddedCssNodeIfAny)(e,n,t);d=(0,u.getFlatNode)(r,w,!0)}if(h&&!(0,a.isValidLocationForEmmetAbbreviation)(e,p,d,m,w,(k=x.abbreviationRange,new s.Range(k.start.line,k.start.character,k.end.line,k.end.character))))return;var k;let A=Promise.resolve(!1);if(!(0,u.isStyleSheet)(m)&&("javascript"===e.languageId||"javascriptreact"===e.languageId||"typescript"===e.languageId||"typescriptreact"===e.languageId)){const t=x.abbreviation;A=t.startsWith("this.")||/\[[^\]=]*\]/.test(t)?Promise.resolve(!0):s.commands.executeCommand("vscode.executeDocumentSymbolProvider",e.uri).then((e=>!!e&&e.some((e=>t===e.name||t.startsWith(e.name+".")&&!/>|\*|\+/.test(t)))))}return A.then((n=>{if(n)return;const o=(0,u.getEmmetConfiguration)(m),i=y.doComplete((0,u.toLSTextDocument)(e),t,m,o),a=[];return i&&i.items&&i.items.forEach((e=>{const t=new s.CompletionItem(e.label);t.documentation=e.documentation,t.detail=e.detail,t.insertText=new s.SnippetString(e.textEdit.newText);const n=e.textEdit.range;t.range=new s.Range(n.start.line,n.start.character,n.end.line,n.end.character),t.filterText=e.filterText,t.sortText=e.sortText,!0===r.showSuggestionsAsSnippets&&(t.kind=s.CompletionItemKind.Snippet),a.push(t)})),new s.CompletionList(a,!0)}))}}},2727:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchEditPoint=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=[];t.selections.forEach((r=>{const o="next"===e?function(e,t){for(let n=e.anchor.line;n<t.document.lineCount;n++){const r=u(n,t,e.anchor,"next");if(r)return r}return e}(r,t):function(e,t){for(let n=e.anchor.line;n>=0;n--){const r=u(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])};const s=i(n(1398)),a=n(7937);function u(e,t,n,r){const o=t.document.lineAt(e);let i=o.text;if(e!==n.line&&o.isEmptyOrWhitespace&&i.length)return new s.Selection(e,i.length,e,i.length);e===n.line&&"prev"===r&&(i=i.substr(0,n.character));const a="next"===r?i.indexOf('""',e===n.line?n.character:0):i.lastIndexOf('""'),u="next"===r?i.indexOf("><",e===n.line?n.character:0):i.lastIndexOf("><");let c=-1;return c=a>-1&&u>-1?"next"===r?Math.min(a,u):Math.max(a,u):a>-1?a:u,c>-1?new s.Selection(e,c+1,e,c+1):void 0}},1212:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activateEmmetExtension=function(e){(0,x.migrateEmmetExtensionsPath)(),C(),(0,x.updateEmmetExtensionsPath)(),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",(e=>{(0,u.wrapWithAbbreviation)(e)}))),e.subscriptions.push(s.commands.registerCommand("emmet.expandAbbreviation",(e=>{(0,u.expandEmmetAbbreviation)(e)}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.removeTag",(()=>(0,c.removeTag)()))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.updateTag",(e=>e&&"string"==typeof e?(0,l.updateTag)(e):(0,l.updateTag)(void 0)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.matchTag",(()=>{(0,f.matchTag)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.balanceOut",(()=>{(0,p.balanceOut)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.balanceIn",(()=>{(0,p.balanceIn)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.splitJoinTag",(()=>(0,d.splitJoinTag)()))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.mergeLines",(()=>{(0,m.mergeLines)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.toggleComment",(()=>{(0,h.toggleComment)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.nextEditPoint",(()=>{(0,g.fetchEditPoint)("next")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.prevEditPoint",(()=>{(0,g.fetchEditPoint)("prev")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.selectNextItem",(()=>{(0,b.fetchSelectItem)("next")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.selectPrevItem",(()=>{(0,b.fetchSelectItem)("prev")}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.evaluateMathExpression",(()=>{(0,y.evaluateMathExpression)()}))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",(()=>(0,v.incrementDecrement)(.1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByOne",(()=>(0,v.incrementDecrement)(1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.incrementNumberByTen",(()=>(0,v.incrementDecrement)(10)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",(()=>(0,v.incrementDecrement)(-.1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByOne",(()=>(0,v.incrementDecrement)(-1)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.decrementNumberByTen",(()=>(0,v.incrementDecrement)(-10)))),e.subscriptions.push(s.commands.registerCommand("editor.emmet.action.reflectCSSValue",(()=>(0,w.reflectCssValue)()))),e.subscriptions.push(s.commands.registerCommand("workbench.action.showEmmetCommands",(()=>{s.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")}))),e.subscriptions.push(s.workspace.onDidChangeConfiguration((e=>{(e.affectsConfiguration("emmet.includeLanguages")||e.affectsConfiguration("emmet.useInlineCompletions"))&&C(),e.affectsConfiguration("emmet.extensionsPath")&&(0,x.updateEmmetExtensionsPath)()}))),e.subscriptions.push(s.workspace.onDidSaveTextDocument((e=>{const t=(0,x.getPathBaseName)(e.fileName);t.startsWith("snippets")&&t.endsWith(".json")&&(0,x.updateEmmetExtensionsPath)(!0)}))),e.subscriptions.push(s.workspace.onDidOpenTextDocument((e=>{const t=(0,x.getEmmetMode)(e.languageId,{},[])??"",n=(0,x.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,k.addFileToParseCache)(e)}))),e.subscriptions.push(s.workspace.onDidCloseTextDocument((e=>{const t=(0,x.getEmmetMode)(e.languageId,{},[])??"",n=(0,x.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,k.removeFileFromParseCache)(e)})))},t.deactivate=function(){O(),(0,k.clearParseCache)()};const s=i(n(1398)),a=n(5315),u=n(2698),c=n(5893),l=n(8306),f=n(3642),p=n(5921),d=n(5197),m=n(4754),h=n(6676),g=n(2727),b=n(5186),y=n(5774),v=n(8727),x=n(7937),w=n(7284),k=n(6647),A=new Map,S=[];function C(e){O();const t=new a.DefaultCompletionItemProvider,n={async provideInlineCompletionItems(e,n,r,o){const i=await t.provideCompletionItems(e,n,o,{triggerCharacter:void 0,triggerKind:s.CompletionTriggerKind.Invoke});if(!i)return;const a=i.items[0];if(!a)return;const u=a.range;return e.getText(u)===a.label?[{insertText:a.insertText,filterText:a.label,range:u}]:void 0}},r=s.workspace.getConfiguration("emmet").get("useInlineCompletions"),o=(0,x.getMappingForIncludedLanguages)();Object.keys(o).forEach((e=>{if(A.has(e)&&A.get(e)===o[e])return;if(r){const t=s.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);S.push(t)}const i=s.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...x.LANGUAGE_MODES[o[e]]);S.push(i),A.set(e,o[e])})),Object.keys(x.LANGUAGE_MODES).forEach((e=>{if(!A.has(e)){if(r){const t=s.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);S.push(t)}const o=s.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...x.LANGUAGE_MODES[e]);S.push(o),A.set(e,e)}}))}function O(){let e;for(A.clear();e=S.pop();)e.dispose()}},5774:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateMathExpression=function(){if(!s.window.activeTextEditor)return s.window.showInformationMessage("No editor is active"),Promise.resolve(!1);const e=s.window.activeTextEditor;return e.edit((t=>{e.selections.forEach((n=>{const r=n.isReversed?n.active:n.anchor,o=n.isReversed?n.anchor:n.active,i=e.document.getText(new s.Range(r,o));try{if(i){const e=String((0,a.default)(i));t.replace(new s.Range(r,o),e)}else{const r=e.document.getText(new s.Range(new s.Position(n.end.line,0),o)),i=(0,a.extract)(r);if(!i)throw new Error("Invalid extracted indices");const u=String((0,a.default)(r.substr(i[0],i[1]))),c=new s.Range(new s.Position(n.end.line,i[0]),new s.Position(n.end.line,i[1]));t.replace(c,u)}}catch(e){s.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",e)}}))}))};const s=i(n(1398)),a=i(n(2915))},8727:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.incrementDecrement=function(e){if(!s.window.activeTextEditor)return void s.window.showInformationMessage("No editor is active");const t=s.window.activeTextEditor;return t.edit((n=>{t.selections.forEach((r=>{const o=c(t.document,r.isReversed?r.anchor:r.active);if(!o)return;const i=t.document.getText(o);l(i)&&n.replace(o,u(i,e))}))}))},t.update=u,t.locate=c;const s=i(n(1398)),a=/[0-9]/;function u(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 c(e,t){const n=e.lineAt(t.line).text;let r,o=t.character,i=t.character,u=!1,c=!1;for(;o>0;){if(r=n[--o],"-"===r){c=!0;break}if("."!==r||u){if(!a.test(r)){o++;break}}else u=!0}for("-"!==n[i]||c||i++;i<n.length;)if(r=n[i++],"."===r&&!u&&a.test(n[i]))u=!0;else if(!a.test(r)){i--;break}if(o!==i&&l(n.slice(o,i)))return new s.Range(t.line,o,t.line,i)}function l(e){return!!e&&!isNaN(parseFloat(e))}},3642:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.matchTag=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,u.getRootNode)(t,!0);if(!n)return;const r=[];e.selections.forEach((e=>{const o=function(e,t,n){const r=e.offsetAt(n),o=(0,a.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return;if(!o.open||!o.close||r>o.open.end&&r<o.close.start)return;const i=r<=o.open.end?o.close.start+2:o.start+1;return(0,a.offsetRangeToSelection)(e,i,i)}(t,n,e.start);o&&r.push(o)})),r.length&&(e.selections=r,e.revealRange(e.selections[r.length-1]))};const s=i(n(1398)),a=n(7937),u=n(6647)},4754:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeLines=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=(0,u.getRootNode)(e.document,!0);return t?e.edit((n=>{Array.from(e.selections).reverse().forEach((r=>{const o=function(e,t,n){let r,o;const i=e.offsetAt(t.start),u=e.offsetAt(t.end);if(t.isEmpty?r=o=(0,a.getFlatNode)(n,i,!0):(r=(0,a.getFlatNode)(n,i,!0),o=(0,a.getFlatNode)(n,u,!0)),!r||!o)return;const c=e.positionAt(r.start),l=c.line,f=c.character,p=e.positionAt(o.end).line;if(l===p)return;const d=(0,a.offsetRangeToVsRange)(e,r.start,o.end);let m=e.lineAt(l).text.substr(f);for(let t=l+1;t<=p;t++)m+=e.lineAt(t).text.trim();return new s.TextEdit(d,m)}(e.document,r,t);o&&n.replace(o.range,o.newText)}))})):void 0};const s=i(n(1398)),a=n(7937),u=n(6647)},6647:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getRootNode=function(e,t){const n=e.uri.toString(),r=a.get(n),u=e.version;if(t&&r&&u===r.key)return r.value;const c=((0,s.isStyleSheet)(e.languageId)?i.default:o.default)(e.getText());return t&&a.set(n,{key:u,value:c}),c},t.addFileToParseCache=function(e){const t=e.uri.toString();a.set(t,void 0)},t.removeFileFromParseCache=function(e){const t=e.uri.toString();a.delete(t)},t.clearParseCache=function(){a.clear()};const o=r(n(1253)),i=r(n(7545)),s=n(7937),a=new Map},7284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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 u=(0,o.getCssPropertyFromRule)(n,i+s);if(u){const n=(0,o.offsetRangeToVsRange)(e.document,u.valueToken.start,u.valueToken.end);t.replace(n,a)}}))}))}(e,t):void 0};const r=n(1398),o=n(7937),i=["-webkit-","-moz-","-ms-","-o-",""]},5893:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.removeTag=function(){if(!(0,u.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,a.getRootNode)(t,!0);if(!n)return;const r=Array.from(e.selections).reverse().reduce(((t,r)=>t.concat(function(e,t,n){const r=e.offsetAt(n.start),o=(0,u.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return[];let i,a;if(o.open&&(i=(0,u.offsetRangeToVsRange)(e,o.open.start,o.open.end)),o.close&&(a=(0,u.offsetRangeToVsRange)(e,o.close.start,o.close.end)),i&&a){const t=new s.Range(i.end.line,i.end.character,a.start.line,a.start.character),n=new s.Range(i.start.line,i.start.character,a.end.line,a.end.character);if(""===e.getText(t).trim()&&"pre"!==o.name)return[n]}const l=[];if(i&&(l.push(i),a)){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<o;t++){const n=e.lineAt(t);if(!n.isEmptyOrWhitespace){const e=n.firstNonWhitespaceCharacterIndex;a=a?Math.min(a,e):e}}let u=0;return a&&(u=a<i||a<s?0:Math.min(a-i,a-s)),u}(e,i,a);let n,r;for(let o=i.start.line+1;o<a.start.line;o++)e.lineAt(o).isEmptyOrWhitespace||(l.push(new s.Range(o,0,o,t)),void 0===n&&(n=o),r=o);c(e,a)&&r?l.push(new s.Range(r,e.lineAt(r).range.end.character,a.end.line,a.end.character)):l.push(a),c(e,i)&&n&&(l[1]=new s.Range(i.start.line,i.start.character,n,e.lineAt(n).firstNonWhitespaceCharacterIndex),l.shift())}return l}(e.document,n,r))),[]);return e.edit((e=>{r.forEach((t=>{e.delete(t)}))}))};const s=i(n(1398)),a=n(6647),u=n(7937);function c(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}},5186:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSelectItem=function(e){if(!(0,a.validate)()||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,l.getRootNode)(n,!0);if(!r)return;const o=[];t.selections.forEach((i=>{const s=i.isReversed?i.active:i.anchor,l=i.isReversed?i.anchor:i.active;let f;f=(0,a.isStyleSheet)(t.document.languageId)?"next"===e?(0,c.nextItemStylesheet)(n,s,l,r):(0,c.prevItemStylesheet)(n,s,l,r):"next"===e?(0,u.nextItemHTML)(n,s,l,r):(0,u.prevItemHTML)(n,s,l,r),o.push(f||i)})),t.selections=o,t.revealRange(t.selections[t.selections.length-1])};const s=i(n(1398)),a=n(7937),u=n(2703),c=n(4950),l=n(6647)},2703:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextItemHTML=function(e,t,n,i){const s=e.offsetAt(n);let a,u=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(u){if("comment"!==u.type){if(u.open&&s<=u.open.start+u.name.length)return o(e,u);if(u.open&&s<u.open.end){const n=e.offsetAt(t),o=function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(const i of o.attributes){if(n<i.start)return(0,r.offsetRangeToSelection)(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&n===i.end||n<i.value.start)return(0,r.offsetRangeToSelection)(e,i.value.start,i.value.end);if(!i.value.toString().includes(" "))continue;let o;if(t===i.value.start&&n===i.value.end&&(o=-1),void 0===o&&n<i.end&&(o=e.positionAt(n).character-e.positionAt(i.value.start).character-1),void 0!==o){const[t,n]=(0,r.findNextWord)(i.value.toString(),o);if(void 0===t||void 0===n)return;if(t>=0&&n>=0){const o=i.value.start+t,s=i.value.start+n;return(0,r.offsetRangeToSelection)(e,o,s)}}}}(e,n,s,u);if(o)return o}for(a=u.firstChild;a&&(s>=a.end||"comment"===a.type);)a=a.nextSibling}for(;!a&&u;)u.nextSibling?"comment"!==u.nextSibling.type?a=u.nextSibling:u=u.nextSibling:u=u.parent;return a&&o(e,a)}},t.prevItemHTML=function(e,t,n,i){const s=e.offsetAt(t);let a,u=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(!u)return;const c=e.offsetAt(n);if(u.open&&"comment"!==u.type&&s-1>u.open.start)if(s<u.open.end||!u.firstChild||c<=u.firstChild.start)a=u;else{let e;for(a=u.firstChild;a.nextSibling&&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&&u;)u.previousSibling?"comment"!==u.previousSibling.type?a=(0,r.getDeepestFlatNode)(u.previousSibling):u=u.previousSibling:a=u.parent;if(!a)return;const l=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.start)return(0,r.offsetRangeToSelection)(e,s.start,s.end);if(t===s.value.start)return n>=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,u=e.positionAt(s.value.start).character,c=t>s.value.end?s.value.toString().length:a-u,[l,f]=(0,r.findPrevWord)(s.value.toString(),c);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,c,a);return l||o(e,a)};const r=n(7937);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)}}},4950:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.nextItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,a.getFlatNode)(r,i,!0);if(s||(s=r),!s)return;if("property"===s.type&&o===s.start&&i===s.end)return c(e,s,o,i,!0,"next");if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=c(e,s,o,i,!1,"next");if(t)return t}if("rule"===s.type&&i<s.selectorToken.end||"property"===s.type&&i<s.valueToken.end)return u(e,s);let l=s.firstChild;for(;l&&i>=l.end;)l=l.nextSibling;for(;!l&&s;)l=s.nextSibling,s=s.parent;return l?u(e,l):void 0},t.prevItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,a.getFlatNode)(r,o,!1);if(s||(s=r),!s)return;if("property"===s.type&&o===s.valueToken.start&&i===s.valueToken.end)return u(e,s);if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=c(e,s,o,i,!1,"prev");if(t)return t}if("property"===s.type||!s.firstChild||"rule"===s.type&&o<=s.firstChild.start)return u(e,s);let l=s.firstChild;for(;l.nextSibling&&o>=l.nextSibling.end;)l=l.nextSibling;return l=(0,a.getDeepestFlatNode)(l),c(e,l,o,i,!1,"prev")};const s=i(n(1398)),a=n(7937);function u(e,t){if(!t)return;const n="rule"===t.type?t.selectorToken:t;return(0,a.offsetRangeToSelection)(e,n.start,n.end)}function c(e,t,n,r,o,i){if(!t||"property"!==t.type)return;const u=t,c=u.valueToken.stream.substring(u.valueToken.start,u.valueToken.end);if(o=o||"prev"===i&&n===u.valueToken.start&&r<u.valueToken.end)return(0,a.offsetRangeToSelection)(e,u.valueToken.start,u.valueToken.end);let l=-1;if("prev"===i){if(n===u.valueToken.start)return;const t=e.positionAt(n).character,r=e.positionAt(u.valueToken.start).character;l=n>u.valueToken.end?c.length:t-r}else if("next"===i){if(r===u.valueToken.end&&(n>u.valueToken.start||!c.includes(" ")))return;const t=e.positionAt(r).character,o=e.positionAt(u.valueToken.start).character;l=r===u.valueToken.end?-1:t-o-1}const[f,p]="prev"===i?(0,a.findPrevWord)(c,l):(0,a.findNextWord)(c,l);if(!f&&!p)return;const d=e.positionAt(u.valueToken.start),m=d.translate(0,f),h=d.translate(0,p);return new s.Selection(m,h)}},5197:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.splitJoinTag=function(){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const e=s.window.activeTextEditor,t=e.document,n=(0,u.getRootNode)(e.document,!0);return n?e.edit((r=>{Array.from(e.selections).reverse().forEach((e=>{const o=t.getText(),i=t.offsetAt(e.start),u=(0,a.getHtmlFlatNode)(o,n,i,!0);if(u){const e=function(e,t){let n,r;if(t.open&&t.close){const o=t.open.end-1,i=t.end;n=(0,a.offsetRangeToVsRange)(e,o,i),r="/>";const s=(0,a.getEmmetMode)(e.languageId,{},[])??"",u=(0,a.getEmmetConfiguration)(s);s&&u.syntaxProfiles[s]&&("xhtml"===u.syntaxProfiles[s].selfClosingStyle||"xhtml"===u.syntaxProfiles[s].self_closing_tag)&&(r=" "+r)}else{const o=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),i=t.end,s=o?i-o[0].length:i;n=(0,a.offsetRangeToVsRange)(e,s,i),r=`></${t.name}>`}return new s.TextEdit(n,r)}(t,u);r.replace(e.range,e.newText)}}))})):void 0};const s=i(n(1398)),a=n(7937),u=n(6647)},6676:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toggleComment=function(){if(!(0,u.validate)()||!a.window.activeTextEditor)return;a.workspace.getConfiguration("editor.comments").get("insertSpace")?(f="/* ",p=" */",d="\x3c!-- ",m=" --\x3e"):(f="/*",p="*/",d="\x3c!--",m="--\x3e");const e=a.window.activeTextEditor,t=(0,l.getRootNode)(e.document,!0);return t?e.edit((n=>{const r=[];Array.from(e.selections).reverse().forEach((n=>{const o=(0,u.isStyleSheet)(e.document.languageId)?g(e.document,n,t):function(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active,i=e.offsetAt(r),s=e.offsetAt(o),l=e.getText(),f=(0,u.getHtmlFlatNode)(l,n,i,!0),p=(0,u.getHtmlFlatNode)(l,n,s,!0);if(!f||!p)return[];if((0,u.sameNodes)(f,p)&&"style"===f.name&&f.open&&f.close&&f.open.end<i&&f.close.start>s){const n=" ".repeat(f.open.end)+l.substring(f.open.end,f.close.start),r=(0,c.default)(n);return g(e,t,r)}const b=(0,u.getNodesInBetween)(f,p);let y=[];return b.forEach((t=>{y=y.concat(h(t,e))})),"comment"===f.type||(y.push(new a.TextEdit((0,u.offsetRangeToVsRange)(e,b[0].start,b[0].start),d)),y.push(new a.TextEdit((0,u.offsetRangeToVsRange)(e,b[b.length-1].end,b[b.length-1].end),m))),y}(e.document,n,t);o.length>0&&r.push(o)})),r.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 o=new a.Position(0,0);for(const e of r)e[0].range.end.isAfterOrEqual(o)&&e.forEach((e=>{n.replace(e.range,e.newText),o=e.range.end}))})):void 0};const a=i(n(1398)),u=n(7937),c=s(n(7545)),l=n(6647);let f,p,d,m;function h(e,t){let n=[];return"comment"===e.type?(n.push(new a.TextEdit((0,u.offsetRangeToVsRange)(t,e.start,e.start+d.length),"")),n.push(new a.TextEdit((0,u.offsetRangeToVsRange)(t,e.end-m.length,e.end),"")),n):(e.children.forEach((e=>{n=n.concat(h(e,t))})),n)}function g(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active;let i=e.offsetAt(r),s=e.offsetAt(o);const c=(0,u.getFlatNode)(n,i,!0),l=(0,u.getFlatNode)(n,s,!0);t.isEmpty?c&&(i=c.start,s=c.end,t=(0,u.offsetRangeToSelection)(e,i,s)):(i=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(t<r.contentStartToken.end||!r.firstChild)return r.start;if(t<r.firstChild.start)return t;let o=r.firstChild;for(;o.nextSibling&&t>o.end;)o=o.nextSibling;return o.start}(c,i,n),s=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<o.start;)o=o.previousSibling;return o.end}(l,s,n),t=(0,u.offsetRangeToSelection)(e,i,s));const d=[],m=[];return n.comments.forEach((n=>{const r=(0,u.offsetRangeToVsRange)(e,n.start,n.end);t.intersection(r)&&(d.push(r),m.push(new a.TextEdit((0,u.offsetRangeToVsRange)(e,n.start,n.start+f.length),"")),m.push(new a.TextEdit((0,u.offsetRangeToVsRange)(e,n.end-p.length,n.end),"")))})),m.length>0?m:[new a.TextEdit(new a.Range(t.start,t.start),f),new a.TextEdit(new a.Range(t.end,t.end),p)]}},8306:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.updateTag=async function(e){if(!(0,a.validate)(!1)||!s.window.activeTextEditor)return;const t=s.window.activeTextEditor,n=t.document,r=(0,u.getRootNode)(n,!0);if(!r)return;const o=t.selections.reduceRight(((e,t)=>e.concat(function(e,t,n){const r=e.getText(),o=e.offsetAt(t.start),i=(0,a.getHtmlFlatNode)(r,n,o,!0);return i?function(e,t){const n=[];if(e.open){const r=t.positionAt(e.open.start);n.push({name:e.name,range:new s.Range(r.translate(0,1),r.translate(0,1).translate(0,e.name.length))})}if(e.close){const r=t.positionAt(e.close.start),o=t.positionAt(e.close.end);n.push({name:e.name,range:new s.Range(r.translate(0,2),o.translate(0,-1))})}return n}(i,e):[]}(n,t,r))),[]);if(!o.length)return;const i=o[0].name,c=o.every((e=>e.name===i));return!(void 0===e&&!(e=await s.window.showInputBox({prompt:"Enter Tag",value:c?i:void 0})))&&t.edit((t=>{o.forEach((n=>{t.replace(n.range,e)}))}))};const s=i(n(1398)),a=n(7937),u=n(6647)},7937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.allowedMimeTypesInScriptTag=t.LANGUAGE_MODES=void 0,t.setHomeDir=function(e){h=e},t.getEmmetHelper=g,t.updateEmmetExtensionsPath=function(e=!1){const t=g();let n=a.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||m!==n){m=n;const e=a.workspace.workspaceFolders?.length?a.workspace.workspaceFolders.map((e=>e.uri)):void 0,r=a.workspace.fs;t.updateExtensionsPath(n,r,e,h).catch((e=>{Array.isArray(n)&&n.length&&a.window.showErrorMessage(e.message)}))}},t.migrateEmmetExtensionsPath=function(){const e=a.workspace.getConfiguration().inspect("emmet.extensionsPath");"string"==typeof e?.globalValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):null===e?.globalValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),"string"==typeof e?.workspaceValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):null===e?.workspaceValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),"string"==typeof e?.workspaceFolderValue?a.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):null===e?.workspaceFolderValue&&a.workspace.getConfiguration().update("emmet.extensionsPath",[])},t.isStyleSheet=b,t.validate=function(e=!0){const t=a.window.activeTextEditor;return t?!(!e&&b(t.document.languageId)):(a.window.showInformationMessage("No editor is active"),!1)},t.getMappingForIncludedLanguages=function(){const e={},n=a.workspace.getConfiguration("emmet").get("includeLanguages"),r=Object.assign({},{handlebars:"html",php:"html"},n??{});return Object.keys(r).forEach((n=>{"string"==typeof r[n]&&t.LANGUAGE_MODES[r[n]]&&(e[n]=r[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},t.parsePartialStylesheet=function(e,t){const n="css"===e.languageId,r=e.offsetAt(t);let o=0,i=e.getText().length;const s=r-5e3,u=s>0?s:o,f=new l.DocumentStreamReader(e,r);function p(){const t=e.positionAt(f.pos).line;if(!n&&g!==t){g=t;const n=e.lineAt(g).text.indexOf("//");n>-1&&(f.pos=e.offsetAt(new a.Position(g,n)))}}function d(){f.sof()||f.peek()!==x||(f.backUp(1)===w?f.pos=function(t){const n=e.getText().substring(0,t).lastIndexOf("/*");if(-1!==n)return n}(f.pos)??o:f.next())}function m(){if(f.eat(x))if(f.eat(x)&&!n){const t=e.positionAt(f.pos).line;f.pos=e.offsetAt(new a.Position(t+1,0))}else f.eat(w)&&(f.pos=function(t){let n=e.getText().substring(t).indexOf("*/");if(-1!==n)return n+=2+t,n}(f.pos)??i)}for(;!f.eof()&&!f.eat(y);)f.peek()===x?m():f.next();f.eof()||(i=f.pos),f.pos=r;let h=1,g=t.line,b=!1;for(;!b&&h>0&&!f.sof();){switch(p(),f.backUp(1)){case v:h--;break;case y:n?(f.next(),o=f.pos,b=!0):h++;break;case x:d()}(t.line-e.positionAt(f.pos).line>100||f.pos<=u)&&(b=!0)}g=e.positionAt(f.pos).line,h=0;let k=!1;for(;!b&&!f.sof()&&!k&&h>=0;){p();const e=f.backUp(1);if(!/\s/.test(String.fromCharCode(e))){switch(e){case x:d();break;case y:h++;break;case v:h--;break;default:h||(k=!0)}!f.sof()&&k&&(o=f.pos)}}try{const t=" ".repeat(o)+e.getText().substring(o,i);return(0,c.default)(t)}catch(e){return}},t.getFlatNode=k,t.getHtmlFlatNode=function e(t,n,r,o){let i=k(n,r,o);if(i){if("script"===i.name&&0===i.children.length){const n=A(t,i);n&&(i=e(n,i,r,o)??i)}else if("cdata"===i.type){i=e(S(t,i),i,r,o)??i}return i}},t.setupScriptNodeSubtree=A,t.setupCdataNodeSubtree=S,t.isOffsetInsideOpenOrCloseTag=function(e,t){const n=e;return!!(n.open&&t>n.open.start&&t<n.open.end||n.close&&t>n.close.start&&t<n.close.end)},t.offsetRangeToSelection=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new a.Selection(r,o)},t.offsetRangeToVsRange=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new a.Range(r,o)},t.getDeepestFlatNode=function e(t){if(!t||!t.children||0===t.children.length||!t.children.find((e=>"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<e.length-1;)if(t++,o){if(!o||i||" "!==e[t])if(i){if(" "===e[t]){r=t,s=!0;break}}else n=t,i=!0}else" "===e[t]&&(o=!0);return i&&!s&&(r=e.length),[n,r]},t.findPrevWord=function(e,t){let n,r,o=t===e.length,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(C(e,t))return[e];if(!C(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.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=C,t.getEmmetConfiguration=function(e){const t=a.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),r=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:r,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<o;r++)if(!1===n(t.item(r))||!1===e(t.item(r),n))return!1;return!0},t.getCssPropertyFromRule=function(e,t){return e.children.find((e=>"property"===e.type&&e.name===t))},t.getCssPropertyFromDocument=function(e,t){const n=e.document,r=(0,p.getRootNode)(n,!0),o=n.offsetAt(t),i=k(r,o,!0);if(b(e.document.languageId))return i&&"property"===i.type?i:null;const s=i;if(s&&"style"===s.name&&s.open&&s.close&&s.open.end<o&&s.close.start>o){const e=" ".repeat(s.start)+n.getText().substring(s.start,s.end),t=k((0,c.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<t&&t<=r.close.start&&"style"===r.name){const t=" ".repeat(r.open.end)+e.getText().substring(r.open.end,r.close.start);return(0,c.default)(t)}}},t.isStyleAttribute=function(e,t){if(!e)return!1;const n=e,r=(n.attributes||[]).findIndex((e=>"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 f.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"]}};const a=i(n(1398)),u=s(n(1253)),c=s(n(7545)),l=n(4367),f=n(5172),p=n(6647);let d,m,h;function g(){return d||(d=n(3547)),d}function b(e){return["css","scss","sass","less","stylus"].includes(e)}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"]};const y=125,v=123,x=47,w=42;function k(e,t,n){if(e)return o(e.children);function r(e){if(!e)return;const r=e.start,i=e.end;if(r<t&&i>t||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<e.length;t++){const n=r(e[t]);if(n)return n}}}function A(e,n){if("script"===n.name&&n.attributes&&n.attributes.some((e=>"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,o=t+e.substring(n.open.end,r);return(0,u.default)(o).children.forEach((e=>{n.children.push(e),e.parent=n})),o}return""}function S(e,t){const n=t.start+9,r=t.end-3,o=" ".repeat(n)+e.substring(n,r);return(0,u.default)(o).children.forEach((e=>{t.children.push(e),e.parent=t})),o}function C(e,t){return!e&&!t||!(!e||!t)&&e.start===t.start&&e.end===t.end}t.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"]},5272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1531:(e,t,n)=>{"use strict";var r=n(5387),o=n(2625),i=n(2730),s=n(5943);function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(u)var m=a(BigInt.prototype.valueOf);if(c)var h=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===l(e)}function y(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function x(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=k,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function T(e){return void 0!==C&&(void 0===O.working&&(O.working=O(new C)),O.working?O(e):e instanceof C)}function j(e){return g(e,f)}function _(e){return g(e,p)}function E(e){return g(e,d)}function P(e){return u&&g(e,m)}function $(e){return c&&g(e,h)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=j,t.isStringObject=_,t.isBooleanObject=E,t.isBigIntObject=P,t.isSymbolObject=$,t.isBoxedPrimitive=function(e){return j(e)||_(e)||E(e)||P(e)||$(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9208:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])g(a)||!w(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},s=/^$/;if({}.NODE_DEBUG){var a={}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=f(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),A(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(S(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return p(n)}var c,l="",w=!1,C=["{","}"];return m(n)&&(w=!0,C=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),A(n)&&(l=" "+p(n)),0!==s.length||w&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)j(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,C)):C[0]+l+C[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),j(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=g(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return w(e)&&"[object RegExp]"===C(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===C(e)}function A(e){return w(e)&&("[object Error]"===C(e)||e instanceof Error)}function S(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(1531),t.isArray=m,t.isBoolean=h,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=w,t.isDate=k,t.types.isDate=k,t.isError=A,t.types.isNativeError=A,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(5272);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5615),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var _="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(_&&e[_]){var t;if("function"!=typeof(t=e[_]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),_&&Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=_,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){process.nextTick(i.bind(null,null,e))}),(function(e){process.nextTick(E.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},2730:(e,t,n)=>{"use strict";var r=n(705),o=n(4834),i=n(8498),s=n(9818),a=n(9336),u=s("Object.prototype.toString"),c=n(1913)(),l="undefined"==typeof globalThis?n.g:globalThis,f=o(),p=s("String.prototype.slice"),d=Object.getPrototypeOf,m=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},h={__proto__:null};r(f,c&&a&&d?function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);if(!r){var o=d(n);r=a(o,Symbol.toStringTag)}h["$"+e]=i(r.get)}}:function(e){var t=new l[e];h["$"+e]=i(t.slice)}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=p(u(e),8,-1);return m(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(h,(function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return r(h,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}})),t}(e):null}},1398:e=>{"use strict";e.exports=require("vscode")},4834:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},5172:(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(const t of e)if(r.isIncremental(t)){const e=u(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 a=this._lineOffsets;const c=s(t.text,!1,n);if(i-o===c.length)for(let e=0,t=c.length;e<t;e++)a[e+o+1]=c[e];else c.length<1e4?a.splice(o+1,i-o,...c):this._lineOffsets=a=a.slice(0,o+1).concat(c,a.slice(i+1));const l=t.text.length-(r-n);if(0!==l)for(let e=o+1+c.length,t=a.length;e<t;e++)a[e]=a[e]+l}else{if(!r.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){const o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}const o=n-1;return{line:o,character:(e=this.ensureBeforeEOL(e,t[o]))-t[o]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const r=e.line+1<t.length?t[e.line+1]:this._content.length,o=Math.min(n+e.character,r);return this.ensureBeforeEOL(o,n)}ensureBeforeEOL(e,t){for(;e>t&&a(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let s=0,a=0,u=0;for(;s<r.length&&a<o.length;){const n=t(r[s],o[a]);e[u++]=n<=0?r[s++]:o[a++]}for(;s<r.length;)e[u++]=r[s++];for(;a<o.length;)e[u++]=o[a++];return e}function s(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);a(o)&&(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function a(e){return 13===e||10===e}function u(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=u(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){const n=e.getText(),r=i(t.map(c),((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let o=0;const s=[];for(const t of r){const r=e.offsetAt(t.range.start);if(r<o)throw new Error("Overlapping edit");r>o&&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={}))}},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(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=function(e){(0,t.activateEmmetExtension)(e)};const t=n(1212)})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
2
2
|
//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/undefined/extensions/emmet/dist/browser/emmetBrowserMain.js.map
|