@a9n-shoji/rvw 0.15.2 → 0.16.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,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{p as r,r as i,t as a}from"./MermaidSurface-758VCVqh.js";import{A as o,C as s,D as c,E as l,F as u,L as d,O as f,P as p,S as m,T as h,V as g,a as _,c as v,d as y,f as b,ft as x,h as S,ht as C,i as ee,j as w,k as T,l as E,mt as te,pt as ne,r as re,s as ie,u as ae,w as D,x as O,y as oe}from"./WalkthroughPanel-CAD2bvGC.js";import{a as se,c as ce,l as k,r as le,s as ue,u as A}from"./FileIcon-BrcB1D_2.js";import{t as de}from"./lib-BzGM1lY9.js";import{a as j,c as fe,i as pe,n as me,o as he,r as M,s as ge,t as N}from"./MarkdownTable-NA28H-AY.js";var P=t(A(),1),_e=null,ve=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return _e===null?n={prev:e,next:t,cursor:this.cursor}:(n=_e,_e=_e.cursor,n.prev=e,n.next=t,n.cursor=this.cursor),this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_e,_e=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;i!==null;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){let t=e.createItem(r);n===null?this.head=t:n.next=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),i=t,a;for(;r.next!==null;)a=r.next,r.next=a.next,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),i=t,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),this.head===null?this.tail=e:(this.head.prev=e,e.next=this.head),this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(t!==null){if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw Error(`before doesn't belong to list`);this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t}else this.updateCursors(this.tail,e,null,e),this.tail===null?this.head=e:(this.tail.next=e,e.prev=this.tail),this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw Error(`item doesn't belong to list`);this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw Error(`item doesn't belong to list`);this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return this.tail===null?null:this.remove(this.tail)}unshift(t){this.prepend(e.createItem(t))}shift(){return this.head===null?null:this.remove(this.head)}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null||(t==null?(this.updateCursors(this.tail,e.tail,null,e.head),this.tail===null?this.head=e.head:(this.tail.next=e.head,e.head.prev=this.tail),this.tail=e.tail):(this.updateCursors(t.prev,e.tail,t,e.head),t.prev===null?this.head=e.head:(t.prev.next=e.head,e.head.prev=t.prev),t.prev=e.tail,e.tail.next=t),e.head=null,e.tail=null),this}replace(e,t){`head`in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};function ye(e,t){let n=Object.create(SyntaxError.prototype),r=Error();return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||``).replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}var be=100,xe=60,Se=` `;function Ce({source:e,line:t,column:n,baseLine:r,baseColumn:i},a){function o(e,t){return s.slice(e,t).map((t,n)=>String(e+n+1).padStart(u)+` |`+t).join(`
1
+ import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{p as r,r as i,t as a}from"./MermaidSurface-758VCVqh.js";import{A as o,C as s,D as c,E as l,F as u,L as d,O as f,P as p,S as m,T as h,V as g,a as _,c as v,d as y,f as b,ft as x,h as S,ht as C,i as ee,j as w,k as T,l as E,mt as te,pt as ne,r as re,s as ie,u as ae,w as D,x as O,y as oe}from"./WalkthroughPanel-DDZ63kfX.js";import{a as se,c as ce,l as k,r as le,s as ue,u as A}from"./FileIcon-BrcB1D_2.js";import{t as de}from"./lib-BzGM1lY9.js";import{a as j,c as fe,i as pe,n as me,o as he,r as M,s as ge,t as N}from"./MarkdownTable-NA28H-AY.js";var P=t(A(),1),_e=null,ve=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return _e===null?n={prev:e,next:t,cursor:this.cursor}:(n=_e,_e=_e.cursor,n.prev=e,n.next=t,n.cursor=this.cursor),this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_e,_e=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;i!==null;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){let t=e.createItem(r);n===null?this.head=t:n.next=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),i=t,a;for(;r.next!==null;)a=r.next,r.next=a.next,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),i=t,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,i=e.call(n,i,a.data,a,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){let r=new e;for(let e=this.head;e!==null;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),this.head===null?this.tail=e:(this.head.prev=e,e.next=this.head),this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(t!==null){if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw Error(`before doesn't belong to list`);this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t}else this.updateCursors(this.tail,e,null,e),this.tail===null?this.head=e:(this.tail.next=e,e.prev=this.tail),this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw Error(`item doesn't belong to list`);this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw Error(`item doesn't belong to list`);this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return this.tail===null?null:this.remove(this.tail)}unshift(t){this.prepend(e.createItem(t))}shift(){return this.head===null?null:this.remove(this.head)}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null||(t==null?(this.updateCursors(this.tail,e.tail,null,e.head),this.tail===null?this.head=e.head:(this.tail.next=e.head,e.head.prev=this.tail),this.tail=e.tail):(this.updateCursors(t.prev,e.tail,t,e.head),t.prev===null?this.head=e.head:(t.prev.next=e.head,e.head.prev=t.prev),t.prev=e.tail,e.tail.next=t),e.head=null,e.tail=null),this}replace(e,t){`head`in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};function ye(e,t){let n=Object.create(SyntaxError.prototype),r=Error();return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||``).replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}var be=100,xe=60,Se=` `;function Ce({source:e,line:t,column:n,baseLine:r,baseColumn:i},a){function o(e,t){return s.slice(e,t).map((t,n)=>String(e+n+1).padStart(u)+` |`+t).join(`
2
2
  `)}let s=(`
3
3
  `.repeat(Math.max(r-1,0))+` `.repeat(Math.max(i-1,0))+e).split(/\r\n?|\n|\f/),c=Math.max(1,t-a)-1,l=Math.min(t+a,s.length+1),u=Math.max(4,String(l).length)+1,d=0;n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>be&&(d=n-xe+3,n=58);for(let e=c;e<=l;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,Se),s[e]=(d>0&&s[e].length>d?`…`:``)+s[e].substr(d,98)+(s[e].length>d+be-1?`…`:``));return[o(c,t),Array(n+u+2).join(`-`)+`^`,o(t,l)].filter(Boolean).join(`
4
4
  `).replace(/^(\s+\d+\s+\|\n)+/,``).replace(/\n(\s+\d+\s+\|)+$/,``)}function F(e,t,n,r,i,a=1,o=1){return Object.assign(ye(`SyntaxError`,e),{source:t,offset:n,line:r,column:i,sourceFragment(e){return Ce({source:t,line:r,column:i,baseLine:a,baseColumn:o},isNaN(e)?0:e)},get formattedMessage(){return`Parse error: ${e}\n`+Ce({source:t,line:r,column:i,baseLine:a,baseColumn:o},2)}})}var we=0;function I(e){return e>=48&&e<=57}function L(e){return I(e)||e>=65&&e<=70||e>=97&&e<=102}function Te(e){return e>=65&&e<=90}function Ee(e){return e>=97&&e<=122}function De(e){return Te(e)||Ee(e)}function R(e){return e>=128}function z(e){return De(e)||R(e)||e===95}function Oe(e){return z(e)||I(e)||e===45}function ke(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ae(e){return e===10||e===13||e===12}function B(e){return Ae(e)||e===32||e===9}function V(e,t){return!(e!==92||Ae(t)||t===we)}function je(e,t,n){return e===45?z(t)||t===45||V(t,n):z(e)?!0:e===92&&V(e,t)}function Me(e,t,n){return e===43||e===45?I(t)?2:t===46&&I(n)?3:0:e===46?I(t)?2:0:+!!I(e)}function Ne(e){return+(e===65279||e===65534)}var Pe=Array(128);for(let e=0;e<Pe.length;e++)Pe[e]=B(e)&&130||I(e)&&131||z(e)&&132||ke(e)&&133||e||128;function Fe(e){return e<128?Pe[e]:132}function Ie(e,t){return t<e.length?e.charCodeAt(t):0}function Le(e,t,n){return n===13&&Ie(e,t+1)===10?2:1}function Re(e,t,n){let r=e.charCodeAt(t);return Te(r)&&(r|=32),r===n}function ze(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){let n=r.charCodeAt(i-t),a=e.charCodeAt(i);if(Te(a)&&(a|=32),a!==n)return!1}return!0}function Be(e,t){for(;t>=0&&B(e.charCodeAt(t));t--);return t+1}function Ve(e,t){for(;t<e.length&&B(e.charCodeAt(t));t++);return t}function He(e,t){for(;t<e.length&&I(e.charCodeAt(t));t++);return t}function Ue(e,t){if(t+=2,L(Ie(e,t-1))){for(let n=Math.min(e.length,t+5);t<n&&L(Ie(e,t));t++);let n=Ie(e,t);B(n)&&(t+=Le(e,t,n))}return t}function We(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Oe(n)){if(V(n,Ie(e,t+1)))t=Ue(e,t)-1;else break}}return t}function Ge(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),I(n)&&(t=He(e,t+1),n=e.charCodeAt(t)),n===46&&I(e.charCodeAt(t+1))&&(t+=2,t=He(e,t)),Re(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),I(n)&&(t=He(e,t+1+r+1))}return t}function Ke(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}V(n,Ie(e,t+1))&&(t=Ue(e,t))}return t}function qe(e){if(e.length===1&&!L(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Je=`EOF-token.ident-token.function-token.at-keyword-token.hash-token.string-token.bad-string-token.url-token.bad-url-token.delim-token.number-token.percentage-token.dimension-token.whitespace-token.CDO-token.CDC-token.colon-token.semicolon-token.comma-token.[-token.]-token.(-token.)-token.{-token.}-token.comment-token`.split(`.`),Ye=16384;function Xe(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,Ye)):e}var Ze=10,Qe=12,$e=13;function et(e){let t=e.source,n=t.length,r=t.length>0?Ne(t.charCodeAt(0)):0,i=Xe(e.lines,n),a=Xe(e.columns,n),o=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){let r=t.charCodeAt(e);i[e]=o,a[e]=s++,(r===Ze||r===$e||r===Qe)&&(r===$e&&e+1<n&&t.charCodeAt(e+1)===Ze&&(e++,i[e]=o,a[e]=s),o++,s=1)}i[n]=o,a[n]=s,e.lines=i,e.columns=a,e.computed=!0}var tt=class{constructor(e,t,n,r){this.setSource(e,t,n,r),this.lines=null,this.columns=null}setSource(e=``,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||et(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||et(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},H=16777215,U=24,nt=1,rt=2,W=new Uint8Array(32);W[2]=22,W[21]=22,W[19]=20,W[23]=24;var G=new Uint8Array(32);G[2]=nt,G[21]=nt,G[19]=nt,G[23]=nt,G[22]=rt,G[20]=rt,G[24]=rt;function it(e,t,n){return e<t?t:e>n?n:e}var at=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e=``,t=()=>{}){e=String(e||``);let n=e.length,r=Xe(this.offsetAndType,e.length+1),i=Xe(this.balance,e.length+1),a=0,o=-1,s=0,c=e.length;this.offsetAndType=null,this.balance=null,i.fill(0),t(e,(e,t,n)=>{let l=a++;if(r[l]=e<<U|n,o===-1&&(o=t),i[l]=c,e===s){let e=i[c];i[c]=l,c=e,s=W[r[e]>>U]}else this.isBlockOpenerTokenType(e)&&(c=l,s=W[e])}),r[a]=0<<U|n,i[a]=a;for(let e=0;e<a;e++){let t=i[e];if(t<=e){let n=i[t];n!==e&&(i[e]=n)}else t>a&&(i[e]=a)}this.source=e,this.firstCharOffset=o===-1?0:o,this.tokenCount=a,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>U:0}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){let n=this.offsetAndType[t]>>U;if(n!==13&&n!==25&&e--===0)return n}return 0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&H:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){let n=this.offsetAndType[t]>>U;if(n!==13&&n!==25&&e--===0)return t-this.tokenIndex}return 0}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount&&ze(this.source,this.offsetAndType[e-1]&H,this.offsetAndType[e]&H,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&H:this.offsetAndType[this.tokenCount]&H:this.firstCharOffset}getTokenEnd(e){return e===this.tokenIndex?this.tokenEnd:this.offsetAndType[it(e,0,this.tokenCount)]&H}getTokenType(e){return e===this.tokenIndex?this.tokenType:this.offsetAndType[it(e,0,this.tokenCount)]>>U}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBlockOpenerTokenType(e){return G[e]===nt}isBlockCloserTokenType(e){return G[e]===rt}getBlockTokenPairIndex(e){let t=this.getTokenType(e);if(G[t]===1){let n=this.balance[e],r=this.getTokenType(n);return W[t]===r?n:-1}if(G[t]===2){let n=this.balance[e];return W[this.getTokenType(n)]===t?n:-1}return-1}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&H,t=this.offsetAndType[t],this.tokenType=t>>U,this.tokenEnd=t&H):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>U,this.tokenEnd=e&H):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r=0,i=0;loop:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break loop;switch(i=n>0?this.offsetAndType[n-1]&H:this.firstCharOffset,t(this.source.charCodeAt(i))){case 1:break loop;case 2:n++;break loop;default:this.isBlockOpenerTokenType(this.offsetAndType[n]>>U)&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,i=this.offsetAndType[t],a=i&H,o=i>>U;n=a,e(o,r,a,t)}}dump(){let e=Array(this.tokenCount);return this.forEachToken((t,n,r,i)=>{e[i]={idx:i,type:Je[t],chunk:this.source.substring(n,r),balance:this.balance[i]}}),e}};function ot(e,t){function n(t){return t<s?e.charCodeAt(t):0}function r(){l=Ge(e,l),je(n(l),n(l+1),n(l+2))?(u=12,l=We(e,l)):n(l)===37?(u=11,l++):u=10}function i(){let t=l;if(l=We(e,l),ze(e,t,l,`url`)&&n(l)===40){if(l=Ve(e,l+1),n(l)===34||n(l)===39){u=2,l=t+4;return}o()}else n(l)===40?(u=2,l++):u=1}function a(t){for(t||=n(l++),u=5;l<e.length;l++){let r=e.charCodeAt(l);switch(Fe(r)){case t:l++;return;case 130:if(Ae(r)){l+=Le(e,l,r),u=6;return}break;case 92:if(l===e.length-1)break;let i=n(l+1);Ae(i)?l+=Le(e,l+1,i):V(r,i)&&(l=Ue(e,l)-1)}}}function o(){for(u=7,l=Ve(e,l);l<e.length;l++){let t=e.charCodeAt(l);switch(Fe(t)){case 41:l++;return;case 130:if(l=Ve(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Ke(e,l),u=8;return;case 34:case 39:case 40:case 133:l=Ke(e,l),u=8;return;case 92:if(V(t,n(l+1))){l=Ue(e,l)-1;break}l=Ke(e,l),u=8;return}}}e=String(e||``);let s=e.length,c=Ne(n(0)),l=c,u;for(;l<s;){let o=e.charCodeAt(l);switch(Fe(o)){case 130:u=13,l=Ve(e,l+1);break;case 34:a();break;case 35:Oe(n(l+1))||V(n(l+1),n(l+2))?(u=4,l=We(e,l+1)):(u=9,l++);break;case 39:a();break;case 40:u=21,l++;break;case 41:u=22,l++;break;case 43:Me(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 44:u=18,l++;break;case 45:Me(o,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(u=15,l+=3):je(o,n(l+1),n(l+2))?i():(u=9,l++);break;case 46:Me(o,n(l+1),n(l+2))?r():(u=9,l++);break;case 47:n(l+1)===42?(u=25,l=e.indexOf(`*/`,l+2),l=l===-1?e.length:l+2):(u=9,l++);break;case 58:u=16,l++;break;case 59:u=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(u=14,l+=4):(u=9,l++);break;case 64:je(n(l+1),n(l+2),n(l+3))?(u=3,l=We(e,l+1)):(u=9,l++);break;case 91:u=19,l++;break;case 92:V(o,n(l+1))?i():(u=9,l++);break;case 93:u=20,l++;break;case 123:u=23,l++;break;case 125:u=24,l++;break;case 131:r();break;case 132:i();break;default:u=9,l++}t(u,c,c=l)}}function st(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&=(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}var ct=()=>{},lt=33,ut=35,dt=59,ft=123,pt=0,mt={createList(){return[]},createSingleNodeList(e){return[e]},getFirstListNode(e){return e&&e[0]||null},getLastListNode(e){return e&&e.length>0?e[e.length-1]:null}},ht={createList(){return new ve},createSingleNodeList(e){return new ve().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function gt(e){return function(){return this[e]()}}function _t(e){let t=Object.create(null);for(let n of Object.keys(e)){let r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function vt(e){let t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:_t(e.atrule),pseudo:_t(e.pseudo),node:_t(e.node)};for(let[n,r]of Object.entries(e.parseContext))switch(typeof r){case`function`:t.context[n]=r;break;case`string`:t.context[n]=gt(r)}return{config:t,...t,...t.node}}function yt(e){let t=``,n=`<unknown>`,r=!1,i=ct,a=!1,o=new tt,s=Object.assign(new at,vt(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:st,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(e){return+(e===ft)},consumeUntilLeftCurlyBracketOrSemicolon(e){return+(e===ft||e===dt)},consumeUntilExclamationMarkOrSemicolon(e){return+(e===lt||e===dt)},consumeUntilSemicolonIncluded(e){return e===dt?2:0},createList:ct,createSingleNodeList:ct,getFirstListNode:ct,getLastListNode:ct,parseWithFallback(e,t){let n=this.tokenIndex;try{return e.call(this)}catch(e){if(a)throw e;this.skip(n-this.tokenIndex);let r=t.call(this);return a=!0,i(e,r),a=!1,r}},lookupNonWSType(e){let t;do if(t=this.lookupType(e++),t!==13&&t!==25)return t;while(t!==pt);return pt},charCodeAt(e){return e>=0&&e<t.length?t.charCodeAt(e):0},substring(e,n){return t.substring(e,n)},substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar(e,n){return Re(t,e,n)},cmpStr(e,n,r){return ze(t,e,n,r)},consume(e){let t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){let e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){let n=t.substring(this.tokenStart,Ge(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Je[e].slice(0,-6).replace(/-/g,` `).replace(/^./,e=>e.toUpperCase()),n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:this.tokenType===2||this.tokenType===7?(r=this.tokenEnd-1,n=`Identifier is expected but function found`):n=`Identifier is expected`;break;case 4:this.isDelim(ut)&&(this.next(),r++,n=`Name is expected`);break;case 11:this.tokenType===10&&(r=this.tokenEnd,n=`Percent sign is expected`)}this.error(n,r)}this.next()},eatIdent(e){(this.tokenType!==1||this.lookupValue(0,e)===!1)&&this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation(e,t){return r?o.getLocationRange(e,t,n):null},getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return o.getLocationRange(t===null?this.tokenStart:t.loc.start.offset-o.startOffset,r===null?this.tokenStart:r.loc.end.offset-o.startOffset,n)}return null},error(e,n){let r=n!==void 0&&n<t.length?o.getLocation(n):this.eof?o.getLocation(Be(t,t.length-1)):o.getLocation(this.tokenStart);throw new F(e||`Unexpected input`,t,r.offset,r.line,r.column,o.startLine,o.startColumn)}}),c=()=>({filename:n,source:t,tokenCount:s.tokenCount,getTokenType:e=>s.getTokenType(e),getTokenTypeName:e=>Je[s.getTokenType(e)],getTokenStart:e=>s.getTokenStart(e),getTokenEnd:e=>s.getTokenEnd(e),getTokenValue:e=>s.source.substring(s.getTokenStart(e),s.getTokenEnd(e)),substring:(e,t)=>s.source.substring(e,t),balance:s.balance.subarray(0,s.tokenCount+1),isBlockOpenerTokenType:s.isBlockOpenerTokenType,isBlockCloserTokenType:s.isBlockCloserTokenType,getBlockTokenPairIndex:e=>s.getBlockTokenPairIndex(e),getLocation:e=>o.getLocation(e,n),getRangeLocation:(e,t)=>o.getLocationRange(e,t,n)});return Object.assign(function(e,l){t=e,l||={},s.setSource(t,ot),o.setSource(t,l.offset,l.line,l.column),n=l.filename||`<unknown>`,r=!!l.positions,i=typeof l.onParseError==`function`?l.onParseError:ct,a=!1,s.parseAtrulePrelude=`parseAtrulePrelude`in l?!!l.parseAtrulePrelude:!0,s.parseRulePrelude=`parseRulePrelude`in l?!!l.parseRulePrelude:!0,s.parseValue=`parseValue`in l?!!l.parseValue:!0,s.parseCustomProperty=`parseCustomProperty`in l&&!!l.parseCustomProperty;let{context:u=`default`,list:d=!0,onComment:f,onToken:p}=l;if(!(u in s.context))throw Error("Unknown context `"+u+"`");Object.assign(s,d?ht:mt),Array.isArray(p)?s.forEachToken((e,t,n)=>{p.push({type:e,start:t,end:n})}):typeof p==`function`&&s.forEachToken(p.bind(c())),typeof f==`function`&&s.forEachToken((e,n,r)=>{if(e===25){let e=s.getLocation(n,r),i=ze(t,r-2,r,`*/`)?t.slice(n+2,r-2):t.slice(n+2,r);f(i,e)}});let m=s.context[u].call(s,l);return s.eof||s.error(),m},{SyntaxError:F,config:s.config})}var bt=35,xt=42,St=43,Ct=45,wt=47,Tt=117;function Et(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,Tt)&&this.cmpChar(this.tokenStart+1,St)?this.UnicodeRange():this.Identifier();case 9:{let e=this.charCodeAt(this.tokenStart);if(e===wt||e===xt||e===St||e===Ct)return this.Operator();e===bt&&this.error(`Hex or identifier is expected`,this.tokenStart+1);break}}}var Dt={getNode:Et},Ot=35,kt=38,At=42,jt=43,Mt=47,Nt=46,Pt=62,Ft=124,It=126;function Lt(e,t){t.last!==null&&t.last.type!==`Combinator`&&e!==null&&e.type!==`Combinator`&&t.push({type:`Combinator`,loc:null,name:` `})}function Rt(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Nt&&this.error(`Identifier is expected`,this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case jt:case Pt:case It:case Mt:return this.Combinator();case Nt:return this.ClassSelector();case At:case Ft:return this.TypeSelector();case Ot:return this.IdSelector();case kt:return this.NestingSelector()}}}var zt={onWhiteSpace:Lt,getNode:Rt};function Bt(){return this.createSingleNodeList(this.Raw(null,!1))}function Vt(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type===`Value`&&n.children.isEmpty){for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){n.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}e.push(n)}return e}function Ht(e){return e!==null&&e.type===`Operator`&&(e.value[e.value.length-1]===`-`||e.value[e.value.length-1]===`+`)}var Ut={getNode:Et,onWhiteSpace(e,t){Ht(e)&&(e.value=` `+e.value),Ht(t.last)&&(t.last.value+=` `)},expression:Bt,var:Vt},Wt=e({AtrulePrelude:()=>Dt,Selector:()=>zt,Value:()=>Ut}),Gt=new Set([`none`,`and`,`not`,`or`]),Kt={parse:{prelude(){let e=this.createList();if(this.tokenType===1){let t=this.substring(this.tokenStart,this.tokenEnd);Gt.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition(`container`)),e},block(e=!1){return this.Block(e)}}},qt={parse:{prelude:null,block(){return this.Block(!0)}}};function Jt(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==22&&this.error()}},t||(()=>this.Raw(null,!0)))}var Yt={layer(){this.skipSC();let e=this.createList(),t=Jt.call(this,this.Layer);return(t.type!==`Raw`||t.value!==``)&&e.push(t),e},supports(){this.skipSC();let e=this.createList(),t=Jt.call(this,this.Declaration,()=>Jt.call(this,()=>this.Condition(`supports`)));return(t.type!==`Raw`||t.value!==``)&&e.push(t),e}},Xt={container:Kt,"font-face":qt,import:{parse:{prelude(){let e=this.createList();switch(this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error(`String or url() is expected`)}return this.skipSC(),this.tokenType===1&&this.cmpStr(this.tokenStart,this.tokenEnd,`layer`)?e.push(this.Identifier()):this.tokenType===2&&this.cmpStr(this.tokenStart,this.tokenEnd,`layer(`)&&e.push(this.Function(null,Yt)),this.skipSC(),this.tokenType===2&&this.cmpStr(this.tokenStart,this.tokenEnd,`supports(`)&&e.push(this.Function(null,Yt)),(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition(`supports`))},block(e=!1){return this.Block(e)}}}};function Zt(){let e=this.createList();this.skipSC();loop:for(;!this.eof;){switch(this.tokenType){case 1:e.push(this.Identifier());break;case 5:e.push(this.String());break;case 18:e.push(this.Operator());break;case 22:break loop;default:this.error(`Identifier, string or comma is expected`)}this.skipSC()}return e}var K={parse(){return this.createSingleNodeList(this.SelectorList())}},Qt={parse(){return this.createSingleNodeList(this.Selector())}},$t={parse(){return this.createSingleNodeList(this.Identifier())}},en={parse:Zt},tn={parse(){return this.createSingleNodeList(this.Nth())}},nn={dir:$t,has:K,lang:en,matches:K,is:K,"-moz-any":K,"-webkit-any":K,where:K,not:K,"nth-child":tn,"nth-last-child":tn,"nth-last-of-type":tn,"nth-of-type":tn,slotted:Qt,host:Qt,"host-context":Qt},rn=e({generate:()=>pn,name:()=>un,parse:()=>fn,structure:()=>dn}),q=43,J=45,an=110,Y=!0,on=!1;function sn(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===q||r===J)&&(t&&this.error(`Number sign is not allowed`),n++);n<this.tokenEnd;n++)I(this.charCodeAt(n))||this.error(`Integer is expected`,n)}function cn(e){return sn.call(this,0,e)}function X(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n=``;switch(t){case an:n=`N is expected`;break;case J:n=`HyphenMinus is expected`}this.error(n,this.tokenStart+e)}}function ln(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10){if(this.isDelim(q,e)||this.isDelim(J,e)){t=this.isDelim(q,e)?q:J;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),cn.call(this,Y))}else return null}return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==q&&n!==J&&this.error(`Number sign is expected`)),cn.call(this,t!==0),t===J?`-`+this.consume(10):this.consume(10)}var un=`AnPlusB`,dn={a:[String,null],b:[String,null]};function fn(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)cn.call(this,on),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,J))switch(t=`-1`,X.call(this,1,an),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ln.call(this);break;case 3:X.call(this,2,J),this.next(),this.skipSC(),cn.call(this,Y),n=`-`+this.consume(10);break;default:X.call(this,2,J),sn.call(this,3,Y),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(q)&&this.lookupType(1)===1){let r=0;switch(t=`1`,this.isDelim(q)&&(r=1,this.next()),X.call(this,0,an),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ln.call(this);break;case 2:X.call(this,1,J),this.next(),this.skipSC(),cn.call(this,Y),n=`-`+this.consume(10);break;default:X.call(this,1,J),sn.call(this,2,Y),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),i=r===q||r===J,a=this.tokenStart+i;for(;a<this.tokenEnd&&I(this.charCodeAt(a));a++);a===this.tokenStart+i&&this.error(`Integer is expected`,this.tokenStart+i),X.call(this,a-this.tokenStart,an),t=this.substring(e,a),a+1===this.tokenEnd?(this.next(),n=ln.call(this)):(X.call(this,a-this.tokenStart+1,J),a+2===this.tokenEnd?(this.next(),this.skipSC(),cn.call(this,Y),n=`-`+this.consume(10)):(sn.call(this,a-this.tokenStart+2,Y),this.next(),n=this.substrToCursor(a+1)))}else this.error();return t!==null&&t.charCodeAt(0)===q&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===q&&(n=n.substr(1)),{type:`AnPlusB`,loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function pn(e){if(e.a){let t=e.a===`+1`&&`n`||e.a===`1`&&`n`||e.a===`-1`&&`-n`||e.a+`n`;if(e.b){let n=e.b[0]===`-`||e.b[0]===`+`?e.b:`+`+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}var mn=e({generate:()=>xn,name:()=>_n,parse:()=>bn,structure:()=>yn,walkContext:()=>vn});function hn(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function gn(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}var _n=`Atrule`,vn=`atrule`,yn={name:String,prelude:[`AtrulePrelude`,`Raw`,null],block:[`Block`,null]};function bn(e=!1){let t=this.tokenStart,n,r,i=null,a=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),hn):hn.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block==`function`?this.atrule[r].block.call(this,e):this.Block(gn.call(this))}return{type:`Atrule`,loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:a}}function xn(e){this.token(3,`@`+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,`;`)}var Sn=e({generate:()=>Dn,name:()=>Cn,parse:()=>En,structure:()=>Tn,walkContext:()=>wn}),Cn=`AtrulePrelude`,wn=`atrulePrelude`,Tn={children:[[]]};function En(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude==`function`?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error(`Semicolon or block is expected`),{type:`AtrulePrelude`,loc:this.getLocationFromList(t),children:t}}function Dn(e){this.children(e)}var On=e({generate:()=>Bn,name:()=>Ln,parse:()=>zn,structure:()=>Rn}),kn=36,An=42,jn=61,Mn=94,Nn=124,Pn=126;function Fn(){this.eof&&this.error(`Unexpected end of input`);let e=this.tokenStart,t=!1;return this.isDelim(An)?(t=!0,this.next()):this.isDelim(Nn)||this.eat(1),this.isDelim(Nn)?this.charCodeAt(this.tokenStart+1)===jn?t&&this.error(`Identifier is expected`,this.tokenEnd):(this.next(),this.eat(1)):t&&this.error(`Vertical line is expected`),{type:`Identifier`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function In(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==jn&&t!==Pn&&t!==Mn&&t!==kn&&t!==An&&t!==Nn&&this.error(`Attribute selector (=, ~=, ^=, $=, *=, |=) is expected`),this.next(),t!==jn&&(this.isDelim(jn)||this.error(`Equal sign is expected`),this.next()),this.substrToCursor(e)}var Ln=`AttributeSelector`,Rn={name:`Identifier`,matcher:[String,null],value:[`String`,`Identifier`,null],flags:[String,null]};function zn(){let e=this.tokenStart,t,n=null,r=null,i=null;return this.eat(19),this.skipSC(),t=Fn.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=In.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(i=this.consume(1),this.skipSC())),this.eat(20),{type:`AttributeSelector`,loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Bn(e){this.token(9,`[`),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,`]`)}var Vn=e({generate:()=>Zn,name:()=>qn,parse:()=>Xn,structure:()=>Yn,walkContext:()=>Jn}),Hn=38;function Un(){return this.Raw(null,!0)}function Wn(){return this.parseWithFallback(this.Rule,Un)}function Gn(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Kn(){if(this.tokenType===17)return Gn.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Gn);return this.tokenType===17&&this.next(),e}var qn=`Block`,Jn=`block`,Yn={children:[[`Atrule`,`Rule`,`Declaration`]]};function Xn(e){let t=e?Kn:Wn,n=this.tokenStart,r=this.createList();this.eat(23);scan:for(;!this.eof;)switch(this.tokenType){case 24:break scan;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Un));break;default:e&&this.isDelim(Hn)?r.push(Wn.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:`Block`,loc:this.getLocation(n,this.tokenStart),children:r}}function Zn(e){this.token(23,`{`),this.children(e,e=>{e.type===`Declaration`&&this.token(17,`;`)}),this.token(24,`}`)}var Qn=e({generate:()=>nr,name:()=>$n,parse:()=>tr,structure:()=>er}),$n=`Brackets`,er={children:[[]]};function tr(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:`Brackets`,loc:this.getLocation(n,this.tokenStart),children:r}}function nr(e){this.token(9,`[`),this.children(e),this.token(9,`]`)}var rr=e({generate:()=>or,name:()=>`CDC`,parse:()=>ar,structure:()=>ir}),ir=[];function ar(){let e=this.tokenStart;return this.eat(15),{type:`CDC`,loc:this.getLocation(e,this.tokenStart)}}function or(){this.token(15,`-->`)}var sr=e({generate:()=>ur,name:()=>`CDO`,parse:()=>lr,structure:()=>cr}),cr=[];function lr(){let e=this.tokenStart;return this.eat(14),{type:`CDO`,loc:this.getLocation(e,this.tokenStart)}}function ur(){this.token(14,`<!--`)}var dr=e({generate:()=>gr,name:()=>pr,parse:()=>hr,structure:()=>mr}),fr=46,pr=`ClassSelector`,mr={name:String};function hr(){return this.eatDelim(fr),{type:`ClassSelector`,loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function gr(e){this.token(9,`.`),this.token(1,e.name)}var _r=e({generate:()=>Tr,name:()=>Sr,parse:()=>wr,structure:()=>Cr}),vr=43,yr=47,br=62,xr=126,Sr=`Combinator`,Cr={name:String};function wr(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=` `;break;case 9:switch(this.charCodeAt(this.tokenStart)){case br:case vr:case xr:this.next();break;case yr:this.next(),this.eatIdent(`deep`),this.eatDelim(yr);break;default:this.error(`Combinator is expected`)}t=this.substrToCursor(e)}return{type:`Combinator`,loc:this.getLocation(e,this.tokenStart),name:t}}function Tr(e){this.tokenize(e.name)}var Er=e({generate:()=>Mr,name:()=>kr,parse:()=>jr,structure:()=>Ar}),Dr=42,Or=47,kr=`Comment`,Ar={value:String};function jr(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Dr&&this.charCodeAt(t-1)===Or&&(t-=2),{type:`Comment`,loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Mr(e){this.token(25,`/*`+e.value+`*/`)}var Nr=e({generate:()=>Br,name:()=>Fr,parse:()=>zr,structure:()=>Ir}),Pr=new Set([16,22,0]),Fr=`Condition`,Ir={kind:String,children:[[`Identifier`,`Feature`,`FeatureFunction`,`FeatureRange`,`SupportsDeclaration`]]};function Lr(e){return this.lookupTypeNonSC(1)===1&&Pr.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}var Rr={media:Lr,container:Lr,supports(){return this.SupportsDeclaration()}};function zr(e=`media`){let t=this.createList();scan:for(;!this.eof;)switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t.push(this.Identifier());break;case 21:{let n=this.parseWithFallback(()=>Rr[e].call(this,e),()=>null);n||=this.parseWithFallback(()=>{this.eat(21);let t=this.Condition(e);return this.eat(22),t},()=>this.GeneralEnclosed(e)),t.push(n);break}case 2:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||=this.GeneralEnclosed(e),t.push(n);break}default:break scan}return t.isEmpty&&this.error(`Condition is expected`),{type:`Condition`,loc:this.getLocationFromList(t),kind:e,children:t}}function Br(e){e.children.forEach(e=>{e.type===`Condition`?(this.token(21,`(`),this.node(e),this.token(22,`)`)):this.node(e)})}var Vr=45;function Hr(e,t){return t||=0,e.length-t>=2&&e.charCodeAt(t)===Vr&&e.charCodeAt(t+1)===Vr}var Ur=e({generate:()=>ii,name:()=>ei,parse:()=>ri,structure:()=>ni,walkContext:()=>ti}),Wr=33,Gr=35,Kr=36,qr=38,Jr=42,Yr=43,Xr=47;function Zr(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function Qr(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function $r(){let e=this.tokenIndex,t=this.Value();return t.type!==`Raw`&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Wr)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}var ei=`Declaration`,ti=`declaration`,ni={important:[Boolean,String],property:String,value:[`Value`,`Raw`]};function ri(){let e=this.tokenStart,t=this.tokenIndex,n=ai.call(this),r=Hr(n),i=r?this.parseCustomProperty:this.parseValue,a=r?Qr:Zr,o=!1,s;this.skipSC(),this.eat(16);let c=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback($r,a):a.call(this,this.tokenIndex),r&&s.type===`Value`&&s.children.isEmpty){for(let e=c-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===13){s.children.appendData({type:`WhiteSpace`,loc:null,value:` `});break}}return this.isDelim(Wr)&&(o=oi.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:`Declaration`,loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:s}}function ii(e){this.token(1,e.property),this.token(16,`:`),this.node(e.value),e.important&&(this.token(9,`!`),this.token(1,e.important===!0?`important`:e.important))}function ai(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case Jr:case Kr:case Yr:case Gr:case qr:this.next();break;case Xr:this.next(),this.isDelim(Xr)&&this.next()}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function oi(){this.eat(9),this.skipSC();let e=this.consume(1);return e===`important`||e}var si=e({generate:()=>pi,name:()=>ui,parse:()=>fi,structure:()=>di}),ci=38;function li(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}var ui=`DeclarationList`,di={children:[[`Declaration`,`Atrule`,`Rule`]]};function fi(){let e=this.createList();scan:for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),li));break;default:this.isDelim(ci)?e.push(this.parseWithFallback(this.Rule,li)):e.push(this.parseWithFallback(this.Declaration,li))}return{type:`DeclarationList`,loc:this.getLocationFromList(e),children:e}}function pi(e){this.children(e,e=>{e.type===`Declaration`&&this.token(17,`;`)})}var mi=e({generate:()=>vi,name:()=>hi,parse:()=>_i,structure:()=>gi}),hi=`Dimension`,gi={value:String,unit:String};function _i(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:`Dimension`,loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function vi(e){this.token(12,e.value+e.unit)}var yi=e({generate:()=>wi,name:()=>xi,parse:()=>Ci,structure:()=>Si}),bi=47,xi=`Feature`,Si={kind:String,name:String,value:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`,null]};function Ci(e){let t=this.tokenStart,n,r=null;if(this.eat(21),this.skipSC(),n=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:r=this.lookupNonWSType(1)===9?this.Ratio():this.Number();break;case 12:r=this.Dimension();break;case 1:r=this.Identifier();break;case 2:r=this.parseWithFallback(()=>{let e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(bi)&&this.error(),e},()=>this.Ratio());break;default:this.error(`Number, dimension, ratio or identifier is expected`)}this.skipSC()}return this.eof||this.eat(22),{type:`Feature`,loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function wi(e){this.token(21,`(`),this.token(1,e.name),e.value!==null&&(this.token(16,`:`),this.node(e.value)),this.token(22,`)`)}var Ti=e({generate:()=>Ai,name:()=>Ei,parse:()=>ki,structure:()=>Di}),Ei=`FeatureFunction`,Di={kind:String,feature:String,value:[`Declaration`,`Selector`]};function Oi(e,t){let n=(this.features[e]||{})[t];return typeof n!=`function`&&this.error(`Unknown feature ${t}()`),n}function ki(e=`unknown`){let t=this.tokenStart,n=this.consumeFunctionName(),r=Oi.call(this,e,n.toLowerCase());this.skipSC();let i=this.parseWithFallback(()=>{let e=this.tokenIndex,t=r.call(this);return this.eof===!1&&this.isBalanceEdge(e)===!1&&this.error(),t},()=>this.Raw(null,!1));return this.eof||this.eat(22),{type:`FeatureFunction`,loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function Ai(e){this.token(2,e.feature+`(`),this.node(e.value),this.token(22,`)`)}var ji=e({generate:()=>Vi,name:()=>Ii,parse:()=>Bi,structure:()=>Li}),Mi=47,Ni=60,Pi=61,Fi=62,Ii=`FeatureRange`,Li={kind:String,left:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`],leftComparison:String,middle:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`],rightComparison:[String,null],right:[`Identifier`,`Number`,`Dimension`,`Ratio`,`Function`,null]};function Ri(){switch(this.skipSC(),this.tokenType){case 10:return this.isDelim(Mi,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case 12:return this.Dimension();case 1:return this.Identifier();case 2:return this.parseWithFallback(()=>{let e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Mi)&&this.error(),e},()=>this.Ratio());default:this.error(`Number, dimension, ratio or identifier is expected`)}}function zi(e){if(this.skipSC(),this.isDelim(Ni)||this.isDelim(Fi)){let e=this.source[this.tokenStart];return this.next(),this.isDelim(Pi)?(this.next(),e+`=`):e}if(this.isDelim(Pi))return`=`;this.error(`Expected ${e?`":", `:``}"<", ">", "=" or ")"`)}function Bi(e=`unknown`){let t=this.tokenStart;this.skipSC(),this.eat(21);let n=Ri.call(this),r=zi.call(this,n.type===`Identifier`),i=Ri.call(this),a=null,o=null;return this.lookupNonWSType(0)!==22&&(a=zi.call(this),o=Ri.call(this)),this.skipSC(),this.eat(22),{type:`FeatureRange`,loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:a,right:o}}function Vi(e){this.token(21,`(`),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(22,`)`)}var Hi=e({generate:()=>qi,name:()=>Ui,parse:()=>Ki,structure:()=>Gi,walkContext:()=>Wi}),Ui=`Function`,Wi=`function`,Gi={name:String,children:[[]]};function Ki(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase(),a;return a=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:`Function`,loc:this.getLocation(n,this.tokenStart),name:r,children:a}}function qi(e){this.token(2,e.name+`(`),this.children(e),this.token(22,`)`)}var Ji=e({generate:()=>Qi,name:()=>Yi,parse:()=>Zi,structure:()=>Xi}),Yi=`GeneralEnclosed`,Xi={kind:String,function:[String,null],children:[[]]};function Zi(e){let t=this.tokenStart,n=null;this.tokenType===2?n=this.consumeFunctionName():this.eat(21);let r=this.parseWithFallback(()=>{let e=this.tokenIndex,t=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(e)===!1&&this.error(),t},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(22),{type:`GeneralEnclosed`,loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function Qi(e){e.function?this.token(2,e.function+`(`):this.token(21,`(`),this.children(e),this.token(22,`)`)}var $i=e({generate:()=>ra,name:()=>ea,parse:()=>na,structure:()=>ta,xxx:()=>`XXX`}),ea=`Hash`,ta={value:String};function na(){let e=this.tokenStart;return this.eat(4),{type:`Hash`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function ra(e){this.token(4,`#`+e.value)}var ia=e({generate:()=>ca,name:()=>aa,parse:()=>sa,structure:()=>oa}),aa=`Identifier`,oa={name:String};function sa(){return{type:`Identifier`,loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function ca(e){this.token(1,e.name)}var la=e({generate:()=>pa,name:()=>ua,parse:()=>fa,structure:()=>da}),ua=`IdSelector`,da={name:String};function fa(){let e=this.tokenStart;return this.eat(4),{type:`IdSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function pa(e){this.token(9,`#`+e.name)}var ma=e({generate:()=>ya,name:()=>ga,parse:()=>va,structure:()=>_a}),ha=46,ga=`Layer`,_a={name:String};function va(){let e=this.tokenStart,t=this.consume(1);for(;this.isDelim(ha);)this.eat(9),t+=`.`+this.consume(1);return{type:`Layer`,loc:this.getLocation(e,this.tokenStart),name:t}}function ya(e){this.tokenize(e.name)}var ba=e({generate:()=>wa,name:()=>xa,parse:()=>Ca,structure:()=>Sa}),xa=`LayerList`,Sa={children:[[`Layer`]]};function Ca(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===18);)this.skipSC(),this.next(),this.skipSC();return{type:`LayerList`,loc:this.getLocationFromList(e),children:e}}function wa(e){this.children(e,()=>this.token(18,`,`))}var Ta=e({generate:()=>ka,name:()=>Ea,parse:()=>Oa,structure:()=>Da}),Ea=`MediaQuery`,Da={modifier:[String,null],mediaType:[String,null],condition:[`Condition`,null]};function Oa(){let e=this.tokenStart,t=null,n=null,r=null;if(this.skipSC(),this.tokenType===1&&this.lookupTypeNonSC(1)!==21){let e=this.consume(1),i=e.toLowerCase();switch(i===`not`||i===`only`?(this.skipSC(),t=i,n=this.consume(1)):n=e,this.lookupTypeNonSC(0)){case 1:this.skipSC(),this.eatIdent(`and`),r=this.Condition(`media`);break;case 23:case 17:case 18:case 0:break;default:this.error(`Identifier or parenthesis is expected`)}}else switch(this.tokenType){case 1:case 21:case 2:r=this.Condition(`media`);break;case 23:case 17:case 0:break;default:this.error(`Identifier or parenthesis is expected`)}return{type:`MediaQuery`,loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function ka(e){e.mediaType?(e.modifier&&this.token(1,e.modifier),this.token(1,e.mediaType),e.condition&&(this.token(1,`and`),this.node(e.condition))):e.condition&&this.node(e.condition)}var Aa=e({generate:()=>Pa,name:()=>ja,parse:()=>Na,structure:()=>Ma}),ja=`MediaQueryList`,Ma={children:[[`MediaQuery`]]};function Na(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:`MediaQueryList`,loc:this.getLocationFromList(e),children:e}}function Pa(e){this.children(e,()=>this.token(18,`,`))}var Fa=e({generate:()=>Ba,name:()=>La,parse:()=>za,structure:()=>Ra}),Ia=38,La=`NestingSelector`,Ra={};function za(){let e=this.tokenStart;return this.eatDelim(Ia),{type:`NestingSelector`,loc:this.getLocation(e,this.tokenStart)}}function Ba(){this.token(9,`&`)}var Va=e({generate:()=>Wa,name:()=>`Nth`,parse:()=>Ua,structure:()=>Ha}),Ha={nth:[`AnPlusB`,`Identifier`],selector:[`SelectorList`,null]};function Ua(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return r=this.lookupValue(0,`odd`)||this.lookupValue(0,`even`)?this.Identifier():this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,`of`)&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:`Nth`,loc:this.getLocation(e,t),nth:r,selector:n}}function Wa(e){this.node(e.nth),e.selector!==null&&(this.token(1,`of`),this.node(e.selector))}var Ga=e({generate:()=>Ya,name:()=>Ka,parse:()=>Ja,structure:()=>qa}),Ka=`Number`,qa={value:String};function Ja(){return{type:`Number`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Ya(e){this.token(10,e.value)}var Xa=e({generate:()=>eo,name:()=>Za,parse:()=>$a,structure:()=>Qa}),Za=`Operator`,Qa={value:String};function $a(){let e=this.tokenStart;return this.next(),{type:`Operator`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function eo(e){this.tokenize(e.value)}var to=e({generate:()=>ao,name:()=>no,parse:()=>io,structure:()=>ro}),no=`Parentheses`,ro={children:[[]]};function io(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:`Parentheses`,loc:this.getLocation(n,this.tokenStart),children:r}}function ao(e){this.token(21,`(`),this.children(e),this.token(22,`)`)}var oo=e({generate:()=>uo,name:()=>so,parse:()=>lo,structure:()=>co}),so=`Percentage`,co={value:String};function lo(){return{type:`Percentage`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function uo(e){this.token(11,e.value+`%`)}var fo=e({generate:()=>_o,name:()=>po,parse:()=>go,structure:()=>ho,walkContext:()=>mo}),po=`PseudoClassSelector`,mo=`function`,ho={name:String,children:[[`Raw`],null]};function go(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==22?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoClassSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function _o(e){this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var vo=e({generate:()=>Co,name:()=>yo,parse:()=>So,structure:()=>xo,walkContext:()=>bo}),yo=`PseudoElementSelector`,bo=`function`,xo={name:String,children:[[`Raw`],null]};function So(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==22?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(22)):n=this.consume(1),{type:`PseudoElementSelector`,loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function Co(e){this.token(16,`:`),this.token(16,`:`),e.children===null?this.token(1,e.name):(this.token(2,e.name+`(`),this.children(e),this.token(22,`)`))}var wo=e({generate:()=>Ao,name:()=>Do,parse:()=>ko,structure:()=>Oo}),To=47;function Eo(){switch(this.skipSC(),this.tokenType){case 10:return this.Number();case 2:return this.Function(this.readSequence,this.scope.Value);default:this.error(`Number of function is expected`)}}var Do=`Ratio`,Oo={left:[`Number`,`Function`],right:[`Number`,`Function`,null]};function ko(){let e=this.tokenStart,t=Eo.call(this),n=null;return this.skipSC(),this.isDelim(To)&&(this.eatDelim(To),n=Eo.call(this)),{type:`Ratio`,loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Ao(e){this.node(e.left),this.token(9,`/`),e.right?this.node(e.right):this.node(10,1)}var jo=e({generate:()=>Fo,name:()=>`Raw`,parse:()=>Po,structure:()=>No});function Mo(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var No={value:String};function Po(e,t){let n=this.getTokenStart(this.tokenIndex),r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?Mo.call(this):this.tokenStart,{type:`Raw`,loc:this.getLocation(n,r),value:this.substring(n,r)}}function Fo(e){this.tokenize(e.value)}var Io=e({generate:()=>Uo,name:()=>zo,parse:()=>Ho,structure:()=>Vo,walkContext:()=>Bo});function Lo(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Ro(){let e=this.SelectorList();return e.type!==`Raw`&&this.eof===!1&&this.tokenType!==23&&this.error(),e}var zo=`Rule`,Bo=`rule`,Vo={prelude:[`SelectorList`,`Raw`],block:[`Block`]};function Ho(){let e=this.tokenIndex,t=this.tokenStart,n,r;return n=this.parseRulePrelude?this.parseWithFallback(Ro,Lo):Lo.call(this,e),r=this.Block(!0),{type:`Rule`,loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Uo(e){this.node(e.prelude),this.node(e.block)}var Wo=e({generate:()=>Jo,name:()=>Go,parse:()=>qo,structure:()=>Ko}),Go=`Scope`,Ko={root:[`SelectorList`,`Raw`,null],limit:[`SelectorList`,`Raw`,null]};function qo(){let e=null,t=null;this.skipSC();let n=this.tokenStart;return this.tokenType===21&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(22)),this.lookupNonWSType(0)===1&&(this.skipSC(),this.eatIdent(`to`),this.skipSC(),this.eat(21),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(22)),{type:`Scope`,loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function Jo(e){e.root&&(this.token(21,`(`),this.node(e.root),this.token(22,`)`)),e.limit&&(this.token(1,`to`),this.token(21,`(`),this.node(e.limit),this.token(22,`)`))}var Yo=e({generate:()=>$o,name:()=>Xo,parse:()=>Qo,structure:()=>Zo}),Xo=`Selector`,Zo={children:[[`TypeSelector`,`IdSelector`,`ClassSelector`,`AttributeSelector`,`PseudoClassSelector`,`PseudoElementSelector`,`Combinator`]]};function Qo(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error(`Selector is expected`),{type:`Selector`,loc:this.getLocationFromList(e),children:e}}function $o(e){this.children(e)}var es=e({generate:()=>as,name:()=>ts,parse:()=>is,structure:()=>rs,walkContext:()=>ns}),ts=`SelectorList`,ns=`selector`,rs={children:[[`Selector`,`Raw`]]};function is(){let e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===18);)this.next();return{type:`SelectorList`,loc:this.getLocationFromList(e),children:e}}function as(e){this.children(e,()=>this.token(18,`,`))}var os=92,ss=34,cs=39;function ls(e){let t=e.length,n=e.charCodeAt(0),r=+(n===ss||n===cs),i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,a=``;for(let n=r;n<=i;n++){let r=e.charCodeAt(n);if(r===os){if(n===i){n!==t-1&&(a=e.substr(n+1));break}if(r=e.charCodeAt(++n),V(os,r)){let t=n-1,r=Ue(e,t);n=r-1,a+=qe(e.substring(t+1,r))}else r===13&&e.charCodeAt(n+1)===10&&n++}else a+=e[n]}return a}function us(e,t){let n=t?`'`:`"`,r=t?cs:ss,i=``,a=!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);n===0?i+=`�`:n<=31||n===127?(i+=`\\`+n.toString(16),a=!0):n===r||n===os?(i+=`\\`+e.charAt(t),a=!1):(a&&(L(n)||B(n))&&(i+=` `),i+=e.charAt(t),a=!1)}return n+i+n}var ds=e({generate:()=>hs,name:()=>fs,parse:()=>ms,structure:()=>ps}),fs=`String`,ps={value:String};function ms(){return{type:`String`,loc:this.getLocation(this.tokenStart,this.tokenEnd),value:ls(this.consume(5))}}function hs(e){this.token(5,us(e.value))}var gs=e({generate:()=>Cs,name:()=>ys,parse:()=>Ss,structure:()=>xs,walkContext:()=>bs}),_s=33;function vs(){return this.Raw(null,!1)}var ys=`StyleSheet`,bs=`stylesheet`,xs={children:[[`Comment`,`CDO`,`CDC`,`Atrule`,`Rule`,`Raw`]]};function Ss(){let e=this.tokenStart,t=this.createList(),n;scan:for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==_s){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,vs);break;default:n=this.parseWithFallback(this.Rule,vs)}t.push(n)}return{type:`StyleSheet`,loc:this.getLocation(e,this.tokenStart),children:t}}function Cs(e){this.children(e)}var ws=e({generate:()=>Os,name:()=>Ts,parse:()=>Ds,structure:()=>Es}),Ts=`SupportsDeclaration`,Es={declaration:`Declaration`};function Ds(){let e=this.tokenStart;this.eat(21),this.skipSC();let t=this.Declaration();return this.eof||this.eat(22),{type:`SupportsDeclaration`,loc:this.getLocation(e,this.tokenStart),declaration:t}}function Os(e){this.token(21,`(`),this.node(e.declaration),this.token(22,`)`)}var ks=e({generate:()=>Is,name:()=>Ns,parse:()=>Fs,structure:()=>Ps}),As=42,js=124;function Ms(){this.tokenType!==1&&this.isDelim(As)===!1&&this.error(`Identifier or asterisk is expected`),this.next()}var Ns=`TypeSelector`,Ps={name:String};function Fs(){let e=this.tokenStart;return this.isDelim(js)?(this.next(),Ms.call(this)):(Ms.call(this),this.isDelim(js)&&(this.next(),Ms.call(this))),{type:`TypeSelector`,loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Is(e){this.tokenize(e.name)}var Ls=e({generate:()=>Js,name:()=>Gs,parse:()=>qs,structure:()=>Ks}),Rs=43,zs=45,Bs=63;function Vs(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let i=this.charCodeAt(r);if(i===zs&&t&&n!==0)return Vs.call(this,e+n+1,!1),-1;L(i)||this.error(t&&n!==0?`Hyphen minus`+(n<6?` or hex digit`:``)+` is expected`:n<6?`Hex digit is expected`:`Unexpected input`,r),++n>6&&this.error(`Too many hex digits`,r)}return this.next(),n}function Hs(e){let t=0;for(;this.isDelim(Bs);)++t>e&&this.error(`Too many question marks`),this.next()}function Us(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Rs?`Plus sign`:`Hyphen minus`)+` is expected`)}function Ws(){let e=0;switch(this.tokenType){case 10:if(e=Vs.call(this,1,!0),this.isDelim(Bs)){Hs.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){Us.call(this,zs),Vs.call(this,1,!1);break}break;case 12:e=Vs.call(this,1,!0),e>0&&Hs.call(this,6-e);break;default:if(this.eatDelim(Rs),this.tokenType===1){e=Vs.call(this,0,!0),e>0&&Hs.call(this,6-e);break}if(this.isDelim(Bs)){this.next(),Hs.call(this,5);break}this.error(`Hex digit or question mark is expected`)}}var Gs=`UnicodeRange`,Ks={value:String};function qs(){let e=this.tokenStart;return this.eatIdent(`u`),Ws.call(this),{type:`UnicodeRange`,loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Js(e){this.tokenize(e.value)}var Ys=32,Xs=92,Zs=34,Qs=39,$s=40,ec=41;function tc(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===ec?t-2:t-1,i=``;for(;n<r&&B(e.charCodeAt(n));)n++;for(;n<r&&B(e.charCodeAt(r));)r--;for(let a=n;a<=r;a++){let n=e.charCodeAt(a);if(n===Xs){if(a===r){a!==t-1&&(i=e.substr(a+1));break}if(n=e.charCodeAt(++a),V(Xs,n)){let t=a-1,n=Ue(e,t);a=n-1,i+=qe(e.substring(t+1,n))}else n===13&&e.charCodeAt(a+1)===10&&a++}else i+=e[a]}return i}function nc(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i===0?t+=`�`:i<=31||i===127?(t+=`\\`+i.toString(16),n=!0):i===Ys||i===Xs||i===Zs||i===Qs||i===$s||i===ec?(t+=`\\`+e.charAt(r),n=!1):(n&&L(i)&&(t+=` `),t+=e.charAt(r),n=!1)}return`url(`+t+`)`}var rc=e({generate:()=>oc,name:()=>`Url`,parse:()=>ac,structure:()=>ic}),ic={value:String};function ac(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=tc(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,`url(`)||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=ls(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error(`Url or Function is expected`)}return{type:`Url`,loc:this.getLocation(e,this.tokenStart),value:t}}function oc(e){this.token(7,nc(e.value))}var sc=e({generate:()=>dc,name:()=>cc,parse:()=>uc,structure:()=>lc}),cc=`Value`,lc={children:[[]]};function uc(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:`Value`,loc:this.getLocation(e,this.tokenStart),children:t}}function dc(e){this.children(e)}var fc=e({generate:()=>_c,name:()=>mc,parse:()=>gc,structure:()=>hc}),pc=Object.freeze({type:`WhiteSpace`,loc:null,value:` `}),mc=`WhiteSpace`,hc={value:String};function gc(){return this.eat(13),pc}function _c(e){this.token(13,e.value)}var vc=yt({parseContext:{default:`StyleSheet`,stylesheet:`StyleSheet`,atrule:`Atrule`,atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:`MediaQueryList`,mediaQuery:`MediaQuery`,condition(e){return this.Condition(e.kind)},rule:`Rule`,selectorList:`SelectorList`,selector:`Selector`,block(){return this.Block(!0)},declarationList:`DeclarationList`,declaration:`Declaration`,value:`Value`},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:Wt,atrule:Xt,pseudo:nn,node:e({AnPlusB:()=>fn,Atrule:()=>bn,AtrulePrelude:()=>En,AttributeSelector:()=>zn,Block:()=>Xn,Brackets:()=>tr,CDC:()=>ar,CDO:()=>lr,ClassSelector:()=>hr,Combinator:()=>wr,Comment:()=>jr,Condition:()=>zr,Declaration:()=>ri,DeclarationList:()=>fi,Dimension:()=>_i,Feature:()=>Ci,FeatureFunction:()=>ki,FeatureRange:()=>Bi,Function:()=>Ki,GeneralEnclosed:()=>Zi,Hash:()=>na,IdSelector:()=>fa,Identifier:()=>sa,Layer:()=>va,LayerList:()=>Ca,MediaQuery:()=>Oa,MediaQueryList:()=>Na,NestingSelector:()=>za,Nth:()=>Ua,Number:()=>Ja,Operator:()=>$a,Parentheses:()=>io,Percentage:()=>lo,PseudoClassSelector:()=>go,PseudoElementSelector:()=>So,Ratio:()=>ko,Raw:()=>Po,Rule:()=>Ho,Scope:()=>qo,Selector:()=>Qo,SelectorList:()=>is,String:()=>ms,StyleSheet:()=>Ss,SupportsDeclaration:()=>Ds,TypeSelector:()=>Fs,UnicodeRange:()=>qs,Url:()=>ac,Value:()=>uc,WhiteSpace:()=>gc})}),{hasOwnProperty:yc}=Object.prototype,bc=function(){};function xc(e){return typeof e==`function`?e:bc}function Sc(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function Cc(e,t){let n=t.structure,r=[];for(let e in n){if(yc.call(n,e)===!1)continue;let t=n[e],i={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)e===null?i.nullable=!0:typeof e==`string`?i.type=`node`:Array.isArray(e)&&(i.type=`list`);i.type&&r.push(i)}return r.length?{context:t.walkContext,fields:r}:null}function wc(e){let t={};for(let n in e.node)if(yc.call(e.node,n)){let r=e.node[n];if(!r.structure)throw Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Cc(n,r)}return t}function Tc(e,t){let n=e.fields.slice(),r=e.context,i=typeof r==`string`;return t&&n.reverse(),function(e,a,o,s){let c;i&&(c=a[r],a[r]=e);for(let r of n){let n=e[r.name];if(!r.nullable||n){if(r.type===`list`){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(o(n))return!0}}i&&(a[r]=c)}}function Ec({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function Dc(e){let t=wc(e),n={},r={},i=Symbol(`break-walk`),a=Symbol(`skip-node`);for(let e in t)yc.call(t,e)&&t[e]!==null&&(n[e]=Tc(t[e],!1),r[e]=Tc(t[e],!0));let o=Ec(n),s=Ec(r),c=function(e,c){function l(e,t,n){let r=u.call(m,e,t,n);return r===i||r!==a&&!!(f.hasOwnProperty(e.type)&&f[e.type](e,m,l,p)||d.call(m,e,t,n)===i)}let u=bc,d=bc,f=n,p=(e,t,n,r)=>e||l(t,n,r),m={break:i,skip:a,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c==`function`)u=c;else if(c&&(u=xc(c.enter),d=xc(c.leave),c.reverse&&(f=r),c.visit)){if(o.hasOwnProperty(c.visit))f=c.reverse?s[c.visit]:o[c.visit];else if(!t.hasOwnProperty(c.visit))throw Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(`, `)+`)`);u=Sc(u,c.visit),d=Sc(d,c.visit)}if(u===bc&&d===bc)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");l(e)};return c.break=i,c.skip=a,c.find=function(e,t){let n=null;return c(e,function(e,r,a){if(t.call(this,e,r,a))return n=e,i}),n},c.findLast=function(e,t){let n=null;return c(e,{reverse:!0,enter(e,r,a){if(t.call(this,e,r,a))return n=e,i}}),n},c.findAll=function(e,t){let n=[];return c(e,function(e,r,i){t.call(this,e,r,i)&&n.push(e)}),n},c}var Oc=Dc({node:e({AnPlusB:()=>rn,Atrule:()=>mn,AtrulePrelude:()=>Sn,AttributeSelector:()=>On,Block:()=>Vn,Brackets:()=>Qn,CDC:()=>rr,CDO:()=>sr,ClassSelector:()=>dr,Combinator:()=>_r,Comment:()=>Er,Condition:()=>Nr,Declaration:()=>Ur,DeclarationList:()=>si,Dimension:()=>mi,Feature:()=>yi,FeatureFunction:()=>Ti,FeatureRange:()=>ji,Function:()=>Hi,GeneralEnclosed:()=>Ji,Hash:()=>$i,IdSelector:()=>la,Identifier:()=>ia,Layer:()=>ma,LayerList:()=>ba,MediaQuery:()=>Ta,MediaQueryList:()=>Aa,NestingSelector:()=>Fa,Nth:()=>Va,Number:()=>Ga,Operator:()=>Xa,Parentheses:()=>to,Percentage:()=>oo,PseudoClassSelector:()=>fo,PseudoElementSelector:()=>vo,Ratio:()=>wo,Raw:()=>jo,Rule:()=>Io,Scope:()=>Wo,Selector:()=>Yo,SelectorList:()=>es,String:()=>ds,StyleSheet:()=>gs,SupportsDeclaration:()=>ws,TypeSelector:()=>ks,UnicodeRange:()=>Ls,Url:()=>rc,Value:()=>sc,WhiteSpace:()=>fc})}),kc=n((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),Ac=n((e=>{var t=kc(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),jc=n((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;){if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++}for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})),Mc=n((e=>{var t=jc(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),Nc=n((e=>{var t=jc();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),Pc=n((e=>{var t=Ac(),n=jc(),r=Mc().ArraySet,i=Nc().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=n.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new a(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,r!=null&&(t.source=n.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),i.addMapping(t)}),e.sources.forEach(function(t){var a=t;r!==null&&(a=n.relative(r,t)),i._sources.has(a)||i._sources.add(a);var o=e.sourceContentFor(t);o!=null&&i.setSourceContent(t,o)}),i},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);(this._skipValidation||this._validateMapping(t,r,i,a)!==!1)&&(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`;if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r){e=0;var g=u.generatedLine-r;l+=g===1?`;`:`;`.repeat(g),r=u.generatedLine}else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a}))(),Fc=new Set([`Atrule`,`Selector`,`Declaration`]);function Ic(e){let t=new Pc.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},a={generated:i},o=1,s=0,c=!1,l=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Fc.has(e.type)){let l=e.loc.start.line,u=e.loc.start.column-1;(r.line!==l||r.column!==u)&&(r.line=l,r.column=u,n.line=o,n.column=s,c&&(c=!1,(n.line!==i.line||n.column!==i.column)&&t.addMapping(a)),c=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}l.call(this,e),c&&Fc.has(e.type)&&(i.line=o,i.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)e.charCodeAt(t)===10?(o++,s=0):s++;u(e,t,n)};let d=e.result;return e.result=function(){return c&&t.addMapping(a),{css:d(),map:t}},e}var Lc=e({safe:()=>Gc,spec:()=>Wc}),Rc=43,zc=45,Bc=(e,t)=>(e===9&&(e=t),typeof e==`string`&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),Vc=[[1,1],[1,2],[1,7],[1,8],[1,`-`],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,`-`],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,`-`],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,`-`],[12,10],[12,11],[12,12],[12,15],[`#`,1],[`#`,2],[`#`,7],[`#`,8],[`#`,`-`],[`#`,10],[`#`,11],[`#`,12],[`#`,15],[`-`,1],[`-`,2],[`-`,7],[`-`,8],[`-`,`-`],[`-`,10],[`-`,11],[`-`,12],[`-`,15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,`%`],[10,15],[`@`,1],[`@`,2],[`@`,7],[`@`,8],[`@`,`-`],[`@`,15],[`.`,10],[`.`,11],[`.`,12],[`+`,10],[`+`,11],[`+`,12],[`/`,`*`]],Hc=Vc.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,`-`],[22,1],[22,2],[22,11],[22,12],[22,4],[22,`-`]]);function Uc(e){let t=new Set(e.map(([e,t])=>Bc(e)<<16|Bc(t)));return function(e,n,r){let i=Bc(n,r),a=r.charCodeAt(0);return i|(a===zc&&n!==1&&n!==2&&n!==15||a===Rc?t.has((e&65534)<<16|a<<7):t.has((e&65534)<<16|i))}}var Wc=Uc(Vc),Gc=Uc(Hc),Kc=92;function qc(e,t){if(typeof t==`function`){let n=null;e.children.forEach(e=>{n!==null&&t.call(this,n),this.node(e),n=e})}else e.children.forEach(this.node,this)}function Jc(e){let t=new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)==`function`&&t.set(n,r.generate||r);return function(e,n){let r=``,i=0,a={node(e){if(t.has(e.type))t.get(e.type).call(o,e);else throw Error(`Unknown node type: `+e.type)},tokenBefore:Gc,token(e,t,n){i=this.tokenBefore(i,e,t),!n&&i&1&&this.emit(` `,13,!0),this.emit(t,e,!1),e===9&&t.charCodeAt(0)===Kc&&this.emit(`