mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-24 06:22:26 +00:00
25 lines
90 KiB
JavaScript
25 lines
90 KiB
JavaScript
function e(e){return e>47&&e<58}function t(e,t,n){return t=t||65,n=n||90,e&=-33,e>=t&&e<=n}function n(t){return e(t)||r(t)}function r(e){return e===95||t(e)}function i(e){return e===196||e==214||e===220||e===228||e===246||e===252}function a(e){return e===32||e===9||e===160}function o(e){return a(e)||e===10||e===13}function s(e){return e===39||e===34}var c=class e{constructor(e,t,n){n==null&&typeof e==`string`&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(t,n){return new e(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){let t=this.peek(),n=typeof e==`function`?e(t):t===e;return n&&this.next(),n}eatWhile(e){let 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 l(`${e} at ${t+1}`,t,this.string)}},l=class extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}};function u(e){return{tokens:e,start:0,pos:0,size:e.length}}function d(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 m(e){return e.pos<e.size}function h(e,t){let n=d(e);return n&&t(n)?(e.pos++,!0):!1}function g(e,t,n=d(e)){n&&n.start!=null&&(t+=` at ${n.start}`);let r=Error(t);return r.pos=n&&n.start,r}function ee(e,t={}){let n=u(e),r=te(n,t);if(m(n))throw g(n,`Unexpected character`);return r}function te(e,t){let n={type:`TokenGroup`,elements:[]},r=n,i,a=[];for(;m(e)&&(i=re(e,t)||ne(e,t));)if(r.elements.push(i),h(e,Te))a.push(r),r=i;else if(h(e,Ee))continue;else if(h(e,De))do a.length&&(r=a.pop());while(h(e,De));return n}function ne(e,t){if(h(e,Se)){let n=te(e,t);return _(f(e),`group`,!1)&&(n.repeat=se(e)),n}}function re(e,t){let n,r={type:`TokenElement`,name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(ue(e,t)&&(r.name=p(e));m(e);)if(e.start=e.pos,!r.repeat&&!we(r)&&h(e,b))r.repeat=e.tokens[e.pos-1];else if(!r.value&&de(e))r.value=fe(e);else if(n=ae(e,`id`,t)||ae(e,`class`,t)||ie(e))r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n];else{!we(r)&&h(e,Oe)&&(r.selfClose=!0,!r.repeat&&h(e,b)&&(r.repeat=e.tokens[e.pos-1]));break}return we(r)?void 0:r}function ie(e){if(h(e,ye)){let t=[],n;for(;m(e);)if(n=oe(e))t.push(n);else if(h(e,be))break;else if(!h(e,pe))throw g(e,`Unexpected "${d(e).type}" token`);return t}}function ae(e,t,n){if(v(d(e),t)){e.pos++;let r=1;for(;v(d(e),t);)e.pos++,r++;let i={name:[Ce(t)]};return r>1&&(i.multiple=!0),n.jsx&&de(e)?(i.value=fe(e),i.expression=!0):i.value=le(e)?p(e):void 0,i}}function oe(e){if(ce(e))return{value:p(e)};if(le(e,!0)){let t=p(e),n;return h(e,me)&&(ce(e)||le(e,!0))&&(n=p(e)),{name:t,value:n}}}function se(e){return b(d(e))?e.tokens[e.pos++]:void 0}function ce(e){let t=e.pos,n=d(e);if(y(n)){for(e.pos++;m(e);)if(y(f(e),n.single))return e.start=t,!0;throw g(e,`Unclosed quote`,n)}return!1}function le(e,t){let n=e.pos,r={attribute:0,expression:0,group:0};for(;m(e);){let n=d(e);if(r.expression)_(n,`expression`)&&(r[n.context]+=n.open?1:-1);else if(y(n)||v(n)||pe(n)||b(n))break;else if(_(n)){if(!t)break;if(n.open)r[n.context]++;else if(r[n.context])r[n.context]--;else break}e.pos++}return n===e.pos?!1:(e.start=n,!0)}function ue(e,t){let n=e.pos;if(t.jsx&&h(e,ge))for(;m(e);){let{pos:t}=e;if(!h(e,ve)||!h(e,ge)){e.pos=t;break}}for(;m(e)&&h(e,_e););return e.pos===n?!1:(e.start=n,!0)}function de(e){let t=e.pos;if(h(e,xe)){let n=0;for(;m(e);){let t=f(e);if(_(t,`expression`))if(t.open)n++;else if(n)n--;else break}return e.start=t,!0}return!1}function fe(e){let t=e.start,n=e.pos;return _(e.tokens[t],`expression`,!0)&&t++,_(e.tokens[n-1],`expression`,!1)&&n--,p(e,t,n)}function _(e,t,n){return!!(e&&e.type===`Bracket`&&(!t||e.context===t)&&(n==null||e.open===n))}function v(e,t){return!!(e&&e.type===`Operator`&&(!t||e.operator===t))}function y(e,t){return!!(e&&e.type===`Quote`&&(t==null||e.single===t))}function pe(e){return!!(e&&e.type===`WhiteSpace`)}function me(e){return v(e,`equal`)}function b(e){return!!(e&&e.type===`Repeater`)}function he(e){return e.type===`Literal`}function ge(e){if(he(e)){let t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function _e(e){return e.type===`Literal`||e.type===`RepeaterNumber`||e.type===`RepeaterPlaceholder`}function ve(e){return v(e,`class`)}function ye(e){return _(e,`attribute`,!0)}function be(e){return _(e,`attribute`,!1)}function xe(e){return _(e,`expression`,!0)}function Se(e){return _(e,`group`,!0)}function Ce(e){return{type:`Literal`,value:e}}function we(e){return!e.name&&!e.value&&!e.attributes}function Te(e){return v(e,`child`)}function Ee(e){return v(e,`sibling`)}function De(e){return v(e,`climb`)}function Oe(e){return v(e,`close`)}var x;(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`})(x||(x={}));function ke(e){return e.eat(x.Escape)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function Ae(e){let t=new c(e),n=[],r={group:0,attribute:0,expression:0,quote:0},i=0,a;for(;!t.eof();)if(i=t.peek(),a=je(t,r),a)n.push(a),a.type===`Quote`?r.quote=i===r.quote?0:i:a.type===`Bracket`&&(r[a.context]+=a.open?1:-1);else throw t.error(`Unexpected character`);return n}function je(e,t){return Be(e,t)||Re(e)||ze(e)||Le(e)||Ne(e)||Me(e,t)||Ie(e)||Pe(e)||Fe(e)}function Me(t,n){let r=t.pos,i=n.expression,a=``;for(;!t.eof();){if(ke(t)){a+=t.current();continue}let r=t.peek();if(r===x.Slash&&!n.quote&&!n.expression&&!n.attribute){let n=t.string.charCodeAt(t.pos-1),r=t.string.charCodeAt(t.pos+1);if(e(n)&&e(r)){a+=t.string[t.pos++];continue}}if(r===n.quote||r===x.Dollar||He(r,n))break;if(i){if(r===x.CurlyBracketOpen)n.expression++;else if(r===x.CurlyBracketClose)if(n.expression>i)n.expression--;else break}else if(!n.quote&&(!n.attribute&&!Je(r)||Ue(r,n)||We(r,n)||s(r)||Ge(r)))break;a+=t.string[t.pos++]}if(r!==t.pos)return t.start=r,{type:`Literal`,value:a,start:r,end:t.pos}}function Ne(e){let t=e.pos;if(e.eatWhile(o))return{type:`WhiteSpace`,start:t,end:e.pos,value:e.substring(t,e.pos)}}function Pe(e){let t=e.peek();if(s(t))return{type:`Quote`,single:t===x.SingleQuote,start:e.pos++,end:e.pos}}function Fe(e){let t=e.peek(),n=Ge(t);if(n)return{type:`Bracket`,open:qe(t),context:n,start:e.pos++,end:e.pos}}function Ie(e){let t=Ke(e.peek());if(t)return{type:`Operator`,operator:t,start:e.pos++,end:e.pos}}function Le(t){let n=t.pos;if(t.eat(x.Asterisk)){t.start=t.pos;let r=1,i=!1;return t.eatWhile(e)?r=Number(t.current()):i=!0,{type:`Repeater`,count:r,value:0,implicit:i,start:n,end:t.pos}}}function Re(e){let t=e.pos;if(e.eat(x.Dollar)&&e.eat(x.Hash))return{type:`RepeaterPlaceholder`,value:void 0,start:t,end:e.pos};e.pos=t}function ze(t){let n=t.pos;if(t.eatWhile(x.Dollar)){let r=t.pos-n,i=!1,a=1,o=0;if(t.eat(x.At)){for(;t.eat(x.Climb);)o++;i=t.eat(x.Dash),t.start=t.pos,t.eatWhile(e)&&(a=Number(t.current()))}return t.start=n,{type:`RepeaterNumber`,size:r,reverse:i,base:a,parent:o,start:n,end:t.pos}}}function Be(n,r){let i=n.pos;if((r.expression||r.attribute)&&n.eat(x.Dollar)&&n.eat(x.CurlyBracketOpen)){n.start=n.pos;let r,a=``;if(n.eatWhile(e)?(r=Number(n.current()),a=n.eat(x.Colon)?Ve(n):``):t(n.peek())&&(a=Ve(n)),n.eat(x.CurlyBracketClose))return{type:`Field`,index:r,name:a,start:i,end:n.pos};throw n.error(`Expecting }`)}n.pos=i}function Ve(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(x.CurlyBracketOpen))t.push(e.pos);else if(e.eat(x.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 He(e,t){let n=Ke(e);return!n||t.quote||t.expression?!1:!t.attribute||n===`equal`}function Ue(e,t){return o(e)&&!t.expression}function We(e,t){return e===x.Asterisk&&!t.attribute&&!t.expression}function Ge(e){if(e===x.RoundBracketOpen||e===x.RoundBracketClose)return`group`;if(e===x.SquareBracketOpen||e===x.SquareBracketClose)return`attribute`;if(e===x.CurlyBracketOpen||e===x.CurlyBracketClose)return`expression`}function Ke(e){return e===x.Child&&`child`||e===x.Sibling&&`sibling`||e===x.Climb&&`climb`||e===x.Dot&&`class`||e===x.Hash&&`id`||e===x.Slash&&`close`||e===x.Equals&&`equal`||void 0}function qe(e){return e===x.CurlyBracketOpen||e===x.SquareBracketOpen||e===x.RoundBracketOpen}function Je(e){return n(e)||i(e)||e===x.Dash||e===x.Colon||e===x.Excl}var Ye={child:`>`,class:`.`,climb:`^`,id:`#`,equal:`=`,close:`/`,sibling:`+`},Xe={Literal(e){return e.value},Quote(e){return e.single?`'`:`"`},Bracket(e){return e.context===`attribute`?e.open?`[`:`]`:e.context===`expression`?e.open?`{`:`}`:e.open?`(`:`}`},Operator(e){return Ye[e.operator]},Field(e,t){return e.index==null?e.name?t.getVariable(e.name):``:e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`},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,r=t.repeaters.length-1,i=t.repeaters[r];if(i&&(n=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){let a=Math.max(0,r-e.parent);if(a!==r){let e=t.repeaters[a];n+=i.count*e.value}}let a=String(n);for(;a.length<e.size;)a=`0`+a;return a},WhiteSpace(e){return e.value}};function Ze(e,t){if(!Xe[e.type])throw Error(`Unknown token ${e.type}`);return Xe[e.type](e,t)}var Qe=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,$e=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function et(e,t={}){let n=!1,r;t.text&&(r=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);let i={type:`Abbreviation`,children:rt(e,{inserted:!1,repeaters:[],text:t.text,cleanText:r,repeatGuard:t.maxRepeat||1/0,getText(e){n=!0;let i;if(Array.isArray(t.text)){if(e!==void 0&&e>=0&&e<r.length)return r[e];i=e===void 0?t.text.join(`
|
||
`):t.text[e]}else i=t.text??``;return i},getVariable(e){return(t.variables&&t.variables[e])??e}})};if(t.text!=null&&!n){let e=lt(S(i.children));if(e){let n=Array.isArray(t.text)?t.text.join(`
|
||
`):t.text;ut(e,n),e.name===`a`&&t.href&&dt(e,n)}}return i}function tt(e,t){let n=[];if(e.repeat){let r=e.repeat,i=Object.assign({},r);i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1;let a;t.repeaters.push(i);for(let r=0;r<i.count;r++){if(i.value=r,e.repeat=i,a=st(e)?rt(e,t):nt(e,t),i.implicit&&!t.inserted){let e=S(a),n=e&<(e);n&&ut(n,t.getText(i.value))}if(n=n.concat(a),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,i.implicit&&(t.inserted=!0)}else n=n.concat(st(e)?rt(e,t):nt(e,t));return n}function nt(e,t){let n=[],r={type:`AbbreviationNode`,name:e.name&&at(e.name,t),value:e.value&&ot(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose},i=[r];for(let r of e.elements)n=n.concat(tt(r,t));if(e.attributes){r.attributes=[];for(let n of e.attributes)r.attributes.push(it(n,t))}return!r.name&&!r.attributes&&r.value&&!r.value.some(ct)?i=i.concat(n):r.children=n,i}function rt(e,t){let n=[];for(let r of e.elements)n=n.concat(tt(r,t));return e.repeat&&(n=ft(n,e.repeat)),n}function it(e,t){let n=!1,r=!1,i=e.expression?`expression`:`raw`,a,o=e.name&&at(e.name,t);if(o&&o[0]===`!`&&(n=!0),o&&o[o.length-1]===`.`&&(r=!0),e.value){let n=e.value.slice();if(y(n[0])){let e=n.shift();n.length&&S(n).type===e.type&&n.pop(),i=e.single?`singleQuote`:`doubleQuote`}else _(n[0],`expression`,!0)&&(i=`expression`,n.shift(),_(S(n),`expression`,!1)&&n.pop());a=ot(n,t)}return{name:r||n?o.slice(n?1:0,r?-1:void 0):o,value:a,boolean:r,implied:n,valueType:i,multiple:e.multiple}}function at(e,t){let n=``;for(let r=0;r<e.length;r++)n+=Ze(e[r],t);return n}function ot(e,t){let n=[],r=``;for(let i=0,a;i<e.length;i++)a=e[i],ct(a)?(r&&(n.push(r),r=``),n.push(a)):r+=Ze(a,t);return r&&n.push(r),n}function st(e){return e.type===`TokenGroup`}function ct(e){return typeof e==`object`&&e.type===`Field`&&e.index!=null}function S(e){return e[e.length-1]}function lt(e){return e.children.length?lt(S(e.children)):e}function ut(e,t){e.value?typeof S(e.value)==`string`?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function dt(e,t){let n=``;Qe.test(t)?(n=t,!/\w+:/.test(n)&&!n.startsWith(`//`)&&(n=`http://${n}`)):$e.test(t)&&(n=`mailto:${t}`);let r=e.attributes?.find(e=>e.name===`href`);r?r.value||(r.value=[n]):(e.attributes||(e.attributes=[]),e.attributes.push({name:`href`,value:[n],valueType:`doubleQuote`}))}function ft(e,t){for(let n of e)n.repeat||(n.repeat=Object.assign({},t));return e}function pt(e,t){try{return et(ee(typeof e==`string`?Ae(e):e,t),t)}catch(t){throw t instanceof l&&typeof e==`string`&&(t.message+=`\n${e}\n${`-`.repeat(t.pos)}^`),t}}var C;(function(e){e.Sibling=`+`,e.Important=`!`,e.ArgumentDelimiter=`,`,e.ValueDelimiter=`-`,e.PropertyDelimiter=`:`})(C||(C={}));var w;(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`})(w||(w={}));function mt(e,t){let n=0,r,i=new c(e),a=[];for(;!i.eof();){if(r=ht(i,n===0&&!t),!r)throw i.error(`Unexpected character`);if(r.type===`Bracket`&&(!n&&r.open&&Lt(i,a),n+=r.open?1:-1,n<0))throw i.error(`Unexpected bracket`,r.start);a.push(r),It(r)&&(r=Dt(i))&&a.push(r)}return a}function ht(e,t){return gt(e)||Tt(e)||bt(e)||St(e)||xt(e)||Et(e)||Dt(e)||wt(e)||vt(e,t)}function gt(n){let r=n.pos;if(n.eat(w.Dollar)&&n.eat(w.CurlyBracketOpen)){n.start=n.pos;let i,a=``;if(n.eatWhile(e)?(i=Number(n.current()),a=n.eat(w.Colon)?_t(n):``):t(n.peek())&&(a=_t(n)),n.eat(w.CurlyBracketClose))return{type:`Field`,index:i,name:a,start:r,end:n.pos};throw n.error(`Expecting }`)}n.pos=r}function _t(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(w.CurlyBracketOpen))t.push(e.pos);else if(e.eat(w.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 vt(e,t){let n=e.pos;if(e.eat(kt)?e.eatWhile(n?Mt:Pt):e.eat(r)?e.eatWhile(t?Pt:Mt):(e.eat(w.Dot),e.eatWhile(Pt)),n!==e.pos)return e.start=n,yt(e,e.start=n)}function yt(e,t=e.start,n=e.pos){return{type:`Literal`,value:e.substring(t,n),start:t,end:n}}function bt(e){let t=e.pos;if(Ot(e)){e.start=t;let n=e.current();return e.start=e.pos,e.eat(w.Percent)||e.eatWhile(r),{type:`NumberValue`,value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}function xt(e){let t=e.peek(),n=e.pos,r=!1;if(s(t)){for(e.pos++;!e.eof();)if(e.eat(t)){r=!0;break}else e.pos++;return e.start=n,{type:`StringValue`,value:e.substring(n+1,e.pos-(r?1:0)),quote:t===w.SingleQuote?`single`:`double`,start:n,end:e.pos}}}function St(e){let t=e.pos;if(e.eat(w.Hash)){let n=e.pos,r=``,i=``;if(e.eatWhile(jt)?(r=e.substring(n,e.pos),i=Ct(e)):e.eat(w.Transparent)?(r=`0`,i=Ct(e)||`0`):i=Ct(e),r||i||e.eof()){let{r:n,g:a,b:o,a:s}=Ft(r,i);return{type:`ColorValue`,r:n,g:a,b:o,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}else return yt(e,t)}e.pos=t}function Ct(t){let n=t.pos;return t.eat(w.Dot)?(t.start=n,t.eatWhile(e)?t.current():`1`):``}function wt(e){let t=e.pos;if(e.eatWhile(o))return{type:`WhiteSpace`,start:t,end:e.pos}}function Tt(e){let t=e.pos;if(e.eat(w.Dash)&&e.eat(w.Dash))return e.start=t,e.eatWhile(Mt),{type:`CustomProperty`,value:e.current(),start:t,end:e.pos};e.pos=t}function Et(e){let t=e.peek();if(Nt(t))return{type:`Bracket`,open:t===w.RoundBracketOpen,start:e.pos++,end:e.pos}}function Dt(e){let t=At(e.peek());if(t)return{type:`Operator`,operator:t,start:e.pos++,end:e.pos}}function Ot(t){let n=t.pos;t.eat(w.Dash);let r=t.pos,i=t.eatWhile(e),a=t.pos;if(t.eat(w.Dot)){let n=t.eatWhile(e);!i&&!n&&(t.pos=a)}return t.pos===r&&(t.pos=n),t.pos!==n}function kt(e){return e===w.At||e===w.Dollar}function At(e){return e===w.Sibling&&C.Sibling||e===w.Excl&&C.Important||e===w.Comma&&C.ArgumentDelimiter||e===w.Colon&&C.PropertyDelimiter||e===w.Dash&&C.ValueDelimiter||void 0}function jt(n){return e(n)||t(n,65,70)}function Mt(e){return n(e)||e===w.Dash}function Nt(e){return e===w.RoundBracketOpen||e===w.RoundBracketClose}function Pt(e){return r(e)||e===w.Percent||e===w.Slash}function Ft(e,t){let n=`0`,r=`0`,i=`0`,a=Number(t!=null&&t!==``?t:1);if(e===`t`)a=0;else switch(e.length){case 0:break;case 1:n=r=i=e+e;break;case 2:n=r=i=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],i=e[2]+e[2];break;default:e+=e,n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(i,16),a}}function It(e){return e.type===`ColorValue`||e.type===`NumberValue`&&!e.unit}function Lt(e,t){let n=0,r=0;for(;t.length;){let e=Rt(t);if(e.type===`Literal`||e.type===`NumberValue`)n=e.start,r||(r=e.end),t.pop();else break}n!==r&&t.push(yt(e,n,r))}function Rt(e){return e[e.length-1]}function zt(e){return{tokens:e,start:0,pos:0,size:e.length}}function T(e){return e.tokens[e.pos]}function E(e){return e.pos<e.size}function D(e,t){return t(T(e))?(e.pos++,!0):!1}function Bt(e,t,n=T(e)){n&&n.start!=null&&(t+=` at ${n.start}`);let r=Error(t);return r.pos=n&&n.start,r}function Vt(e,t={}){let n=zt(e),r=[],i;for(;E(n);)if(i=Ht(n,t))r.push(i);else if(!D(n,Xt))throw Bt(n,`Unexpected token`);return r}function Ht(e,t){let n,r=!1,i,a=[],o=T(e),s=!!t.value;for(!s&&Gt(o)&&!nn(e)&&(e.pos++,n=o.value,D(e,tn)),s&&D(e,Yt);E(e);)if(D(e,$t))r=!0;else if(i=Ut(e,s))a.push(i);else if(!D(e,Qt))break;if(n||a.length||r)return{name:n,value:a,important:r}}function Ut(e,t){let n=[],r,i;for(;E(e);)if(r=T(e),en(r))e.pos++,Gt(r)&&(i=Wt(e))?n.push({type:`FunctionCall`,name:r.value,arguments:i}):n.push(r);else if(tn(r)||t&&Yt(r))e.pos++;else break;return n.length?{type:`CSSValue`,value:n}:void 0}function Wt(e){let t=e.pos;if(D(e,qt)){let n=[],r;for(;E(e)&&!D(e,Jt);)if(r=Ut(e,!0))n.push(r);else if(!D(e,Yt)&&!D(e,Zt))throw Bt(e,`Unexpected token`);return e.start=t,n}}function Gt(e){return e&&e.type===`Literal`}function Kt(e,t){return e&&e.type===`Bracket`&&(t==null||e.open===t)}function qt(e){return Kt(e,!0)}function Jt(e){return Kt(e,!1)}function Yt(e){return e&&e.type===`WhiteSpace`}function O(e,t){return e&&e.type===`Operator`&&(!t||e.operator===t)}function Xt(e){return O(e,C.Sibling)}function Zt(e){return O(e,C.ArgumentDelimiter)}function Qt(e){return Zt(e)}function $t(e){return O(e,C.Important)}function en(e){return e.type===`StringValue`||e.type===`ColorValue`||e.type===`NumberValue`||e.type===`Literal`||e.type===`Field`||e.type===`CustomProperty`}function tn(e){return O(e,C.PropertyDelimiter)||O(e,C.ValueDelimiter)}function nn(e){let t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Gt(t)&&n.type===`Bracket`}function rn(e,t){try{return Vt(typeof e==`string`?mt(e,t&&t.value):e,t)}catch(t){throw t instanceof l&&typeof e==`string`&&(t.message+=`\n${e}\n${`-`.repeat(t.pos)}^`),t}}function an(e,t){if(!e.attributes)return;let n=[],r={};for(let i of e.attributes)if(i.name){let e=i.name;if(e in r){let n=r[e];e===`class`?n.value=on(n.value,i.value,` `):sn(n,i,t)}else n.push(r[e]=Object.assign({},i))}else n.push(i);e.attributes=n}function on(e,t,n){if(e&&t){e.length&&n&&cn(e,n);for(let n of t)cn(e,n);return e}let r=e||t;return r&&r.slice()}function sn(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),e.valueType!==`expression`&&(e.valueType=t.valueType),e}function cn(e,t){let n=e.length-1;typeof e[n]==`string`&&typeof t==`string`?e[n]+=t:e.push(t)}function ln(e,t,n){let r=[e],i=e=>{t(e,r,n),r.push(e),e.children.forEach(i),r.pop()};e.children.forEach(i)}function un(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];if(t(r))return r;let i=un(r,t);if(i)return i}}function dn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function fn(e){return e.type===`AbbreviationNode`}function pn(e,t){let n=[],r=t.options[`output.reverseAttributes`],{warn:i}=t,a=e=>{let o=e.name&&t.snippets[e.name];if(!o||n.includes(o))return null;let s;try{s=pt(o,t)}catch(e){return i?.(`Unable to parse "${o}" snippet`,e),null}n.push(o),mn(s,a),n.pop();for(let t of s.children){if(e.attributes){let n=t.attributes||[],i=e.attributes||[];t.attributes=r?i.concat(n):n.concat(i)}hn(e,t)}return s};return mn(e,a),e}function mn(e,t,n){let r=[];for(let n of e.children){let e=t(n);if(e){r=r.concat(e.children);let i=dn(e);fn(i.node)&&(i.node.children=i.node.children.concat(mn(n,t)))}else r.push(n),n.children=mn(n,t)}return e.children=r}function hn(e,t){e.selfClosing&&(t.selfClosing=!0),e.value!=null&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}var gn=`{`,_n=`}`;function vn(e,t=0){return{options:e,value:``,level:t,offset:0,line:0,column:0}}function k(e,t){let n=e.options[`output.text`];Dn(e,n(t,e.offset,e.line,e.column))}function A(e,t){let n=En(t);for(let t=0,r=n.length-1;t<=r;t++)k(e,n[t]),t!==r&&j(e,!0)}function j(e,t){let n=e.options[`output.baseIndent`],r=e.options[`output.newline`];k(e,r+n),e.line++,e.column=n.length,t&&yn(e,t===!0?e.level:t)}function yn(e,t=e.level){let n=e.options[`output.indent`];k(e,n.repeat(Math.max(t,0)))}function bn(e,t,n){let r=e.options[`output.field`];Dn(e,r(t,n,e.offset,e.line,e.column))}function xn(e,t){return On(e,t.options[`output.tagCase`])}function Sn(e,t){return On(e,t.options[`output.attributeCase`])}function Cn(e,t,n){return e.valueType===`expression`?n?gn:_n:t.options[`output.attributeQuotes`]===`single`?`'`:`"`}function wn(e,t){return e.boolean||t.options[`output.booleanAttributes`].includes((e.name||``).toLowerCase())}function Tn(e){switch(e.options[`output.selfClosingStyle`]){case`xhtml`:return` /`;case`xml`:return`/`;default:return``}}function M(e,t){return typeof e==`string`?t.options.inlineElements.includes(e.toLowerCase()):e.name?M(e.name,t):!!(e.value&&!e.attributes)}function En(e){return e.split(/\r\n|\r|\n/g)}function Dn(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function On(e,t){return t?t===`upper`?e.toUpperCase():e.toLowerCase():e}var kn={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 An(e,t,n){!e.name&&e.attributes&&jn(e,t,n)}function jn(e,t,n){let r=Nn(t),i=n.context?n.context.name:``,a=Mn(r?r.name:i);e.name=kn[a]||(M(a,n)?`span`:`div`)}function Mn(e){return(e||``).toLowerCase()}function Nn(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(fn(n))return n}}var Pn={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`.split(`.`)},Fn={ru:{common:[`далеко-далеко`,`за`,`словесными`,`горами`,`в стране`,`гласных`,`и согласных`,`живут`,`рыбные`,`тексты`],words:`вдали.от всех.они.буквенных.домах.на берегу.семантика.большого.языкового.океана.маленький.ручеек.даль.журчит.по всей.обеспечивает.ее.всеми.необходимыми.правилами.эта.парадигматическая.страна.которой.жаренные.предложения.залетают.прямо.рот.даже.всемогущая.пунктуация.не.имеет.власти.над.рыбными.текстами.ведущими.безорфографичный.образ.жизни.однажды.одна.маленькая.строчка.рыбного.текста.имени.lorem.ipsum.решила.выйти.большой.мир.грамматики.великий.оксмокс.предупреждал.о.злых.запятых.диких.знаках.вопроса.коварных.точках.запятой.но.текст.дал.сбить.себя.толку.он.собрал.семь.своих.заглавных.букв.подпоясал.инициал.за.пояс.пустился.дорогу.взобравшись.первую.вершину.курсивных.гор.бросил.последний.взгляд.назад.силуэт.своего.родного.города.буквоград.заголовок.деревни.алфавит.подзаголовок.своего.переулка.грустный.реторический.вопрос.скатился.его.щеке.продолжил.свой.путь.дороге.встретил.рукопись.она.предупредила.моей.все.переписывается.несколько.раз.единственное.что.меня.осталось.это.приставка.возвращайся.ты.лучше.свою.безопасную.страну.послушавшись.рукописи.наш.продолжил.свой.путь.вскоре.ему.повстречался.коварный.составитель.рекламных.текстов.напоивший.языком.речью.заманивший.свое.агентство.которое.использовало.снова.снова.своих.проектах.если.переписали.то.живет.там.до.сих.пор`.split(`.`)},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`.split(`.`)},latin:Pn},In=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Ln(e,t,n){let r;if(e.name&&(r=e.name.match(In))){let i=Fn[r[1]]||Fn.latin,a=r[2]?Math.max(1,Number(r[2])):30,o=N(a,r[3]?Math.max(a,Number(r[3].slice(1))):a),s=e.repeat||Wn(t);e.name=e.attributes=void 0,e.value=[Un(i,o,!s||s.value===0)],e.repeat&&t.length>1&&jn(e,t,n)}}function N(e,t){return Math.floor(Math.random()*(t-e)+e)}function Rn(e,t){let n=e.length,r=Math.min(n,t),i=[];for(;i.length<r;){let t=e[N(0,n)];i.includes(t)||i.push(t)}return i}function zn(e){return e[N(0,e.length-1)]}function Bn(e,t){return e.length&&(e=[Vn(e[0])].concat(e.slice(1))),e.join(` `)+(t||zn(`?!...`))}function Vn(e){return e[0].toUpperCase()+e.slice(1)}function Hn(e){if(e.length<2)return e;e=e.slice();let t=e.length,n=/,$/,r=0;r=t>3&&t<=6?N(0,1):t>6&&t<=12?N(0,2):N(1,4);for(let i=0,a;i<r;i++)a=N(0,t-2),n.test(e[a])||(e[a]+=`,`);return e}function Un(e,t,n){let r=[],i=0,a;for(n&&e.common&&(a=e.common.slice(0,t),i+=a.length,r.push(Bn(Hn(a),`.`)));i<t;)a=Rn(e.words,Math.min(N(2,30),t-i)),i+=a.length,r.push(Bn(Hn(a)));return r.join(` `)}function Wn(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.type===`AbbreviationNode`&&n.repeat)return n.repeat}}function Gn(e){qn(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(Kn))}function Kn(e){return e.name!==`select`}function qn(e){return e===`xsl:variable`||e===`xsl:with-param`}var Jn=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Yn=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Xn=e=>/^[a-z]\-/i.test(e),Zn=e=>/^[a-z]/i.test(e);function Qn(e,t,n){$n(e),er(e,t,n)}function $n(e){let t=tr(e),n=[];for(let e of t.classNames){let 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(lr),t.block=ar(t.classNames),sr(e,t.classNames.join(` `)))}function er(e,t,n){let r=tr(e),i=[],{options:a}=n,o=t.slice(1).concat(e);for(let e of r.classNames){let t=``,r,s=e;(r=e.match(Jn))&&(t=ir(o,r[1].length,n.context)+a[`bem.element`]+r[2],i.push(t),e=e.slice(r[0].length)),(r=e.match(Yn))&&(t||(t=ir(o,r[1].length),i.push(t)),i.push(`${t}${a[`bem.modifier`]}${r[2]}`),e=e.slice(r[0].length)),e===s&&i.push(s)}let s=i.filter(lr);s.length&&sr(e,s.join(` `))}function tr(e){if(!e._bem){let t=``;if(e.attributes){for(let n of e.attributes)if(n.name===`class`&&n.value){t=cr(n.value);break}}e._bem=rr(t)}return e._bem}function nr(e){return e._bem||(e._bem=rr(e.attributes&&e.attributes.class||``)),e._bem}function rr(e){let t=e?e.split(/\s+/):[];return{classNames:t,block:ar(t)}}function ir(e,t=0,n){let r=Math.max(e.length-t,0);do{let t=e[r];if(t){let e=tr(t);if(e.block)return e.block}}while(0<r--);if(n){let e=nr(n);if(e.block)return e.block}return``}function ar(e){return or(e,Xn)||or(e,Zn)||void 0}function or(e,t){for(let n of e){if(Jn.test(n)||Yn.test(n))break;if(t(n))return n}}function sr(e,t){for(let n of e.attributes)if(n.name===`class`){n.value=[t];break}}function cr(e){let t=``;for(let n of e)t+=typeof n==`string`?n:n.name;return t}function lr(e,t,n){return!!e&&n.indexOf(e)===t}function ur(e){if(e.name===`label`){let t=un(e,e=>e.name===`input`||e.name===`textarea`);t&&(e.attributes&&(e.attributes=e.attributes.filter(e=>!(e.name===`for`&&dr(e)))),t.attributes&&(t.attributes=t.attributes.filter(e=>!(e.name===`id`&&dr(e)))))}}function dr(e){if(!e.value)return!0;if(e.value.length===1){let t=e.value[0];if(t&&typeof t!=`string`&&!t.name)return!0}return!1}function fr(e,t,n){let r=(e,r,a)=>{let{parent:o,current:s}=n;n.parent=s,n.current=e,t(e,r,a,n,i),n.current=s,n.parent=o},i=(e,t,i)=>{n.ancestors.push(n.current),r(e,t,i),n.ancestors.pop()};e.children.forEach(r)}function pr(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:vn(e.options)}}var mr=[{type:`Field`,index:0,name:``}];function P(e){return e?!e.name&&!e.attributes:!1}function hr(e,t){return e?M(e,t):!1}function gr(e){return typeof e==`object`&&e.type===`Field`}function F(e,t){let{out:n}=t,r=-1;for(let i of e)typeof i==`string`?A(n,i):(bn(n,t.field+i.index,i.name),i.index>r&&(r=i.index));r!==-1&&(t.field+=r+1)}function _r(e){let t=[],n=[];for(let r of e)if(typeof r==`string`){let 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}function vr(e){return!e.implied||e.valueType!==`raw`||!!e.value&&e.value.length>0}var I;(function(e){e[e.Start=91]=`Start`,e[e.End=93]=`End`,e[e.Underscore=95]=`Underscore`,e[e.Dash=45]=`Dash`})(I||(I={}));function yr(e){let t=[],n={pos:0,text:e},r,i=n.pos,a=n.pos;for(;n.pos<n.text.length;)a=n.pos,(r=br(n))?(i!==n.pos&&t.push(e.slice(i,a)),t.push(r),i=n.pos):n.pos++;return i!==n.pos&&t.push(e.slice(i)),t}function br(e){if(xr(e)===I.Start){let t=++e.pos,n=t,r=t,i=1;for(;e.pos<e.text.length;){let a=xr(e);if(Sr(a)){for(n=e.pos;Cr(xr(e));)e.pos++;r=e.pos}else{if(a===I.Start)i++;else if(a===I.End&&--i===0)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function xr(e,t=e.pos){return e.text.charCodeAt(t)}function Sr(e){return e>=65&&e<=90}function Cr(e){return Sr(e)||e>47&&e<58||e===I.Underscore||e===I.Dash}function wr(e){let{options:t}=e;return{enabled:t[`comment.enabled`],trigger:t[`comment.trigger`],before:t[`comment.before`]?yr(t[`comment.before`]):void 0,after:t[`comment.after`]?yr(t[`comment.after`]):void 0}}function Tr(e,t){Dr(e,t)&&t.comment.before&&Or(e,t.comment.before,t)}function Er(e,t){Dr(e,t)&&t.comment.after&&Or(e,t.comment.after,t)}function Dr(e,t){let{comment:n}=t;if(!n.enabled||!n.trigger||!e.name||!e.attributes)return!1;for(let t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function Or(e,t,n){let r={},{out:i}=n;for(let t of e.attributes)t.name&&t.value&&(r[t.name.toUpperCase()]=t.value);for(let e of t)typeof e==`string`?A(i,e):r[e.name]&&(A(i,e.before),F(r[e.name],n),A(i,e.after))}var kr=/^<([\w\-:]+)[\s>]/,Ar=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`.split(`.`));function jr(e,t){let n=pr(t);return n.comment=wr(t),fr(e,Mr,n),n.out.value}function Mr(e,t,n,r,i){let{out:a,config:o}=r,s=Fr(e,t,n,r),c=Ir(r);if(a.level+=c,s&&j(a,!0),e.name){let t=xn(e.name,o);if(Tr(e,r),A(a,`<${t}`),e.attributes)for(let t of e.attributes)vr(t)&&Nr(t,r);if(e.selfClosing&&!e.children.length&&!e.value)A(a,`${Tn(o)}>`);else{if(A(a,`>`),!Pr(e,r,i)){if(e.value){let t=e.value.some(Lr)||Rr(e.value,o);t&&j(r.out,++a.level),F(e.value,r),t&&j(r.out,--a.level)}if(e.children.forEach(i),!e.value&&!e.children.length){let t=o.options[`output.formatLeafNode`]||o.options[`output.formatForce`].includes(e.name);t&&j(r.out,++a.level),F(mr,r),t&&j(r.out,--a.level)}}A(a,`</${t}>`),Er(e,r)}}else !Pr(e,r,i)&&e.value&&(F(e.value,r),e.children.forEach(i));if(s&&t===n.length-1&&r.parent){let e=P(r.parent)?0:1;j(a,a.level-e)}a.level-=c}function Nr(e,t){let{out:n,config:r}=t;if(e.name){let i=r.options[`markup.attributes`],a=r.options[`markup.valuePrefix`],{name:o,value:s}=e,c=Cn(e,r,!0),l=Cn(e,r);i&&(o=zr(o,i,e.multiple)||o),o=Sn(o,r),r.options[`jsx.enabled`]&&e.multiple&&(c=gn,l=_n);let u=a?zr(e.name,a,e.multiple):null;if(u&&s?.length===1&&typeof s[0]==`string`){let e=s[0];s=[Br(e)?`${u}.${e}`:`${u}['${e}']`],r.options[`jsx.enabled`]&&(c=gn,l=_n)}wn(e,r)&&!s?r.options[`output.compactBoolean`]||(s=[o]):s||(s=mr),A(n,` `+o),s?(A(n,`=`+c),F(s,t),A(n,l)):r.options[`output.selfClosingStyle`]!==`html`&&A(n,`=`+c+l)}}function Pr(e,t,n){if(e.value&&e.children.length){let r=e.value.findIndex(gr);if(r!==-1){F(e.value.slice(0,r),t);let i=t.out.line,a=r+1;return e.children.forEach(n),t.out.line!==i&&typeof e.value[a]==`string`&&A(t.out,e.value[a++].trimLeft()),F(e.value.slice(a),t),!0}}return!1}function Fr(e,t,n,r){let{config:i,parent:a}=r;if(!i.options[`output.format`]||t===0&&!a||a&&P(a)&&n.length===1)return!1;if(P(e)&&(P(n[t-1])||P(n[t+1])||e.value.some(Lr)||e.value.some(gr)&&e.children.length))return!0;if(M(e,i)){if(t===0){for(let e=0;e<n.length;e++)if(!M(n[e],i))return!0}else if(!M(n[t-1],i))return!0;if(i.options[`output.inlineBreak`]){let e=1,r=t,a=t;for(;hr(n[--r],i);)e++;for(;hr(n[++a],i);)e++;if(e>=i.options[`output.inlineBreak`])return!0}for(let t=0,n=e.children.length;t<n;t++)if(Fr(e.children[t],t,e.children,r))return!0;return!1}return!0}function Ir(e){let{config:t,parent:n}=e;return!n||P(n)||n.name&&t.options[`output.formatSkip`].includes(n.name)?0:1}function Lr(e){return typeof e==`string`&&/\r|\n/.test(e)}function Rr(e,t){if(e.length&&typeof e[0]==`string`){let n=kr.exec(e[0]);if(n?.length&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}function zr(e,t,n){return n&&t[`${e}*`]||t[e]}function Br(e){return!Ar.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function Vr(e,t,n){let r=pr(t);return r.options=n||{},fr(e,Hr,r),r.out.value}function Hr(e,t,n,r,i){let{out:a,options:o}=r,{primary:s,secondary:c}=Ur(e),l=r.parent?1:0;a.level+=l,Yr(e,t,n,r)&&j(a,!0),e.name&&(e.name!==`div`||!s.length)&&A(a,(o.beforeName||``)+e.name+(o.afterName||``)),Wr(s,r),Gr(c.filter(vr),r),e.selfClosing&&!e.value&&!e.children.length?r.options.selfClose&&A(a,r.options.selfClose):(Kr(e,r),e.children.forEach(i)),a.level-=l}function Ur(e){let t=[],n=[];if(e.attributes)for(let r of e.attributes)qr(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}function Wr(e,t){for(let n of e)n.value&&(n.name===`class`?(A(t.out,`.`),F(n.value.map(e=>typeof e==`string`?e.replace(/\s+/g,`.`):e),t)):(A(t.out,`#`),F(n.value,t)))}function Gr(e,t){if(e.length){let{out:n,config:r,options:i}=t;i.beforeAttribute&&A(n,i.beforeAttribute);for(let a=0;a<e.length;a++){let o=e[a];A(n,Sn(o.name||``,r)),wn(o,r)&&!o.value?!r.options[`output.compactBoolean`]&&i.booleanValue&&A(n,`=`+i.booleanValue):(A(n,`=`+Cn(o,r,!0)),F(o.value||mr,t),A(n,Cn(o,r))),a!==e.length-1&&i.glueAttribute&&A(n,i.glueAttribute)}i.afterAttribute&&A(n,i.afterAttribute)}}function Kr(e,t){if(!e.value&&e.children.length)return;let n=e.value||mr,r=_r(n),{out:i,options:a}=t;if(r.length===1)(e.name||e.attributes)&&k(i,` `),F(n,t);else{let e=[],n=0;for(let t of r){let r=Jr(t);e.push(r),r>n&&(n=r)}i.level++;for(let o=0;o<r.length;o++)j(i,!0),a.beforeTextLine&&k(i,a.beforeTextLine),F(r[o],t),a.afterTextLine&&(k(i,` `.repeat(n-e[o])),k(i,a.afterTextLine));i.level--}}function qr(e){return e.name===`class`||e.name===`id`}function Jr(e){let t=0;for(let n of e)t+=typeof n==`string`?n.length:n.name.length;return t}function Yr(e,t,n,r){return!r.parent&&t===0?!1:!P(e)}function Xr(e,t){return Vr(e,t,{beforeName:`%`,beforeAttribute:`(`,afterAttribute:`)`,glueAttribute:` `,afterTextLine:` |`,booleanValue:`true`,selfClose:`/`})}function Zr(e,t){return Vr(e,t,{beforeAttribute:` `,glueAttribute:` `,beforeTextLine:`| `,selfClose:`/`})}function Qr(e,t){return Vr(e,t,{beforeAttribute:`(`,afterAttribute:`)`,glueAttribute:`, `,beforeTextLine:`| `,selfClose:t.options[`output.selfClosingStyle`]===`xml`?`/`:``})}var $r={html:jr,haml:Xr,slim:Zr,pug:Qr};function ei(e,t){let n;if(typeof e==`string`){let r=Object.assign({},t);t.options[`jsx.enabled`]&&(r.jsx=!0),t.options[`markup.href`]&&(r.href=!0),e=pt(e,r),n=t.text,t.text=void 0}return e=pn(e,t),ln(e,ni,t),t.text=n??t.text,e}function ti(e,t){return($r[t.syntax]||jr)(e,t)}function ni(e,t,n){An(e,t,n),an(e,n),Ln(e,t,n),n.syntax===`xsl`&&Gn(e),n.type===`markup`&&ur(e),n.options[`bem.enabled`]&&Qn(e,t,n)}var L;(function(e){e.Raw=`Raw`,e.Property=`Property`})(L||(L={}));var ri=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,ii={value:!0};function ai(e,t){let n=t.match(ri);if(n){let t={},r=n[2]?n[2].split(`|`).map(ci):[];for(let e of r)for(let n of e)ui(n,t);return{type:L.Property,key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:L.Raw,key:e,value:t}}function oi(e){e=e.slice().sort(si);let t=[],n;for(let r of e.filter(li)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&r.property.charCodeAt(n.property.length)===45){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}function si(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function ci(e){return rn(e.trim(),ii)[0].value}function li(e){return e.type===L.Property}function ui(e,t){for(let n of e.value)if(n.type===`Literal`)t[n.value]=n;else if(n.type===`FunctionCall`)t[n.name]=n;else if(n.type===`Field`){let e=n.name.trim();e&&(t[e]={type:`Literal`,value:e})}}function di(e,t,n=!1){if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;let r=e.length,i=t.length;if(!n&&r>i)return 0;let a=Math.min(r,i),o=Math.max(r,i),s=1,c=1,l=o,u=0,d=0,f=!1,p=!1;for(;s<r;){for(u=e.charCodeAt(s),f=!1,p=!1;c<i;){if(d=t.charCodeAt(c),u===d){f=!0,l+=o-(p?s:c);break}p=d===45,c++}if(!f){if(!n)return 0;break}s++}let m=s/o,h=o-a,g=fi(o)-fi(h);return l*m/g}function fi(e){return e*(e+1)/2}function pi(e,t){return!e.r&&!e.g&&!e.b&&!e.a?`transparent`:e.a===1?mi(e,t):hi(e)}function mi(e,t){let n=t&&_i(e.r)&&_i(e.g)&&_i(e.b)?vi:yi;return`#`+n(e.r)+n(e.g)+n(e.b)}function hi(e){let t=[e.r,e.g,e.b];return e.a!==1&&t.push(gi(e.a,8)),`${t.length===3?`rgb`:`rgba`}(${t.join(`, `)})`}function gi(e,t=4){return e.toFixed(t).replace(/\.?0+$/,``)}function _i(e){return!(e%17)}function vi(e){return(e>>4).toString(16)}function yi(e){return bi(e.toString(16),2)}function bi(e,t){for(;e.length<t;)e=`0`+e;return e}var R={Section:`@@section`,Property:`@@property`,Value:`@@value`};function xi(e,t){let n=vn(t.options),r=t.options[`output.format`];t.context?.name===R.Section&&(e=e.filter(e=>e.snippet));for(let i=0;i<e.length;i++)r&&i!==0&&j(n,!0),Si(e[i],n,t);return n.value}function Si(e,t,n){let r=n.options[`stylesheet.json`];if(e.name)A(t,(r?Oi(e.name):e.name)+n.options[`stylesheet.between`]),e.value.length?Ci(e,t,n):bn(t,0,``),r?k(t,`,`):(wi(e,t,!0),k(t,n.options[`stylesheet.after`]));else{for(let r of e.value)for(let e of r.value)Ei(e,t,n);wi(e,t,e.value.length>0)}}function Ci(e,t,n){let r=n.options[`stylesheet.json`],i=r?Di(e):null;if(i&&(!i.unit||i.unit===`px`))k(t,String(i.value));else{let i=ki(n);r&&k(t,i);for(let r=0;r<e.value.length;r++)r!==0&&k(t,`, `),Ti(e.value[r],t,n);r&&k(t,i)}}function wi(e,t,n){e.important&&(n&&k(t,` `),k(t,`!important`))}function Ti(e,t,n){for(let r=0,i=-1;r<e.value.length;r++){let a=e.value[r];r!==0&&(a.type!==`Field`||a.start!==i)&&k(t,` `),Ei(a,t,n),i=a.end}}function Ei(e,t,n){if(e.type===`ColorValue`)k(t,pi(e,n.options[`stylesheet.shortHex`]));else if(e.type===`Literal`||e.type===`CustomProperty`)A(t,e.value);else if(e.type===`NumberValue`)A(t,gi(e.value,4)+e.unit);else if(e.type===`StringValue`){let n=e.quote===`double`?`"`:`'`;A(t,n+e.value+n)}else if(e.type===`Field`)bn(t,e.index,e.name);else if(e.type===`FunctionCall`){k(t,e.name+`(`);for(let r=0;r<e.arguments.length;r++)r&&k(t,`, `),Ti(e.arguments[r],t,n);k(t,`)`)}}function Di(e){if(e.value.length===1){let t=e.value[0];if(t.value.length===1&&t.value[0].type===`NumberValue`)return t.value[0]}}function Oi(e){return e.replace(/\-(\w)/g,(e,t)=>t.toUpperCase())}function ki(e){return e.options[`stylesheet.jsonDoubleQuotes`]?`"`:`'`}var Ai=`lg`;function ji(e,t){let n=t.cache?.stylesheetSnippets||Mi(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=n),typeof e==`string`&&(e=rn(e,{value:Gi(t)}));let i=Ki(n,t);for(let n of e){let e=Ni(n,i,t);e&&r.push(e)}return r}function Mi(e){let t=[];for(let n of Object.keys(e))t.push(ai(n,e[n]));return oi(t)}function Ni(e,t,n){if(!Pi(e,n)){let r=n.options[`stylesheet.fuzzySearchMinScore`];if(Gi(n)){let i=n.context.name,a=t.find(e=>e.type===L.Property&&e.property===i);Ii(e,n,a,r),e.snippet=a}else if(e.name){let i=z(e.name,t,r,!0);if(e.snippet=i,i){let t=i.type===L.Property?Fi(e,i,n):Li(e,i);if(t)e=t;else if(n.options[`stylesheet.strictMatch`])return null}}}return(e.name||n.context)&&Vi(e,n),e}function Pi(e,t){let n=null,r=e.value.length===1?e.value[0]:null;if(r&&r.value.length===1){let e=r.value[0];e.type===`FunctionCall`&&e.name===Ai&&(n=e)}return n||e.name===Ai?(n=n?Object.assign(Object.assign({},n),{name:`linear-gradient`}):{type:`FunctionCall`,name:`linear-gradient`,arguments:[Hi(V(0,``))]},t.context||(e.name=`background-image`),e.value=[Hi(n)],!0):!1}function Fi(e,t,n){let r=e.name,i=zi(r,t.key);if(i){if(e.value.length)return null;let r=Bi(i,n,t);if(!r)return null;e.value.push(Hi(r))}if(e.name=t.property,e.value.length)Ii(e,n,t);else if(t.value.length){let r=t.value[0];e.value=t.value.length===1||r.some(Ui)?r:r.map(e=>Wi(e,n))}return e}function Ii(e,t,n,r){for(let i of e.value){let e=[];for(let a of i.value)if(a.type===`Literal`)e.push(Bi(a.value,t,n,r)||a);else if(a.type===`FunctionCall`){let i=Bi(a.name,t,n,r);i&&i.type===`FunctionCall`?e.push(Object.assign(Object.assign({},i),{arguments:a.arguments.concat(i.arguments.slice(a.arguments.length))})):e.push(a)}else e.push(a);i.value=e}}function Li(e,t){let n=0,r,i=/\$\{(\d+)(:[^}]+)?\}/g,a=e.value[0],o=[];for(;r=i.exec(t.value);)n!==r.index&&o.push(B(t.value.slice(n,r.index))),n=r.index+r[0].length,a&&a.value.length?o.push(a.value.shift()):o.push(V(Number(r[1]),r[2]?r[2].slice(1):``));let s=t.value.slice(n);return s&&o.push(B(s)),e.name=void 0,e.value=[Hi(...o)],e}function z(e,t,n=0,r=!1){let i=null,a=0;for(let n of t){let t=di(e,Ri(n),r);if(t===1)return n;t&&t>=a&&(a=t,i=n)}return a>=n?i:null}function Ri(e){return typeof e==`string`?e:e.key}function zi(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),r===-1)return e.slice(n);r++}return``}function Bi(e,t,n,r){let i;if(n){if(i=z(e,Object.keys(n.keywords),r))return n.keywords[i];for(let t of n.dependencies)if(i=z(e,Object.keys(t.keywords),r))return t.keywords[i]}return(i=z(e,t.options[`stylesheet.keywords`],r))?B(i):null}function Vi(e,t){let n=t.options[`stylesheet.unitAliases`],r=t.options[`stylesheet.unitless`];for(let i of e.value)for(let a of i.value)a.type===`NumberValue`&&(a.unit?a.unit=n[a.unit]||a.unit:a.value!==0&&!r.includes(e.name)&&(a.unit=a.rawValue.includes(`.`)?t.options[`stylesheet.floatUnit`]:t.options[`stylesheet.intUnit`]))}function Hi(...e){return{type:`CSSValue`,value:e}}function B(e){return{type:`Literal`,value:e}}function V(e,t){return{type:`Field`,index:e,name:t}}function Ui(e){for(let t of e.value)if(t.type===`Field`||t.type===`FunctionCall`&&t.arguments.some(Ui))return!0;return!1}function Wi(e,t,n={index:1}){let r=[];for(let i of e.value)switch(i.type){case`ColorValue`:r.push(V(n.index++,pi(i,t.options[`stylesheet.shortHex`])));break;case`Literal`:r.push(V(n.index++,i.value));break;case`NumberValue`:r.push(V(n.index++,`${i.value}${i.unit}`));break;case`StringValue`:let e=i.quote===`single`?`'`:`"`;r.push(V(n.index++,e+i.value+e));break;case`FunctionCall`:r.push(V(n.index++,i.name),B(`(`));for(let e=0,a=i.arguments.length;e<a;e++)r=r.concat(Wi(i.arguments[e],t,n).value),e!==a-1&&r.push(B(`, `));r.push(B(`)`));break;default:r.push(i)}return Object.assign(Object.assign({},e),{value:r})}function Gi(e){return e.context?e.context.name===R.Value||!e.context.name.startsWith(`@@`):!1}function Ki(e,t){if(t.context){if(t.context.name===R.Section)return e.filter(e=>e.type===L.Raw);if(t.context.name===R.Property)return e.filter(e=>e.type===L.Property)}return e}var qi={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:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},Ji={"@f":`@font-face {
|
||
font-family: \${1};
|
||
src: url(\${2});
|
||
}`,"@ff":`@font-face {
|
||
font-family: '\${1:FontName}';
|
||
src: url('\${2:FileName}.eot');
|
||
src: url('\${2:FileName}.eot?#iefix') format('embedded-opentype'),
|
||
url('\${2:FileName}.woff') format('woff'),
|
||
url('\${2:FileName}.ttf') format('truetype'),
|
||
url('\${2:FileName}.svg#\${1:FontName}') format('svg');
|
||
font-style: \${3:normal};
|
||
font-weight: \${4:normal};
|
||
}`,"@i|@import":"@import url(${0});","@kf":`@keyframes \${1:identifier} {
|
||
\${2}
|
||
}`,"@m|@media":`@media \${1:screen} {
|
||
\${0}
|
||
}`,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`},Yi={"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]>{
|
||
|}`,"!!!":`{<?xml version="1.0" encoding="UTF-8"?>}`},Xi={"!!!":`{doctype html}`},Zi={lang:`en`,locale:`en-US`,charset:`UTF-8`,indentation:` `,newline:`
|
||
`},Qi={markup:`html`,stylesheet:`css`},$i={type:`markup`,syntax:`html`,variables:Zi,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`.split(`.`),"output.indent":` `,"output.baseIndent":``,"output.newline":`
|
||
`,"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":`
|
||
<!-- /[#ID][.CLASS] -->`,"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}},ea={markup:{snippets:ta(qi)},xhtml:{options:{"output.selfClosingStyle":`xhtml`}},xml:{options:{"output.selfClosingStyle":`xml`}},xsl:{snippets:ta(Yi),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:ta(Xi)},stylesheet:{snippets:ta(Ji)},sass:{options:{"stylesheet.after":``}},stylus:{options:{"stylesheet.between":` `,"stylesheet.after":``}}};function ta(e){let t={};return Object.keys(e).forEach(n=>{for(let r of n.split(`|`))t[r]=e[n]}),t}function na(e={},t={}){let n=e.type||`markup`,r=e.syntax||Qi[n];return Object.assign(Object.assign(Object.assign({},$i),e),{type:n,syntax:r,variables:ra(n,r,`variables`,e,t),snippets:ra(n,r,`snippets`,e,t),options:ra(n,r,`options`,e,t)})}function ra(e,t,n,r,i={}){let a=ea[e],o=i[e],s=ea[t],c=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$i[n]),a&&a[n]),s&&s[n]),o&&o[n]),c&&c[n]),r[n])}function ia(e,t=0){return{text:e,start:t,pos:e.length}}function H(e){return e.pos===e.start}function U(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function aa(e){if(!H(e))return e.text.charCodeAt(--e.pos)}function W(e,t){if(H(e))return!1;let n=typeof t==`function`?t(U(e)):t===U(e);return n&&e.pos--,!!n}function oa(e,t){let n=e.pos;for(;W(e,t););return e.pos<n}var G;(function(e){e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Escape=92]=`Escape`})(G||(G={}));function sa(e){return e===G.SingleQuote||e===G.DoubleQuote}function ca(e){let t=e.pos,n=aa(e);if(sa(n)){for(;!H(e);)if(aa(e)===n&&U(e)!==G.Escape)return!0}return e.pos=t,!1}var K;(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`})(K||(K={}));var la={[K.SquareL]:K.SquareR,[K.RoundL]:K.RoundR,[K.CurlyL]:K.CurlyR},q;(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`})(q||(q={}));function ua(e){let t=e.pos;if(!W(e,q.AngleRight))return!1;let n=!1;for(W(e,q.Slash);!H(e);){if(oa(e,_a),J(e)){if(W(e,q.Slash)){n=W(e,q.AngleLeft);break}else if(W(e,q.AngleLeft)){n=!0;break}else if(W(e,_a))continue;else if(W(e,q.Equals)){if(J(e))continue;break}else if(pa(e)){n=!0;break}break}if(!da(e))break}return e.pos=t,n}function da(e){return fa(e)||pa(e)}function fa(e){let t=e.pos;return ca(e)&&W(e,q.Equals)&&J(e)?!0:(e.pos=t,!1)}function pa(e){let t=e.pos,n=[];for(;!H(e);){let t=U(e);if(ba(t))n.push(t);else if(ya(t)){if(n.pop()!==la[t])break}else if(!va(t))break;e.pos--}return t!==e.pos&&W(e,q.Equals)&&J(e)?!0:(e.pos=t,!1)}function J(e){return oa(e,ma)}function ma(e){return e===q.Colon||e===q.Dash||ha(e)||ga(e)}function ha(e){return e&=-33,e>=65&&e<=90}function ga(e){return e>47&&e<58}function _a(e){return e===q.Space||e===q.Tab}function va(e){return!isNaN(e)&&e!==q.Equals&&!_a(e)&&!sa(e)}function ya(e){return e===K.CurlyL||e===K.RoundL||e===K.SquareL}function ba(e){return e===K.CurlyR||e===K.RoundR||e===K.SquareR}var xa=e=>e.charCodeAt(0),Sa=`#.*:$-_!@%^+>/`.split(``).map(xa),Ca={type:`markup`,lookAhead:!0,prefix:``};function wa(e,t=e.length,n={}){let r=Object.assign(Object.assign({},Ca),n);t=Math.min(e.length,Math.max(0,t??e.length)),r.lookAhead&&(t=Ta(e,t,r));let i,a=Ea(e,t,r.prefix||``);if(a===-1)return;let o=ia(e,a);o.pos=t;let s=[];for(;!H(o);){if(i=U(o),s.includes(K.CurlyR)){if(i===K.CurlyR){s.push(i),o.pos--;continue}if(i!==K.CurlyL){o.pos--;continue}}if(ja(i,r.type))s.push(i);else if(Aa(i,r.type)){if(s.pop()!==la[i])break}else if(s.includes(K.SquareR)||s.includes(K.CurlyR)){o.pos--;continue}else if(ua(o)||!ka(i))break;o.pos--}if(!s.length&&o.pos!==t){let r=e.slice(o.pos,t).replace(/^[*+>^]+/,``);return{abbreviation:r,location:t-r.length,start:n.prefix?a-n.prefix.length:t-r.length,end:t}}}function Ta(e,t,n){for(sa(e.charCodeAt(t))&&t++;ja(e.charCodeAt(t),n.type);)t++;return t}function Ea(e,t,n){if(!n)return 0;let r=ia(e),i=n.split(``).map(xa);r.pos=t;let a;for(;!H(r);)if(!(Da(r,K.SquareR,K.SquareL)||Da(r,K.CurlyR,K.CurlyL))){if(a=r.pos,Oa(r,i))return a;r.pos--}return-1}function Da(e,t,n){let r=e.pos;if(W(e,t))for(;!H(e);){if(W(e,n))return!0;e.pos--}return e.pos=r,!1}function Oa(e,t){let n=e.pos,r=!1;for(let n=t.length-1;n>=0&&!H(e)&&W(e,t[n]);n--)r=n===0;return r||(e.pos=n),r}function ka(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Sa.includes(e)}function Aa(e,t){return e===K.RoundL||t===`markup`&&(e===K.SquareL||e===K.CurlyL)}function ja(e,t){return e===K.RoundR||t===`markup`&&(e===K.SquareR||e===K.CurlyR)}function Y(e,t){let n=na(t);return n.type===`stylesheet`?Na(e,n):Ma(e,n)}function Ma(e,t){return ti(ei(e,t),t)}function Na(e,t){return xi(ji(e,t),t)}var Pa={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`.split(`.`)},Fa={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`.split(`.`)},Ia=new Map,La,X=new Map,Ra=/^[a-z,A-Z,!,(,[,#,\.\{]/,za=/^[a-z,A-Z,!,(,[,#,\.]/,Ba=/^-?[a-z,A-Z,!,@,#]/,Va=/[a-z,A-Z\.]/,Z=[...Fa.tags,`lorem`],Ha=`bem`,Ua=`|`,Wa=`t`,Ga=`c`,Ka=3;function qa(e,t,n,r,i){let a=$(r);if(!a){if(!Ia.has(r)){let e=Object.assign(Object.assign({},ro(r)),Q[r]);Ia.set(r,Object.keys(e))}La=Ia.get(r)??[]}let o=ao(e,t,n,{lookAhead:!a,type:to(r)});if(!o)return;let{abbreviationRange:s,abbreviation:c,currentLineTillPosition:l,filter:u}=o;if(Ya(l)===c&&l.endsWith(`<${c}`)&&!a)return;let d=co(r,u),f=``,p,m=[];if(((t,n)=>{if(oo(t,c)){try{f=Y(n,d),a&&`!important`.startsWith(n)&&(f=`!important`)}catch{}!f||so(t,n,f,d.options)||(p={kind:e.languages.CompletionItemKind.Property,label:c+(u?`|`+u.replace(`,`,`|`):``),documentation:Xa(f),detail:`Emmet abbreviation`,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s,insertText:Qa($a(f))},m=[p])}})(r,c),a){if(c.length>4&&Pa.properties.some(e=>e.startsWith(c)))return{suggestions:[],incomplete:!0};if(p&&f.length&&(p.range=s,p.insertText=Qa($a(f)),p.documentation=Xa(f),p.label=Za(f),p.filterText=c,m=Ja(e,(X.has(r)?X.get(r):X.get(`css`))??[],c,c,s,d,`Emmet Custom Snippet`,!1),!m.find(e=>e.insertText===p?.insertText))){let e=RegExp(`.*`+c.split(``).map(e=>e===`$`||e===`+`?`\\`+e:e).join(`.*`)+`.*`,`i`);(/\d/.test(c)||e.test(p.label))&&m.push(p)}}else{let t=c,n=c.match(/(>|\+)([\w:-]+)$/);if(n&&n.length===3&&(t=n[2]),r!==`xml`){let n=Ja(e,Z,t,c,s,d,`Emmet Abbreviation`);m=m.concat(n)}{let n=Ja(e,La.filter(e=>!Z.includes(e)),t,c,s,d,`Emmet Abbreviation`);p&&n.length>0&&t!==c&&(p.sortText=`0`+p.label,n.forEach(e=>{e.filterText=c,e.sortText=`9`+c})),m=m.concat(n)}r===`html`&&m.length>=2&&c.includes(`:`)&&p?.insertText===`<${c}>\${0}</${c}>`&&(m=m.filter(e=>e.label!==c))}return m.length?{suggestions:m,incomplete:!0}:void 0}function Ja(e,t,n,r,i,a,o,s=!0){if(!n||!t)return[];let c=[];return t.forEach(t=>{if(!t.startsWith(n.toLowerCase())||s&&t===n.toLowerCase())return;let l=r+t.substr(n.length),u;try{u=Y(l,a)}catch{}if(!u)return;let d={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:Xa(u),detail:o,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:i,insertText:Qa($a(u))};c.push(d)}),c}function Ya(e){if(e){let t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}function Xa(e){return e.replace(/([^\\])\$\{\d+\}/g,`$1|`).replace(/\$\{\d+:([^\}]+)\}/g,`$1`)}function Za(e){return e.replace(/([^\\])\$\{\d+\}/g,`$1`).replace(/\$\{\d+:([^\}]+)\}/g,`$1`)}function Qa(e){return e&&e.replace(/([^\\])(\$)([^\{])/g,`$1\\$2$3`)}function $a(e){if(!e||!e.trim())return e;let t=-1,n=[],r=!1,i=!1,a=0,o=e.length;try{for(;a<o&&!r;){if(e[a++]!=`$`||e[a++]!=`{`)continue;let s=-1,c=-1;for(;a<o&&/\d/.test(e[a]);)s=s<0?a:s,c=a+1,a++;if(s===-1||c===-1||a>=o||e[a]!=`}`&&e[a]!=`:`)continue;let l=e.substring(s,c);if(r=l===`0`,r)break;let u=!1;if(e[a++]==`:`)for(;a<o;){if(e[a]==`}`){u=!0;break}a++}Number(l)>Number(t)?(t=Number(l),n=[{numberStart:s,numberEnd:c}],i=!u):Number(l)===t&&n.push({numberStart:s,numberEnd:c})}}catch{}if(i&&!r)for(let t=0;t<n.length;t++){let r=n[t].numberStart,i=n[t].numberEnd;e=e.substr(0,r)+`0`+e.substr(i)}return e}var Q={},eo=(e,t)=>`\${${e}${t?`:`+t:``}}`;function $(e){return e===`css`}function to(e){return $(e)?`stylesheet`:`markup`}function no(e){return $(e)?`css`:`html`}function ro(e){let t=na({type:to(e),syntax:e});return e===`xml`?{}:t.snippets}function io(e,t){let n;for(let r=0;r<Ka;r++)if(e.endsWith(`${Ua}${Ha}`,t))t-=4,n=n?Ha+`,`+n:Ha;else if(e.endsWith(`${Ua}${Ga}`,t))t-=2,n=n?Ga+`,`+n:Ga;else if(e.endsWith(`${Ua}${Wa}`,t))t-=2,n=n?Wa+`,`+n:Wa;else break;return{pos:t,filter:n}}function ao(e,t,n,r){let i=t.getLineContent(n.lineNumber),a=i.substr(0,n.column-1),{pos:o,filter:s}=io(a,n.column-1),c=s?s.length+1:0,l=wa(i,o,r);if(l)return{abbreviationRange:new e.Range(n.lineNumber,l.location+1,n.lineNumber,l.location+l.abbreviation.length+c+1),abbreviation:l.abbreviation,currentLineTillPosition:a,filter:s}}function oo(e,t){if(!t)return!1;if($(e)){if(t.includes(`#`)){if(t.startsWith(`#`))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Z.includes(t.substring(0,t.indexOf(`#`))))return!1}return Ba.test(t)}return t.startsWith(`!`)?!/[^!]/.test(t):(/\(/.test(t)||/\)/.test(t))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)&&!/\(.*\)[>\+\*\^]/.test(t)&&!/\[[^\[\]\(\)]+=".*"\]/.test(t)&&!/[>\+\*\^]\(.*\)/.test(t)?!1:e===`jsx`?za.test(t)&&Va.test(t):Ra.test(t)&&Va.test(t)}function so(e,t,n,r){if($(e)&&r){let e=r[`stylesheet.between`]??`: `,i=r[`stylesheet.after`]??`;`,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}${i}`||n.replace(/\s/g,``)===t.replace(/\s/g,``)+i}if(e===`xml`&&Z.some(e=>e.startsWith(t.toLowerCase())))return!0;if(Z.includes(t.toLowerCase())||La.includes(t)||/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(`:`)||t===`.`)return!1;let i=t.match(/^([a-z,A-Z,\d]*)\.$/);return i?!(i[1]&&Fa.tags.includes(i[1])):e===`jsx`&&/^([A-Z][A-Za-z0-9]*)+$/.test(t)?!1:n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}function co(e,t){let n=t?t.split(`,`).map(e=>e.trim()):[],r=n.includes(`bem`),i=n.includes(`c`),a={"output.formatSkip":[`html`],"output.formatForce":[`body`],"output.field":eo,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":[`id`,`class`],"comment.before":``,"comment.after":`
|
||
<!-- /[#ID][.CLASS] -->`,"bem.enabled":r,"bem.element":`__`,"bem.modifier":`_`,"jsx.enabled":e===`jsx`,"stylesheet.shortHex":!0,"stylesheet.between":e===`stylus`?` `:`: `,"stylesheet.after":e===`sass`||e===`stylus`?``:`;`,"stylesheet.intUnit":`px`,"stylesheet.floatUnit":`em`,"stylesheet.unitAliases":{e:`em`,p:`%`,x:`ex`,r:`rem`},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":`html`},o=to(e),s=no(e);return{type:o,options:a,variables:{},snippets:o===`stylesheet`?Q[e]??Q[s]:Q[e],syntax:e,text:void 0,maxRepeat:1e3}}function lo(e,t){let n=no(e);if(n!==e&&Q[n]&&(t=Object.assign({},Q[n],t)),$(e)){let n=X.get(e),r=Object.assign([],n,Object.keys(t));X.set(e,r)}let r=Q[e];Q[e]=Object.assign({},r,t)}function uo(e,t){let n,r=na(t);return n=t.type===`stylesheet`?typeof e==`string`?Y(e,r):xi(e,r):typeof e==`string`?Y(e,r):ti(e,r),Qa($a(n))}function fo(e,t,n,r){let i=e[t],a=i.type;return n===`html`?a===``&&(t===0||e[t-1].type===`delimiter.html`)||e[0].type===`text.html.basic`:n===`css`?a===``?!0:a===`tag.`+r:n===`jsx`?i.language===`mdx`&&a===``?!0:!!t&&[`identifier.js`,`type.identifier.js`,`identifier.ts`,`type.identifier.ts`].includes(a):!1}var po=new WeakMap;function mo(e){if(po.has(e))return po.get(e);let t=e._tokenization||e.tokenization._tokenization,n=t?._tokenizationStateStore;if(!t||!n){let r=e.tokenization,i=r.grammarTokens||r._tokens||r.tokens?._value;i?(t=i._defaultBackgroundTokenizer,n=t._tokenizerWithStateStore):(Object.values(r).some(e=>t=e.tokenizeViewport&&e),Object.values(t).some(e=>n=e.tokenizationSupport&&e))}let r=n.tokenizationSupport||t._tokenizationSupport,i={_stateStore:n,_support:r};return po.set(e,i),i}function ho(e,t,n,r){let i=e.tokenization;if(typeof i?.getLineTokens!=`function`)return console.warn(`emmet-monaco-es: Standard tokenizer may not be supported in this version of monaco-editor. Falling back to Monarch tokenizer for emmet abbreviation detection.`),go(e,t,n,r);let{column:a,lineNumber:o}=t,s=i.getLineTokens(o),c=-1;for(let e=s.getCount()-1;e>=0;e--)if(a-1>s.getStartOffset(e)){c=e;break}return!(c<0||s.getStandardTokenType(c)!==0)}function go(e,t,n,r){let{column:i,lineNumber:a}=t,{_stateStore:o,_support:s}=mo(e),c=o.getBeginState?.call(o,a-1).clone()||o.getStartState(a).clone(),l=s.tokenize(e.getLineContent(a),!0,c,0).tokens,u=!1;for(let e=l.length-1;e>=0;e--)if(i-1>l[e].offset){u=fo(l,e,n,r);break}return u}function _o(e,t,n,r,i){return i?.tokenizer===`standard`?ho(e,t,n,r):go(e,t,n,r)}var vo={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`],javascript:[`!`,`.`,`}`,`*`,`$`,`]`,`/`,`>`,`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],typescript:[`!`,`.`,`}`,`*`,`$`,`]`,`/`,`>`,`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`]},yo={handlebars:`html`,php:`html`,twig:`html`};function bo(e,t,n,r){if(!e)return console.error(`emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter`),()=>{};let i=t.map(t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:vo[yo[t]||t],provideCompletionItems:(i,a)=>_o(i,a,n,t,r)?qa(e,i,a,n):void 0}));return()=>{i.forEach(e=>e.dispose())}}function xo(e=window.monaco,t=[`html`],n){return bo(e,t,`html`,n)}function So(e=window.monaco,t=[`css`],n){return bo(e,t,`css`,n)}function Co(e=window.monaco,t=[`javascript`],n){return bo(e,t,`jsx`,n)}export{So as emmetCSS,xo as emmetHTML,Co as emmetJSX,uo as expandAbbreviation,lo as registerCustomSnippets};
|
||
//# sourceMappingURL=emmet-monaco.esm-CLIFOTYd.js.map
|