prettier-plugin-tailwindcss
Version:
A Prettier plugin for sorting Tailwind CSS classes.
21 lines (20 loc) • 656 kB
JavaScript
var fS=Object.create;var zn=Object.defineProperty,dS=Object.defineProperties,pS=Object.getOwnPropertyDescriptor,hS=Object.getOwnPropertyDescriptors,mS=Object.getOwnPropertyNames,Ps=Object.getOwnPropertySymbols,gS=Object.getPrototypeOf,El=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable;var Kd=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))El.call(t,n)&&Kd(e,n,t[n]);if(Ps)for(var n of Ps(t))Gd.call(t,n)&&Kd(e,n,t[n]);return e},$=(e,t)=>dS(e,hS(t)),Hd=e=>zn(e,"__esModule",{value:!0});var it=(e,t)=>{var n={};for(var r in e)El.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ps)for(var r of Ps(e))t.indexOf(r)<0&&Gd.call(e,r)&&(n[r]=e[r]);return n};var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vS=(e,t)=>{for(var n in t)zn(e,n,{get:t[n],enumerable:!0})},Yd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mS(t))!El.call(e,i)&&(n||i!=="default")&&zn(e,i,{get:()=>t[i],enumerable:!(r=pS(t,i))||r.enumerable});return e},be=(e,t)=>Yd(Hd(zn(e!=null?fS(gS(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),yS=(e=>(t,n)=>e&&e.get(t)||(n=Yd(Hd({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Cl=E((z5,Dl)=>{var bS=require("tty"),xS=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||bS.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),he=(e,t,n=e)=>r=>{let i=""+r,s=i.indexOf(t,e.length);return~s?e+Qd(i,t,n,s)+t:e+i+t},Qd=(e,t,n,r)=>{let i=e.substring(0,r)+n,s=e.substring(r+t.length),a=s.indexOf(t);return~a?i+Qd(s,t,n,a):i+s},Zd=(e=xS)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?he("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?he("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?he("\x1B[3m","\x1B[23m"):String,underline:e?he("\x1B[4m","\x1B[24m"):String,inverse:e?he("\x1B[7m","\x1B[27m"):String,hidden:e?he("\x1B[8m","\x1B[28m"):String,strikethrough:e?he("\x1B[9m","\x1B[29m"):String,black:e?he("\x1B[30m","\x1B[39m"):String,red:e?he("\x1B[31m","\x1B[39m"):String,green:e?he("\x1B[32m","\x1B[39m"):String,yellow:e?he("\x1B[33m","\x1B[39m"):String,blue:e?he("\x1B[34m","\x1B[39m"):String,magenta:e?he("\x1B[35m","\x1B[39m"):String,cyan:e?he("\x1B[36m","\x1B[39m"):String,white:e?he("\x1B[37m","\x1B[39m"):String,gray:e?he("\x1B[90m","\x1B[39m"):String,bgBlack:e?he("\x1B[40m","\x1B[49m"):String,bgRed:e?he("\x1B[41m","\x1B[49m"):String,bgGreen:e?he("\x1B[42m","\x1B[49m"):String,bgYellow:e?he("\x1B[43m","\x1B[49m"):String,bgBlue:e?he("\x1B[44m","\x1B[49m"):String,bgMagenta:e?he("\x1B[45m","\x1B[49m"):String,bgCyan:e?he("\x1B[46m","\x1B[49m"):String,bgWhite:e?he("\x1B[47m","\x1B[49m"):String});Dl.exports=Zd();Dl.exports.createColors=Zd});var _l=E((W5,np)=>{"use strict";var Al="'".charCodeAt(0),ep='"'.charCodeAt(0),Ms="\\".charCodeAt(0),tp="/".charCodeAt(0),Is=`
`.charCodeAt(0),Wn=" ".charCodeAt(0),Ns="\f".charCodeAt(0),Bs=" ".charCodeAt(0),Ls="\r".charCodeAt(0),SS="[".charCodeAt(0),wS="]".charCodeAt(0),ES="(".charCodeAt(0),DS=")".charCodeAt(0),CS="{".charCodeAt(0),AS="}".charCodeAt(0),_S=";".charCodeAt(0),TS="*".charCodeAt(0),kS=":".charCodeAt(0),FS="@".charCodeAt(0),qs=/[\t\n\f\r "#'()/;[\\\]{}]/g,Rs=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,OS=/.[\n"'(/\\]/,rp=/[\da-f]/i;np.exports=function(t,n={}){let r=t.css.valueOf(),i=n.ignoreErrors,s,a,l,o,d,f,h,m,u,c,p=r.length,g=0,v=[],y=[];function b(){return g}function S(O){throw t.error("Unclosed "+O,g)}function w(){return y.length===0&&g>=p}function D(O){if(y.length)return y.pop();if(g>=p)return;let z=O?O.ignoreUnclosed:!1;switch(s=r.charCodeAt(g),s){case Is:case Wn:case Bs:case Ls:case Ns:{a=g;do a+=1,s=r.charCodeAt(a);while(s===Wn||s===Is||s===Bs||s===Ls||s===Ns);c=["space",r.slice(g,a)],g=a-1;break}case SS:case wS:case CS:case AS:case kS:case _S:case DS:{let G=String.fromCharCode(s);c=[G,G,g];break}case ES:{if(m=v.length?v.pop()[1]:"",u=r.charCodeAt(g+1),m==="url"&&u!==Al&&u!==ep&&u!==Wn&&u!==Is&&u!==Bs&&u!==Ns&&u!==Ls){a=g;do{if(f=!1,a=r.indexOf(")",a+1),a===-1)if(i||z){a=g;break}else S("bracket");for(h=a;r.charCodeAt(h-1)===Ms;)h-=1,f=!f}while(f);c=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),o=r.slice(g,a+1),a===-1||OS.test(o)?c=["(","(",g]:(c=["brackets",o,g,a],g=a);break}case Al:case ep:{l=s===Al?"'":'"',a=g;do{if(f=!1,a=r.indexOf(l,a+1),a===-1)if(i||z){a=g+1;break}else S("string");for(h=a;r.charCodeAt(h-1)===Ms;)h-=1,f=!f}while(f);c=["string",r.slice(g,a+1),g,a],g=a;break}case FS:{qs.lastIndex=g+1,qs.test(r),qs.lastIndex===0?a=r.length-1:a=qs.lastIndex-2,c=["at-word",r.slice(g,a+1),g,a],g=a;break}case Ms:{for(a=g,d=!0;r.charCodeAt(a+1)===Ms;)a+=1,d=!d;if(s=r.charCodeAt(a+1),d&&s!==tp&&s!==Wn&&s!==Is&&s!==Bs&&s!==Ls&&s!==Ns&&(a+=1,rp.test(r.charAt(a)))){for(;rp.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Wn&&(a+=1)}c=["word",r.slice(g,a+1),g,a],g=a;break}default:{s===tp&&r.charCodeAt(g+1)===TS?(a=r.indexOf("*/",g+2)+1,a===0&&(i||z?a=r.length:S("comment")),c=["comment",r.slice(g,a+1),g,a],g=a):(Rs.lastIndex=g+1,Rs.test(r),Rs.lastIndex===0?a=r.length-1:a=Rs.lastIndex-2,c=["word",r.slice(g,a+1),g,a],v.push(c),g=a);break}}return g++,c}function _(O){y.push(O)}return{back:_,nextToken:D,endOfFile:w,position:b}}});var Tl=E((V5,ap)=>{"use strict";var Ue=Cl(),PS=_l(),ip;function MS(e){ip=e}var IS={brackets:Ue.cyan,"at-word":Ue.cyan,comment:Ue.gray,string:Ue.green,class:Ue.yellow,hash:Ue.magenta,call:Ue.cyan,"(":Ue.cyan,")":Ue.cyan,"{":Ue.yellow,"}":Ue.yellow,"[":Ue.yellow,"]":Ue.yellow,":":Ue.yellow,";":Ue.yellow};function NS([e,t],n){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!n.endOfFile()){let r=n.nextToken();if(n.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return e}function sp(e){let t=PS(new ip(e),{ignoreErrors:!0}),n="";for(;!t.endOfFile();){let r=t.nextToken(),i=IS[NS(r,t)];i?n+=r[1].split(/\r?\n/).map(s=>i(s)).join(`
`):n+=r[1]}return n}sp.registerInput=MS;ap.exports=sp});var js=E((J5,up)=>{"use strict";var op=Cl(),lp=Tl(),Wr=class extends Error{constructor(t,n,r,i,s,a){super(t);this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),i&&(this.source=i),a&&(this.plugin=a),typeof n!="undefined"&&typeof r!="undefined"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Wr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=op.isColorSupported),lp&&t&&(n=lp(n));let r=n.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),a=String(s).length,l,o;if(t){let{bold:d,red:f,gray:h}=op.createColors(!0);l=m=>d(f(m)),o=m=>h(m)}else l=o=d=>d;return r.slice(i,s).map((d,f)=>{let h=i+1+f,m=" "+(" "+h).slice(-a)+" | ";if(h===this.line){let u=o(m.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+o(m)+d+`
`+u+l("^")}return" "+o(m)+d}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
`+t+`
`),this.name+": "+this.message+t}};up.exports=Wr;Wr.default=Wr});var Us=E((X5,kl)=>{"use strict";kl.exports.isClean=Symbol("isClean");kl.exports.my=Symbol("my")});var Fl=E(($5,fp)=>{"use strict";var cp={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function BS(e){return e[0].toUpperCase()+e.slice(1)}var zs=class{constructor(t){this.builder=t}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),n&&(i+=";"),this.builder(i,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,n){let r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{let s=(t.raws.between||"")+(n?";":"");this.builder(r+i+s,t)}}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let i=0;i<t.nodes.length;i++){let s=t.nodes[i],a=this.raw(s,"before");a&&this.builder(a),this.stringify(s,n!==i||r)}}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let i;t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}raw(t,n,r){let i;if(r||(r=n),n&&(i=t.raws[n],typeof i!="undefined"))return i;let s=t.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return cp[r];let a=t.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]!="undefined")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+BS(r);this[l]?i=this[l](a,t):a.walk(o=>{if(i=o.raws[n],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=cp[r]),a.rawCache[r]=i,i}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n!="undefined"))return!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&typeof r.raws.before!="undefined"){let s=r.raws.before.split(`
`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(t,n){let r;return t.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before!="undefined")return n=r.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return n=r.raws.after,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n!="undefined"))return!1}),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between!="undefined")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let i=t.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(r.includes(`
`)){let a=this.raw(t,null,"indent");if(a.length)for(let l=0;l<s;l++)r+=a}return r}rawValue(t,n){let r=t[n],i=t.raws[n];return i&&i.value===r?i.raw:r}};fp.exports=zs;zs.default=zs});var Vn=E((G5,dp)=>{"use strict";var LS=Fl();function Ol(e,t){new LS(t).stringify(e)}dp.exports=Ol;Ol.default=Ol});var Jn=E((K5,pp)=>{"use strict";var{isClean:Ws,my:qS}=Us(),RS=js(),jS=Fl(),US=Vn();function Pl(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let i=e[r],s=typeof i;r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=i:Array.isArray(i)?n[r]=i.map(a=>Pl(a,n)):(s==="object"&&i!==null&&(i=Pl(i)),n[r]=i)}return n}var Vs=class{constructor(t={}){this.raws={},this[Ws]=!1,this[qS]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}error(t,n={}){if(this.source){let{start:r,end:i}=this.rangeBy(n);return this.source.input.error(t,{line:r.line,column:r.column},{line:i.line,column:i.column},n)}return new RS(t)}warn(t,n,r){let i={node:this};for(let s in r)i[s]=r[s];return t.warn(n,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=US){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}assign(t={}){for(let n in t)this[n]=t[n];return this}clone(t={}){let n=Pl(this);for(let r in t)n[r]=t[r];return n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let i of t)i===this?r=!0:r?(this.parent.insertAfter(n,i),n=i):this.parent.insertBefore(n,i);r||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}raw(t,n){return new jS().raw(this,t,n)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,n){let r={},i=n==null;n=n||new Map;let s=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let l=this[a];if(Array.isArray(l))r[a]=l.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,n):o);else if(typeof l=="object"&&l.toJSON)r[a]=l.toJSON(null,n);else if(a==="source"){let o=n.get(l.input);o==null&&(o=s,n.set(l.input,s),s++),r[a]={inputId:o,start:l.start,end:l.end}}else r[a]=l}return i&&(r.inputs=[...n.keys()].map(a=>a.toJSON())),r}positionInside(t){let n=this.toString(),r=this.source.start.column,i=this.source.start.line;for(let s=0;s<t;s++)n[s]===`
`?(r=1,i+=1):r+=1;return{line:i,column:r}}positionBy(t){let n=this.source.start;if(t.index)n=this.positionInside(t.index);else if(t.word){let r=this.toString().indexOf(t.word);r!==-1&&(n=this.positionInside(r))}return n}rangeBy(t){let n={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:n.line,column:n.column+1};if(t.word){let i=this.toString().indexOf(t.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+t.word.length))}else t.start?n={line:t.start.line,column:t.start.column}:t.index&&(n=this.positionInside(t.index)),t.end?r={line:t.end.line,column:t.end.column}:t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={line:n.line,column:n.column+1}),{start:n,end:r}}getProxyProcessor(){return{set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0},get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}markDirty(){if(this[Ws]){this[Ws]=!1;let t=this;for(;t=t.parent;)t[Ws]=!1}}get proxyOf(){return this}};pp.exports=Vs;Vs.default=Vs});var Xn=E((H5,hp)=>{"use strict";var zS=Jn(),Js=class extends zS{constructor(t){t&&typeof t.value!="undefined"&&typeof t.value!="string"&&(t=$(M({},t),{value:String(t.value)}));super(t);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};hp.exports=Js;Js.default=Js});var gp=E(Ml=>{var mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ml.encode=function(e){if(0<=e&&e<mp.length)return mp[e];throw new TypeError("Must be between 0 and 63: "+e)};Ml.decode=function(e){var t=65,n=90,r=97,i=122,s=48,a=57,l=43,o=47,d=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+d:s<=e&&e<=a?e-s+f:e==l?62:e==o?63:-1}});var Bl=E(Nl=>{var vp=gp(),Il=5,yp=1<<Il,bp=yp-1,xp=yp;function WS(e){return e<0?(-e<<1)+1:(e<<1)+0}function VS(e){var t=(e&1)===1,n=e>>1;return t?-n:n}Nl.encode=function(t){var n="",r,i=WS(t);do r=i&bp,i>>>=Il,i>0&&(r|=xp),n+=vp.encode(r);while(i>0);return n};Nl.decode=function(t,n,r){var i=t.length,s=0,a=0,l,o;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(o=vp.decode(t.charCodeAt(n++)),o===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));l=!!(o&xp),o&=bp,s=s+(o<<a),a+=Il}while(l);r.value=VS(s),r.rest=n}});var Jr=E(_e=>{function JS(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}_e.getArg=JS;var Sp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,XS=/^data:.+\,.+$/;function $n(e){var t=e.match(Sp);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}_e.urlParse=$n;function Vr(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=Vr;var $S=32;function GS(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 s=e(n);return t.unshift({input:n,result:s}),t.length>$S&&t.pop(),s}}var Ll=GS(function(t){var n=t,r=$n(t);if(r){if(!r.path)return t;n=r.path}for(var i=_e.isAbsolute(n),s=[],a=0,l=0;;)if(a=l,l=n.indexOf("/",a),l===-1){s.push(n.slice(a));break}else for(s.push(n.slice(a,l));l<n.length&&n[l]==="/";)l++;for(var o,d=0,l=s.length-1;l>=0;l--)o=s[l],o==="."?s.splice(l,1):o===".."?d++:d>0&&(o===""?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join("/"),n===""&&(n=i?"/":"."),r?(r.path=n,Vr(r)):n});_e.normalize=Ll;function wp(e,t){e===""&&(e="."),t===""&&(t=".");var n=$n(t),r=$n(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Vr(n);if(n||t.match(XS))return t;if(r&&!r.host&&!r.path)return r.host=t,Vr(r);var i=t.charAt(0)==="/"?t:Ll(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Vr(r)):i}_e.join=wp;_e.isAbsolute=function(e){return e.charAt(0)==="/"||Sp.test(e)};function KS(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=KS;var Ep=function(){var e=Object.create(null);return!("__proto__"in e)}();function Dp(e){return e}function HS(e){return Cp(e)?"$"+e:e}_e.toSetString=Ep?Dp:HS;function YS(e){return Cp(e)?e.slice(1):e}_e.fromSetString=Ep?Dp:YS;function Cp(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 QS(e,t,n){var r=zt(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:zt(e.name,t.name)}_e.compareByOriginalPositions=QS;function ZS(e,t,n){var r;return 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:zt(e.name,t.name)}_e.compareByOriginalPositionsNoSource=ZS;function ew(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=zt(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:zt(e.name,t.name)}_e.compareByGeneratedPositionsDeflated=ew;function tw(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=zt(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:zt(e.name,t.name)}_e.compareByGeneratedPositionsDeflatedNoLine=tw;function zt(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function rw(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=zt(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:zt(e.name,t.name)}_e.compareByGeneratedPositionsInflated=rw;function nw(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}_e.parseSourceMapInput=nw;function iw(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=$n(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=wp(Vr(r),t)}return Ll(t)}_e.computeSourceURL=iw});var jl=E(Ap=>{var ql=Jr(),Rl=Object.prototype.hasOwnProperty,wr=typeof Map!="undefined";function Wt(){this._array=[],this._set=wr?new Map:Object.create(null)}Wt.fromArray=function(t,n){for(var r=new Wt,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Wt.prototype.size=function(){return wr?this._set.size:Object.getOwnPropertyNames(this._set).length};Wt.prototype.add=function(t,n){var r=wr?t:ql.toSetString(t),i=wr?this.has(t):Rl.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(wr?this._set.set(t,s):this._set[r]=s)};Wt.prototype.has=function(t){if(wr)return this._set.has(t);var n=ql.toSetString(t);return Rl.call(this._set,n)};Wt.prototype.indexOf=function(t){if(wr){var n=this._set.get(t);if(n>=0)return n}else{var r=ql.toSetString(t);if(Rl.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Wt.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Wt.prototype.toArray=function(){return this._array.slice()};Ap.ArraySet=Wt});var kp=E(Tp=>{var _p=Jr();function sw(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||_p.compareByGeneratedPositionsInflated(e,t)<=0}function Xs(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Xs.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Xs.prototype.add=function(t){sw(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Xs.prototype.toArray=function(){return this._sorted||(this._array.sort(_p.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Tp.MappingList=Xs});var Ul=E(Fp=>{var Gn=Bl(),De=Jr(),$s=jl().ArraySet,aw=kp().MappingList;function st(e){e||(e={}),this._file=De.getArg(e,"file",null),this._sourceRoot=De.getArg(e,"sourceRoot",null),this._skipValidation=De.getArg(e,"skipValidation",!1),this._sources=new $s,this._names=new $s,this._mappings=new aw,this._sourcesContents=null}st.prototype._version=3;st.fromSourceMap=function(t){var n=t.sourceRoot,r=new st({file:t.file,sourceRoot:n});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,n!=null&&(s.source=De.relative(n,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),r.addMapping(s)}),t.sources.forEach(function(i){var s=i;n!==null&&(s=De.relative(n,i)),r._sources.has(s)||r._sources.add(s);var a=t.sourceContentFor(i);a!=null&&r.setSourceContent(i,a)}),r};st.prototype.addMapping=function(t){var n=De.getArg(t,"generated"),r=De.getArg(t,"original",null),i=De.getArg(t,"source",null),s=De.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s})};st.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=De.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[De.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[De.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};st.prototype.applySourceMap=function(t,n,r){var i=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=De.relative(s,i));var a=new $s,l=new $s;this._mappings.unsortedForEach(function(o){if(o.source===i&&o.originalLine!=null){var d=t.originalPositionFor({line:o.originalLine,column:o.originalColumn});d.source!=null&&(o.source=d.source,r!=null&&(o.source=De.join(r,o.source)),s!=null&&(o.source=De.relative(s,o.source)),o.originalLine=d.line,o.originalColumn=d.column,d.name!=null&&(o.name=d.name))}var f=o.source;f!=null&&!a.has(f)&&a.add(f);var h=o.name;h!=null&&!l.has(h)&&l.add(h)},this),this._sources=a,this._names=l,t.sources.forEach(function(o){var d=t.sourceContentFor(o);d!=null&&(r!=null&&(o=De.join(r,o)),s!=null&&(o=De.relative(s,o)),this.setSourceContent(o,d))},this)};st.prototype._validateMapping=function(t,n,r,i){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("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(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!i)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:i}))}};st.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,a=0,l="",o,d,f,h,m=this._mappings.toArray(),u=0,c=m.length;u<c;u++){if(d=m[u],o="",d.generatedLine!==n)for(t=0;d.generatedLine!==n;)o+=";",n++;else if(u>0){if(!De.compareByGeneratedPositionsInflated(d,m[u-1]))continue;o+=","}o+=Gn.encode(d.generatedColumn-t),t=d.generatedColumn,d.source!=null&&(h=this._sources.indexOf(d.source),o+=Gn.encode(h-a),a=h,o+=Gn.encode(d.originalLine-1-i),i=d.originalLine-1,o+=Gn.encode(d.originalColumn-r),r=d.originalColumn,d.name!=null&&(f=this._names.indexOf(d.name),o+=Gn.encode(f-s),s=f)),l+=o}return l};st.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=De.relative(n,r));var i=De.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};st.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};st.prototype.toString=function(){return JSON.stringify(this.toJSON())};Fp.SourceMapGenerator=st});var Op=E(Er=>{Er.GREATEST_LOWER_BOUND=1;Er.LEAST_UPPER_BOUND=2;function zl(e,t,n,r,i,s){var a=Math.floor((t-e)/2)+e,l=i(n,r[a],!0);return l===0?a:l>0?t-a>1?zl(a,t,n,r,i,s):s==Er.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?zl(e,a,n,r,i,s):s==Er.LEAST_UPPER_BOUND?a:e<0?-1:e}Er.search=function(t,n,r,i){if(n.length===0)return-1;var s=zl(-1,n.length,t,n,r,i||Er.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var Ip=E(Mp=>{function ow(e){function t(i,s,a){var l=i[s];i[s]=i[a],i[a]=l}function n(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,l){if(a<l){var o=n(a,l),d=a-1;t(i,o,l);for(var f=i[l],h=a;h<l;h++)s(i[h],f,!1)<=0&&(d+=1,t(i,d,h));t(i,d+1,h);var m=d+1;r(i,s,a,m-1),r(i,s,m+1,l)}}return r}function lw(e){let t=ow.toString();return new Function(`return ${t}`)()(e)}var Pp=new WeakMap;Mp.quickSort=function(e,t,n=0){let r=Pp.get(t);r===void 0&&(r=lw(t),Pp.set(t,r)),r(e,t,n,e.length-1)}});var Lp=E(Gs=>{var R=Jr(),Wl=Op(),Xr=jl().ArraySet,uw=Bl(),Kn=Ip().quickSort;function fe(e,t){var n=e;return typeof e=="string"&&(n=R.parseSourceMapInput(e)),n.sections!=null?new bt(n,t):new Fe(n,t)}fe.fromSourceMap=function(e,t){return Fe.fromSourceMap(e,t)};fe.prototype._version=3;fe.prototype.__generatedMappings=null;Object.defineProperty(fe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});fe.prototype.__originalMappings=null;Object.defineProperty(fe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});fe.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};fe.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};fe.GENERATED_ORDER=1;fe.ORIGINAL_ORDER=2;fe.GREATEST_LOWER_BOUND=1;fe.LEAST_UPPER_BOUND=2;fe.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||fe.GENERATED_ORDER,a;switch(s){case fe.GENERATED_ORDER:a=this._generatedMappings;break;case fe.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var l=this.sourceRoot,o=t.bind(i),d=this._names,f=this._sources,h=this._sourceMapURL,m=0,u=a.length;m<u;m++){var c=a[m],p=c.source===null?null:f.at(c.source);p=R.computeSourceURL(l,p,h),o({source:p,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:d.at(c.name)})}};fe.prototype.allGeneratedPositionsFor=function(t){var n=R.getArg(t,"line"),r={source:R.getArg(t,"source"),originalLine:n,originalColumn:R.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",R.compareByOriginalPositions,Wl.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var l=a.originalLine;a&&a.originalLine===l;)i.push({line:R.getArg(a,"generatedLine",null),column:R.getArg(a,"generatedColumn",null),lastColumn:R.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var o=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==o;)i.push({line:R.getArg(a,"generatedLine",null),column:R.getArg(a,"generatedColumn",null),lastColumn:R.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Gs.SourceMapConsumer=fe;function Fe(e,t){var n=e;typeof e=="string"&&(n=R.parseSourceMapInput(e));var r=R.getArg(n,"version"),i=R.getArg(n,"sources"),s=R.getArg(n,"names",[]),a=R.getArg(n,"sourceRoot",null),l=R.getArg(n,"sourcesContent",null),o=R.getArg(n,"mappings"),d=R.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=R.normalize(a)),i=i.map(String).map(R.normalize).map(function(f){return a&&R.isAbsolute(a)&&R.isAbsolute(f)?R.relative(a,f):f}),this._names=Xr.fromArray(s.map(String),!0),this._sources=Xr.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return R.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=l,this._mappings=o,this._sourceMapURL=t,this.file=d}Fe.prototype=Object.create(fe.prototype);Fe.prototype.consumer=fe;Fe.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=R.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};Fe.fromSourceMap=function(t,n){var r=Object.create(Fe.prototype),i=r._names=Xr.fromArray(t._names.toArray(),!0),s=r._sources=Xr.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(u){return R.computeSourceURL(r.sourceRoot,u,n)});for(var a=t._mappings.toArray().slice(),l=r.__generatedMappings=[],o=r.__originalMappings=[],d=0,f=a.length;d<f;d++){var h=a[d],m=new Np;m.generatedLine=h.generatedLine,m.generatedColumn=h.generatedColumn,h.source&&(m.source=s.indexOf(h.source),m.originalLine=h.originalLine,m.originalColumn=h.originalColumn,h.name&&(m.name=i.indexOf(h.name)),o.push(m)),l.push(m)}return Kn(r.__originalMappings,R.compareByOriginalPositions),r};Fe.prototype._version=3;Object.defineProperty(Fe.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Np(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Vl=R.compareByGeneratedPositionsDeflatedNoLine;function Bp(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(r==2){let i=e[t],s=e[t+1];Vl(i,s)>0&&(e[t]=s,e[t+1]=i)}else if(r<20)for(let i=t;i<n;i++)for(let s=i;s>t;s--){let a=e[s-1],l=e[s];if(Vl(a,l)<=0)break;e[s-1]=l,e[s]=a}else Kn(e,Vl,t)}Fe.prototype._parseMappings=function(t,n){var r=1,i=0,s=0,a=0,l=0,o=0,d=t.length,f=0,h={},m={},u=[],c=[],p,g,v,y,b;let S=0;for(;f<d;)if(t.charAt(f)===";")r++,f++,i=0,Bp(c,S),S=c.length;else if(t.charAt(f)===",")f++;else{for(p=new Np,p.generatedLine=r,y=f;y<d&&!this._charIsMappingSeparator(t,y);y++);for(g=t.slice(f,y),v=[];f<y;)uw.decode(t,f,m),b=m.value,f=m.rest,v.push(b);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(p.generatedColumn=i+v[0],i=p.generatedColumn,v.length>1&&(p.source=l+v[1],l+=v[1],p.originalLine=s+v[2],s=p.originalLine,p.originalLine+=1,p.originalColumn=a+v[3],a=p.originalColumn,v.length>4&&(p.name=o+v[4],o+=v[4])),c.push(p),typeof p.originalLine=="number"){let D=p.source;for(;u.length<=D;)u.push(null);u[D]===null&&(u[D]=[]),u[D].push(p)}}Bp(c,S),this.__generatedMappings=c;for(var w=0;w<u.length;w++)u[w]!=null&&Kn(u[w],R.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...u)};Fe.prototype._findMapping=function(t,n,r,i,s,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Wl.search(t,n,s,a)};Fe.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};Fe.prototype.originalPositionFor=function(t){var n={generatedLine:R.getArg(t,"line"),generatedColumn:R.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",R.compareByGeneratedPositionsDeflated,R.getArg(t,"bias",fe.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=R.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=R.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=R.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:R.getArg(i,"originalLine",null),column:R.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};Fe.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Fe.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=R.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=R.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};Fe.prototype.generatedPositionFor=function(t){var n=R.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:R.getArg(t,"line"),originalColumn:R.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",R.compareByOriginalPositions,R.getArg(t,"bias",fe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:R.getArg(s,"generatedLine",null),column:R.getArg(s,"generatedColumn",null),lastColumn:R.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Gs.BasicSourceMapConsumer=Fe;function bt(e,t){var n=e;typeof e=="string"&&(n=R.parseSourceMapInput(e));var r=R.getArg(n,"version"),i=R.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Xr,this._names=new Xr;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var l=R.getArg(a,"offset"),o=R.getArg(l,"line"),d=R.getArg(l,"column");if(o<s.line||o===s.line&&d<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=l,{generatedOffset:{generatedLine:o+1,generatedColumn:d+1},consumer:new fe(R.getArg(a,"map"),t)}})}bt.prototype=Object.create(fe.prototype);bt.prototype.constructor=fe;bt.prototype._version=3;Object.defineProperty(bt.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});bt.prototype.originalPositionFor=function(t){var n={generatedLine:R.getArg(t,"line"),generatedColumn:R.getArg(t,"column")},r=Wl.search(n,this._sections,function(s,a){var l=s.generatedLine-a.generatedOffset.generatedLine;return l||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};bt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};bt.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};bt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(R.getArg(t,"source"))!==-1){var i=r.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};bt.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var l=s[a],o=i.consumer._sources.at(l.source);o=R.computeSourceURL(i.consumer.sourceRoot,o,this._sourceMapURL),this._sources.add(o),o=this._sources.indexOf(o);var d=null;l.name&&(d=i.consumer._names.at(l.name),this._names.add(d),d=this._names.indexOf(d));var f={source:o,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:d};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Kn(this.__generatedMappings,R.compareByGeneratedPositionsDeflated),Kn(this.__originalMappings,R.compareByOriginalPositions)};Gs.IndexedSourceMapConsumer=bt});var Rp=E(qp=>{var cw=Ul().SourceMapGenerator,Ks=Jr(),fw=/(\r?\n)/,dw=10,$r="$$$isSourceNode$$$";function Ye(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=n==null?null:n,this.name=i==null?null:i,this[$r]=!0,r!=null&&this.add(r)}Ye.fromStringWithSourceMap=function(t,n,r){var i=new Ye,s=t.split(fw),a=0,l=function(){var m=c(),u=c()||"";return m+u;function c(){return a<s.length?s[a++]:void 0}},o=1,d=0,f=null;return n.eachMapping(function(m){if(f!==null)if(o<m.generatedLine)h(f,l()),o++,d=0;else{var u=s[a]||"",c=u.substr(0,m.generatedColumn-d);s[a]=u.substr(m.generatedColumn-d),d=m.generatedColumn,h(f,c),f=m;return}for(;o<m.generatedLine;)i.add(l()),o++;if(d<m.generatedColumn){var u=s[a]||"";i.add(u.substr(0,m.generatedColumn)),s[a]=u.substr(m.generatedColumn),d=m.generatedColumn}f=m},this),a<s.length&&(f&&h(f,l()),i.add(s.splice(a).join(""))),n.sources.forEach(function(m){var u=n.sourceContentFor(m);u!=null&&(r!=null&&(m=Ks.join(r,m)),i.setSourceContent(m,u))}),i;function h(m,u){if(m===null||m.source===void 0)i.add(u);else{var c=r?Ks.join(r,m.source):m.source;i.add(new Ye(m.originalLine,m.originalColumn,c,u,m.name))}}};Ye.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[$r]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ye.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[$r]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ye.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[$r]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Ye.prototype.join=function(t){var n,r,i=this.children.length;if(i>0){for(n=[],r=0;r<i-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};Ye.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[$r]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Ye.prototype.setSourceContent=function(t,n){this.sourceContents[Ks.toSetString(t)]=n};Ye.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][$r]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Ks.fromSetString(i[n]),this.sourceContents[i[n]])};Ye.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Ye.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new cw(t),i=!1,s=null,a=null,l=null,o=null;return this.walk(function(d,f){n.code+=d,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||l!==f.column||o!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),s=f.source,a=f.line,l=f.column,o=f.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var h=0,m=d.length;h<m;h++)d.charCodeAt(h)===dw?(n.line++,n.column=0,h+1===m?(s=null,i=!1):i&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(d,f){r.setSourceContent(d,f)}),{code:n.code,map:r}};qp.SourceNode=Ye});var Ys=E(Hs=>{Hs.SourceMapGenerator=Ul().SourceMapGenerator;Hs.SourceMapConsumer=Lp().SourceMapConsumer;Hs.SourceNode=Rp().SourceNode});var Up=E((l3,jp)=>{var pw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hw=(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r},mw=(e=21)=>{let t="",n=e;for(;n--;)t+=pw[Math.random()*64|0];return t};jp.exports={nanoid:mw,customAlphabet:hw}});var Xl=E((u3,Vp)=>{"use strict";var{SourceMapConsumer:zp,SourceMapGenerator:Wp}=Ys(),{existsSync:gw,readFileSync:vw}=require("fs"),{dirname:Jl,join:yw}=require("path");function bw(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Qs=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,i=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Jl(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new zp(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,n){return t?t.substr(0,n.length)===n:!1}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(t)||s.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return bw(t.substr(RegExp.lastMatch.length));let a=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}loadFile(t){if(this.root=Jl(t),gw(t))return this.mapFile=t,vw(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(n instanceof zp)return Wp.fromSourceMap(n).toString();if(n instanceof Wp)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=yw(Jl(t),r)),this.loadFile(r)}}}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}};Vp.exports=Qs;Qs.default=Qs});var Yn=E((c3,Gp)=>{"use strict";var{SourceMapConsumer:xw,SourceMapGenerator:Sw}=Ys(),{fileURLToPath:Jp,pathToFileURL:Zs}=require("url"),{resolve:$l,isAbsolute:Gl}=require("path"),{nanoid:ww}=Up(),Kl=Tl(),Xp=js(),Ew=Xl(),Hl=Symbol("fromOffsetCache"),Dw=Boolean(xw&&Sw),$p=Boolean($l&&Gl),Hn=class{constructor(t,n={}){if(t===null||typeof t=="undefined"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!$p||/^\w+:\/\//.test(n.from)||Gl(n.from)?this.file=n.from:this.file=$l(n.from)),$p&&Dw){let r=new Ew(this.css,n);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ww(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(t){let n,r;if(this[Hl])r=this[Hl];else{let s=this.css.split(`
`);r=new Array(s.length);let a=0;for(let l=0,o=s.length;l<o;l++)r[l]=a,a+=s[l].length+1;this[Hl]=r}n=r[r.length-1];let i=0;if(t>=n)i=r.length-1;else{let s=r.length-2,a;for(;i<s;)if(a=i+(s-i>>1),t<r[a])s=a-1;else if(t>=r[a+1])i=a+1;else{i=a;break}}return{line:i+1,col:t-r[i]+1}}error(t,n,r,i={}){let s,a,l;if(n&&typeof n=="object"){let d=n,f=r;if(typeof n.offset=="number"){let h=this.fromOffset(d.offset);n=h.line,r=h.col}else n=d.line,r=d.column;if(typeof f.offset=="number"){let h=this.fromOffset(f.offset);a=h.line,l=h.col}else a=f.line,l=f.column}else if(!r){let d=this.fromOffset(n);n=d.line,r=d.col}let o=this.origin(n,r,a,l);return o?s=new Xp(t,o.endLine===void 0?o.line:{line:o.line,column:o.column},o.endLine===void 0?o.column:{line:o.endLine,column:o.endColumn},o.source,o.file,i.plugin):s=new Xp(t,a===void 0?n:{line:n,column:r},a===void 0?r:{line:a,column:l},this.css,this.file,i.plugin),s.input={line:n,column:r,endLine:a,endColumn:l,source:this.css},this.file&&(Zs&&(s.input.url=Zs(this.file).toString()),s.input.file=this.file),s}origin(t,n,r,i){if(!this.map)return!1;let s=this.map.consumer(),a=s.originalPositionFor({line:t,column:n});if(!a.source)return!1;let l;typeof r=="number"&&(l=s.originalPositionFor({line:r,column:i}));let o;Gl(a.source)?o=Zs(a.source):o=new URL(a.source,this.map.consumer().sourceRoot||Zs(this.map.mapFile));let d={url:o.toString(),line:a.line,column:a.column,endLine:l&&l.line,endColumn:l&&l.column};if(o.protocol==="file:")if(Jp)d.file=Jp(o);else throw new Error("file: protocol is not available in this PostCSS build");let f=s.sourceContentFor(a.source);return f&&(d.source=f),d}mapResolve