imba
Version:
137 lines • 400 kB
JavaScript
var bh=Object.create;var Yr=Object.defineProperty;var yh=Object.getOwnPropertyDescriptor;var vh=Object.getOwnPropertyNames;var wh=Object.getPrototypeOf,xh=Object.prototype.hasOwnProperty;var _h=(r,e,t)=>e in r?Yr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Y=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),kh=(r,e)=>{for(var t in e)Yr(r,t,{get:e[t],enumerable:!0})},Sh=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of vh(e))!xh.call(r,i)&&i!==t&&Yr(r,i,{get:()=>e[i],enumerable:!(n=yh(e,i))||n.enumerable});return r};var te=(r,e,t)=>(t=r!=null?bh(wh(r)):{},Sh(e||!r||!r.__esModule?Yr(t,"default",{value:r,enumerable:!0}):t,r));var Z=(r,e,t)=>_h(r,typeof e!="symbol"?e+"":e,t);var Oa=Y((Eb,Ea)=>{Ea.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,o){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:o})},t.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var s in n)t.d(o,s,function(a){return n[a]}.bind(null,s));return o},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=78)}([function(r,e){r.exports=require("path")},function(r,e,t){"use strict";t(22),t(101),t(21),t(103),t(114),t(16),t(27),t(74),t(116),t(2);var n=t(0),i=t(5),o=t(17),s=t(49),a=t(76),l=t(45),c=t(121),u=function(h){var v=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).unify,b=v!==void 0&&v;return new Promise(function(w){s.exec(h,{stdio:[0,"pipe","ignore"]},function(d,k,S){var E="";E=b?k.toString()+S.toString():k.toString(),w((d?"":E).trim())})})},f=function(h){var v=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===h&&console.log(h,JSON.stringify(v))},g=function(h){return new Promise(function(v){i.readFile(h,"utf8",function(b,w){return v(w||null)})})},m=function(h){return g(h).then(function(v){return v?JSON.parse(v):null})},p=/\d+\.[\d+|.]+/g,y=function(h){f("trace","findDarwinApplication",h);var v=`mdfind "kMDItemCFBundleIdentifier=='${h}'"`;return f("trace",v),u(v).then(function(b){return b.replace(/(\s)/g,"\\ ")})},x=function(h,v){var b=(v||["CFBundleShortVersionString"]).map(function(w){return"-c Print:"+w});return["/usr/libexec/PlistBuddy"].concat(b).concat([h]).join(" ")},_=function(h,v){for(var b=[],w=null;(w=h.exec(v))!==null;)b.push(w);return b};r.exports={run:u,log:f,fileExists:function(h){return new Promise(function(v){i.stat(h,function(b){return v(b?null:h)})})},readFile:g,requireJson:m,versionRegex:p,findDarwinApplication:y,generatePlistBuddyCommand:x,matchAll:_,parseSDKManagerOutput:function(h){var v=h.split("Available")[0];return{apiLevels:_(c.androidAPILevels,v).map(function(b){return b[1]}),buildTools:_(c.androidBuildTools,v).map(function(b){return b[1]}),systemImages:_(c.androidSystemImages,v).map(function(b){return b[1].split("|").map(function(w){return w.trim()})}).map(function(b){return b[0].split(";")[0]+" | "+b[2].split(" System Image")[0]})}},isLinux:process.platform==="linux",isMacOS:process.platform==="darwin",NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:function(h){return typeof h=="object"&&!Array.isArray(h)},noop:function(h){return h},pipe:function(h){return function(v){return h.reduce(function(b,w){return w(b)},v)}},browserBundleIdentifiers:{"Brave Browser":"com.brave.Browser",Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly","Microsoft Edge":"com.microsoft.edgemac",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:function(h){return(s.execSync(h,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},which:function(h){return new Promise(function(v){return a(h,function(b,w){return v(w)})})},getDarwinApplicationVersion:function(h){var v;return f("trace","getDarwinApplicationVersion",h),v=process.platform!=="darwin"?"N/A":y(h).then(function(b){return u(x(n.join(b,"Contents","Info.plist"),["CFBundleShortVersionString"]))}),Promise.resolve(v)},uniq:function(h){return Array.from(new Set(h))},toReadableBytes:function(h){var v=Math.floor(Math.log(h)/Math.log(1024));return h?(h/Math.pow(1024,v)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][v]:"0 Bytes"},omit:function(h,v){return Object.keys(h).filter(function(b){return v.indexOf(b)<0}).reduce(function(b,w){return Object.assign(b,{[w]:h[w]})},{})},pick:function(h,v){return Object.keys(h).filter(function(b){return v.indexOf(b)>=0}).reduce(function(b,w){return Object.assign(b,{[w]:h[w]})},{})},getPackageJsonByName:function(h){return m(n.join(process.cwd(),"node_modules",h,"package.json"))},getPackageJsonByPath:function(h){return m(n.join(process.cwd(),h))},getPackageJsonByFullPath:function(h){return f("trace","getPackageJsonByFullPath",h),m(h)},getAllPackageJsonPaths:function(h){return f("trace","getAllPackageJsonPaths",h),new Promise(function(v){var b=function(w,d){return v(d.map(n.normalize)||[])};return l(h?n.join("node_modules",h,"package.json"):n.join("node_modules","**","package.json"),b)})},sortObject:function(h){return Object.keys(h).sort().reduce(function(v,b){return v[b]=h[b],v},{})},findVersion:function(h,v,b){f("trace","findVersion",h,v,b);var w=b||0,d=v||p,k=h.match(d);return k?k[w]:h},condensePath:function(h){return(h||"").replace(o.homedir(),"~")},determineFound:function(h,v,b){return f("trace","determineFound",h,v,b),v==="N/A"?Promise.resolve([h,"N/A"]):v&&Object.keys(v).length!==0?b?Promise.resolve([h,v,b]):Promise.resolve([h,v]):Promise.resolve([h,"Not Found"])}}},function(r,e,t){"use strict";var n,i,o,s,a=t(36),l=t(4),c=t(12),u=t(56),f=t(8),g=t(6),m=t(19),p=t(37),y=t(38),x=t(81),_=t(60).set,h=t(83)(),v=t(62),b=t(84),w=t(85),d=t(86),k=l.TypeError,S=l.process,E=S&&S.versions,O=E&&E.v8||"",I=l.Promise,P=u(S)=="process",T=function(){},R=i=v.f,L=!!function(){try{var N=I.resolve(1),q=(N.constructor={})[t(3)("species")]=function(K){K(T,T)};return(P||typeof PromiseRejectionEvent=="function")&&N.then(T)instanceof q&&O.indexOf("6.6")!==0&&w.indexOf("Chrome/66")===-1}catch{}}(),B=function(N){var q;return!(!g(N)||typeof(q=N.then)!="function")&&q},C=function(N,q){if(!N._n){N._n=!0;var K=N._c;h(function(){for(var ie=N._v,le=N._s==1,xe=0,me=function(de){var W,Ye,Ae,ge=le?de.ok:de.fail,Se=de.resolve,Re=de.reject,De=de.domain;try{ge?(le||(N._h==2&&z(N),N._h=1),ge===!0?W=ie:(De&&De.enter(),W=ge(ie),De&&(De.exit(),Ae=!0)),W===de.promise?Re(k("Promise-chain cycle")):(Ye=B(W))?Ye.call(W,Se,Re):Se(W)):Re(ie)}catch(xt){De&&!Ae&&De.exit(),Re(xt)}};K.length>xe;)me(K[xe++]);N._c=[],N._n=!1,q&&!N._h&&F(N)})}},F=function(N){_.call(l,function(){var q,K,ie,le=N._v,xe=M(N);if(xe&&(q=b(function(){P?S.emit("unhandledRejection",le,N):(K=l.onunhandledrejection)?K({promise:N,reason:le}):(ie=l.console)&&ie.error&&ie.error("Unhandled promise rejection",le)}),N._h=P||M(N)?2:1),N._a=void 0,xe&&q.e)throw q.v})},M=function(N){return N._h!==1&&(N._a||N._c).length===0},z=function(N){_.call(l,function(){var q;P?S.emit("rejectionHandled",N):(q=l.onrejectionhandled)&&q({promise:N,reason:N._v})})},D=function(N){var q=this;q._d||(q._d=!0,(q=q._w||q)._v=N,q._s=2,q._a||(q._a=q._c.slice()),C(q,!0))},J=function(N){var q,K=this;if(!K._d){K._d=!0,K=K._w||K;try{if(K===N)throw k("Promise can't be resolved itself");(q=B(N))?h(function(){var ie={_w:K,_d:!1};try{q.call(N,c(J,ie,1),c(D,ie,1))}catch(le){D.call(ie,le)}}):(K._v=N,K._s=1,C(K,!1))}catch(ie){D.call({_w:K,_d:!1},ie)}}};L||(I=function(N){p(this,I,"Promise","_h"),m(N),n.call(this);try{N(c(J,this,1),c(D,this,1))}catch(q){D.call(this,q)}},(n=function(N){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(40)(I.prototype,{then:function(N,q){var K=R(x(this,I));return K.ok=typeof N!="function"||N,K.fail=typeof q=="function"&&q,K.domain=P?S.domain:void 0,this._c.push(K),this._a&&this._a.push(K),this._s&&C(this,!1),K.promise},catch:function(N){return this.then(void 0,N)}}),o=function(){var N=new n;this.promise=N,this.resolve=c(J,N,1),this.reject=c(D,N,1)},v.f=R=function(N){return N===I||N===s?new o(N):i(N)}),f(f.G+f.W+f.F*!L,{Promise:I}),t(26)(I,"Promise"),t(63)("Promise"),s=t(18).Promise,f(f.S+f.F*!L,"Promise",{reject:function(N){var q=R(this);return(0,q.reject)(N),q.promise}}),f(f.S+f.F*(a||!L),"Promise",{resolve:function(N){return d(a&&this===s?I:this,N)}}),f(f.S+f.F*!(L&&t(41)(function(N){I.all(N).catch(T)})),"Promise",{all:function(N){var q=this,K=R(q),ie=K.resolve,le=K.reject,xe=b(function(){var me=[],de=0,W=1;y(N,!1,function(Ye){var Ae=de++,ge=!1;me.push(void 0),W++,q.resolve(Ye).then(function(Se){ge||(ge=!0,me[Ae]=Se,--W||ie(me))},le)}),--W||ie(me)});return xe.e&&le(xe.v),K.promise},race:function(N){var q=this,K=R(q),ie=K.reject,le=b(function(){y(N,!1,function(xe){q.resolve(xe).then(K.resolve,ie)})});return le.e&&ie(le.v),K.promise}})},function(r,e,t){var n=t(55)("wks"),i=t(24),o=t(4).Symbol,s=typeof o=="function";(r.exports=function(a){return n[a]||(n[a]=s&&o[a]||(s?o:i)("Symbol."+a))}).store=n},function(r,e){var t=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)},function(r,e){r.exports=require("fs")},function(r,e){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},function(r,e,t){var n=t(6);r.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},function(r,e,t){var n=t(4),i=t(18),o=t(13),s=t(14),a=t(12),l=function(c,u,f){var g,m,p,y,x=c&l.F,_=c&l.G,h=c&l.S,v=c&l.P,b=c&l.B,w=_?n:h?n[u]||(n[u]={}):(n[u]||{}).prototype,d=_?i:i[u]||(i[u]={}),k=d.prototype||(d.prototype={});for(g in _&&(f=u),f)p=((m=!x&&w&&w[g]!==void 0)?w:f)[g],y=b&&m?a(p,n):v&&typeof p=="function"?a(Function.call,p):p,w&&s(w,g,p,c&l.U),d[g]!=p&&o(d,g,y),v&&k[g]!=p&&(k[g]=p)};n.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,r.exports=l},function(r,e,t){r.exports=!t(10)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,e){r.exports=function(t){try{return!!t()}catch{return!0}}},function(r,e,t){var n=t(7),i=t(50),o=t(51),s=Object.defineProperty;e.f=t(9)?Object.defineProperty:function(a,l,c){if(n(a),l=o(l,!0),n(c),i)try{return s(a,l,c)}catch{}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[l]=c.value),a}},function(r,e,t){var n=t(19);r.exports=function(i,o,s){if(n(i),o===void 0)return i;switch(s){case 1:return function(a){return i.call(o,a)};case 2:return function(a,l){return i.call(o,a,l)};case 3:return function(a,l,c){return i.call(o,a,l,c)}}return function(){return i.apply(o,arguments)}}},function(r,e,t){var n=t(11),i=t(23);r.exports=t(9)?function(o,s,a){return n.f(o,s,i(1,a))}:function(o,s,a){return o[s]=a,o}},function(r,e,t){var n=t(4),i=t(13),o=t(15),s=t(24)("src"),a=Function.toString,l=(""+a).split("toString");t(18).inspectSource=function(c){return a.call(c)},(r.exports=function(c,u,f,g){var m=typeof f=="function";m&&(o(f,"name")||i(f,"name",u)),c[u]!==f&&(m&&(o(f,s)||i(f,s,c[u]?""+c[u]:l.join(String(u)))),c===n?c[u]=f:g?c[u]?c[u]=f:i(c,u,f):(delete c[u],i(c,u,f)))})(Function.prototype,"toString",function(){return typeof this=="function"&&this[s]||a.call(this)})},function(r,e){var t={}.hasOwnProperty;r.exports=function(n,i){return t.call(n,i)}},function(r,e,t){t(28)("split",2,function(n,i,o){"use strict";var s=t(92),a=o,l=[].push;if("abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length){var c=/()??/.exec("")[1]===void 0;o=function(u,f){var g=String(this);if(u===void 0&&f===0)return[];if(!s(u))return a.call(g,u,f);var m,p,y,x,_,h=[],v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(u.sticky?"y":""),b=0,w=f===void 0?4294967295:f>>>0,d=new RegExp(u.source,v+"g");for(c||(m=new RegExp("^"+d.source+"$(?!\\s)",v));(p=d.exec(g))&&!((y=p.index+p[0].length)>b&&(h.push(g.slice(b,p.index)),!c&&p.length>1&&p[0].replace(m,function(){for(_=1;_<arguments.length-2;_++)arguments[_]===void 0&&(p[_]=void 0)}),p.length>1&&p.index<g.length&&l.apply(h,p.slice(1)),x=p[0].length,b=y,h.length>=w));)d.lastIndex===p.index&&d.lastIndex++;return b===g.length?!x&&d.test("")||h.push(""):h.push(g.slice(b)),h.length>w?h.slice(0,w):h}}else"0".split(void 0,0).length&&(o=function(u,f){return u===void 0&&f===0?[]:a.call(this,u,f)});return[function(u,f){var g=n(this),m=u?.[i];return m!==void 0?m.call(u,g,f):o.call(String(g),u,f)},o]})},function(r,e){r.exports=require("os")},function(r,e){var t=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=t)},function(r,e){r.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}},function(r,e){var t={}.toString;r.exports=function(n){return t.call(n).slice(8,-1)}},function(r,e,t){var n=t(8);n(n.S+n.F,"Object",{assign:t(88)})},function(r,e,t){t(28)("match",1,function(n,i,o){return[function(s){"use strict";var a=n(this),l=s?.[i];return l!==void 0?l.call(s,a):new RegExp(s)[i](String(a))},o]})},function(r,e){r.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(r,e){var t=0,n=Math.random();r.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++t+n).toString(36))}},function(r,e,t){var n=t(53),i=t(34);r.exports=function(o){return n(i(o))}},function(r,e,t){var n=t(11).f,i=t(15),o=t(3)("toStringTag");r.exports=function(s,a,l){s&&!i(s=l?s:s.prototype,o)&&n(s,o,{configurable:!0,value:a})}},function(r,e,t){t(28)("replace",2,function(n,i,o){return[function(s,a){"use strict";var l=n(this),c=s?.[i];return c!==void 0?c.call(s,l,a):o.call(String(l),s,a)},o]})},function(r,e,t){"use strict";var n=t(13),i=t(14),o=t(10),s=t(34),a=t(3);r.exports=function(l,c,u){var f=a(l),g=u(s,f,""[l]),m=g[0],p=g[1];o(function(){var y={};return y[f]=function(){return 7},""[l](y)!=7})&&(i(String.prototype,l,m),n(RegExp.prototype,f,c==2?function(y,x){return p.call(y,this,x)}:function(y){return p.call(y,this)}))}},function(r,e,t){var n=t(34);r.exports=function(i){return Object(n(i))}},function(r,e){r.exports=require("util")},function(r,e,t){var n=t(70);function i(s){var a=function(){return a.called?a.value:(a.called=!0,a.value=s.apply(this,arguments))};return a.called=!1,a}function o(s){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=s.apply(this,arguments)},l=s.name||"Function wrapped with `once`";return a.onceError=l+" shouldn't be called more than once",a.called=!1,a}r.exports=n(i),r.exports.strict=n(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},function(r,e,t){"use strict";var n=t(8),i=t(52)(!0);n(n.P,"Array",{includes:function(o){return i(this,o,arguments.length>1?arguments[1]:void 0)}}),t(80)("includes")},function(r,e,t){var n=t(6),i=t(4).document,o=n(i)&&n(i.createElement);r.exports=function(s){return o?i.createElement(s):{}}},function(r,e){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(r,e,t){var n=t(54),i=Math.min;r.exports=function(o){return o>0?i(n(o),9007199254740991):0}},function(r,e){r.exports=!1},function(r,e){r.exports=function(t,n,i,o){if(!(t instanceof n)||o!==void 0&&o in t)throw TypeError(i+": incorrect invocation!");return t}},function(r,e,t){var n=t(12),i=t(57),o=t(58),s=t(7),a=t(35),l=t(59),c={},u={};(e=r.exports=function(f,g,m,p,y){var x,_,h,v,b=y?function(){return f}:l(f),w=n(m,p,g?2:1),d=0;if(typeof b!="function")throw TypeError(f+" is not iterable!");if(o(b)){for(x=a(f.length);x>d;d++)if((v=g?w(s(_=f[d])[0],_[1]):w(f[d]))===c||v===u)return v}else for(h=b.call(f);!(_=h.next()).done;)if((v=i(h,w,_.value,g))===c||v===u)return v}).BREAK=c,e.RETURN=u},function(r,e){r.exports={}},function(r,e,t){var n=t(14);r.exports=function(i,o,s){for(var a in o)n(i,a,o[a],s);return i}},function(r,e,t){var n=t(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch{}r.exports=function(s,a){if(!a&&!i)return!1;var l=!1;try{var c=[7],u=c[n]();u.next=function(){return{done:l=!0}},c[n]=function(){return u},s(c)}catch{}return l}},function(r,e,t){var n=t(87),i=t(66);r.exports=Object.keys||function(o){return n(o,i)}},function(r,e,t){var n=t(55)("keys"),i=t(24);r.exports=function(o){return n[o]||(n[o]=i(o))}},function(r,e){e.f={}.propertyIsEnumerable},function(r,e,t){r.exports=v;var n=t(5),i=t(67),o=t(46),s=(o.Minimatch,t(97)),a=t(68).EventEmitter,l=t(0),c=t(47),u=t(48),f=t(99),g=t(69),m=(g.alphasort,g.alphasorti,g.setopts),p=g.ownProp,y=t(100),x=(t(30),g.childrenIgnored),_=g.isIgnored,h=t(31);function v(d,k,S){if(typeof k=="function"&&(S=k,k={}),k||(k={}),k.sync){if(S)throw new TypeError("callback provided to sync glob");return f(d,k)}return new w(d,k,S)}v.sync=f;var b=v.GlobSync=f.GlobSync;function w(d,k,S){if(typeof k=="function"&&(S=k,k=null),k&&k.sync){if(S)throw new TypeError("callback provided to sync glob");return new b(d,k)}if(!(this instanceof w))return new w(d,k,S);m(this,d,k),this._didRealPath=!1;var E=this.minimatch.set.length;this.matches=new Array(E),typeof S=="function"&&(S=h(S),this.on("error",S),this.on("end",function(R){S(null,R)}));var O=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(E===0)return T();for(var I=!0,P=0;P<E;P++)this._process(this.minimatch.set[P],P,!1,T);function T(){--O._processing,O._processing<=0&&(I?process.nextTick(function(){O._finish()}):O._finish())}I=!1}v.glob=v,v.hasMagic=function(d,k){var S=function(I,P){if(P===null||typeof P!="object")return I;for(var T=Object.keys(P),R=T.length;R--;)I[T[R]]=P[T[R]];return I}({},k);S.noprocess=!0;var E=new w(d,S).minimatch.set;if(!d)return!1;if(E.length>1)return!0;for(var O=0;O<E[0].length;O++)if(typeof E[0][O]!="string")return!0;return!1},v.Glob=w,s(w,a),w.prototype._finish=function(){if(c(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();g.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var d=this.matches.length;if(d===0)return this._finish();for(var k=this,S=0;S<this.matches.length;S++)this._realpathSet(S,E)}function E(){--d==0&&k._finish()}},w.prototype._realpathSet=function(d,k){var S=this.matches[d];if(!S)return k();var E=Object.keys(S),O=this,I=E.length;if(I===0)return k();var P=this.matches[d]=Object.create(null);E.forEach(function(T,R){T=O._makeAbs(T),i.realpath(T,O.realpathCache,function(L,B){L?L.syscall==="stat"?P[T]=!0:O.emit("error",L):P[B]=!0,--I==0&&(O.matches[d]=P,k())})})},w.prototype._mark=function(d){return g.mark(this,d)},w.prototype._makeAbs=function(d){return g.makeAbs(this,d)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var d=this._emitQueue.slice(0);this._emitQueue.length=0;for(var k=0;k<d.length;k++){var S=d[k];this._emitMatch(S[0],S[1])}}if(this._processQueue.length){var E=this._processQueue.slice(0);for(this._processQueue.length=0,k=0;k<E.length;k++){var O=E[k];this._processing--,this._process(O[0],O[1],O[2],O[3])}}}},w.prototype._process=function(d,k,S,E){if(c(this instanceof w),c(typeof E=="function"),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([d,k,S,E]);else{for(var O,I=0;typeof d[I]=="string";)I++;switch(I){case d.length:return void this._processSimple(d.join("/"),k,E);case 0:O=null;break;default:O=d.slice(0,I).join("/")}var P,T=d.slice(I);O===null?P=".":((u(O)||u(d.join("/")))&&(O&&u(O)||(O="/"+O)),P=O);var R=this._makeAbs(P);if(x(this,P))return E();T[0]===o.GLOBSTAR?this._processGlobStar(O,P,R,T,k,S,E):this._processReaddir(O,P,R,T,k,S,E)}},w.prototype._processReaddir=function(d,k,S,E,O,I,P){var T=this;this._readdir(S,I,function(R,L){return T._processReaddir2(d,k,S,E,O,I,L,P)})},w.prototype._processReaddir2=function(d,k,S,E,O,I,P,T){if(!P)return T();for(var R=E[0],L=!!this.minimatch.negate,B=R._glob,C=this.dot||B.charAt(0)===".",F=[],M=0;M<P.length;M++)((D=P[M]).charAt(0)!=="."||C)&&(L&&!d?!D.match(R):D.match(R))&&F.push(D);var z=F.length;if(z===0)return T();if(E.length===1&&!this.mark&&!this.stat){for(this.matches[O]||(this.matches[O]=Object.create(null)),M=0;M<z;M++){var D=F[M];d&&(D=d!=="/"?d+"/"+D:d+D),D.charAt(0)!=="/"||this.nomount||(D=l.join(this.root,D)),this._emitMatch(O,D)}return T()}for(E.shift(),M=0;M<z;M++)D=F[M],d&&(D=d!=="/"?d+"/"+D:d+D),this._process([D].concat(E),O,I,T);T()},w.prototype._emitMatch=function(d,k){if(!this.aborted&&!_(this,k))if(this.paused)this._emitQueue.push([d,k]);else{var S=u(k)?k:this._makeAbs(k);if(this.mark&&(k=this._mark(k)),this.absolute&&(k=S),!this.matches[d][k]){if(this.nodir){var E=this.cache[S];if(E==="DIR"||Array.isArray(E))return}this.matches[d][k]=!0;var O=this.statCache[S];O&&this.emit("stat",k,O),this.emit("match",k)}}},w.prototype._readdirInGlobStar=function(d,k){if(!this.aborted){if(this.follow)return this._readdir(d,!1,k);var S=this,E=y("lstat\0"+d,function(O,I){if(O&&O.code==="ENOENT")return k();var P=I&&I.isSymbolicLink();S.symlinks[d]=P,P||!I||I.isDirectory()?S._readdir(d,!1,k):(S.cache[d]="FILE",k())});E&&n.lstat(d,E)}},w.prototype._readdir=function(d,k,S){if(!this.aborted&&(S=y("readdir\0"+d+"\0"+k,S))){if(k&&!p(this.symlinks,d))return this._readdirInGlobStar(d,S);if(p(this.cache,d)){var E=this.cache[d];if(!E||E==="FILE")return S();if(Array.isArray(E))return S(null,E)}n.readdir(d,function(O,I,P){return function(T,R){T?O._readdirError(I,T,P):O._readdirEntries(I,R,P)}}(this,d,S))}},w.prototype._readdirEntries=function(d,k,S){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<k.length;E++){var O=k[E];O=d==="/"?d+O:d+"/"+O,this.cache[O]=!0}return this.cache[d]=k,S(null,k)}},w.prototype._readdirError=function(d,k,S){if(!this.aborted){switch(k.code){case"ENOTSUP":case"ENOTDIR":var E=this._makeAbs(d);if(this.cache[E]="FILE",E===this.cwdAbs){var O=new Error(k.code+" invalid cwd "+this.cwd);O.path=this.cwd,O.code=k.code,this.emit("error",O),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(d)]=!1;break;default:this.cache[this._makeAbs(d)]=!1,this.strict&&(this.emit("error",k),this.abort()),this.silent||console.error("glob error",k)}return S()}},w.prototype._processGlobStar=function(d,k,S,E,O,I,P){var T=this;this._readdir(S,I,function(R,L){T._processGlobStar2(d,k,S,E,O,I,L,P)})},w.prototype._processGlobStar2=function(d,k,S,E,O,I,P,T){if(!P)return T();var R=E.slice(1),L=d?[d]:[],B=L.concat(R);this._process(B,O,!1,T);var C=this.symlinks[S],F=P.length;if(C&&I)return T();for(var M=0;M<F;M++)if(P[M].charAt(0)!=="."||this.dot){var z=L.concat(P[M],R);this._process(z,O,!0,T);var D=L.concat(P[M],E);this._process(D,O,!0,T)}T()},w.prototype._processSimple=function(d,k,S){var E=this;this._stat(d,function(O,I){E._processSimple2(d,k,O,I,S)})},w.prototype._processSimple2=function(d,k,S,E,O){if(this.matches[k]||(this.matches[k]=Object.create(null)),!E)return O();if(d&&u(d)&&!this.nomount){var I=/[\/\\]$/.test(d);d.charAt(0)==="/"?d=l.join(this.root,d):(d=l.resolve(this.root,d),I&&(d+="/"))}process.platform==="win32"&&(d=d.replace(/\\/g,"/")),this._emitMatch(k,d),O()},w.prototype._stat=function(d,k){var S=this._makeAbs(d),E=d.slice(-1)==="/";if(d.length>this.maxLength)return k();if(!this.stat&&p(this.cache,S)){var O=this.cache[S];if(Array.isArray(O)&&(O="DIR"),!E||O==="DIR")return k(null,O);if(E&&O==="FILE")return k()}var I=this.statCache[S];if(I!==void 0){if(I===!1)return k(null,I);var P=I.isDirectory()?"DIR":"FILE";return E&&P==="FILE"?k():k(null,P,I)}var T=this,R=y("stat\0"+S,function(L,B){if(B&&B.isSymbolicLink())return n.stat(S,function(C,F){C?T._stat2(d,S,null,B,k):T._stat2(d,S,C,F,k)});T._stat2(d,S,L,B,k)});R&&n.lstat(S,R)},w.prototype._stat2=function(d,k,S,E,O){if(S&&(S.code==="ENOENT"||S.code==="ENOTDIR"))return this.statCache[k]=!1,O();var I=d.slice(-1)==="/";if(this.statCache[k]=E,k.slice(-1)==="/"&&E&&!E.isDirectory())return O(null,!1,E);var P=!0;return E&&(P=E.isDirectory()?"DIR":"FILE"),this.cache[k]=this.cache[k]||P,I&&P==="FILE"?O():O(null,P,E)}},function(r,e,t){r.exports=p,p.Minimatch=y;var n={sep:"/"};try{n=t(0)}catch{}var i=p.GLOBSTAR=y.GLOBSTAR={},o=t(94),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",l=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",f="().*{}+?[]^$\\!".split("").reduce(function(h,v){return h[v]=!0,h},{}),g=/\/+/;function m(h,v){h=h||{},v=v||{};var b={};return Object.keys(v).forEach(function(w){b[w]=v[w]}),Object.keys(h).forEach(function(w){b[w]=h[w]}),b}function p(h,v,b){if(typeof v!="string")throw new TypeError("glob pattern string required");return b||(b={}),!(!b.nocomment&&v.charAt(0)==="#")&&(v.trim()===""?h==="":new y(v,b).match(h))}function y(h,v){if(!(this instanceof y))return new y(h,v);if(typeof h!="string")throw new TypeError("glob pattern string required");v||(v={}),h=h.trim(),n.sep!=="/"&&(h=h.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=h,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function x(h,v){if(v||(v=this instanceof y?this.options:{}),(h=h===void 0?this.pattern:h)===void 0)throw new TypeError("undefined pattern");return v.nobrace||!h.match(/\{.*\}/)?[h]:o(h)}p.filter=function(h,v){return v=v||{},function(b,w,d){return p(b,h,v)}},p.defaults=function(h){if(!h||!Object.keys(h).length)return p;var v=p,b=function(w,d,k){return v.minimatch(w,d,m(h,k))};return b.Minimatch=function(w,d){return new v.Minimatch(w,m(h,d))},b},y.defaults=function(h){return h&&Object.keys(h).length?p.defaults(h).Minimatch:y},y.prototype.debug=function(){},y.prototype.make=function(){if(!this._made){var h=this.pattern,v=this.options;if(!v.nocomment&&h.charAt(0)==="#")return void(this.comment=!0);if(!h)return void(this.empty=!0);this.parseNegate();var b=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,b),b=this.globParts=b.map(function(w){return w.split(g)}),this.debug(this.pattern,b),b=b.map(function(w,d,k){return w.map(this.parse,this)},this),this.debug(this.pattern,b),b=b.filter(function(w){return w.indexOf(!1)===-1}),this.debug(this.pattern,b),this.set=b}},y.prototype.parseNegate=function(){var h=this.pattern,v=!1,b=this.options,w=0;if(!b.nonegate){for(var d=0,k=h.length;d<k&&h.charAt(d)==="!";d++)v=!v,w++;w&&(this.pattern=h.substr(w)),this.negate=v}},p.braceExpand=function(h,v){return x(h,v)},y.prototype.braceExpand=x,y.prototype.parse=function(h,v){if(h.length>65536)throw new TypeError("pattern is too long");var b=this.options;if(!b.noglobstar&&h==="**")return i;if(h==="")return"";var w,d="",k=!!b.nocase,S=!1,E=[],O=[],I=!1,P=-1,T=-1,R=h.charAt(0)==="."?"":b.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=this;function B(){if(w){switch(w){case"*":d+=l,k=!0;break;case"?":d+=a,k=!0;break;default:d+="\\"+w}L.debug("clearStateChar %j %j",w,d),w=!1}}for(var C,F=0,M=h.length;F<M&&(C=h.charAt(F));F++)if(this.debug("%s %s %s %j",h,F,d,C),S&&f[C])d+="\\"+C,S=!1;else switch(C){case"/":return!1;case"\\":B(),S=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",h,F,d,C),I){this.debug(" in class"),C==="!"&&F===T+1&&(C="^"),d+=C;continue}L.debug("call clearStateChar %j",w),B(),w=C,b.noext&&B();continue;case"(":if(I){d+="(";continue}if(!w){d+="\\(";continue}E.push({type:w,start:F-1,reStart:d.length,open:s[w].open,close:s[w].close}),d+=w==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",w,d),w=!1;continue;case")":if(I||!E.length){d+="\\)";continue}B(),k=!0;var z=E.pop();d+=z.close,z.type==="!"&&O.push(z),z.reEnd=d.length;continue;case"|":if(I||!E.length||S){d+="\\|",S=!1;continue}B(),d+="|";continue;case"[":if(B(),I){d+="\\"+C;continue}I=!0,T=F,P=d.length,d+=C;continue;case"]":if(F===T+1||!I){d+="\\"+C,S=!1;continue}if(I){var D=h.substring(T+1,F);try{RegExp("["+D+"]")}catch{var J=this.parse(D,_);d=d.substr(0,P)+"\\["+J[0]+"\\]",k=k||J[1],I=!1;continue}}k=!0,I=!1,d+=C;continue;default:B(),S?S=!1:!f[C]||C==="^"&&I||(d+="\\"),d+=C}for(I&&(D=h.substr(T+1),J=this.parse(D,_),d=d.substr(0,P)+"\\["+J[0],k=k||J[1]),z=E.pop();z;z=E.pop()){var N=d.slice(z.reStart+z.open.length);this.debug("setting tail",d,z),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(xt,Bt,_t){return _t||(_t="\\"),Bt+Bt+_t+"|"}),this.debug(`tail=%j
%s`,N,N,z,d);var q=z.type==="*"?l:z.type==="?"?a:"\\"+z.type;k=!0,d=d.slice(0,z.reStart)+q+"\\("+N}B(),S&&(d+="\\\\");var K=!1;switch(d.charAt(0)){case".":case"[":case"(":K=!0}for(var ie=O.length-1;ie>-1;ie--){var le=O[ie],xe=d.slice(0,le.reStart),me=d.slice(le.reStart,le.reEnd-8),de=d.slice(le.reEnd-8,le.reEnd),W=d.slice(le.reEnd);de+=W;var Ye=xe.split("(").length-1,Ae=W;for(F=0;F<Ye;F++)Ae=Ae.replace(/\)[+*?]?/,"");var ge="";(W=Ae)===""&&v!==_&&(ge="$");var Se=xe+me+W+ge+de;d=Se}if(d!==""&&k&&(d="(?=.)"+d),K&&(d=R+d),v===_)return[d,k];if(!k)return h.replace(/\\(.)/g,"$1");var Re=b.nocase?"i":"";try{var De=new RegExp("^"+d+"$",Re)}catch{return new RegExp("$.")}return De._glob=h,De._src=d,De};var _={};p.makeRe=function(h,v){return new y(h,v||{}).makeRe()},y.prototype.makeRe=function(){if(this.regexp||this.regexp===!1)return this.regexp;var h=this.set;if(!h.length)return this.regexp=!1,this.regexp;var v=this.options,b=v.noglobstar?l:v.dot?c:u,w=v.nocase?"i":"",d=h.map(function(k){return k.map(function(S){return S===i?b:typeof S=="string"?S.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):S._src}).join("\\/")}).join("|");d="^(?:"+d+")$",this.negate&&(d="^(?!"+d+").*$");try{this.regexp=new RegExp(d,w)}catch{this.regexp=!1}return this.regexp},p.match=function(h,v,b){var w=new y(v,b=b||{});return h=h.filter(function(d){return w.match(d)}),w.options.nonull&&!h.length&&h.push(v),h},y.prototype.match=function(h,v){if(this.debug("match",h,this.pattern),this.comment)return!1;if(this.empty)return h==="";if(h==="/"&&v)return!0;var b=this.options;n.sep!=="/"&&(h=h.split(n.sep).join("/")),h=h.split(g),this.debug(this.pattern,"split",h);var w,d,k=this.set;for(this.debug(this.pattern,"set",k),d=h.length-1;d>=0&&!(w=h[d]);d--);for(d=0;d<k.length;d++){var S=k[d],E=h;b.matchBase&&S.length===1&&(E=[w]);var O=this.matchOne(E,S,v);if(O)return!!b.flipNegate||!this.negate}return!b.flipNegate&&this.negate},y.prototype.matchOne=function(h,v,b){var w=this.options;this.debug("matchOne",{this:this,file:h,pattern:v}),this.debug("matchOne",h.length,v.length);for(var d=0,k=0,S=h.length,E=v.length;d<S&&k<E;d++,k++){this.debug("matchOne loop");var O,I=v[k],P=h[d];if(this.debug(v,I,P),I===!1)return!1;if(I===i){this.debug("GLOBSTAR",[v,I,P]);var T=d,R=k+1;if(R===E){for(this.debug("** at the end");d<S;d++)if(h[d]==="."||h[d]===".."||!w.dot&&h[d].charAt(0)===".")return!1;return!0}for(;T<S;){var L=h[T];if(this.debug(`
globstar while`,h,T,v,R,L),this.matchOne(h.slice(T),v.slice(R),b))return this.debug("globstar found match!",T,S,L),!0;if(L==="."||L===".."||!w.dot&&L.charAt(0)==="."){this.debug("dot detected!",h,T,v,R);break}this.debug("globstar swallow a segment, and continue"),T++}return!(!b||(this.debug(`
>>> no match, partial?`,h,T,v,R),T!==S))}if(typeof I=="string"?(O=w.nocase?P.toLowerCase()===I.toLowerCase():P===I,this.debug("string match",I,P,O)):(O=P.match(I),this.debug("pattern match",I,P,O)),!O)return!1}if(d===S&&k===E)return!0;if(d===S)return b;if(k===E)return d===S-1&&h[d]==="";throw new Error("wtf?")}},function(r,e){r.exports=require("assert")},function(r,e,t){"use strict";function n(o){return o.charAt(0)==="/"}function i(o){var s=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),a=s[1]||"",l=!!(a&&a.charAt(1)!==":");return!!(s[2]||l)}r.exports=process.platform==="win32"?i:n,r.exports.posix=n,r.exports.win32=i},function(r,e){r.exports=require("child_process")},function(r,e,t){r.exports=!t(9)&&!t(10)(function(){return Object.defineProperty(t(33)("div"),"a",{get:function(){return 7}}).a!=7})},function(r,e,t){var n=t(6);r.exports=function(i,o){if(!n(i))return i;var s,a;if(o&&typeof(s=i.toString)=="function"&&!n(a=s.call(i))||typeof(s=i.valueOf)=="function"&&!n(a=s.call(i))||!o&&typeof(s=i.toString)=="function"&&!n(a=s.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(r,e,t){var n=t(25),i=t(35),o=t(79);r.exports=function(s){return function(a,l,c){var u,f=n(a),g=i(f.length),m=o(c,g);if(s&&l!=l){for(;g>m;)if((u=f[m++])!=u)return!0}else for(;g>m;m++)if((s||m in f)&&f[m]===l)return s||m||0;return!s&&-1}}},function(r,e,t){var n=t(20);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(r,e){var t=Math.ceil,n=Math.floor;r.exports=function(i){return isNaN(i=+i)?0:(i>0?n:t)(i)}},function(r,e,t){var n=t(18),i=t(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(r.exports=function(s,a){return o[s]||(o[s]=a!==void 0?a:{})})("versions",[]).push({version:n.version,mode:t(36)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(r,e,t){var n=t(20),i=t(3)("toStringTag"),o=n(function(){return arguments}())=="Arguments";r.exports=function(s){var a,l,c;return s===void 0?"Undefined":s===null?"Null":typeof(l=function(u,f){try{return u[f]}catch{}}(a=Object(s),i))=="string"?l:o?n(a):(c=n(a))=="Object"&&typeof a.callee=="function"?"Arguments":c}},function(r,e,t){var n=t(7);r.exports=function(i,o,s,a){try{return a?o(n(s)[0],s[1]):o(s)}catch(c){var l=i.return;throw l!==void 0&&n(l.call(i)),c}}},function(r,e,t){var n=t(39),i=t(3)("iterator"),o=Array.prototype;r.exports=function(s){return s!==void 0&&(n.Array===s||o[i]===s)}},function(r,e,t){var n=t(56),i=t(3)("iterator"),o=t(39);r.exports=t(18).getIteratorMethod=function(s){if(s!=null)return s[i]||s["@@iterator"]||o[n(s)]}},function(r,e,t){var n,i,o,s=t(12),a=t(82),l=t(61),c=t(33),u=t(4),f=u.process,g=u.setImmediate,m=u.clearImmediate,p=u.MessageChannel,y=u.Dispatch,x=0,_={},h=function(){var b=+this;if(_.hasOwnProperty(b)){var w=_[b];delete _[b],w()}},v=function(b){h.call(b.data)};g&&m||(g=function(b){for(var w=[],d=1;arguments.length>d;)w.push(arguments[d++]);return _[++x]=function(){a(typeof b=="function"?b:Function(b),w)},n(x),x},m=function(b){delete _[b]},t(20)(f)=="process"?n=function(b){f.nextTick(s(h,b,1))}:y&&y.now?n=function(b){y.now(s(h,b,1))}:p?(o=(i=new p).port2,i.port1.onmessage=v,n=s(o.postMessage,o,1)):u.addEventListener&&typeof postMessage=="function"&&!u.importScripts?(n=function(b){u.postMessage(b+"","*")},u.addEventListener("message",v,!1)):n="onreadystatechange"in c("script")?function(b){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),h.call(b)}}:function(b){setTimeout(s(h,b,1),0)}),r.exports={set:g,clear:m}},function(r,e,t){var n=t(4).document;r.exports=n&&n.documentElement},function(r,e,t){"use strict";var n=t(19);function i(o){var s,a;this.promise=new o(function(l,c){if(s!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");s=l,a=c}),this.resolve=n(s),this.reject=n(a)}r.exports.f=function(o){return new i(o)}},function(r,e,t){"use strict";var n=t(4),i=t(11),o=t(9),s=t(3)("species");r.exports=function(a){var l=n[a];o&&l&&!l[s]&&i.f(l,s,{configurable:!0,get:function(){return this}})}},function(r,e,t){var n=t(8),i=t(65)(!0);n(n.S,"Object",{entries:function(o){return i(o)}})},function(r,e,t){var n=t(42),i=t(25),o=t(44).f;r.exports=function(s){return function(a){for(var l,c=i(a),u=n(c),f=u.length,g=0,m=[];f>g;)o.call(c,l=u[g++])&&m.push(s?[l,c[l]]:c[l]);return m}}},function(r,e){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,e,t){r.exports=u,u.realpath=u,u.sync=f,u.realpathSync=f,u.monkeypatch=function(){n.realpath=u,n.realpathSync=f},u.unmonkeypatch=function(){n.realpath=i,n.realpathSync=o};var n=t(5),i=n.realpath,o=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),l=t(93);function c(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function u(g,m,p){if(a)return i(g,m,p);typeof m=="function"&&(p=m,m=null),i(g,m,function(y,x){c(y)?l.realpath(g,m,p):p(y,x)})}function f(g,m){if(a)return o(g,m);try{return o(g,m)}catch(p){if(c(p))return l.realpathSync(g,m);throw p}}},function(r,e){r.exports=require("events")},function(r,e,t){function n(m,p){return Object.prototype.hasOwnProperty.call(m,p)}e.alphasort=c,e.alphasorti=l,e.setopts=function(m,p,y){if(y||(y={}),y.matchBase&&p.indexOf("/")===-1){if(y.noglobstar)throw new Error("base matching requires globstar");p="**/"+p}m.silent=!!y.silent,m.pattern=p,m.strict=y.strict!==!1,m.realpath=!!y.realpath,m.realpathCache=y.realpathCache||Object.create(null),m.follow=!!y.follow,m.dot=!!y.dot,m.mark=!!y.mark,m.nodir=!!y.nodir,m.nodir&&(m.mark=!0),m.sync=!!y.sync,m.nounique=!!y.nounique,m.nonull=!!y.nonull,m.nosort=!!y.nosort,m.nocase=!!y.nocase,m.stat=!!y.stat,m.noprocess=!!y.noprocess,m.absolute=!!y.absolute,m.maxLength=y.maxLength||1/0,m.cache=y.cache||Object.create(null),m.statCache=y.statCache||Object.create(null),m.symlinks=y.symlinks||Object.create(null),function(_,h){_.ignore=h.ignore||[],Array.isArray(_.ignore)||(_.ignore=[_.ignore]),_.ignore.length&&(_.ignore=_.ignore.map(u))}(m,y),m.changedCwd=!1;var x=process.cwd();n(y,"cwd")?(m.cwd=i.resolve(y.cwd),m.changedCwd=m.cwd!==x):m.cwd=x,m.root=y.root||i.resolve(m.cwd,"/"),m.root=i.resolve(m.root),process.platform==="win32"&&(m.root=m.root.replace(/\\/g,"/")),m.cwdAbs=s(m.cwd)?m.cwd:f(m,m.cwd),process.platform==="win32"&&(m.cwdAbs=m.cwdAbs.replace(/\\/g,"/")),m.nomount=!!y.nomount,y.nonegate=!0,y.nocomment=!0,m.minimatch=new a(p,y),m.options=m.minimatch.options},e.ownProp=n,e.makeAbs=f,e.finish=function(m){for(var p=m.nounique,y=p?[]:Object.create(null),x=0,_=m.matches.length;x<_;x++){var h=m.matches[x];if(h&&Object.keys(h).length!==0){var v=Object.keys(h);p?y.push.apply(y,v):v.forEach(function(w){y[w]=!0})}else if(m.nonull){var b=m.minimatch.globSet[x];p?y.push(b):y[b]=!0}}if(p||(y=Object.keys(y)),m.nosort||(y=y.sort(m.nocase?l:c)),m.mark){for(var x=0;x<y.length;x++)y[x]=m._mark(y[x]);m.nodir&&(y=y.filter(function(w){var d=!/\/$/.test(w),k=m.cache[w]||m.cache[f(m,w)];return d&&k&&(d=k!=="DIR"&&!Array.isArray(k)),d}))}m.ignore.length&&(y=y.filter(function(w){return!g(m,w)})),m.found=y},e.mark=function(m,p){var y=f(m,p),x=m.cache[y],_=p;if(x){var h=x==="DIR"||Array.isArray(x),v=p.slice(-1)==="/";if(h&&!v?_+="/":!h&&v&&(_=_.slice(0,-1)),_!==p){var b=f(m,_);m.statCache[b]=m.statCache[y],m.cache[b]=m.cache[y]}}return _},e.isIgnored=g,e.childrenIgnored=function(m,p){return!!m.ignore.length&&m.ignore.some(function(y){return!(!y.gmatcher||!y.gmatcher.match(p))})};var i=t(0),o=t(46),s=t(48),a=o.Minimatch;function l(m,p){return m.toLowerCase().localeCompare(p.toLowerCase())}function c(m,p){return m.localeCompare(p)}function u(m){var p=null;if(m.slice(-3)==="/**"){var y=m.replace(/(\/\*\*)+$/,"");p=new a(y,{dot:!0})}return{matcher:new a(m,{dot:!0}),gmatcher:p}}function f(m,p){var y=p;return y=p.charAt(0)==="/"?i.join(m.root,p):s(p)||p===""?p:m.changedCwd?i.resolve(m.cwd,p):i.resolve(p),process.platform==="win32"&&(y=y.replace(/\\/g,"/")),y}function g(m,p){return!!m.ignore.length&&m.ignore.some(function(y){return y.matcher.match(p)||!(!y.gmatcher||!y.gmatcher.match(p))})}},function(r,e){r.exports=function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(s){o[s]=n[s]}),o;function o(){for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];var l=n.apply(this,s),c=s[s.length-1];return typeof l=="function"&&l!==c&&Object.keys(c).forEach(function(u){l[u]=c[u]}),l}}},function(r,e,t){var n=t(7),i=t(105),o=t(66),s=t(43)("IE_PROTO"),a=function(){},l=function(){var c,u=t(33)("iframe"),f=o.length;for(u.style.display="none",t(61).appendChild(u),u.src="javascript:",(c=u.contentWindow.document).open(),c.write("<script>document.F=Object</script>"),c.close(),l=c.F;f--;)delete l.prototype[o[f]];return l()};r.exports=Object.create||function(c,u){var f;return c!==null?(a.prototype=n(c),f=new a,a.prototype=null,f[s]=c):f=l(),u===void 0?f:i(f,u)}},function(r,e,t){var n=t(24)("meta"),i=t(6),o=t(15),s=t(11).f,a=0,l=Object.isExtensible||function(){return!0},c=!t(10)(function(){return l(Object.preventExtensions({}))}),u=function(g){s(g,n,{value:{i:"O"+ ++a,w:{}}})},f=r.exports={KEY:n,NEED:!1,fastKey:function(g,m){if(!i(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!o(g,n)){if(!l(g))return"F";if(!m)return"E";u(g)}return g[n].i},getWeak:function(g,m){if(!o(g,n)){if(!l(g))return!0;if(!m)return!1;u(g)}return g[n].w},onFreeze:function(g){return c&&f.NEED&&l(g)&&!o(g,n)&&u(g),g}}},function(r,e,t){var n=t(6);r.exports=function(i,o){if(!n(i)||i._t!==o)throw TypeError("Incompatible receiver, "+o+" required!");return i}},function(r,e,t){var n=t(8),i=t(65)(!1);n(n.S,"Object",{values:function(o){return i(o)}})},function(r,e,t){"use strict";var n=t(7);r.exports=function(){var i=n(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(r,e,t){r.exports=c,c.sync=function(u,f){for(var g=l(u,f=f||{}),m=g.env,p=g.ext,y=g.extExe,x=[],_=0,h=m.length;_<h;_++){var v=m[_];v.charAt(0)==='"'&&v.slice(-1)==='"'&&(v=v.slice(1,-1));var b=i.join(v,u);!v&&/^\.[\\\/]/.test(u)&&(b=u.slice(0,2)+b);for(var w=0,d=p.length;w<d;w++){var k=b+p[w];try{if(s.sync(k,{pathExt:y})){if(!f.all)return k;x.push(k)}}catch{}}}if(f.all&&x.length)return x;if(f.nothrow)return null;throw a(u)};var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=t(0),o=n?";":":",s=t(118);function a(u){var f=new Error("not found: "+u);return f.code="ENOENT",f}function l(u,f){var g=f.colon||o,m=f.path||process.env.PATH||"",p=[""];m=m.split(g);var y="";return n&&(m.unshift(process.cwd()),p=(y=f.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(g),u.indexOf(".")!==-1&&p[0]!==""&&p.unshift("")),(u.match(/\//)||n&&u.match(/\\/))&&(m=[""]),{env:m,ext:p,extExe:y}}function c(u,f,g){typeof f=="function"&&(g=f,f={});var m=l(u,f),p=m.env,y=m.ext,x=m.extExe,_=[];(function h(v,b){if(v===b)return f.all&&_.length?g(null,_):g(a(u));var w=p[v];w.charAt(0)==='"'&&w.slice(-1)==='"'&&(w=w.slice(1,-1));var d=i.join(w,u);!w&&/^\.[\\\/]/.test(u)&&(d=u.slice(0,2)+d),function k(S,E){if(S===E)return h(v+1,b);var O=y[S];s(d+O,{pathExt:x},function(I,P){if(!I&&P){if(!f.all)return g(null,d+O);_.push(d+O)}return k(S+1,E)})}(0,y.length)})(0,p.length)}},function(r,e,t){"use strict";r.exports=n=>{let i=(n=n||{}).env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).find(o=>o.toUpperCase()==="PATH")||"Path"}},function(r,e,t){"use strict";t(32),t(2),t(27),t(64),t(21);var n=t(90),i=t(161),o=t(170),s=t(1);function a(l,c){(c=c||{}).clipboard&&console.log(`
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***
`);var u=Object.keys(l).length>0?l:o.defaults,f=Object.entries(u).reduce(function(g,m){var p=m[0],y=m[1],x=n[`get${p}`];return x?(y&&g.push(x(y,c)),g):g=g.concat((y||[]).map(function(_){var h=n[`get${_.replace(/\s/g,"")}Info`];return h?h():Promise.resolve(["Unknown"])}))},[]);return Promise.all(f).then(function(g){var m=g.reduce(function(p,y){return y&&y[0]&&Object.assign(p,{[y[0]]:y}),p},{});return function(p,y){var x=y.json?i.json:y.markdown?i.markdown:i.yaml;if(y.console){var _=!1;process.stdout.isTTY&&(_=!0),console.log(x(p,Object.assign({},y,{console:_})))}return x(p,Object.assign({},y,{console:!1}))}(Object.entries(o.defaults).reduce(function(p,y){var x=y[0],_=y[1];return m[x]?Object.assign(p,{[x]:m[x][1]}):Object.assign(p,{[x]:(_||[]).reduce(function(h,v){return m[v]?(m[v].shift(),m[v].length===1?Object.assign(h,{[v]:m[v][0]}):Object.assign(h,{[v]:{version:m[v][0],path:m[v][1]}})):h},{})})},{}),c)})}r.exports={cli:function(l){if(l.all)return a(Object.assign({},o.defaults,{npmPackages:!0,npmGlobalPackages:!0}),l);if(l.raw)return a(JSON.parse(l.raw),l);if(l.helper){var c=n[`get${l.helper}`]||n[`get${l.helper}Info`]||n[l.helper];return c?c().then(console.log):console.error("Not Found")}var u=function(m,p){return m.toLowerCase().includes(p.toLowerCase())},f=Object.keys(l).filter(function(m){return Object.keys(o.defaults).some(function(p){return u(p,m)})}),g=Object.entries(o.defaults).reduce(function(m,p){return f.some(function(y){return u(y,p[0])})?Object.assign(m,{[p[0]]:p[1]||l[p[0]]}):m},{});return l.preset?o[l.preset]?a(Object.assign({},s.omit(o[l.preset],["options"]),g),Object.assign({},o[l.preset].options,s.pick(l,["duplicates","fullTree","json","markdown","console"]))):console.error(`
No "${l.preset}" preset found.`):a(g,l)},helpers:n,main:a,run:function(l,c){return typeof l.preset=="string"?a(o[l.preset],c):a(l,c)}}},function(r,e,t){var n=t(54),i=Math.max,o=Math.min;r.exports=function(s,a){return(s=n(s))<0?i(s+a,0):o(s,a)}},function(r,e,t){var n=t(3)("unscopables"),i=Array.prototype;i[n]==null&&t(13)(i,n,{}),r.exports=function(o){i[n][o]=!0}},function(r,e,t){var n=t(7),i=t(19),o=t(3)("species");r.exports=function(s,a){var l,c=n(s).constructor;return c===void 0||(l=n(c)[o])==null?a:i(l)}},function(r,e){r.exports=function(t,n,i){var o=i===void 0;switch(n.length){case 0:return o?t():t.call(i);case 1:return o?t(n[0]):t.call(i,n[0]);case 2:return o?t(n[0],n[1]):t.call(i,n[0],n[1]);case 3:return o?t(n[0],n[1],n[2]):t.call(i,n[0],n[1],n[2]);case 4:return o?t(n[0],n[1],n[2],n[3]):t.call(i,n[0],n[1],n[2],n[3])}return t.apply(i,n)}},function(r,e,t){var n=t(4),i=t(60).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,l=t(20)(s)=="process";r.exports=function(){var c,u,f,g=function(){var x,_;for(l&&(x=s.domain)&&x.exit();c;){_=c.fn,c=c.next;try{_()}catch(h){throw c?f():u=void 0,h}}u=void 0,x&&x.enter()};if(l)f=function(){s.nextTick(g)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var m=a.resolve(void 0);f=function(){m.then(g)}}else f=function(){i.call(n,g)};else{var p=!0,y=document.createTextNode("");new o(g).observe(y,{characterData:!0}),f=function(){y.data=p=!p}}return function(x){var _={fn:x,next:void 0};u&&(u.next=_),c||(c=_,f()),u=_}}},function(r,e){r.exports=function(t){try{return{e:!1,v:t()}}catch(n){return{e:!0,v:n}}}},function(r,e,t){var n=t(4).navigator;r.exports=n&&n.userAgent||""},function(r,e,t){var n=t(7),i=t(6),o=t(62);r.exports=function(s,a){if(n(s),i(a)&&a.constructor===s)return a;var l=o.f(s);return(0,l.resolve)(a),l.promise}},function(r,e,t){var n=t(15),i=t(25),o=t(52)(!1),s=t(43)("IE_PROTO");r.exports=function(a,l){var c,u=i(a),f=0,g=[];for(c in u)c!=s&&n(u,c)&&g.push(c);for(;l.length>f;)n(u,c=l[f++])&&(~o(g,c)||g.push(c));return g}},function(r,e,t){"use strict";var n=t(42),i=t(89),o=t(44),s=t(29),a=t(53),l=Object.assign;r.exports=!l||t(10)(function(){var c={},u={},f=Symbol(),g="abcdefghijklmnopqrst";return c[f]=7,g.split("").forEach(function(m){u[m]=m}),l({},c)[f]!=7||Object.keys(l({},u)).join("")!=g})?function(c,u){for(var f=s(c),g=arguments.length,m=1,p=i.f,y=o.f;g>m;)for(var x,_=a(arguments[m++]),h=p?n(_).concat(p(_)):n(_),v=h.length,b=0;v>b;)y.call(_,x=h[b++])&&(f[x]=_[x]);return f}:l},function(r,e){e.f=Object.getOwnPropertySymbols},function(r,e,t){"use strict";function n(h,v,b){return v in h?Object.defineProperty(h,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[v]=b,h}t(21);var i=t(91),o=t(1),s=t(122),a=t(123),l=t(124),c=t(125),u=t(126),f=t(127),g=t(128),m=t(129),p=t(130),y=t(131),x=t(159),_=t(160);r.exports=Object.assign({},o,i,function(h){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{},w=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(b).filter(function(d){return Object.getOwnPropertyDescriptor(b,d).enumerable}))),w.forEach(function(d){n(h,d,b[d])})}return h}({},s,a,l,c,u,f,g,m,p,y,x,_))},function(r,e,t){"use strict";t(22),t(21),t(2),t(32),t(16);var n=t(45),i=t(0),o=t(1),s=function(a){var l=a.split("node_modules"+i.sep),c=l[l.length-1];return c.charAt(0)==="@"?[c.split(i.sep)[0],c.split(i.sep)[1]].join("/"):c.split(i.sep)[0]};r.exports={getnpmPackages:function(a,l){o.log("trace","getnpmPackages"),l||(l={});var c=null,u=null;return typeof a=="string"&&(a.includes("*")||a.includes("?")||a.includes("+")||a.includes("!")?c=a:a=a.split(",")),Promise.all(["npmPackages",o.getPackageJsonByPath("package.json").then(function(f){return Object.assign({},(f||{}).devDependencies||{},(f||{}).dependencies||{})}).then(function(f){return u=f,l.fullTree||l.duplicates||c?o.getAllPackageJsonPaths(c):Promise.resolve(Object.keys(f||[]).map(function(g){return i.join("node_modules",g,"package.json")}))}).then(function(f){return!c&&typeof a!="boolean"||l.fullTree?Array.isArray(a)?Promise.resolve((f||[]).filter(function(g){return a.includes(s(g))})):Promise.resolve(f):Promise.resolve((f||[]).filter(function(g){return Object.keys(u||[]).includes(s(g))}))}).then(function(f){return Promise.all([f,Promise.all(f.map(function(g){return o.getPackageJsonByPath(g)}))])}).then(function(f){var g=f[0],m=f[1].reduce(function(p,y,x){return y&&y.name&&(p[y.name]||(p[y.name]={}),l.duplicates&&(p[y.name].duplicates=o.uniq((p[y.name].duplicates||[]).concat(y.version))),(g[x].match(/node_modules/g)||[]).length===1&&(p[y.name].installed=y.version)),p},{});return Object.keys(m).forEach(function(p){m[p].duplicates&&m[p].installed&&(m[p].duplicates=m[p].duplicates.filter(function(y){return y!==m[p].installed})),u[p]&&(m[p].wanted=u[p])}),m}).then(function(f){return l.showNotFound&&Array.isArray(a)&&a.forEach(function(g){f[g]||(f[g]="Not Found")}),f}).then(function(f){return o.sortObject(f)})])},getnpmGlobalPackages:function(a,l){o.log("trace","getnpmGlobalPackages",a);var c=null;return typeof a=="string"?a.includes("*")||a.includes("?")||a.includes("+")||a.includes("!")?c=a:a=a.split(","):Array.isArray(a)||(a=!0),Promise.all(["npmGlobalPackages",o.run("npm get prefix --global").then(function(u){return new Promise(function(f,g){return n(i.join(u,o.isWindows?"":"lib","node_modules",c||"{*,@*/*}","package.json"),function(m,p){m||f(p),g(m)})})}).then(function(u){return Promise.all(u.filter(function(f){return typeof a=="boolean"||c!==null||a.includes(s(f))}).map(function(f){return o.getPackageJsonByFullPath(f)}))}).then(function(u){return u.reduce(function(f,g){return g?Object.assign(f,{[g.name]:g.version}):f},{})}).then(function(u){return l.showNotFound&&Array.isArray(a)&&a.forEach(function(f){u[f]||(u[f]="Not Found")}),u})])}}},function(r,e,t){var n=t(6),i=t(20),o=t(3)("match");r.exports=function(s){var a;return n(s)&&((a=s[o])!==void 0?!!a:i(s)=="RegExp")}},function(r,e,t){var n=t(0),i=process.platform==="win32",o=t(5),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(u){return typeof u=="function"?u:function(){var f;if(s){var g=new Error;f=function(p){p&&(g.message=p.message,m(p=g))}}else f=m;return f;function m(p){if(p){if(process.throwDeprecation)throw p;if(!process.noDeprecation){var y="fs: missing callback "+(p.stack||p.message);process.traceDeprecation?console.trace(y):console.error(y)}}}}()}if(n.normalize,i)var l=/(.*?)(?:[\/\\]+|$)/g;else l=/(.*?)(?:[\/]+|$)/g;if(i)var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else c=/^[\/]*/;e.realpathSync=function(u,f){if(u=n.resolve(u),f&&Object.prototype.hasOwnProperty.call(f,u))return f[u];var g,m,p,y,x=u,_={},h={};function v(){var E=c.exec(u);g=E[0].length,m=E[0],p=E[0],y="",i&&!h[p]&&(o.lstatSync(p),h[p]=!0)}for(v();g<u.length;){l.lastIndex=g;var b=l.exec(u);if(y=m,m+=b[0],p=y+b[1],g=l.lastIndex,!(h[p]||f&&f[p]===p)){var w;if(f&&Object.prototype.hasOwnProperty.call(f,p))w=f[p];else{var d=o.lstatSync(p);if(!d.isSymbolicLink()){h[p]=!0,f&&(f[p]=p);continue}var k=null;if(!i){var S=d.dev.toString(32)+":"+d.ino.toString(32);_.hasOwnProperty(S)&&(k=_[S])}k===null&&(o.statSync(p),k=o.readlinkSync(p)),w=n.resolve(y,k),f&&(f[p]=w),i||(_[S]=k)}u=n.resolve(w,u.slice(g)),v()}}return f&&(f[x]=u),u},e.realpath=function(u,f,g){if(typeof g!="function"&&(g=a(f),f=null),u=n.resolve(u),f&&Object.prototype.hasOwnProperty.call(f,u))return process.nextTick(g.bind(null,null,f[u]));var m,p,y,x,_=u,h={},v={};function b(){var E=c.exec(u);m=E[0].length,p=E[0],y=E[0],x="",i&&!v[y]?o.lstat(y,function(O){if(O)return g(O);v[y]=!0,w()}):process.nextTick(w)}function w(){if(m>=u.length)return f&&(f[_]=u),g(null,u);l.lastIndex=m;var E=l.exec(u);return x=p,p+=E[0],y=x+E[1],m=l.lastIndex,v[y]||f&&f[y]===y?process.nextTick(w):f&&Object.prototype.hasOwnProperty.call(f,y)?S(f[y]):o.lstat(y,d)}function d(E,O){if(E)return g(E);if(!O.isSymbolicLink())return v[y]=!0,f&&(f[y]=y),process.nextTick(w);if(!i){var I=O.dev.toString(32)+":"+O.ino.toString(32);if(h.hasOwnProperty(I))return k(null,h[I],y)}o.stat(y,function(P){if(P)return g(P);o.readlink(y,function(T,R){i||(h[I]=R),k(T,R)})})}function k(E,O,I){if(E)return g(E);var P=n.resolve(x,O);f&&(f[I]=P),S(P)}function S(E){u=n.resolve(E,u.slice(m)),b()}b()}},function(r,e,t){var n=t(95),i=t(96);r.exports=function(x){return x?(x.substr(0,2)==="{}"&&(x="\\{\\}"+x.substr(2)),function _(h,v){var b=[],w=i("{","}",h);if(!w||/\$$/.test(w.pre))return[h];var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(w.body),k=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(w.body),S=d||k,E=w.body.indexOf(",")>=0;if(!S&&!E)return w.post.match(/,.*\}/)?(h=w.pre+"{"+w.body+a+w.post,_(h)):[h];var O;if(S)O=w.body.split(/\.\./);else if((O=function xe(me){if(!me)return[""];var de=[],W=i("{","}",me);if(!W)return me.split(",");var Ye=W.pre,Ae=W.body,ge=W.post,Se=Ye.split(",");Se[Se.length-1]+="{"+Ae+"}";var Re=xe(ge);return ge.length&&(Se[Se.length-1]+=Re.shift(),Se.push.apply(Se,Re)),de.push.apply(de,Se),de}(w.body)).length===1&&(O=_(O[0],!1).map(g)).length===1){var P=w.post.length?_(w.post,!1):[""];return P.map(function(me){return w.pre+O[0]+me})}var I=w.pre,P=w.post.length?_(w.post,!1):[""],T;if(S){var R=u(O[0]),L=u(O[1]),B=Math.max(O[0].length,O[1].length),C=O.length==3?Math.abs(u(O[2])):1,F=p,M=L<R;M&&(C*=-1,F=y);var z=O.some(m);T=[];for(var D=R;F(D,L);D+=C){var J;if(k)(J=String.fromCharCode(D))==="\\"&&(J="");else if(J=String(D),z){var N=B-J.length;if(N>0){var q=new Array(N+1).join("0");J=D<0?"-"+q+J.slice(1):q+J}}T.push(J)}}else T=n(O,function(xe){return _(xe,!1)});for(var K=0;K<T.length;K++)for(var ie=0;ie<P.length;ie++){var le=I+T[K]+P[ie];(!v||S||le)&&b.push(le)}return b}(function(_){return _.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(l).split("\\.").join(c)}(x),!0).map(f)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(x){return parseInt(x,10)==x?parseInt(x,10):x.charCodeAt(0)}function f(x){return x.split(o).join("\\").split(s).join("{").split(a).join("}").split(l).join(",").split(c).join(".")}function g(x){return"{"+x+"}"}function m(x){return/^-?0\d/.test(x)}function p(x,_){return x<=_}function y(x,_){return x>=_}},function(r,e){r.exports=function(n,i){for(var o=[],s=0;s<n.length;s++){var a=i(n[s],s);t(a)?o.push.apply(o,a):o.push(a)}return o};var t=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(r,e,t){"use strict";function n(s,a,l){s instanceof RegExp&&(s=i(s,l)),a instanceof RegExp&&(a=i(a,l));var c=o(s,a,l);return c&&{start:c[0],end:c[1],pre:l.slice(0,c[0]),body:l.slice(c[0]+s.length,c[1]),post:l.slice(c[1]+a.length)}}function i(s,a){var l=a.match(s);return l?l[0]:null}function o(s,a,l){var c,u,f,g,m,p=l.indexOf(s),y=l.indexOf(a,p+1),x=p;if(p>=0&&y>0){for(c=[],f=l.length;x>=0&&!m;)x==p?(c.push(x),p=l.indexOf(s,x+1)):c.length==1?m=[c.pop(),y]:((u=c.pop())<f&&(f=u,g=y),y=l.indexOf(a,x+1)),x=p<y&&p>=0?p:y;c.length&&(m=[f,g])}return m}r.exports=n,n.range=o},function(r,e,t){try{var n=t(30);if(typeof n.inherits!="function")throw"";r.exports=n.inherits}catch{r.exports=t(98)}},function(r,e){typeof Object.create=="function"?r.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(t,n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}},function(r,e,t){r.exports=p,p.GlobSync=y;var n=t(5),i=t(67),o=t(46),s=(o.Minimatch,t(45).Glob,t(30),t(0)),a=t(47),l=t(48),c=t(69),u=(c.alphasort,c.alphasorti,c.setopts),f=c.ownProp,g=c.childrenIgnored,m=c.isIgnored;function p(x,_){if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new y(x,_).found}function y(x,_){if(!x)throw new Error("must provide pattern");if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y))return new y(x,_);if(u(this,x,_),this.noprocess)return this;var h=this.minimatch.set.length;this.matches=new Array(h);for(var v=0;v<h;v++)this._process(this.minimatch.set[v],v,!1);this._finish()}y.prototype._finish=function(){if(a(this instanceof y),this.realpath){var x=this;this.matches.forEach(function(_,h){var v=x.matches[h]=Object.create(null);for(var b in _)try{b=x._makeAbs(b),v[i.realpathSync(b,x.realpathCache)]=!0}catch(w){if(w.syscall!=="stat")throw w;v[x._makeAbs(b)]=!0}})}c.finish(this)},y.prototype._process=function(x,_,h){a(this instanceof y);for(var v,b=0;typeof x[b]=="string";)b++;switch(b){case x.length:return void this._processSimple(x.join("/"),_);case 0:v=null;break;default:v=x.slice(0,b).join("/")}var w,d=x.slice(b);v===null?w=".":((l(v)||l(x.join("/")))&&(v&&l(v)||(v="/"+v)),w=v);var k=this._makeAbs(w);g(this,w)||(d[0]===o.GLOBSTAR?this._processGlobStar(v,w,k,d,_,h):this._processReaddir(v,w,k,d,_,h))},y.prototype._processReaddir=function(x,_,h,v,b,w){var d=this._readdir(h,w);if(d){for(var k=v[0],S=!!this.minimatch.negate,E=k._glob,O=this.dot||E.charAt(0)===".",I=[],P=0;P<d.length;P++)((L=d[P]).charAt(0)!=="."||O)&&(S&&!x?!L.match(k):L.match(k))&&I.push(L);var T=I.length;if(T!==0)if(v.length!==1||this.mark||this.stat)for(v.shift(),P=0;P<T;P++){var R;L=I[P],R=x?[x,L]:[L],this._process(R.concat(v),b,w)}else{this.matches[b]||(this.matches[b]=Object.create(null));for(var P=0;P<T;P++){var L=I[P];x&&(L=x.slice(-1)!=="/"?x+"/"+L:x+L),L.charAt(0)!=="/"||this.nomount||(L=s.join(this.root,L)),this._emitMatch(b,L)}}}},y.prototype._emitMatch=function(x,_){if(!m(this,_)){var h=this._makeAbs(_);if(this.mark&&(_=this._mark(_)),this.absolute&&(_=h),!this.matches[x][_]){if(this.nodir){var v=this.cache[h];if(v==="DIR"||Array.isArray(v))return}this.matches[x][_]=!0,this.stat&&this._stat(_)}}},y.prototype._readdirInGlobStar=function(x){if(this.follow)return this._readdir(x,!1);var _,h;try{h=n.lstatSync(x)}catch(b){if(b.code==="ENOENT")return null}var v=h&&h.isSymbolicLink();return this.symlinks[x]=v,v||!h||h.isDirectory()?_=this._readdir(x,!1):this.cache[x]="FILE",_},y.prototype._readdir=function(x,_){if(_&&!f(this.symlinks,x))return this._readdirInGlobStar(x);if(f(this.cache,x)){var h=this.cache[x];if(!h||h==="FILE")return null;if(Array.isArray(h))return h}try{return this._readdirEntries(x,n.readdirSync(x))}catch(v){return this._readdirError(x,v),null}},y.prototype._readdirEntries=function(x,_){if(!this.mark&&!this.stat)for(var h=0;h<_.length;h++){var v=_[h];v=x==="/"?x+v:x+"/"+v,this.cache[v]=!0}return this.cache[x]=_,_},y.prototype._readdirError=function(x,_){switch(_.code){case"ENOTSUP":case"ENOTDIR":var h=this._makeAbs(x);if(this.cache[h]="FILE",h===this.cwdAbs){var v=new Error(_.code+" invalid cwd "+this.cwd);throw v.path=this.cwd,v.code=_.code,v}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(x)]=!1;break;default:if(this.cache[this._makeAbs(x)]=!1,this.strict)throw _;this.silent||console.error("glob error",_)}},y.prototype._processGlobStar=function(x,_,h,v,b,w){var d=this._readdir(h,w);if(d){var k=v.slice(1),S=x?[x]:[],E=S.concat(k);this._process(E,b,!1);var O=d.length;if(!this.symlinks[h]||!w){for(var I=0;I<O;I++)if(d[I].charAt(0)!=="."||this.dot){var P=S.concat(d[I],k);this._process(P,b,!0);var T=S.concat(d[I],v);this._process(T,b,!0)}}}},y.prototype._processSimple=function(x,_){var h=this._stat(x);if(this.matches[_]||(this.matches[_]=Object.create(null)),h){if(x&&l(x)&&!this.nomount){var v=/[\/\\]$/.test(x);x.charAt(0)==="/"?x=s.join(this.root,x):(x=s.resolve(this.root,x),v&&(x+="/"))}process.platform==="win32"&&(x=x.replace(/\\/g,"/")),this._emitMatch(_,x)}},y.prototype._stat=function(x){var _=this._makeAbs(x),h=x.slice(-1)==="/";if(x.length>this.maxLength)return!1;if(!this.stat&&f(this.cache,_)){var v=this.cache[_];if(Array.isArray(v)&&(v="DIR"),!h||v==="DIR")return v;if(h&&v==="FILE")return!1}var b=this.statCache[_];if(!b){var w;try{w=n.lstatSync(_)}catch(d){if(d&&(d.code==="ENOENT"||d.code==="ENOTDIR"))return this.statCache[_]=!1,!1}if(w&&w.isSymbolicLink())try{b=n.statSync(_)}catch{b=w}else b=w}return this.statCache[_]=b,v=!0,b&&(v=b.isDirectory()?"DIR":"FILE"),this.cache[_]=this.cache[_]||v,(!h||v!=="FILE")&&v},y.prototype._mark=function(x){return c.mark(this,x)},y.prototype._makeAbs=function(x){return c.makeAbs(this,x)}},function(r,e,t){var n=t(70),i=Object.create(null),o=t(31);r.exports=n(function(s,a){return i[s]?(i[s].push(a),null):(i[s]=[a],function(l){return o(function c(){var u=i[l],f=u.length,g=function(p){for(var y=p.length,x=[],_=0;_<y;_++)x[_]=p[_];return x}(arguments);try{for(var m=0;m<f;m++)u[m].apply(null,g)}finally{u.length>f?(u.splice(0,f),process.nextTick(function(){c.apply(null,g)})):delete i[l]}})}(s))})},function(r,e,t){"use strict";var n=t(8),i=t(19),o=t(29),s=t(10),a=[].sort,l=[1,2,3];n(n.P+n.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!t(102)(a)),"Array",{sort:function(c){return c===void 0?a.call(o(this)):a.call(o(this),i(c))}})},function(r,e,t){"use strict";var n=t(10);r.exports=function(i,o){return!!i&&n(function(){o?i.call(null,function(){},1):i.call(null)})}},function(r,e,t){"use strict";var n=t(104),i=t(73);r.exports=t(110)("Set",function(o){return function(){return o(this,arguments.length>0?arguments[0]:void 0)}},{add:function(o){return n.def(i(this,"Set"),o=o===0?0:o,o)}},n)},function(r,e,t){"use strict";var n=t(11).f,i=t(71),o=t(40),s=t(12),a=t(37),l=t(38),c=t(106),u=t(109),f=t(63),g=t(9),m=t(72).fastKey,p=t(73),y=g?"_s":"size",x=function(_,h){var v,b=m(h);if(b!=="F")return _._i[b];for(v=_._f;v;v=v.n)if(v.k==h)return v};r.exports={getConstructor:function(_,h,v,b){var w=_(function(d,k){a(d,w,h,"_i"),d._t=h,d._i=i(null),d._f=void 0,d._l=void 0,d[y]=0,k!=null&&l(k,v,d[b],d)});return o(w.prototype,{clear:function(){for(var d=p(this,h),k=d._i,S=d._f;S;S=S.n)S.r=!0,S.p&&(S.p=S.p.n=void 0),delete k[S.i];d._f=d._l=void 0,d[y]=0},delete:function(d){var k=p(this,h),S=x(k,d);if(S){var E=S.n,O=S.p;delete k._i[S.i],S.r=!0,O&&(O.n=E),E&&(E.p=O),k._f==S&&(k._f=E),k._l==S&&(k._l=O),k[y]--}return!!S},forEach:function(d){p(this,h);for(var k,S=s(d,arguments.length>1?arguments[1]:void 0,3);k=k?k.n:this._f;)for(S(k.v,k.k,this);k&&k.r;)k=k.p},has:function(d){return!!x(p(this,h),d)}}),g&&n(w.prototype,"size",{get:function(){return p(this,h)[y]}}),w},def:function(_,h,v){var b,w,d=x(_,h);return d?d.v=v:(_._l=d={i:w=m(h,!0),k:h,v,p:b=_._l,n:void 0,r:!1},_._f||(_._f=d),b&&(b.n=d),_[y]++,w!=="F"&&(_._i[w]=d)),_},getEntry:x,setStrong:function(_,h,v){c(_,h,function(b,w){this._t=p(b,h),this._k=w,this._l=void 0},function(){for(var b=this._k,w=this._l;w&&w.r;)w=w.p;return this._t&&(this._l=w=w?w.n:this._t._f)?u(0,b=="keys"?w.k:b=="values"?w.v:[w.k,w.v]):(this._t=void 0,u(1))},v?"entries":"values",!v,!0),f(h)}}},function(r,e,t){var n=t(11),i=t(7),o=t(42);r.exports=t(9)?Object.defineProperties:function(s,a){i(s);for(var l,c=o(a),u=c.length,f=0;u>f;)n.f(s,l=c[f++],a[l]);return s}},function(r,e,t){"use strict";var n=t(36),i=t(8),o=t(14),s=t(13),a=t(39),l=t(107),c=t(26),u=t(108),f=t(3)("iterator"),g=!([].keys&&"next"in[].keys()),m=function(){return this};r.exports=function(p,y,x,_,h,v,b){l(x,y,_);var w,d,k,S=function(C){if(!g&&C in P)return P[C];switch(C){case"keys":case"values":return function(){return new x(this,C)}}return function(){return new x(this,C)}},E=y+" Iterator",O=h=="values",I=!1,P=p.prototype,T=P[f]||P["@@iterator"]||h&&P[h],R=T||S(h),L=h?O?S("entries"):R:void 0,B=y=="Array"&&P.entries||T;if(B&&(k=u(B.call(new p)))!==Object.prototype&&k.next&&(c(k,E,!0),n||typeof k[f]=="function"||s(k,f,m)),O&&T&&T.name!=="values"&&(I=!0,R=function(){return T.call(this)}),n&&!b||!g&&!I&&P[f]||s(P,f,R),a[y]=R,a[E]=m,h)if(w={values:O?R:S("values"),keys:v?R:S("keys"),entries:L},b)for(d in w)d in P||o(P,d,w[d]);else i(i.P+i.F*(g||I),y,w);return w}},function(r,e,t){"use strict";var n=t(71),i=t(23),o=t(26),s={};t(13)(s,t(3)("iterator"),function(){return this}),r.exports=function(a,l,c){a.prototype=n(s,{next:i(1,c)}),o(a,l+" Iterator")}},function(r,e,t){var n=t(15),i=t(29),o=t(43)("IE_PROTO"),s=Object.prototype;r.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,o)?a[o]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?s:null}},function(r,e){r.exports=function(t,n){return{value:n,done:!!t}}},function(r,e,t){"use strict";var n=t(4),i=t(8),o=t(14),s=t(40),a=t(72),l=t(38),c=t(37),u=t(6),f=t(10),g=t(41),m=t(26),p=t(111);r.exports=function(y,x,_,h,v,b){var w=n[y],d=w,k=v?"set":"add",S=d&&d.prototype,E={},O=function(B){var C=S[B];o(S,B,B=="delete"?function(F){return!(b&&!u(F))&&C.call(this,F===0?0:F)}:B=="has"?function(F){return!(b&&!u(F))&&C.call(this,F===0?0:F)}:B=="get"?function(F){return b&&!u(F)?void 0:C.call(this,F===0?0:F)}:B=="add"?function(F){return C.call(this,F===0?0:F),this}:function(F,M){return C.call(this,F===0?0:F,M),this})};if(typeof d=="function"&&(b||S.forEach&&!f(function(){new d().entries().next()}))){var I=new d,P=I[k](b?{}:-0,1)!=I,T=f(function(){I.has(1)}),R=g(function(B){new d(B)}),L=!b&&f(function(){for(var B=new d,C=5;C--;)B[k](C,C);return!B.has(-0)});R||((d=x(function(B,C){c(B,d,y);var F=p(new w,B,d);return C!=null&&l(C,v,F[k],F),F})).prototype=S,S.constructor=d),(T||L)&&(O("delete"),O("has"),v&&O("get")),(L||P)&&O(k),b&&S.clear&&delete S.clear}else d=h.getConstructor(x,y,v,k),s(d.prototype,_),a.NEED=!0;return m(d,y),E[y]=d,i(i.G+i.W+i.F*(d!=w),E),b||h.setStrong(d,y,v),d}},function(r,e,t){var n=t(6),i=t(112).set;r.exports=function(o,s,a){var l,c=s.constructor;return c!==a&&typeof c=="function"&&(l=c.prototype)!==a.prototype&&n(l)&&i&&i(o,l),o}},function(r,e,t){var n=t(6),i=t(7),o=function(s,a){if(i(s),!n(a)&&a!==null)throw TypeError(a+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(s,a,l){try{(l=t(12)(Function.call,t(113).f(Object.prototype,"__proto__").set,2))(s,[]),a=!(s instanceof Array)}catch{a=!0}return function(c,u){return o(c,u),a?c.__proto__=u:l(c,u),c}}({},!1):void 0),check:o}},function(r,e,t){var n=t(44),i=t(23),o=t(25),s=t(51),a=t(15),l=t(50),c=Object.getOwnPropertyDescriptor;e.f=t(9)?c:function(u,f){if(u=o(u),f=s(f,!0),l)try{return c(u,f)}catch{}if(a(u,f))return i(!n.f.call(u,f),u[f])}},function(r,e,t){"use strict";var n=t(12),i=t(8),o=t(29),s=t(57),a=t(58),l=t(35),c=t(115),u=t(59);i(i.S+i.F*!t(41)(function(f){Array.from(f)}),"Array",{from:function(f){var g,m,p,y,x=o(f),_=typeof this=="function"?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,b=v!==void 0,w=0,d=u(x);if(b&&(v=n(v,h>2?arguments[2]:void 0,2)),d==null||_==Array&&a(d))for(m=new _(g=l(x.length));g>w;w++)c(m,w,b?v(x[w],w):x[w]);else for(y=d.call(x),m=new _;!(p=y.next()).done;w++)c(m,w,b?s(y,v,[p.value,w],!0):p.value);return m.length=w,m}})},function(r,e,t){"use strict";var n=t(11),i=t(23);r.exports=function(o,s,a){s in o?n.f(o,s,i(0,a)):o[s]=a}},function(r,e,t){"use strict";t(117);var n=t(7),i=t(75),o=t(9),s=/./.toString,a=function(l){t(14)(RegExp.prototype,"toString",l,!0)};t(10)(function(){return s.call({source:"a",flags:"b"})!="/a/b"})?a(function(){var l=n(this);return"/".concat(l.source,"/","flags"in l?l.flags:!o&&l instanceof RegExp?i.call(l):void 0)}):s.name!="toString"&&a(function(){return s.call(this)})},function(r,e,t){t(9)&&/./g.flags!="g"&&t(11).f(RegExp.prototype,"flags",{configurable:!0,get:t(75)})},function(r,e,t){var n;t(5);function i(o,s,a){if(typeof s=="function"&&(a=s,s={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,c){i(o,s||{},function(u,f){u?c(u):l(f)})})}n(o,s||{},function(l,c){l&&(l.code==="EACCES"||s&&s.ignoreErrors)&&(l=null,c=!1),a(l,c)})}n=process.platform==="win32"||global.TESTING_WINDOWS?t(119):t(120),r.exports=i,i.sync=function(o,s){try{return n.sync(o,s||{})}catch(a){if(s&&s.ignoreErrors||a.code==="EACCES")return!1;throw a}}},function(r,e,t){r.exports=o,o.sync=function(s,a){return i(n.statSync(s),s,a)};var n=t(5);function i(s,a,l){return!(!s.isSymbolicLink()&&!s.isFile())&&function(c,u){var f=u.pathExt!==void 0?u.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";")).indexOf("")!==-1)return!0;for(var g=0;g<f.length;g++){var m=f[g].toLowerCase();if(m&&c.substr(-m.length).toLowerCase()===m)return!0}return!1}(a,l)}function o(s,a,l){n.stat(s,function(c,u){l(c,!c&&i(u,s,a))})}},function(r,e,t){r.exports=i,i.sync=function(s,a){return o(n.statSync(s),a)};var n=t(5);function i(s,a,l){n.stat(s,function(c,u){l(c,!c&&o(u,a))})}function o(s,a){return s.isFile()&&function(l,c){var u=l.mode,f=l.uid,g=l.gid,m=c.uid!==void 0?c.uid:process.getuid&&process.getuid(),p=c.gid!==void 0?c.gid:process.getgid&&process.getgid(),y=parseInt("100",8),x=parseInt("010",8),_=parseInt("001",8),h=y|x;return u&_||u&x&&g===p||u&y&&f===m||u&h&&m===0}(s,a)}},function(r,e,t){"use strict";r.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getNodeInfo:function(){return n.log("trace","getNodeInfo"),Promise.all([n.isWindows?n.run("node -v").then(n.findVersion):n.which("node").then(function(i){return i?n.run(i+" -v"):Promise.resolve("")}).then(n.findVersion),n.which("node").then(n.condensePath)]).then(function(i){return n.determineFound("Node",i[0],i[1])})},getnpmInfo:function(){return n.log("trace","getnpmInfo"),Promise.all([n.run("npm -v"),n.which("npm").then(n.condensePath)]).then(function(i){return n.determineFound("npm",i[0],i[1])})},getWatchmanInfo:function(){return n.log("trace","getWatchmanInfo"),Promise.all([n.which("watchman").then(function(i){return i?n.run(i+" -v"):void 0}),n.which("watchman")]).then(function(i){return n.determineFound("Watchman",i[0],i[1])})},getYarnInfo:function(){return n.log("trace","getYarnInfo"),Promise.all([n.run("yarn -v"),n.which("yarn").then(n.condensePath)]).then(function(i){return n.determineFound("Yarn",i[0],i[1])})}}},function(r,e,t){"use strict";t(16),t(2),t(27);var n=t(5),i=t(17),o=t(1),s=t(0);r.exports={getBraveBrowserInfo:function(){return o.log("trace","getBraveBrowser"),(o.isLinux?o.run("brave --version || brave-browser --version").then(function(a){return a.replace(/^.* ([^ ]*)/g,"$1")}):o.isMacOS?o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Brave Browser"]).then(o.findVersion):Promise.resolve("N/A")).then(function(a){return o.determineFound("Brave Browser",a,"N/A")})},getChromeInfo:function(){var a;if(o.log("trace","getChromeInfo"),o.isLinux)a=o.run("google-chrome --version").then(function(c){return c.replace(" dev","").replace(/^.* ([^ ]*)/g,"$1")});else if(o.isMacOS)a=o.getDarwinApplicationVersion(o.browserBundleIdentifiers.Chrome).then(o.findVersion);else if(o.isWindows){var l;try{l=o.findVersion(n.readdirSync(s.join(process.env["ProgramFiles(x86)"],"Google/Chrome/Application")).join(`
`))}catch{l=o.NotFound}a=Promise.resolve(l)}else a=Promise.resolve("N/A");return a.then(function(c){return o.determineFound("Chrome",c,"N/A")})},getChromeCanaryInfo:function(){return o.log("trace","getChromeCanaryInfo"),o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Chrome Canary"]).then(function(a){return o.determineFound("Chrome Canary",a,"N/A")})},getChromiumInfo:function(){return o.log("trace","getChromiumInfo"),(o.isLinux?o.run("chromium --version").then(o.findVersion):Promise.resolve("N/A")).then(function(a){return o.determineFound("Chromium",a,"N/A")})},getEdgeInfo:function(){var a;if(o.log("trace","getEdgeInfo"),o.isWindows&&i.release().split(".")[0]==="10"){var l={Spartan:"Microsoft.MicrosoftEdge",Chromium:"Microsoft.MicrosoftEdge.Stable",ChromiumDev:"Microsoft.MicrosoftEdge.Dev"};a=Promise.all(Object.keys(l).map(function(c){return function(u,f){return o.run(`powershell get-appxpackage ${u}`).then(function(g){if(o.findVersion(g)!=="")return`${f} (${o.findVersion(g)})`})}(l[c],c)}).filter(function(c){return c!==void 0}))}else{if(!o.isMacOS)return Promise.resolve("N/A");a=o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Microsoft Edge"])}return a.then(function(c){return o.determineFound("Edge",Array.isArray(c)?c.filter(function(u){return u!==void 0}):c,o.NA)})},getFirefoxInfo:function(){return o.log("trace","getFirefoxInfo"),(o.isLinux?o.run("firefox --version").then(function(a){return a.replace(/^.* ([^ ]*)/g,"$1")}):o.isMacOS?o.getDarwinApplicationVersion(o.browserBundleIdentifiers.Firefox):Promise.resolve("N/A")).then(function(a){return o.determineFound("Firefox",a,"N/A")})},getFirefoxDeveloperEditionInfo:function(){return o.log("trace","getFirefoxDeveloperEditionInfo"),o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Firefox Developer Edition"]).then(function(a){return o.determineFound("Firefox Developer Edition",a,"N/A")})},getFirefoxNightlyInfo:function(){return o.log("trace","getFirefoxNightlyInfo"),(o.isLinux?o.run("firefox-trunk --version").then(function(a){return a.replace(/^.* ([^ ]*)/g,"$1")}):o.isMacOS?o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve("N/A")).then(function(a){return o.determineFound("Firefox Nightly",a,"N/A")})},getInternetExplorerInfo:function(){var a;if(o.log("trace","getInternetExplorerInfo"),o.isWindows){var l=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");a=o.run(`wmic datafile where "name='${l}'" get Version`).then(o.findVersion)}else a=Promise.resolve("N/A");return a.then(function(c){return o.determineFound("Internet Explorer",c,"N/A")})},getSafariTechnologyPreviewInfo:function(){return o.log("trace","getSafariTechnologyPreviewInfo"),o.getDarwinApplicationVersion(o.browserBundleIdentifiers["Safari Technology Preview"]).then(function(a){return o.determineFound("Safari Technology Preview",a,"N/A")})},getSafariInfo:function(){return o.log("trace","getSafariInfo"),o.getDarwinApplicationVersion(o.browserBundleIdentifiers.Safari).then(function(a){return o.determineFound("Safari",a,"N/A")})}}},function(r,e,t){"use strict";t(32),t(2);var n=t(1);r.exports={getMongoDBInfo:function(){return n.log("trace","getMongoDBInfo"),Promise.all([n.run("mongo --version").then(n.findVersion),n.which("mongo")]).then(function(i){return n.determineFound("MongoDB",i[0],i[1])})},getMySQLInfo:function(){return n.log("trace","getMySQLInfo"),Promise.all([n.run("mysql --version").then(function(i){return`${n.findVersion(i,null,1)}${i.includes("MariaDB")?" (MariaDB)":""}`}),n.which("mysql")]).then(function(i){return n.determineFound("MySQL",i[0],i[1])})},getPostgreSQLInfo:function(){return n.log("trace","getPostgreSQLInfo"),Promise.all([n.run("postgres --version").then(n.findVersion),n.which("postgres")]).then(function(i){return n.determineFound("PostgreSQL",i[0],i[1])})},getSQLiteInfo:function(){return n.log("trace","getSQLiteInfo"),Promise.all([n.run("sqlite3 --version").then(n.findVersion),n.which("sqlite3")]).then(function(i){return n.determineFound("SQLite",i[0],i[1])})}}},function(r,e,t){"use strict";t(27),t(16),t(2);var n=t(0),i=t(1);r.exports={getAndroidStudioInfo:function(){var o=Promise.resolve("N/A");return i.isMacOS?o=i.run(i.generatePlistBuddyCommand(n.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(function(s){return s||i.run(i.generatePlistBuddyCommand(n.join("~","Applications","JetBrains\\ Toolbox","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"]))}).then(function(s){return s.split(`
`).join(" ")}):i.isLinux?o=Promise.all([i.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(i.findVersion),i.run("cat /opt/android-studio/build.txt")]).then(function(s){return`${s[0]} ${s[1]}`.trim()||i.NotFound}):i.isWindows&&(o=Promise.all([i.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(function(s){return s.replace(/(\r\n|\n|\r)/gm,"")}),i.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(function(s){return s.replace(/(\r\n|\n|\r)/gm,"")})]).then(function(s){return`${s[0]} ${s[1]}`.trim()||i.NotFound})),o.then(function(s){return i.determineFound("Android Studio",s)})},getAtomInfo:function(){return i.log("trace","getAtomInfo"),Promise.all([i.getDarwinApplicationVersion(i.ideBundleIdentifiers.Atom),"N/A"]).then(function(o){return i.determineFound("Atom",o[0],o[1])})},getEmacsInfo:function(){return i.log("trace","getEmacsInfo"),i.isMacOS||i.isLinux?Promise.all([i.run("emacs --version").then(i.findVersion),i.run("which emacs")]).then(function(o){return i.determineFound("Emacs",o[0],o[1])}):Promise.resolve(["Emacs","N/A"])},getIntelliJInfo:function(){return i.log("trace","getIntelliJInfo"),i.getDarwinApplicationVersion(i.ideBundleIdentifiers.IntelliJ).then(function(o){return i.determineFound("IntelliJ",o)})},getNanoInfo:function(){return i.log("trace","getNanoInfo"),i.isMacOS||i.isLinux?Promise.all([i.run("nano --version").then(i.findVersion),i.run("which nano")]).then(function(o){return i.determineFound("Nano",o[0],o[1])}):Promise.resolve(["Nano","N/A"])},getNvimInfo:function(){return i.log("trace","getNvimInfo"),i.isMacOS||i.isLinux?Promise.all([i.run("nvim --version").then(i.findVersion),i.run("which nvim")]).then(function(o){return i.determineFound("Nvim",o[0],o[1])}):Promise.resolve(["Vim","N/A"])},getPhpStormInfo:function(){return i.log("trace","getPhpStormInfo"),i.getDarwinApplicationVersion(i.ideBundleIdentifiers.PhpStorm).then(function(o){return i.determineFound("PhpStorm",o)})},getSublimeTextInfo:function(){return i.log("trace","getSublimeTextInfo"),Promise.all([i.run("subl --version").then(function(o){return i.findVersion(o,/\d+/)}),i.which("subl")]).then(function(o){return o[0]===""&&i.isMacOS?(i.log("trace","getSublimeTextInfo using plist"),Promise.all([i.getDarwinApplicationVersion(i.ideBundleIdentifiers["Sublime Text"]),"N/A"])):o}).then(function(o){return i.determineFound("Sublime Text",o[0],o[1])})},getVimInfo:function(){return i.log("trace","getVimInfo"),i.isMacOS||i.isLinux?Promise.all([i.run("vim --version").then(i.findVersion),i.run("which vim")]).then(function(o){return i.determineFound("Vim",o[0],o[1])}):Promise.resolve(["Vim","N/A"])},getVSCodeInfo:function(){return i.log("trace","getVSCodeInfo"),Promise.all([i.run("code --version").then(i.findVersion),i.which("code")]).then(function(o){return i.determineFound("VSCode",o[0],o[1])})},getVisualStudioInfo:function(){return i.log("trace","getVisualStudioInfo"),i.isWindows?i.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then(function(o){var s=JSON.parse(o).map(function(a){return{Version:a.installationVersion,DisplayName:a.displayName}});return i.determineFound("Visual Studio",s.map(function(a){return`${a.Version} (${a.DisplayName})`}))}).catch(function(){return Promise.resolve(["Visual Studio",i.NotFound])}):Promise.resolve(["Visual Studio",i.NA])},getWebStormInfo:function(){return i.log("trace","getWebStormInfo"),i.getDarwinApplicationVersion(i.ideBundleIdentifiers.WebStorm).then(function(o){return i.determineFound("WebStorm",o)})},getXcodeInfo:function(){return i.log("trace","getXcodeInfo"),i.isMacOS?Promise.all([i.which("xcodebuild").then(function(o){return i.run(o+" -version")}).then(function(o){return`${i.findVersion(o)}/${o.split("Build version ")[1]}`}),i.which("xcodebuild")]).then(function(o){return i.determineFound("Xcode",o[0],o[1])}):Promise.resolve(["Xcode","N/A"])}}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getBashInfo:function(){return n.log("trace","getBashInfo"),Promise.all([n.run("bash --version").then(n.findVersion),n.which("bash")]).then(function(i){return n.determineFound("Bash",i[0],i[1])})},getElixirInfo:function(){return n.log("trace","getElixirInfo"),Promise.all([n.run("elixir --version").then(function(i){return n.findVersion(i,/[Elixir]+\s([\d+.[\d+|.]+)/,1)}),n.which("elixir")]).then(function(i){return Promise.resolve(n.determineFound("Elixir",i[0],i[1]))})},getErlangInfo:function(){return n.log("trace","getErlangInfo"),Promise.all([n.run(`erl -eval "{ok, Version} = file:read_file(filename:join([code:root_dir(), 'releases', erlang:system_info(otp_release), 'OTP_VERSION'])), io:fwrite(Version), halt()." -noshell`).then(n.findVersion),n.which("erl")]).then(function(i){return Promise.resolve(n.determineFound("Erlang",i[0],i[1]))})},getGoInfo:function(){return n.log("trace","getGoInfo"),Promise.all([n.run("go version").then(n.findVersion),n.which("go")]).then(function(i){return n.determineFound("Go",i[0],i[1])})},getJavaInfo:function(){return n.log("trace","getJavaInfo"),Promise.all([n.run("javac -version",{unify:!0}).then(function(i){return n.findVersion(i,/\d+\.[\w+|.|_|-]+/)}),n.run("which javac")]).then(function(i){return n.determineFound("Java",i[0],i[1])})},getPerlInfo:function(){return n.log("trace","getPerlInfo"),Promise.all([n.run("perl -v").then(n.findVersion),n.which("perl")]).then(function(i){return n.determineFound("Perl",i[0],i[1])})},getPHPInfo:function(){return n.log("trace","getPHPInfo"),Promise.all([n.run("php -v").then(n.findVersion),n.which("php")]).then(function(i){return n.determineFound("PHP",i[0],i[1])})},getProtocInfo:function(){return n.log("trace","getProtocInfo"),Promise.all([n.run("protoc --version").then(n.findVersion),n.run("which protoc")]).then(function(i){return n.determineFound("Protoc",i[0],i[1])})},getPythonInfo:function(){return n.log("trace","getPythonInfo"),Promise.all([n.run("python -V 2>&1").then(n.findVersion),n.run("which python")]).then(function(i){return n.determineFound("Python",i[0],i[1])})},getPython3Info:function(){return n.log("trace","getPython3Info"),Promise.all([n.run("python3 -V 2>&1").then(n.findVersion),n.run("which python3")]).then(function(i){return n.determineFound("Python3",i[0],i[1])})},getRInfo:function(){return n.log("trace","getRInfo"),Promise.all([n.run("R --version",{unify:!0}).then(n.findVersion),n.which("R")]).then(function(i){return n.determineFound("R",i[0],i[1])})},getRubyInfo:function(){return n.log("trace","getRubyInfo"),Promise.all([n.run("ruby -v").then(n.findVersion),n.which("ruby")]).then(function(i){return n.determineFound("Ruby",i[0],i[1])})},getRustInfo:function(){return n.log("trace","getRustInfo"),Promise.all([n.run("rustc --version").then(n.findVersion),n.run("which rustc")]).then(function(i){return n.determineFound("Rust",i[0],i[1])})},getScalaInfo:function(){return n.log("trace","getScalaInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("scalac -version").then(n.findVersion),n.run("which scalac")]).then(function(i){return n.determineFound("Scala",i[0],i[1])}):Promise.resolve(["Scala","N/A"])}}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getAptInfo:function(){return n.log("trace","getAptInfo"),n.isLinux?Promise.all([n.run("apt --version").then(n.findVersion),n.which("apt")]).then(function(i){return n.determineFound("Apt",i[0],i[1])}):Promise.all(["Apt","N/A"])},getCargoInfo:function(){return n.log("trace","getCargoInfo"),Promise.all([n.run("cargo --version").then(n.findVersion),n.which("cargo").then(n.condensePath)]).then(function(i){return n.determineFound("Cargo",i[0],i[1])})},getCocoaPodsInfo:function(){return n.log("trace","getCocoaPodsInfo"),n.isMacOS?Promise.all([n.run("pod --version").then(n.findVersion),n.which("pod")]).then(function(i){return n.determineFound("CocoaPods",i[0],i[1])}):Promise.all(["CocoaPods","N/A"])},getComposerInfo:function(){return n.log("trace","getComposerInfo"),Promise.all([n.run("composer --version").then(n.findVersion),n.which("composer").then(n.condensePath)]).then(function(i){return n.determineFound("Composer",i[0],i[1])})},getGradleInfo:function(){return n.log("trace","getGradleInfo"),Promise.all([n.run("gradle --version").then(n.findVersion),n.which("gradle").then(n.condensePath)]).then(function(i){return n.determineFound("Gradle",i[0],i[1])})},getHomebrewInfo:function(){return n.log("trace","getHomebrewInfo"),n.isMacOS?Promise.all([n.run("brew --version").then(n.findVersion),n.which("brew")]).then(function(i){return n.determineFound("Homebrew",i[0],i[1])}):Promise.all(["Homebrew","N/A"])},getMavenInfo:function(){return n.log("trace","getMavenInfo"),Promise.all([n.run("mvn --version").then(n.findVersion),n.which("mvn").then(n.condensePath)]).then(function(i){return n.determineFound("Maven",i[0],i[1])})},getpip2Info:function(){return n.log("trace","getpip2Info"),Promise.all([n.run("pip2 --version").then(n.findVersion),n.which("pip2").then(n.condensePath)]).then(function(i){return n.determineFound("pip2",i[0],i[1])})},getpip3Info:function(){return n.log("trace","getpip3Info"),Promise.all([n.run("pip3 --version").then(n.findVersion),n.which("pip3").then(n.condensePath)]).then(function(i){return n.determineFound("pip3",i[0],i[1])})},getRubyGemsInfo:function(){return n.log("trace","getRubyGemsInfo"),Promise.all([n.run("gem --version").then(n.findVersion),n.which("gem")]).then(function(i){return n.determineFound("RubyGems",i[0],i[1])})},getYumInfo:function(){return n.log("trace","getYumInfo"),n.isLinux?Promise.all([n.run("yum --version").then(n.findVersion),n.which("yum")]).then(function(i){return n.determineFound("Yum",i[0],i[1])}):Promise.all(["Yum","N/A"])}}},function(r,e,t){"use strict";t(2);var n=t(1),i=t(0);r.exports={getYarnWorkspacesInfo:function(){return n.log("trace","getYarnWorkspacesInfo"),Promise.all([n.run("yarn -v"),n.getPackageJsonByPath("package.json").then(function(o){return o&&"workspaces"in o})]).then(function(o){var s="Yarn Workspaces";return o[0]&&o[1]?Promise.resolve([s,o[0]]):Promise.resolve([s,"Not Found"])})},getLernaInfo:function(){return n.log("trace","getLernaInfo"),Promise.all([n.getPackageJsonByName("lerna").then(function(o){return o&&o.version}),n.fileExists(i.join(process.cwd(),"lerna.json"))]).then(function(o){return o[0]&&o[1]?Promise.resolve(["Lerna",o[0]]):Promise.resolve(["Lerna","Not Found"])})}}},function(r,e,t){"use strict";t(22),t(2),t(16);var n=t(5),i=t(0),o=t(1);r.exports={getAndroidSDKInfo:function(){return o.run("sdkmanager --list").then(function(s){return!s&&process.env.ANDROID_HOME?o.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`):s}).then(function(s){return!s&&process.env.ANDROID_HOME?o.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`):s}).then(function(s){return!s&&o.isMacOS?o.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):s}).then(function(s){var a=o.parseSDKManagerOutput(s),l=function(u){var f,g=i.join(u,"source.properties");try{f=n.readFileSync(g,"utf8")}catch(x){if(x.code==="ENOENT")return;throw x}for(var m=f.split(`
`),p=0;p<m.length;p+=1){var y=m[p].split("=");if(y.length===2&&y[0].trim()==="Pkg.Revision")return y[1].trim()}},c=process.env.ANDROID_NDK?l(process.env.ANDROID_NDK):process.env.ANDROID_NDK_HOME?l(process.env.ANDROID_NDK_HOME):process.env.ANDROID_HOME?l(i.join(process.env.ANDROID_HOME,"ndk-bundle")):void 0;return a.buildTools.length||a.apiLevels.length||a.systemImages.length||c?Promise.resolve(["Android SDK",{"API Levels":a.apiLevels||o.NotFound,"Build Tools":a.buildTools||o.NotFound,"System Images":a.systemImages||o.NotFound,"Android NDK":c||o.NotFound}]):Promise.resolve(["Android SDK",o.NotFound])})},getiOSSDKInfo:function(){return o.isMacOS?o.run("xcodebuild -showsdks").then(function(s){return s.match(/[\w]+\s[\d|.]+/g)}).then(o.uniq).then(function(s){return s.length?["iOS SDK",{Platforms:s}]:["iOS SDK",o.NotFound]}):Promise.resolve(["iOS SDK","N/A"])},getWindowsSDKInfo:function(){if(o.log("trace","getWindowsSDKInfo"),o.isWindows){var s=o.NotFound;return o.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then(function(a){s=a.split(/[\r\n]/g).slice(1).filter(function(c){return c!==""}).reduce(function(c,u){var f=u.match(/[^\s]+/g);return f[2]!=="0x0"&&f[2]!=="0x1"||(f[2]=f[2]==="0x1"?"Enabled":"Disabled"),c[f[0]]=f[2],c},{}),Object.keys(s).length===0&&(s=o.NotFound);try{var l=n.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);s.Versions=l}catch{}return Promise.resolve(["Windows SDK",s])})}return Promise.resolve(["Windows SDK",o.NA])}}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getApacheInfo:function(){return n.log("trace","getApacheInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("apachectl -v").then(n.findVersion),n.run("which apachectl")]).then(function(i){return n.determineFound("Apache",i[0],i[1])}):Promise.resolve(["Apache","N/A"])},getNginxInfo:function(){return n.log("trace","getNginxInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("nginx -v 2>&1").then(n.findVersion),n.run("which nginx")]).then(function(i){return n.determineFound("Nginx",i[0],i[1])}):Promise.resolve(["Nginx","N/A"])}}},function(r,e,t){"use strict";t(22),t(2);var n=t(132),i=t(1),o=t(17);r.exports={getContainerInfo:function(){return i.log("trace","getContainerInfo"),i.isLinux?Promise.all([i.fileExists("/.dockerenv"),i.readFile("/proc/self/cgroup")]).then(function(s){return i.log("trace","getContainerInfoThen",s),Promise.resolve(["Container",s[0]||s[1]?"Yes":"N/A"])}).catch(function(s){return i.log("trace","getContainerInfoCatch",s)}):Promise.resolve(["Container","N/A"])},getCPUInfo:function(){var s;i.log("trace","getCPUInfo");try{var a=o.cpus();s="("+a.length+") "+o.arch()+" "+a[0].model}catch{s="Unknown"}return Promise.all(["CPU",s])},getMemoryInfo:function(){return i.log("trace","getMemoryInfo"),Promise.all(["Memory",`${i.toReadableBytes(o.freemem())} / ${i.toReadableBytes(o.totalmem())}`])},getOSInfo:function(){return i.log("trace","getOSInfo"),(i.isMacOS?i.run("sw_vers -productVersion "):i.isLinux?i.run("cat /etc/os-release").then(function(s){var a=(s||"").match(/NAME="(.+)"/)||"",l=(s||"").match(/VERSION="(.+)"/)||["",""],c=l!==null?l[1]:"";return`${a[1]} ${c}`.trim()||""}):i.isWindows?Promise.resolve(o.release()):Promise.resolve()).then(function(s){var a=n(o.platform(),o.release());return s&&(a+=` ${s}`),["OS",a]})},getShellInfo:function(){if(i.log("trace","getShellInfo",process.env),i.isMacOS||i.isLinux){var s=process.env.SHELL||i.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1"),a=`${s} --version 2>&1`;return s.match("/bin/ash")&&(a=`${s} --help 2>&1`),Promise.all([i.run(a).then(i.findVersion),i.which(s)]).then(function(l){return i.determineFound("Shell",l[0]||"Unknown",l[1])})}return Promise.resolve(["Shell","N/A"])},getGLibcInfo:function(){return i.log("trace","getGLibc"),i.isLinux?Promise.all([i.run("ldd --version").then(i.findVersion)]).then(function(s){return i.determineFound("GLibc",s[0]||"Unknown")}):Promise.resolve(["GLibc","N/A"])}}},function(r,e,t){"use strict";let n=t(17),i=t(133),o=t(134);r.exports=(s,a)=>{if(!s&&a)throw new Error("You can't specify a `release` without specifying `platform`");let l;return(s=s||n.platform())==="darwin"?(a||n.platform()!=="darwin"||(a=n.release()),(a?Number(a.split(".")[0])>15?"macOS":"OS X":"macOS")+((l=a?i(a).name:"")?" "+l:"")):s==="linux"?(a||n.platform()!=="linux"||(a=n.release()),"Linux"+((l=a?a.replace(/^(\d+\.\d+).*/,"$1"):"")?" "+l:"")):s==="win32"?(a||n.platform()!=="win32"||(a=n.release()),"Windows"+((l=a?o(a):"")?" "+l:"")):s}},function(r,e,t){"use strict";let n=t(17),i=new Map([[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]),o=s=>(s=Number((s||n.release()).split(".")[0]),{name:i.get(s),version:"10."+(s-4)});r.exports=o,r.exports.default=o},function(r,e,t){"use strict";let n=t(17),i=t(135),o=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);r.exports=s=>{let a=/\d+\.\d/.exec(s||n.release());if(s&&!a)throw new Error("`release` argument doesn't match `n.n`");let l=(a||[])[0];if((!s||s===n.release())&&["6.1","6.2","6.3","10.0"].includes(l)){let c=((i.sync("wmic",["os","get","Caption"]).stdout||"").match(/2008|2012|2016/)||[])[0];if(c)return`Server ${c}`}return o.get(l)}},function(r,e,t){"use strict";let n=t(0),i=t(49),o=t(136),s=t(146),a=t(147),l=t(148),c=t(149),u=t(154),f=t(155),g=t(157),m=t(158),p=1e7;function y(w,d,k){let S;return(k=Object.assign({extendEnv:!0,env:{}},k)).extendEnv&&(k.env=Object.assign({},process.env,k.env)),k.__winShell===!0?(delete k.__winShell,S={command:w,args:d,options:k,file:w,original:{cmd:w,args:d}}):S=o._parse(w,d,k),(k=Object.assign({maxBuffer:p,buffer:!0,stripEof:!0,preferLocal:!0,localDir:S.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},S.options)).stdio=m(k),k.preferLocal&&(k.env=a.env(Object.assign({},k,{cwd:k.localDir}))),k.detached&&(k.cleanup=!1),process.platform==="win32"&&n.basename(S.command)==="cmd.exe"&&S.args.unshift("/q"),{cmd:S.command,args:S.args,opts:k,parsed:S}}function x(w,d){return d&&w.stripEof&&(d=s(d)),d}function _(w,d,k){let S="/bin/sh",E=["-c",d];return k=Object.assign({},k),process.platform==="win32"&&(k.__winShell=!0,S=process.env.comspec||"cmd.exe",E=["/s","/c",`"${d}"`],k.windowsVerbatimArguments=!0),k.shell&&(S=k.shell,delete k.shell),w(S,E,k)}function h(w,d,{encoding:k,buffer:S,maxBuffer:E}){if(!w[d])return null;let O;return(O=S?k?c(w[d],{encoding:k,maxBuffer:E}):c.buffer(w[d],{maxBuffer:E}):new Promise((I,P)=>{w[d].once("end",I).once("error",P)})).catch(I=>{throw I.stream=d,I.message=`${d} ${I.message}`,I})}function v(w,d){let{stdout:k,stderr:S}=w,E=w.error,{code:O,signal:I}=w,{parsed:P,joinedCmd:T}=d,R=d.timedOut||!1;if(!E){let L="";Array.isArray(P.opts.stdio)?(P.opts.stdio[2]!=="inherit"&&(L+=L.length>0?S:`
${S}`),P.opts.stdio[1]!=="inherit"&&(L+=`
${k}`)):P.opts.stdio!=="inherit"&&(L=`
${S}${k}`),(E=new Error(`Command failed: ${T}${L}`)).code=O<0?g(O):O}return E.stdout=k,E.stderr=S,E.failed=!0,E.signal=I||null,E.cmd=T,E.timedOut=R,E}function b(w,d){let k=w;return Array.isArray(d)&&d.length>0&&(k+=" "+d.join(" ")),k}r.exports=(w,d,k)=>{let S=y(w,d,k),{encoding:E,buffer:O,maxBuffer:I}=S.opts,P=b(w,d),T,R;try{T=i.spawn(S.cmd,S.args,S.opts)}catch(D){return Promise.reject(D)}S.opts.cleanup&&(R=f(()=>{T.kill()}));let L=null,B=!1,C=()=>{L&&(clearTimeout(L),L=null),R&&R()};S.opts.timeout>0&&(L=setTimeout(()=>{L=null,B=!0,T.kill(S.opts.killSignal)},S.opts.timeout));let F=new Promise(D=>{T.on("exit",(J,N)=>{C(),D({code:J,signal:N})}),T.on("error",J=>{C(),D({error:J})}),T.stdin&&T.stdin.on("error",J=>{C(),D({error:J})})});function M(){T.stdout&&T.stdout.destroy(),T.stderr&&T.stderr.destroy()}let z=()=>u(Promise.all([F,h(T,"stdout",{encoding:E,buffer:O,maxBuffer:I}),h(T,"stderr",{encoding:E,buffer:O,maxBuffer:I})]).then(D=>{let J=D[0];if(J.stdout=D[1],J.stderr=D[2],J.error||J.code!==0||J.signal!==null){let N=v(J,{joinedCmd:P,parsed:S,timedOut:B});if(N.killed=N.killed||T.killed,!S.opts.reject)return N;throw N}return{stdout:x(S.opts,J.stdout),stderr:x(S.opts,J.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:P,timedOut:!1}}),M);return o._enoent.hookChildProcess(T,S.parsed),function(D,J){J!=null&&(l(J)?J.pipe(D.stdin):D.stdin.end(J))}(T,S.opts.input),T.then=(D,J)=>z().then(D,J),T.catch=D=>z().catch(D),T},r.exports.stdout=(...w)=>r.exports(...w).then(d=>d.stdout),r.exports.stderr=(...w)=>r.exports(...w).then(d=>d.stderr),r.exports.shell=(w,d)=>_(r.exports,w,d),r.exports.sync=(w,d,k)=>{let S=y(w,d,k),E=b(w,d);if(l(S.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");let O=i.spawnSync(S.cmd,S.args,S.opts);if(O.code=O.status,O.error||O.status!==0||O.signal!==null){let I=v(O,{joinedCmd:E,parsed:S});if(!S.opts.reject)return I;throw I}return{stdout:x(S.opts,O.stdout),stderr:x(S.opts,O.stderr),code:0,failed:!1,signal:null,cmd:E,timedOut:!1}},r.exports.shellSync=(w,d)=>_(r.exports.sync,w,d)},function(r,e,t){"use strict";let n=t(49),i=t(137),o=t(145);function s(a,l,c){let u=i(a,l,c),f=n.spawn(u.command,u.args,u.options);return o.hookChildProcess(f,u),f}r.exports=s,r.exports.spawn=s,r.exports.sync=function(a,l,c){let u=i(a,l,c),f=n.spawnSync(u.command,u.args,u.options);return f.error=f.error||o.verifyENOENTSync(f.status,u),f},r.exports._parse=i,r.exports._enoent=o},function(r,e,t){"use strict";let n=t(0),i=t(138),o=t(139),s=t(140),a=t(141),l=t(144),c=process.platform==="win32",u=/\.(?:com|exe)$/i,f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,g=i(()=>l.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function m(p){if(!c)return p;let y=function(_){_.file=o(_);let h=_.file&&a(_.file);return h?(_.args.unshift(_.file),_.command=h,o(_)):_.file}(p),x=!u.test(y);if(p.options.forceShell||x){let _=f.test(y);p.command=n.normalize(p.command),p.command=s.command(p.command),p.args=p.args.map(v=>s.argument(v,_));let h=[p.command].concat(p.args).join(" ");p.args=["/d","/s","/c",`"${h}"`],p.command=process.env.comspec||"cmd.exe",p.options.windowsVerbatimArguments=!0}return p}r.exports=function(p,y,x){y&&!Array.isArray(y)&&(x=y,y=null);let _={command:p,args:y=y?y.slice(0):[],options:x=Object.assign({},x),file:void 0,original:{command:p,args:y}};return x.shell?function(h){if(g)return h;let v=[h.command].concat(h.args).join(" ");return c?(h.command=typeof h.options.shell=="string"?h.options.shell:process.env.comspec||"cmd.exe",h.args=["/d","/s","/c",`"${v}"`],h.options.windowsVerbatimArguments=!0):(typeof h.options.shell=="string"?h.command=h.options.shell:process.platform==="android"?h.command="/system/bin/sh":h.command="/bin/sh",h.args=["-c",v]),h}(_):m(_)}},function(r,e,t){"use strict";r.exports=function(n){try{return n()}catch{}}},function(r,e,t){"use strict";let n=t(0),i=t(76),o=t(77)();function s(a,l){let c=process.cwd(),u=a.options.cwd!=null;if(u)try{process.chdir(a.options.cwd)}catch{}let f;try{f=i.sync(a.command,{path:(a.options.env||process.env)[o],pathExt:l?n.delimiter:void 0})}catch{}finally{process.chdir(c)}return f&&(f=n.resolve(u?a.options.cwd:"",f)),f}r.exports=function(a){return s(a)||s(a,!0)}},function(r,e,t){"use strict";let n=/([()\][%!^"`<>&|;, *?])/g;r.exports.command=function(i){return i=i.replace(n,"^$1")},r.exports.argument=function(i,o){return i=(i=`"${i=(i=(i=`${i}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(n,"^$1"),o&&(i=i.replace(n,"^$1")),i}},function(r,e,t){"use strict";let n=t(5),i=t(142);r.exports=function(o){let s,a;Buffer.alloc?s=Buffer.alloc(150):(s=new Buffer(150)).fill(0);try{a=n.openSync(o,"r"),n.readSync(a,s,0,150,0),n.closeSync(a)}catch{}return i(s.toString())}},function(r,e,t){"use strict";var n=t(143);r.exports=function(i){var o=i.match(n);if(!o)return null;var s=o[0].replace(/#! ?/,"").split(" "),a=s[0].split("/").pop(),l=s[1];return a==="env"?l:a+(l?" "+l:"")}},function(r,e,t){"use strict";r.exports=/^#!.*/},function(r,e){var t;e=r.exports=W,t=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var $=Array.prototype.slice.call(arguments,0);$.unshift("SEMVER"),console.log.apply(console,$)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],s=e.src=[],a=0,l=a++;s[l]="0|[1-9]\\d*";var c=a++;s[c]="[0-9]+";var u=a++;s[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var f=a++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var g=a++;s[g]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var m=a++;s[m]="(?:"+s[l]+"|"+s[u]+")";var p=a++;s[p]="(?:"+s[c]+"|"+s[u]+")";var y=a++;s[y]="(?:-("+s[m]+"(?:\\."+s[m]+")*))";var x=a++;s[x]="(?:-?("+s[p]+"(?:\\."+s[p]+")*))";var _=a++;s[_]="[0-9A-Za-z-]+";var h=a++;s[h]="(?:\\+("+s[_]+"(?:\\."+s[_]+")*))";var v=a++,b="v?"+s[f]+s[y]+"?"+s[h]+"?";s[v]="^"+b+"$";var w="[v=\\s]*"+s[g]+s[x]+"?"+s[h]+"?",d=a++;s[d]="^"+w+"$";var k=a++;s[k]="((?:<|>)?=?)";var S=a++;s[S]=s[c]+"|x|X|\\*";var E=a++;s[E]=s[l]+"|x|X|\\*";var O=a++;s[O]="[v=\\s]*("+s[E]+")(?:\\.("+s[E]+")(?:\\.("+s[E]+")(?:"+s[y]+")?"+s[h]+"?)?)?";var I=a++;s[I]="[v=\\s]*("+s[S]+")(?:\\.("+s[S]+")(?:\\.("+s[S]+")(?:"+s[x]+")?"+s[h]+"?)?)?";var P=a++;s[P]="^"+s[k]+"\\s*"+s[O]+"$";var T=a++;s[T]="^"+s[k]+"\\s*"+s[I]+"$";var R=a++;s[R]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var L=a++;s[L]="(?:~>?)";var B=a++;s[B]="(\\s*)"+s[L]+"\\s+",o[B]=new RegExp(s[B],"g");var C=a++;s[C]="^"+s[L]+s[O]+"$";var F=a++;s[F]="^"+s[L]+s[I]+"$";var M=a++;s[M]="(?:\\^)";var z=a++;s[z]="(\\s*)"+s[M]+"\\s+",o[z]=new RegExp(s[z],"g");var D=a++;s[D]="^"+s[M]+s[O]+"$";var J=a++;s[J]="^"+s[M]+s[I]+"$";var N=a++;s[N]="^"+s[k]+"\\s*("+w+")$|^$";var q=a++;s[q]="^"+s[k]+"\\s*("+b+")$|^$";var K=a++;s[K]="(\\s*)"+s[k]+"\\s*("+w+"|"+s[O]+")",o[K]=new RegExp(s[K],"g");var ie=a++;s[ie]="^\\s*("+s[O]+")\\s+-\\s+("+s[O]+")\\s*$";var le=a++;s[le]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var xe=a++;s[xe]="(<|>)?=?\\s*\\*";for(var me=0;me<35;me++)t(me,s[me]),o[me]||(o[me]=new RegExp(s[me]));function de($,A){if(A&&typeof A=="object"||(A={loose:!!A,includePrerelease:!1}),$ instanceof W)return $;if(typeof $!="string"||$.length>n||!(A.loose?o[d]:o[v]).test($))return null;try{return new W($,A)}catch{return null}}function W($,A){if(A&&typeof A=="object"||(A={loose:!!A,includePrerelease:!1}),$ instanceof W){if($.loose===A.loose)return $;$=$.version}else if(typeof $!="string")throw new TypeError("Invalid Version: "+$);if($.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof W))return new W($,A);t("SemVer",$,A),this.options=A,this.loose=!!A.loose;var j=$.trim().match(A.loose?o[d]:o[v]);if(!j)throw new TypeError("Invalid Version: "+$);if(this.raw=$,this.major=+j[1],this.minor=+j[2],this.patch=+j[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");j[4]?this.prerelease=j[4].split(".").map(function(G){if(/^[0-9]+$/.test(G)){var U=+G;if(U>=0&&U<i)return U}return G}):this.prerelease=[],this.build=j[5]?j[5].split("."):[],this.format()}e.parse=de,e.valid=function($,A){var j=de($,A);return j?j.version:null},e.clean=function($,A){var j=de($.trim().replace(/^[=v]+/,""),A);return j?j.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function($){return t("SemVer.compare",this.version,this.options,$),$ instanceof W||($=new W($,this.options)),this.compareMain($)||this.comparePre($)},W.prototype.compareMain=function($){return $ instanceof W||($=new W($,this.options)),Ae(this.major,$.major)||Ae(this.minor,$.minor)||Ae(this.patch,$.patch)},W.prototype.comparePre=function($){if($ instanceof W||($=new W($,this.options)),this.prerelease.length&&!$.prerelease.length)return-1;if(!this.prerelease.length&&$.prerelease.length)return 1;if(!this.prerelease.length&&!$.prerelease.length)return 0;var A=0;do{var j=this.prerelease[A],G=$.prerelease[A];if(t("prerelease compare",A,j,G),j===void 0&&G===void 0)return 0;if(G===void 0)return 1;if(j===void 0)return-1;if(j!==G)return Ae(j,G)}while(++A)},W.prototype.inc=function($,A){switch($){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",A);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",A);break;case"prepatch":this.prerelease.length=0,this.inc("patch",A),this.inc("pre",A);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",A),this.inc("pre",A);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var j=this.prerelease.length;--j>=0;)typeof this.prerelease[j]=="number"&&(this.prerelease[j]++,j=-2);j===-1&&this.prerelease.push(0)}A&&(this.prerelease[0]===A?isNaN(this.prerelease[1])&&(this.prerelease=[A,0]):this.prerelease=[A,0]);break;default:throw new Error("invalid increment argument: "+$)}return this.format(),this.raw=this.version,this},e.inc=function($,A,j,G){typeof j=="string"&&(G=j,j=void 0);try{return new W($,j).inc(A,G).version}catch{return null}},e.diff=function($,A){if(De($,A))return null;var j=de($),G=de(A);if(j.prerelease.length||G.prerelease.length){for(var U in j)if((U==="major"||U==="minor"||U==="patch")&&j[U]!==G[U])return"pre"+U;return"prerelease"}for(var U in j)if((U==="major"||U==="minor"||U==="patch")&&j[U]!==G[U])return U},e.compareIdentifiers=Ae;var Ye=/^[0-9]+$/;function Ae($,A){var j=Ye.test($),G=Ye.test(A);return j&&G&&($=+$,A=+A),j&&!G?-1:G&&!j?1:$<A?-1:$>A?1:0}function ge($,A,j){return new W($,j).compare(new W(A,j))}function Se($,A,j){return ge($,A,j)>0}function Re($,A,j){return ge($,A,j)<0}function De($,A,j){return ge($,A,j)===0}function xt($,A,j){return ge($,A,j)!==0}function Bt($,A,j){return ge($,A,j)>=0}function _t($,A,j){return ge($,A,j)<=0}function Wr($,A,j,G){var U;switch(A){case"===":typeof $=="object"&&($=$.version),typeof j=="object"&&(j=j.version),U=$===j;break;case"!==":typeof $=="object"&&($=$.version),typeof j=="object"&&(j=j.version),U=$!==j;break;case"":case"=":case"==":U=De($,j,G);break;case"!=":U=xt($,j,G);break;case">":U=Se($,j,G);break;case">=":U=Bt($,j,G);break;case"<":U=Re($,j,G);break;case"<=":U=_t($,j,G);break;default:throw new TypeError("Invalid operator: "+A)}return U}function Ue($,A){if(A&&typeof A=="object"||(A={loose:!!A,includePrerelease:!1}),$ instanceof Ue){if($.loose===!!A.loose)return $;$=$.value}if(!(this instanceof Ue))return new Ue($,A);t("comparator",$,A),this.options=A,this.loose=!!A.loose,this.parse($),this.semver===sr?this.value="":this.value=this.operator+this.semver.version,t("comp",this)}e.rcompareIdentifiers=function($,A){return Ae(A,$)},e.major=function($,A){return new W($,A).major},e.minor=function($,A){return new W($,A).minor},e.patch=function($,A){return new W($,A).patch},e.compare=ge,e.compareLoose=function($,A){return ge($,A,!0)},e.rcompare=function($,A,j){return ge(A,$,j)},e.sort=function($,A){return $.sort(function(j,G){return e.compare(j,G,A)})},e.rsort=function($,A){return $.sort(function(j,G){return e.rcompare(j,G,A)})},e.gt=Se,e.lt=Re,e.eq=De,e.neq=xt,e.gte=Bt,e.lte=_t,e.cmp=Wr,e.Comparator=Ue;var sr={};function be($,A){if(A&&typeof A=="object"||(A={loose:!!A,includePrerelease:!1}),$ instanceof be)return $.loose===!!A.loose&&$.includePrerelease===!!A.includePrerelease?$:new be($.raw,A);if($ instanceof Ue)return new be($.value,A);if(!(this instanceof be))return new be($,A);if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=$,this.set=$.split(/\s*\|\|\s*/).map(function(j){return this.parseRange(j.trim())},this).filter(function(j){return j.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+$);this.format()}function Me($){return!$||$.toLowerCase()==="x"||$==="*"}function mh($,A,j,G,U,$e,re,Fe,ye,Te,nt,ve,oe){return((A=Me(j)?"":Me(G)?">="+j+".0.0":Me(U)?">="+j+"."+G+".0":">="+A)+" "+(Fe=Me(ye)?"":Me(Te)?"<"+(+ye+1)+".0.0":Me(nt)?"<"+ye+"."+(+Te+1)+".0":ve?"<="+ye+"."+Te+"."+nt+"-"+ve:"<="+Fe)).trim()}function gh($,A,j){for(var G=0;G<$.length;G++)if(!$[G].test(A))return!1;if(j||(j={}),A.prerelease.length&&!j.includePrerelease){for(G=0;G<$.length;G++)if(t($[G].semver),$[G].semver!==sr&&$[G].semver.prerelease.length>0){var U=$[G].semver;if(U.major===A.major&&U.minor===A.minor&&U.patch===A.patch)return!0}return!1}return!0}function Ur($,A,j){try{A=new be(A,j)}catch{return!1}return A.test($)}function mi($,A,j,G){var U,$e,re,Fe,ye;switch($=new W($,G),A=new be(A,G),j){case">":U=Se,$e=_t,re=Re,Fe=">",ye=">=";break;case"<":U=Re,$e=Bt,re=Se,Fe="<",ye="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ur($,A,G))return!1;for(var Te=0;Te<A.set.length;++Te){var nt=A.set[Te],ve=null,oe=null;if(nt.forEach(function(Be){Be.semver===sr&&(Be=new Ue(">=0.0.0")),ve=ve||Be,oe=oe||Be,U(Be.semver,ve.semver,G)?ve=Be:re(Be.semver,oe.semver,G)&&(oe=Be)}),ve.operator===Fe||ve.operator===ye||(!oe.operator||oe.operator===Fe)&&$e($,oe.semver)||oe.operator===ye&&re($,oe.semver))return!1}return!0}Ue.prototype.parse=function($){var A=this.options.loose?o[N]:o[q],j=$.match(A);if(!j)throw new TypeError("Invalid comparator: "+$);this.operator=j[1],this.operator==="="&&(this.operator=""),j[2]?this.semver=new W(j[2],this.options.loose):this.semver=sr},Ue.prototype.toString=function(){return this.value},Ue.prototype.test=function($){return t("Comparator.test",$,this.options.loose),this.semver===sr||(typeof $=="string"&&($=new W($,this.options)),Wr($,this.operator,this.semver,this.options))},Ue.prototype.intersects=function($,A){if(!($ instanceof Ue))throw new TypeError("a Comparator is required");var j;if(A&&typeof A=="object"||(A={loose:!!A,includePrerelease:!1}),this.operator==="")return j=new be($.value,A),Ur(this.value,j,A);if($.operator==="")return j=new be(this.value,A),Ur($.semver,j,A);var G=!(this.operator!==">="&&this.operator!==">"||$.operator!==">="&&$.operator!==">"),U=!(this.operator!=="<="&&this.operator!=="<"||$.operator!=="<="&&$.operator!=="<"),$e=this.semver.version===$.semver.version,re=!(this.operator!==">="&&this.operator!=="<="||$.operator!==">="&&$.operator!=="<="),Fe=Wr(this.semver,"<",$.semver,A)&&(this.operator===">="||this.operator===">")&&($.operator==="<="||$.operator==="<"),ye=Wr(this.semver,">",$.semver,A)&&(this.operator==="<="||this.operator==="<")&&($.operator===">="||$.operator===">");return G||U||$e&&re||Fe||ye},e.Range=be,be.prototype.format=function(){return this.range=this.set.map(function($){return $.join(" ").trim()}).join("||").trim(),this.range},be.prototype.toString=function(){return this.range},be.prototype.parseRange=function($){var A=this.options.loose;$=$.trim();var j=A?o[le]:o[ie];$=$.replace(j,mh),t("hyphen replace",$),$=$.replace(o[K],"$1$2$3"),t("comparator trim",$,o[K]),$=($=($=$.replace(o[B],"$1~")).replace(o[z],"$1^")).split(/\s+/).join(" ");var G=A?o[N]:o[q],U=$.split(" ").map(function($e){return function(re,Fe){return t("comp",re,Fe),re=function(ye,Te){return ye.trim().split(/\s+/).map(function(nt){return function(ve,oe){t("caret",ve,oe),oe&&typeof oe=="object"||(oe={loose:!!oe,includePrerelease:!1});var Be=oe.loose?o[J]:o[D];return ve.replace(Be,function(Je,X,ee,ce,pe){var Pe;return t("caret",ve,Je,X,ee,ce,pe),Me(X)?Pe="":Me(ee)?Pe=">="+X+".0.0 <"+(+X+1)+".0.0":Me(ce)?Pe=X==="0"?">="+X+"."+ee+".0 <"+X+"."+(+ee+1)+".0":">="+X+"."+ee+".0 <"+(+X+1)+".0.0":pe?(t("replaceCaret pr",pe),pe.charAt(0)!=="-"&&(pe="-"+pe),Pe=X==="0"?ee==="0"?">="+X+"."+ee+"."+ce+pe+" <"+X+"."+ee+"."+(+ce+1):">="+X+"."+ee+"."+ce+pe+" <"+X+"."+(+ee+1)+".0":">="+X+"."+ee+"."+ce+pe+" <"+(+X+1)+".0.0"):(t("no pr"),Pe=X==="0"?ee==="0"?">="+X+"."+ee+"."+ce+" <"+X+"."+ee+"."+(+ce+1):">="+X+"."+ee+"."+ce+" <"+X+"."+(+ee+1)+".0":">="+X+"."+ee+"."+ce+" <"+(+X+1)+".0.0"),t("caret return",Pe),Pe})}(nt,Te)}).join(" ")}(re,Fe),t("caret",re),re=function(ye,Te){return ye.trim().split(/\s+/).map(function(nt){return function(ve,oe){oe&&typeof oe=="object"||(oe={loose:!!oe,includePrerelease:!1});var Be=oe.loose?o[F]:o[C];return ve.replace(Be,function(Je,X,ee,ce,pe){var Pe;return t("tilde",ve,Je,X,ee,ce,pe),Me(X)?Pe="":Me(ee)?Pe=">="+X+".0.0 <"+(+X+1)+".0.0":Me(ce)?Pe=">="+X+"."+ee+".0 <"+X+"."+(+ee+1)+".0":pe?(t("replaceTilde pr",pe),pe.charAt(0)!=="-"&&(pe="-"+pe),Pe=">="+X+"."+ee+"."+ce+pe+" <"+X+"."+(+ee+1)+".0"):Pe=">="+X+"."+ee+"."+ce+" <"+X+"."+(+ee+1)+".0",t("tilde return",Pe),Pe})}(nt,Te)}).join(" ")}(re,Fe),t("tildes",re),re=function(ye,Te){return t("replaceXRanges",ye,Te),ye.split(/\s+/).map(function(nt){return function(ve,oe){ve=ve.trim(),oe&&typeof oe=="object"||(oe={loose:!!oe,includePrerelease:!1});var Be=oe.loose?o[T]:o[P];return ve.replace(Be,function(Je,X,ee,ce,pe,Pe){t("xRange",ve,Je,X,ee,ce,pe,Pe);var ga=Me(ee),ar=ga||Me(ce),Kr=ar||Me(pe),ba=Kr;return X==="="&&ba&&(X=""),ga?Je=X===">"||X==="<"?"<0.0.0":"*":X&&ba?(ar&&(ce=0),Kr&&(pe=0),X===">"?(X=">=",ar?(ee=+ee+1,ce=0,pe=0):Kr&&(ce=+ce+1,pe=0)):X==="<="&&(X="<",ar?ee=+ee+1:ce=+ce+1),Je=X+ee+"."+ce+"."+pe):ar?Je=">="+ee+".0.0 <"+(+ee+1)+".0.0":Kr&&(Je=">="+ee+"."+ce+".0 <"+ee+"."+(+ce+1)+".0"),t("xRange return",Je),Je})}(nt,Te)}).join(" ")}(re,Fe),t("xrange",re),re=function(ye,Te){return t("replaceStars",ye,Te),ye.trim().replace(o[xe],"")}(re,Fe),t("stars",re),re}($e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(U=U.filter(function($e){return!!$e.match(G)})),U=U.map(function($e){return new Ue($e,this.options)},this)},be.prototype.intersects=function($,A){if(!($ instanceof be))throw new TypeError("a Range is required");return this.set.some(function(j){return j.every(function(G){return $.set.some(function(U){return U.every(function($e){return G.intersects($e,A)})})})})},e.toComparators=function($,A){return new be($,A).set.map(function(j){return j.map(function(G){return G.value}).join(" ").trim().split(" ")})},be.prototype.test=function($){if(!$)return!1;typeof $=="string"&&($=new W($,this.options));for(var A=0;A<this.set.length;A++)if(gh(this.set[A],$,this.options))return!0;return!1},e.satisfies=Ur,e.maxSatisfying=function($,A,j){var G=null,U=null;try{var $e=new be(A,j)}catch{return null}return $.forEach(function(re){$e.test(re)&&(G&&U.compare(re)!==-1||(U=new W(G=re,j)))}),G},e.minSatisfying=function($,A,j){var G=null,U=null;try{var $e=new be(A,j)}catch{return null}return $.forEach(function(re){$e.test(re)&&(G&&U.compare(re)!==1||(U=new W(G=re,j)))}),G},e.validRange=function($,A){try{return new be($,A).range||"*"}catch{return null}},e.ltr=function($,A,j){return mi($,A,"<",j)},e.gtr=function($,A,j){return mi($,A,">",j)},e.outside=mi,e.prerelease=function($,A){var j=de($,A);return j&&j.prerelease.length?j.prerelease:null},e.intersects=function($,A,j){return $=new be($,j),A=new be(A,j),$.intersects(A)},e.coerce=function($){if($ instanceof W)return $;if(typeof $!="string")return null;var A=$.match(o[R]);return A==null?null:de((A[1]||"0")+"."+(A[2]||"0")+"."+(A[3]||"0"))}},function(r,e,t){"use strict";let n=process.platform==="win32";function i(s,a){return Object.assign(new Error(`${a} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${a} ${s.command}`,path:s.command,spawnargs:s.args})}function o(s,a){return n&&s===1&&!a.file?i(a.original,"spawn"):null}r.exports={hookChildProcess:function(s,a){if(!n)return;let l=s.emit;s.emit=function(c,u){if(c==="exit"){let f=o(u,a);if(f)return l.call(s,"error",f)}return l.apply(s,arguments)}},verifyENOENT:o,verifyENOENTSync:function(s,a){return n&&s===1&&!a.file?i(a.original,"spawnSync"):null},notFoundError:i}},function(r,e,t){"use strict";r.exports=function(n){var i=typeof n=="string"?`
`:10,o=typeof n=="string"?"\r":13;return n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n[n.length-1]===o&&(n=n.slice(0,n.length-1)),n}},function(r,e,t){"use strict";let n=t(0),i=t(77);r.exports=o=>{let s;o=Object.assign({cwd:process.cwd(),path:process.env[i()]},o);let a=n.resolve(o.cwd),l=[];for(;s!==a;)l.push(n.join(a,"node_modules/.bin")),s=a,a=n.resolve(a,"..");return l.push(n.dirname(process.execPath)),l.concat(o.path).join(n.delimiter)},r.exports.env=o=>{o=Object.assign({env:process.env},o);let s=Object.assign({},o.env),a=i({env:s});return o.path=s[a],s[a]=r.exports(o),s}},function(r,e,t){"use strict";var n=r.exports=function(i){return i!==null&&typeof i=="object"&&typeof i.pipe=="function"};n.writable=function(i){return n(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object"},n.readable=function(i){return n(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object"},n.duplex=function(i){return n.writable(i)&&n.readable(i)},n.transform=function(i){return n.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object"}},function(r,e,t){"use strict";let n=t(150),i=t(152);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function s(a,l){if(!a)return Promise.reject(new Error("Expected a stream"));l=Object.assign({maxBuffer:1/0},l);let{maxBuffer:c}=l,u;return new Promise((f,g)=>{let m=p=>{p&&(p.bufferedData=u.getBufferedValue()),g(p)};(u=n(a,i(l),p=>{p?m(p):f()})).on("data",()=>{u.getBufferedLength()>c&&m(new o)})}).then(()=>u.getBufferedValue())}r.exports=s,r.exports.buffer=(a,l)=>s(a,Object.assign({},l,{encoding:"buffer"})),r.exports.array=(a,l)=>s(a,Object.assign({},l,{array:!0})),r.exports.MaxBufferError=o},function(r,e,t){var n=t(31),i=t(151),o=t(5),s=function(){},a=/^v?\.0/.test(process.version),l=function(g){return typeof g=="function"},c=function(g,m,p,y){y=n(y);var x=!1;g.on("close",function(){x=!0}),i(g,{readable:m,writable:p},function(h){if(h)return y(h);x=!0,y()});var _=!1;return function(h){if(!x&&!_)return _=!0,function(v){return!!a&&!!o&&(v instanceof(o.ReadStream||s)||v instanceof(o.WriteStream||s))&&l(v.close)}(g)?g.close(s):function(v){return v.setHeader&&l(v.abort)}(g)?g.abort():l(g.destroy)?g.destroy():void y(h||new Error("stream was destroyed"))}},u=function(g){g()},f=function(g,m){return g.pipe(m)};r.exports=function(){var g,m=Array.prototype.slice.call(arguments),p=l(m[m.length-1]||s)&&m.pop()||s;if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new Error("pump requires two streams per minimum");var y=m.map(function(x,_){var h=_<m.length-1;return c(x,h,_>0,function(v){g||(g=v),v&&y.forEach(u),h||(y.forEach(u),p(g))})});return m.reduce(f)}},function(r,e,t){var n=t(31),i=function(){},o=function(s,a,l){if(typeof a=="function")return o(s,null,a);a||(a={}),l=n(l||i);var c=s._writableState,u=s._readableState,f=a.readable||a.readable!==!1&&s.readable,g=a.writable||a.writable!==!1&&s.writable,m=function(){s.writable||p()},p=function(){g=!1,f||l.call(s)},y=function(){f=!1,g||l.call(s)},x=function(b){l.call(s,b?new Error("exited with error code: "+b):null)},_=function(b){l.call(s,b)},h=function(){return(!f||u&&u.ended)&&(!g||c&&c.ended)?void 0:l.call(s,new Error("premature close"))},v=function(){s.req.on("finish",p)};return function(b){return b.setHeader&&typeof b.abort=="function"}(s)?(s.on("complete",p),s.on("abort",h),s.req?v():s.on("request",v)):g&&!c&&(s.on("end",m),s.on("close",m)),function(b){return b.stdio&&Array.isArray(b.stdio)&&b.stdio.length===3}(s)&&s.on("exit",x),s.on("end",y),s.on("finish",p),a.error!==!1&&s.on("error",_),s.on("close",h),function(){s.removeListener("complete",p),s.removeListener("abort",h),s.removeListener("request",v),s.req&&s.req.removeListener("finish",p),s.removeListener("end",m),s.removeListener("close",m),s.removeListener("finish",p),s.removeListener("exit",x),s.removeListener("end",y),s.removeListener("error",_),s.removeListener("close",h)}};r.exports=o},function(r,e,t){"use strict";let{PassThrough:n}=t(153);r.exports=i=>{i=Object.assign({},i);let{array:o}=i,{encoding:s}=i,a=s==="buffer",l=!1;o?l=!(s||a):s=s||"utf8",a&&(s=null);let c=0,u=[],f=new n({objectMode:l});return s&&f.setEncoding(s),f.on("data",g=>{u.push(g),l?c=u.length:c+=g.length}),f.getBufferedValue=()=>o?u:a?Buffer.concat(u,c):u.join(""),f.getBufferedLength=()=>c,f}},function(r,e){r.exports=require("stream")},function(r,e,t){"use strict";r.exports=(n,i)=>(i=i||(()=>{}),n.then(o=>new Promise(s=>{s(i())}).then(()=>o),o=>new Promise(s=>{s(i())}).then(()=>{throw o})))},function(r,e,t){var n,i=t(47),o=t(156),s=t(68);function a(){u&&(u=!1,o.forEach(function(x){try{process.removeListener(x,c[x])}catch{}}),process.emit=p,process.reallyExit=g,n.count-=1)}function l(x,_,h){n.emitted[x]||(n.emitted[x]=!0,n.emit(x,_,h))}typeof s!="function"&&(s=s.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),r.exports=function(x,_){i.equal(typeof x,"function","a callback must be provided for exit handler"),u===!1&&f();var h="exit";return _&&_.alwaysLast&&(h="afterexit"),n.on(h,x),function(){n.removeListener(h,x),n.listeners("exit").length===0&&n.listeners("afterexit").length===0&&a()}},r.exports.unload=a;var c={};o.forEach(function(x){c[x]=function(){process.listeners(x).length===n.count&&(a(),l("exit",null,x),l("afterexit",null,x),process.kill(process.pid,x))}}),r.exports.signals=function(){return o},r.exports.load=f;var u=!1;function f(){u||(u=!0,n.count+=1,o=o.filter(function(x){try{return process.on(x,c[x]),!0}catch{return!1}}),process.emit=y,process.reallyExit=m)}var g=process.reallyExit;function m(x){process.exitCode=x||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),g.call(process,process.exitCode)}var p=process.emit;function y(x,_){if(x==="exit"){_!==void 0&&(process.exitCode=_);var h=p.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),h}return p.apply(this,arguments)}},function(r,e){r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(r,e,t){"use strict";let n=t(30),i;if(typeof n.getSystemErrorName=="function")r.exports=n.getSystemErrorName;else{try{if(typeof(i=process.binding("uv")).errname!="function")throw new TypeError("uv.errname is not a function")}catch(s){console.error("execa/lib/errname: unable to establish process.binding('uv')",s),i=null}r.exports=s=>o(i,s)}function o(s,a){if(s)return s.errname(a);if(!(a<0))throw new Error("err >= 0");return`Unknown system error ${a}`}r.exports.__test__=o},function(r,e,t){"use strict";let n=["stdin","stdout","stderr"];r.exports=i=>{if(!i)return null;if(i.stdio&&(l=>n.some(c=>!!l[c]))(i))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(l=>`\`${l}\``).join(", ")}`);if(typeof i.stdio=="string")return i.stdio;let o=i.stdio||[];if(!Array.isArray(o))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof o}\``);let s=[],a=Math.max(o.length,n.length);for(let l=0;l<a;l++){let c=null;o[l]!==void 0?c=o[l]:i[n[l]]!==void 0&&(c=i[n[l]]),s[l]=c}return s}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getBazelInfo:function(){return n.log("trace","getBazelInfo"),Promise.all([n.run("bazel --version").then(n.findVersion),n.run("which bazel")]).then(function(i){return n.determineFound("Bazel",i[0],i[1])})},getCMakeInfo:function(){return n.log("trace","getCMakeInfo"),Promise.all([n.run("cmake --version").then(n.findVersion),n.run("which cmake")]).then(function(i){return n.determineFound("CMake",i[0],i[1])})},getGCCInfo:function(){return n.log("trace","getGCCInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("gcc -v 2>&1").then(n.findVersion),n.run("which gcc")]).then(function(i){return n.determineFound("GCC",i[0],i[1])}):Promise.resolve(["GCC","N/A"])},getClangInfo:function(){return n.log("trace","getClangInfo"),Promise.all([n.run("clang --version").then(n.findVersion),n.which("clang")]).then(function(i){return n.determineFound("Clang",i[0],i[1])})},getGitInfo:function(){return n.log("trace","getGitInfo"),Promise.all([n.run("git --version").then(n.findVersion),n.run("which git")]).then(function(i){return n.determineFound("Git",i[0],i[1])})},getMakeInfo:function(){return n.log("trace","getMakeInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("make --version").then(n.findVersion),n.run("which make")]).then(function(i){return n.determineFound("Make",i[0],i[1])}):Promise.resolve(["Make","N/A"])},getNinjaInfo:function(){return n.log("trace","getNinjaInfo"),Promise.all([n.run("ninja --version").then(n.findVersion),n.run("which ninja")]).then(function(i){return n.determineFound("Ninja",i[0],i[1])})},getMercurialInfo:function(){return n.log("trace","getMercurialInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("hg --version").then(n.findVersion),n.run("which hg")]).then(function(i){return n.determineFound("Mercurial",i[0],i[1])}):Promise.resolve(["Mercurial","N/A"])},getSubversionInfo:function(){return n.log("trace","getSubversionInfo"),n.isMacOS||n.isLinux?Promise.all([n.run("svn --version").then(n.findVersion),n.run("which svn")]).then(function(i){return n.determineFound("Subversion",i[0],i[1])}):Promise.resolve(["Subversion","N/A"])},getFFmpegInfo:function(){return n.log("trace","getFFmpegInfo"),Promise.all([n.run("ffmpeg -version").then(n.findVersion),n.which("ffmpeg")]).then(function(i){return n.determineFound("FFmpeg",i[0],i[1])})}}},function(r,e,t){"use strict";t(2);var n=t(1);r.exports={getDockerInfo:function(){return n.log("trace","getDockerInfo"),Promise.all([n.run("docker --version").then(n.findVersion),n.which("docker")]).then(function(i){return n.determineFound("Docker",i[0],i[1])})},getParallelsInfo:function(){return n.log("trace","getParallelsInfo"),Promise.all([n.run("prlctl --version").then(n.findVersion),n.which("prlctl")]).then(function(i){return n.determineFound("Parallels",i[0],i[1])})},getVirtualBoxInfo:function(){return n.log("trace","getVirtualBoxInfo"),Promise.all([n.run("vboxmanage --version").then(n.findVersion),n.which("vboxmanage")]).then(function(i){return n.determineFound("VirtualBox",i[0],i[1])})},getVMwareFusionInfo:function(){return n.log("trace","getVMwareFusionInfo"),n.getDarwinApplicationVersion("com.vmware.fusion").then(function(i){return n.determineFound("VMWare Fusion",i,"N/A")})}}},function(r,e,t){"use strict";t(162),t(64),t(22),t(16),t(21),t(74);var n=t(163),i=t(1);function o(p,y){return i.log("trace","clean",p),Object.keys(p).reduce(function(x,_){return!y.showNotFound&&p[_]==="Not Found"||p[_]==="N/A"||p[_]===void 0||Object.keys(p[_]).length===0?x:i.isObject(p[_])?Object.values(p[_]).every(function(h){return h==="N/A"||!y.showNotFound&&h==="Not Found"})?x:Object.assign(x,{[_]:o(p[_],y)}):Object.assign(x,{[_]:p[_]})},{})}function s(p,y){i.log("trace","formatHeaders"),y||(y={type:"underline"});var x={underline:["\x1B[4m","\x1B[0m"]};return p.slice().split(`
`).map(function(_){if(_.slice("-1")===":"){var h=_.match(/^[\s]*/g)[0];return`${h}${x[y.type][0]}${_.slice(h.length)}${x[y.type][1]}`}return _}).join(`
`)}function a(p){return i.log("trace","formatPackages"),p.npmPackages?Object.assign(p,{npmPackages:Object.entries(p.npmPackages||{}).reduce(function(y,x){var _=x[0],h=x[1];if(h==="Not Found")return Object.assign(y,{[_]:h});var v=h.wanted?`${h.wanted} =>`:"",b=Array.isArray(h.installed)?h.installed.join(", "):h.installed,w=h.duplicates?`(${h.duplicates.join(", ")})`:"";return Object.assign(y,{[_]:`${v} ${b} ${w}`})},{})}):p}function l(p,y,x){return x||(x={emptyMessage:"None"}),Array.isArray(y)&&(y=y.length>0?y.join(", "):x.emptyMessage),{[p]:y}}function c(p){return i.log("trace","serializeArrays"),function y(x,_){return Object.entries(x).reduce(function(h,v){var b=v[0],w=v[1];return i.isObject(w)?Object.assign(h,{[b]:y(w,_)}):Object.assign(h,_(b,w))},{})}(p,l)}function u(p){return i.log("trace","serializeVersionsAndPaths"),Object.entries(p).reduce(function(y,x){return Object.assign(y,{[x[0]]:Object.entries(x[1]).reduce(function(_,h){var v=h[0],b=h[1];return b.version?Object.assign(_,{[v]:[b.version,b.path].filter(Boolean).join(" - ")}):Object.assign(_,{[v]:[b][0]})},{})},{})},{})}function f(p){return n(p,{indent:" ",prefix:`
`,postfix:`
`})}function g(p){return p.slice().split(`
`).map(function(y){if(y!==""){var x=y.slice("-1")===":",_=y.search(/\S|$/);return x?`${"#".repeat(_/2+1)} `+y.slice(_):" - "+y.slice(_)}return""}).join(`
`)}function m(p,y){return y||(y={indent:" "}),JSON.stringify(p,null,y.indent)}r.exports={json:function(p,y){return i.log("trace","formatToJson"),y||(y={}),p=i.pipe([function(){return o(p,y)},y.title?function(x){return{[y.title]:x}}:i.noop,m])(p),p=y.console?`
${p}
`:p},markdown:function(p,y){return i.log("trace","formatToMarkdown"),i.pipe([function(){return o(p,y)},a,c,u,f,g,y.title?function(x){return`
# ${y.title}${x}`}:i.noop])(p,y)},yaml:function(p,y){return i.log("trace","formatToYaml",y),i.pipe([function(){return o(p,y)},a,c,u,y.title?function(x){return{[y.title]:x}}:i.noop,f,y.console?s:i.noop])(p,y)}}},function(r,e,t){t(28)("search",1,function(n,i,o){return[function(s){"use strict";var a=n(this),l=s?.[i];return l!==void 0?l.call(s,a):new RegExp(s)[i](String(a))},o]})},function(r,e,t){"use strict";var n=t(164),i=t(165),o=t(169),s=["object","array"];r.exports=function(a,l){var c=i(l),u=c.colors,f=c.prefix,g=c.postfix,m=c.dateToString,p=c.errorToString,y=c.indent,x=new Map;function _(d){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Object.keys(d).length===0)return" {}";var E=`
`,O=o(k,y);return Object.keys(d).forEach(function(I){var P=d[I],T=n(P),R=o(S," "),L=s.indexOf(T)!==-1?"":" ",B=b(P)?" [Circular]":v(T,P,k+1,S);E+=`${R}${O}${I}:${L}${B}
`}),E.substring(0,E.length-1)}function h(d){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(d.length===0)return" []";var E=`
`,O=o(k,y);return d.forEach(function(I){var P=n(I),T=o(S," "),R=b(I)?"[Circular]":v(P,I,k,S+1).toString().trimLeft();E+=`${T}${O}- ${R}
`}),E.substring(0,E.length-1)}function v(d,k,S,E){switch(d){case"array":return h(k,S,E);case"object":return _(k,S,E);case"string":return u.string(k);case"symbol":return u.symbol(k.toString());case"number":return u.number(k);case"boolean":return u.boolean(k);case"null":return u.null("null");case"undefined":return u.undefined("undefined");case"date":return u.date(m(k));case"error":return u.error(p(k));default:return k&&k.toString?k.toString():Object.prototype.toString.call(k)}}function b(d){return["object","array"].indexOf(n(d))!==-1&&(!!x.has(d)||(x.set(d),!1))}var w="";return x.set(a),n(a)==="object"&&Object.keys(a).length>0?w=_(a):n(a)==="array"&&a.length>0&&(w=h(a)),w.length===0?"":`${f}${w.slice(1)}${g}`}},function(r,e,t){"use strict";r.exports=function(n){return Array.isArray(n)?"array":n instanceof Date?"date":n instanceof Error?"error":n===null?"null":typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"?"object":typeof n}},function(r,e,t){"use strict";var n=t(166),i=t(167),o=t(168),s=" ",a=`
`,l="";function c(u,f){return u===void 0?f:u}r.exports=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{indent:c(u.indent,s),prefix:c(u.prefix,a),postfix:c(u.postfix,l),errorToString:u.errorToString||n,dateToString:u.dateToString||i,colors:Object.assign({},o,u.colors)}}},function(r,e,t){"use strict";r.exports=function(n){return Error.prototype.toString.call(n)}},function(r,e,t){"use strict";r.exports=function(n){return`new Date(${Date.prototype.toISOString.call(n)})`}},function(r,e,t){"use strict";function n(i){return i}r.exports={date:n,error:n,symbol:n,string:n,number:n,boolean:n,null:n,undefined:n}},function(r,e,t){"use strict";r.exports=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",o="",s=0;s<n;s+=1)o+=i;return o}},function(r,e,t){"use strict";r.exports={defaults:{System:["OS","CPU","Memory","Container","Shell"],Binaries:["Node","Yarn","npm","Watchman"],Managers:["Apt","Cargo","CocoaPods","Composer","Gradle","Homebrew","Maven","pip2","pip3","RubyGems","Yum"],Utilities:["Bazel","CMake","Make","GCC","Git","Clang","Ninja","Mercurial","Subversion","FFmpeg"],Servers:["Apache","Nginx"],Virtualization:["Docker","Parallels","VirtualBox","VMware Fusion"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Atom","Emacs","IntelliJ","NVim","Nano","PhpStorm","Sublime Text","VSCode","Visual Studio","Vim","WebStorm","Xcode"],Languages:["Bash","Go","Elixir","Erlang","Java","Perl","PHP","Protoc","Python","Python3","R","Ruby","Rust","Scala"],Databases:["MongoDB","MySQL","PostgreSQL","SQLite"],Browsers:["Brave Browser","Chrome","Chrome Canary","Chromium","Edge","Firefox","Firefox Developer Edition","Firefox Nightly","Internet Explorer","Safari","Safari Technology Preview"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:null,npmGlobalPackages:null},jest:{System:["OS","CPU"],Binaries:["Node","Yarn","npm"],npmPackages:["jest"]},"react-native":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","Watchman"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Xcode","Visual Studio"],npmPackages:["react","react-native"],npmGlobalPackages:["react-native-cli"]},nyc:{System:["OS","CPU","Memory"],Binaries:["Node","Yarn","npm"],npmPackages:"/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}"},webpack:{System:["OS","CPU"],Binaries:["Node","Yarn","npm"],npmPackages:"*webpack*",npmGlobalPackages:["webpack","webpack-cli"]},"styled-components":{System:["OS","CPU"],Binaries:["Node","Yarn","npm"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*styled-components*"},"create-react-app":{System:["OS","CPU"],Binaries:["Node","npm","Yarn"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-dom","react-scripts"],npmGlobalPackages:["create-react-app"],options:{duplicates:!0,showNotFound:!0}},apollo:{System:["OS"],Binaries:["Node","npm","Yarn"],Browsers:["Chrome","Edge","Firefox","Safari"],npmPackages:"{*apollo*,@apollo/*}",npmGlobalPackages:"{*apollo*,@apollo/*}"},"react-native-web":{System:["OS","CPU"],Binaries:["Node","npm","Yarn"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-native-web"],options:{showNotFound:!0}},babel:{System:["OS"],Binaries:["Node","npm","Yarn"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:"{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest}"},playwright:{System:["OS","Memory","Container"],Binaries:["Node","Yarn","npm"],Languages:["Bash"],npmPackages:"playwright*"}}}])});var _i=Y((Ib,Xr)=>{var{lstat:Nh,lstatSync:Lh,readdir:Aa,readdirSync:Pa,Dirent:Rh}=require("fs"),{sep:Ta}=require("path");if(Rh)Xr.exports={readdirSync:Pa,readdir:Aa};else{let r=function(e,t){return{name:e,isFile:()=>t.isFile(),isDirectory:()=>t.isDirectory()}};Dh=r,Xr.exports.readdir=function(e,t,n){Aa(e,(i,o)=>{if(i)return process.nextTick(n,i,null);if(!o.length)return process.nextTick(n,null,[]);let s=[];for(let a=0;a<o.length;++a){let l=o[a],c=`${e}${Ta}${l}`;Nh(c,(u,f)=>{if(u)return process.nextTick(n,u,null);s[s.length]=r(l,f),s.length===o.length&&process.nextTick(n,null,s)})}})},Xr.exports.readdirSync=function(e){let t=Pa(e),n=[];for(let i=0;i<t.length;++i){let o=t[i],s=`${e}${Ta}${o}`,a=Lh(s);n[n.length]=r(o,a)}return n}}var Dh});var Ca=Y((Ab,ja)=>{var{sep:Bh,normalize:Vh}=require("path");function zh(r){let e=Vh(r);return e.length>1&&e[e.length-1]===Bh&&(e=e.substring(0,e.length-1)),e}ja.exports={cleanPath:zh}});var Fa=Y((Pb,Ee)=>{var{sep:Gh}=require("path");Ee.exports.getArray=function(r){return r.paths};Ee.exports.getArrayGroup=function(){return[""].slice(0,0)};Ee.exports.pushFileFilterAndCount=function(r){return function(e,t,n,i){r.some(o=>o(e))&&i.counts.files++}};Ee.exports.pushFileFilter=function(r){return function(e,t){r.some(n=>n(e))&&t.push(e)}};Ee.exports.pushFileCount=function(r,e,t,n){n.counts.files++};Ee.exports.pushFile=function(r,e){e.push(r)};Ee.exports.pushDir=function(r,e){e.push(r)};Ee.exports.joinPathWithBasePath=function(r,e){return`${e}${Gh}${r}`};Ee.exports.joinPath=function(r){return r};Ee.exports.walkDirExclude=function(r){return function(e,t,n,i,o,s){r(i,n,o)||Ee.exports.walkDir(e,t,n,i,o,s)}};Ee.exports.walkDir=function(r,e,t,n,i,o){e.queue++,e.counts.dirs++,r(e,t,i,o)};Ee.exports.groupFiles=function(r,e,t){t.counts.files+=e.length,t.paths.push({dir:r,files:e})};Ee.exports.empty=function(){};Ee.exports.callbackInvokerOnlyCountsSync=function(r){return r.counts};Ee.exports.callbackInvokerDefaultSync=function(r){return r.paths};Ee.exports.callbackInvokerOnlyCountsAsync=Ma("counts");Ee.exports.callbackInvokerDefaultAsync=Ma("paths");function Hh(r,e,t,n){if(r){n||e(r,null);return}e(null,t)}function Ma(r){return function(e,t){Hh(e,t.callback,t[r],t.options.suppressErrors)}}});var Si=Y((Tb,Ga)=>{var{sep:Na,resolve:qh}=require("path"),{cleanPath:Wh}=Ca(),he=Fa(),Uh={withFileTypes:!0};function Kh(r,e,t,n){e.resolvePaths&&(r=qh(r)),e.normalizePath&&(r=Wh(r));let i={paths:[""].slice(0,0),queue:0,counts:{files:0,dirs:0},options:e,callback:t};return La(e,n),{state:i,callbackInvoker:ki,dir:r}}function Yh(r,e,t,n,i,o){Ra(t,e.paths),t===Na&&(t="");let s=za(e);for(var a=0;a<n.length;++a){let l=n[a];if(l.isFile()){let c=Ba(l.name,t);ur(c,s,t,e)}else if(l.isDirectory()){let c=`${t}${Na}${l.name}`;Da(r,e,c,l.name,i-1,o)}}Va(t,s,e)}function La(r,e){let{filters:t,onlyCountsVar:n,includeBasePath:i,includeDirs:o,groupVar:s,excludeFn:a}=r;Jh(t,n),Ra=o?he.pushDir:he.empty,Ba=i?he.joinPathWithBasePath:he.joinPath,Da=a?he.walkDirExclude(a):he.walkDir,Va=s?he.groupFiles:he.empty,za=s?he.getArrayGroup:he.getArray,Xh(n,e)}Ga.exports={buildFunctions:La,init:Kh,walkSingleDir:Yh,readdirOpts:Uh};function Jh(r,e){r.length&&e?ur=he.pushFileFilterAndCount(r):r.length?ur=he.pushFileFilter(r):e?ur=he.pushFileCount:ur=he.pushFile}function Xh(r,e){r?ki=e?he.callbackInvokerOnlyCountsSync:he.callbackInvokerOnlyCountsAsync:ki=e?he.callbackInvokerDefaultSync:he.callbackInvokerDefaultAsync}var ur=he.empty,Ra=he.empty,Da=he.empty,Ba=he.empty,Va=he.empty,ki=he.empty,za=he.empty});var Ua=Y((jb,Wa)=>{var{readdir:Qh}=_i(),{init:Zh,walkSingleDir:ep,readdirOpts:tp}=Si();function rp(r,e){return new Promise((t,n)=>{Ha(r,e,(i,o)=>{if(i)return n(i);t(o)})})}function Ha(r,e,t){let{state:n,callbackInvoker:i,dir:o}=Zh(r,e,t);qa(n,o,e.maxDepth,i)}function qa(r,e,t,n){if(t<0){--r.queue;return}Qh(e,tp,function(i,o){if(i){--r.queue,n(i,r);return}ep(qa,r,e,o,t,n),--r.queue<0&&n(null,r)})}Wa.exports={promise:rp,callback:Ha}});var Ja=Y((Cb,Ya)=>{var{readdirSync:np}=_i(),{init:ip,walkSingleDir:op,readdirOpts:sp}=Si();function ap(r,e){let{state:t,callbackInvoker:n,dir:i}=ip(r,e,null,!0);return Ka(t,i,e.maxDepth),n(t)}function Ka(r,e,t){if(!(t<0))try{let n=np(e,sp);op(Ka,r,e,n,t)}catch(n){if(!r.options.suppressErrors)throw n}}Ya.exports=ap});var Qa=Y((Mb,Xa)=>{var{promise:lp,callback:cp}=Ua(),up=Ja();function Qr(r,e){this.dir=r,this.options=e}Qr.prototype.withPromise=function(){return lp(this.dir,this.options)};Qr.prototype.withCallback=function(r){cp(this.dir,this.options,r)};Qr.prototype.sync=function(){return up(this.dir,this.options)};Xa.exports=Qr});var rl=Y((Fb,tl)=>{var el=Qa(),Za={};function fp(r){let e="^";for(let t=0;t<r.length;t++){let n=r[t];n==="*"?r[t+1]==="*"?(t++,r[t+1]==="/"?(t++,e+="(?:.*\\/)?"):e+=".*"):e+="[^\\/]*":n==="?"?e+="[^\\/]":n==="/"?e+="\\/":e+=n.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&")}return new RegExp(e+"$")}function hp(r){let e=r.map(t=>fp(String(t)));return t=>e.some(n=>n.test(t))}function Ve(){this.maxDepth=1/0,this.suppressErrors=!0,this.filters=[]}Ve.prototype.crawl=function(r){return new el(r,this)};Ve.prototype.crawlWithOptions=function(r,e){return e.maxDepth||(e.maxDepth=1/0),e.groupVar=e.group,e.onlyCountsVar=e.onlyCounts,e.excludeFn=e.exclude,e.filters=e.filters||[],new el(r,e)};Ve.prototype.withBasePath=function(){return this.includeBasePath=!0,this};Ve.prototype.withDirs=function(){return this.includeDirs=!0,this};Ve.prototype.withMaxDepth=function(r){return this.maxDepth=r,this};Ve.prototype.withFullPaths=function(){return this.resolvePaths=!0,this.includeBasePath=!0,this};Ve.prototype.withErrors=function(){return this.suppressErrors=!1,this};Ve.prototype.group=function(){return this.groupVar=!0,this};Ve.prototype.normalize=function(){return this.normalizePath=!0,this};Ve.prototype.filter=function(r){return this.filters.push(r),this};Ve.prototype.glob=function(...r){var e=Za[r.join()];return e||(e=hp(r),Za[r.join()]=e),this.filters.push(t=>e(t)),this};Ve.prototype.exclude=function(r){return this.excludeFn=r,this};Ve.prototype.onlyCounts=function(){return this.onlyCountsVar=!0,this};tl.exports=Ve});var Ei=Y((Nb,nl)=>{nl.exports.fdir=rl()});var pl=Y((Lb,hl)=>{function il(r){return Array.isArray(r)?r:[r]}var ll="",ol=" ",Oi="\\",pp=/^\s+$/,dp=/(?:[^\\]|^)\\$/,mp=/^\\!/,gp=/^\\#/,bp=/\r?\n/g,yp=/^\.*\/|^\.+$/,$i="/",cl="node-ignore";typeof Symbol<"u"&&(cl=Symbol.for("node-ignore"));var sl=cl,vp=(r,e,t)=>Object.defineProperty(r,e,{value:t}),wp=/([0-z])-([0-z])/g,ul=()=>!1,xp=r=>r.replace(wp,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:ll),_p=r=>{let{length:e}=r;return r.slice(0,e-e%2)},kp=[[/\\?\s+$/,r=>r.indexOf("\\")===0?ol:ll],[/\\\s/g,()=>ol],[/[\\$.|*+(){^]/g,r=>`\\${r}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(r,e,t)=>e+6<t.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(r,e,t)=>{let n=t.replace(/\\\*/g,"[^\\/]*");return e+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Oi],[/\\\\/g,()=>Oi],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(r,e,t,n,i)=>e===Oi?`\\[${t}${_p(n)}${i}`:i==="]"&&n.length%2===0?`[${xp(t)}${n}]`:"[]"],[/(?:[^*])$/,r=>/\/$/.test(r)?`${r}$`:`${r}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(r,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],al=Object.create(null),Sp=(r,e)=>{let t=al[r];return t||(t=kp.reduce((n,i)=>n.replace(i[0],i[1].bind(r)),r),al[r]=t),e?new RegExp(t,"i"):new RegExp(t)},Pi=r=>typeof r=="string",Ep=r=>r&&Pi(r)&&!pp.test(r)&&!dp.test(r)&&r.indexOf("#")!==0,Op=r=>r.split(bp),Ii=class{constructor(e,t,n,i){this.origin=e,this.pattern=t,this.negative=n,this.regex=i}},$p=(r,e)=>{let t=r,n=!1;r.indexOf("!")===0&&(n=!0,r=r.substr(1)),r=r.replace(mp,"!").replace(gp,"#");let i=Sp(r,e);return new Ii(t,r,n,i)},Ip=(r,e)=>{throw new e(r)},ft=(r,e,t)=>Pi(r)?r?ft.isNotRelative(r)?t(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:t("path must not be empty",TypeError):t(`path must be a string, but got \`${e}\``,TypeError),fl=r=>yp.test(r);ft.isNotRelative=fl;ft.convert=r=>r;var Ai=class{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){vp(this,sl,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[sl]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(Ep(e)){let t=$p(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,il(Pi(e)?Op(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,i=!1;return this._rules.forEach(o=>{let{negative:s}=o;if(i===s&&n!==i||s&&!n&&!i&&!t)return;o.regex.test(e)&&(n=!s,i=s)}),{ignored:n,unignored:i}}_test(e,t,n,i){let o=e&&ft.convert(e);return ft(o,e,this._allowRelativePaths?ul:Ip),this._t(o,t,n,i)}_t(e,t,n,i){if(e in t)return t[e];if(i||(i=e.split($i)),i.pop(),!i.length)return t[e]=this._testOne(e,n);let o=this._t(i.join($i)+$i,t,n,i);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return il(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Zr=r=>new Ai(r),Ap=r=>ft(r&&ft.convert(r),r,ul);Zr.isPathValid=Ap;Zr.default=Zr;hl.exports=Zr;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let r=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");ft.convert=r;let e=/^[a-z]:\//i;ft.isNotRelative=t=>e.test(t)||fl(t)}});var Al=Y(($t,Il)=>{var Pp=require("events").EventEmitter,Li=require("child_process").spawn,Ot=require("path"),Ri=require("fs"),fr=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=$l(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Tp(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},Ht=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},tn=class r extends Pp{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,n){let i=t,o=n;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let s=e.split(/ +/),a=this.createCommand(s.shift());return i&&(a.description(i),a._executableHandler=!0),o.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(o.noHelp||o.hidden),a._hasHelpOption=this._hasHelpOption,a._helpFlags=this._helpFlags,a._helpDescription=this._helpDescription,a._helpShortFlag=this._helpShortFlag,a._helpLongFlag=this._helpLongFlag,a._helpCommandName=this._helpCommandName,a._helpCommandnameAndArgs=this._helpCommandnameAndArgs,a._helpCommandDescription=this._helpCommandDescription,a._exitCallback=this._exitCallback,a._storeOptionsAsProperties=this._storeOptionsAsProperties,a._passCommandToAction=this._passCommandToAction,a._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,a._executableFile=o.executableFile||null,this.commands.push(a),a._parseExpectedArgs(s),a.parent=this,i?this:a}createCommand(e){return new r(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function n(i){i.forEach(o=>{if(o._executableHandler&&!o._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${o.name()}`);n(o.commands)})}return n(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(e.length)return e.forEach(t=>{let n={required:!1,name:"",variadic:!1};switch(t[0]){case"<":n.required=!0,n.name=t.slice(1,-1);break;case"[":n.name=t.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&this._args.push(n)}),this._args.forEach((t,n)=>{if(t.variadic&&n<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new Ht(e,t,n)),process.exit(e)}action(e){let t=n=>{let i=this._args.length,o=n.slice(0,i);this._passCommandToAction?o[i]=this:o[i]=this.opts(),n.length>i&&o.push(n.slice(i));let s=e.apply(this,o),a=this;for(;a.parent;)a=a.parent;a._actionResults.push(s)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let n=!0;if(e.negate){let i=e.long.replace(/^--no-/,"--");n=!this._findOption(i)}else if(e.long){let i=e.long.replace(/^--/,"--no-");n=!this._findOption(i)}if(n)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name
Read more on https://git.io/JJc0W`)}_optionEx(e,t,n,i,o){let s=new fr(t,n),a=s.name(),l=s.attributeName();if(s.mandatory=!!e.mandatory,this._checkForOptionNameClash(s),typeof i!="function")if(i instanceof RegExp){let c=i;i=(u,f)=>{let g=c.exec(u);return g?g[0]:f}}else o=i,i=null;if(s.negate||s.optional||s.required||typeof o=="boolean"){if(s.negate){let c=s.long.replace(/^--no-/,"--");o=this._findOption(c)?this._getOptionValue(l):!0}o!==void 0&&(this._setOptionValue(l,o),s.defaultValue=o)}return this.options.push(s),this.on("option:"+a,c=>{let u=this._getOptionValue(l);c!==null&&i?c=i(c,u===void 0?o:u):c!==null&&s.variadic&&(u===o||!Array.isArray(u)?c=[c]:c=u.concat(c)),typeof u=="boolean"||typeof u>"u"?c==null?this._setOptionValue(l,s.negate?!1:o||!0):this._setOptionValue(l,c):c!==null&&this._setOptionValue(l,s.negate?!1:c)}),this}option(e,t,n,i){return this._optionEx({},e,t,n,i)}requiredOption(e,t,n,i){return this._optionEx({mandatory:!0},e,t,n,i)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,t){this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");t=t||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(t.from="electron")),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&Ot.basename(this._scriptPath,Ot.extname(this._scriptPath)),this._parseCommand([],n),this}parseAsync(e,t){return this.parse(e,t),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,t){t=t.slice();let n=!1,i=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let o=this._scriptPath;!o&&process.mainModule&&(o=process.mainModule.filename);let s;try{let g=Ri.realpathSync(o);s=Ot.dirname(g)}catch{s="."}let a=Ot.basename(o,Ot.extname(o))+"-"+e._name;e._executableFile&&(a=e._executableFile);let l=Ot.join(s,a);Ri.existsSync(l)?a=l:i.forEach(g=>{Ri.existsSync(`${l}${g}`)&&(a=`${l}${g}`)}),n=i.includes(Ot.extname(a));let c;process.platform!=="win32"?n?(t.unshift(a),t=El(process.execArgv).concat(t),c=Li(process.argv[0],t,{stdio:"inherit"})):c=Li(a,t,{stdio:"inherit"}):(t.unshift(a),t=El(process.execArgv).concat(t),c=Li(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(g=>{process.on(g,()=>{c.killed===!1&&c.exitCode===null&&c.kill(g)})});let f=this._exitCallback;f?c.on("close",()=>{f(new Ht(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):c.on("close",process.exit.bind(process)),c.on("error",g=>{if(g.code==="ENOENT"){let m=`'${a}' does not exist
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(m)}else if(g.code==="EACCES")throw new Error(`'${a}' not executable`);if(!f)process.exit(1);else{let m=new Ht(1,"commander.executeSubCommandAsync","(error)");m.nestedError=g,f(m)}}),this.runningCommand=c}_dispatchSubcommand(e,t,n){let i=this._findCommand(e);i||this._helpAndError(),i._executableHandler?this._executeSubCommand(i,t.concat(n)):i._parseCommand(t,n)}_parseCommand(e,t){let n=this.parseOptions(t);if(e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),t);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)kl(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),kl(this,n.unknown),this._checkForMissingMandatoryOptions(),n.unknown.length>0&&this.unknownOption(n.unknown[0]),this._actionHandler){let i=this.args.slice();this._args.forEach((o,s)=>{o.required&&i[s]==null?this.missingArgument(o.name):o.variadic&&(i[s]=i.splice(s))}),this._actionHandler(i),this.emit("command:"+this.name(),e,t)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,t):this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(t=>{t.mandatory&&e._getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})}parseOptions(e){let t=[],n=[],i=t,o=e.slice();function s(l){return l.length>1&&l[0]==="-"}let a=null;for(;o.length;){let l=o.shift();if(l==="--"){i===n&&i.push(l),i.push(...o);break}if(a&&!s(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,s(l)){let c=this._findOption(l);if(c){if(c.required){let u=o.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;o.length>0&&!s(o[0])&&(u=o.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),o.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}l.length>1&&l[0]==="-"&&(i=n),i.push(l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}missingArgument(e){let t=`error: missing required argument '${e}'`;console.error(t),this._exit(1,"commander.missingArgument",t)}optionMissingArgument(e,t){let n;t?n=`error: option '${e.flags}' argument missing, got '${t}'`:n=`error: option '${e.flags}' argument missing`,console.error(n),this._exit(1,"commander.optionMissingArgument",n)}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;console.error(t),this._exit(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t=`error: unknown option '${e}'`;console.error(t),this._exit(1,"commander.unknownOption",t)}unknownCommand(){let e=[this.name()];for(let i=this.parent;i;i=i.parent)e.unshift(i.name());let t=e.join(" "),n=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${t} ${this._helpLongFlag}'.`:"");console.error(n),this._exit(1,"commander.unknownCommand",n)}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let i=new fr(t,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{process.stdout.write(e+`
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,this._argsDescription=t,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this._args.map(n=>Sl(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(t=>!t._hidden).map(t=>{let n=t._args.map(i=>Sl(i)).join(" ");return[t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:""),t._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((t,n)=>Math.max(t,n[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((t,n)=>Math.max(t,n.flags.length),0)}largestArgLength(){return this._args.reduce((e,t)=>Math.max(e,t.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),n=(process.stdout.columns||80)-e-4;function i(l,c){return Di(l,e)+" "+_l(c,n,e+2)}let o=this.options.map(l=>{let c=l.description+(!l.negate&&l.defaultValue!==void 0?" (default: "+JSON.stringify(l.defaultValue)+")":"");return i(l.flags,c)}),s=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),a=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(s||a){let l=this._helpFlags;s?a||(l=this._helpShortFlag):l=this._helpLongFlag,o.push(i(l,this._helpDescription))}return o.join(`
`)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),i=(process.stdout.columns||80)-t-4;return["Commands:",e.map(o=>{let s=o[1]?" "+o[1]:"";return(s?Di(o[0],t):o[0])+_l(s,i,t+2)}).join(`
`).replace(/^/gm," "),""].join(`
`)}helpInformation(){let e=[];if(this._description){e=[this._description,""];let l=this._argsDescription;if(l&&this._args.length){let c=this.padWidth(),f=(process.stdout.columns||80)-c-5;e.push("Arguments:"),this._args.forEach(g=>{e.push(" "+Di(g.name,c)+" "+Ol(l[g.name]||"",f,c+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let l=this.parent;l;l=l.parent)n=l.name()+" "+n;let i=["Usage: "+n+t+" "+this.usage(),""],o=[],s=this.commandHelp();s&&(o=[s]);let a=[];return(this._hasHelpOption||this.options.length>0)&&(a=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),i.concat(e).concat(a).concat(o).join(`
`)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=$l(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};$t=Il.exports=new tn;$t.program=$t;$t.Command=tn;$t.Option=fr;$t.CommanderError=Ht;function Tp(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Di(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function Ol(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s]|$)|[^\\s]+?([\\s]|$)","g");return(r.match(n)||[]).map((o,s)=>(o.slice(-1)===`
`&&(o=o.slice(0,o.length-1)),(s>0&&t?Array(t+1).join(" "):"")+o.trimRight())).join(`
`)}function _l(r,e,t){return r.match(/[\n]\s+/)||e<40?r:Ol(r,e,t)}function kl(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Sl(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function $l(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function El(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?t=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=o[1],n=o[3],i=o[4]),t&&i!=="0"?`${t}=${n}:${parseInt(i)+1}`:e})}});var Kl=Y((a0,Xi)=>{typeof Object.create=="function"?Xi.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Xi.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Yl=Y((l0,Zi)=>{try{if(Qi=require("util"),typeof Qi.inherits!="function")throw"";Zi.exports=Qi.inherits}catch{Zi.exports=Kl()}var Qi});var Xl=Y((c0,to)=>{var zp=Yl(),Jl=require("events").EventEmitter;to.exports=He;to.exports.default=He;function He(r){if(!(this instanceof He))return new He(r);Jl.call(this),r=r||{},this.concurrency=r.concurrency||1/0,this.timeout=r.timeout||0,this.autostart=r.autostart||!1,this.results=r.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}zp(He,Jl);var Gp=["pop","shift","indexOf","lastIndexOf"];Gp.forEach(function(r){He.prototype[r]=function(){return Array.prototype[r].apply(this.jobs,arguments)}});He.prototype.slice=function(r,e){return this.jobs=this.jobs.slice(r,e),this};He.prototype.reverse=function(){return this.jobs.reverse(),this};var Hp=["push","unshift","splice"];Hp.forEach(function(r){He.prototype[r]=function(){var e=Array.prototype[r].apply(this.jobs,arguments);return this.autostart&&this.start(),e}});Object.defineProperty(He.prototype,"length",{get:function(){return this.pending+this.jobs.length}});He.prototype.start=function(r){if(r&&Wp.call(this,r),this.running=!0,this.pending>=this.concurrency)return;if(this.jobs.length===0){this.pending===0&&eo.call(this);return}var e=this,t=this.jobs.shift(),n=!0,i=this.session,o=null,s=!1,a=null,l=t.hasOwnProperty("timeout")?t.timeout:this.timeout;function c(f,g){n&&e.session===i&&(n=!1,e.pending--,o!==null&&(delete e.timers[o],clearTimeout(o)),f?e.emit("error",f,t):s===!1&&(a!==null&&(e.results[a]=Array.prototype.slice.call(arguments,1)),e.emit("success",g,t)),e.session===i&&(e.pending===0&&e.jobs.length===0?eo.call(e):e.running&&e.start()))}l&&(o=setTimeout(function(){s=!0,e.listeners("timeout").length>0?e.emit("timeout",c,t):c()},l),this.timers[o]=o),this.results&&(a=this.results.length,this.results[a]=null),this.pending++,e.emit("start",t);var u=t(c);u&&u.then&&typeof u.then=="function"&&u.then(function(f){return c(null,f)}).catch(function(f){return c(f||!0)}),this.running&&this.jobs.length>0&&this.start()};He.prototype.stop=function(){this.running=!1};He.prototype.end=function(r){qp.call(this),this.jobs.length=0,this.pending=0,eo.call(this,r)};function qp(){for(var r in this.timers){var e=this.timers[r];delete this.timers[r],clearTimeout(e)}}function Wp(r){var e=this;this.on("error",t),this.on("end",n);function t(i){e.end(i)}function n(i){e.removeListener("error",t),e.removeListener("end",n),r(i,this.results)}}function eo(r){this.session++,this.running=!1,this.emit("end",r)}});var Ql=Y(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.BMP=void 0;fn.BMP={validate(r){return r.toString("ascii",0,2)==="BM"},calculate(r){return{height:Math.abs(r.readInt32LE(22)),width:r.readUInt32LE(18)}}}});var ro=Y(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.ICO=void 0;var Up=1,Kp=6,Yp=16;function Zl(r,e){let t=r.readUInt8(e);return t===0?256:t}function ec(r,e){let t=Kp+e*Yp;return{height:Zl(r,t+1),width:Zl(r,t)}}hn.ICO={validate(r){return r.readUInt16LE(0)!==0?!1:r.readUInt16LE(2)===Up},calculate(r){let e=r.readUInt16LE(4),t=ec(r,0);if(e===1)return t;let n=[t];for(let o=1;o<e;o+=1)n.push(ec(r,o));return{height:t.height,images:n,width:t.width}}}});var tc=Y(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.CUR=void 0;var Jp=ro(),Xp=2;pn.CUR={validate(r){return r.readUInt16LE(0)!==0?!1:r.readUInt16LE(2)===Xp},calculate(r){return Jp.ICO.calculate(r)}}});var rc=Y(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DDS=void 0;dn.DDS={validate(r){return r.readUInt32LE(0)===542327876},calculate(r){return{height:r.readUInt32LE(12),width:r.readUInt32LE(16)}}}});var nc=Y(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.GIF=void 0;var Qp=/^GIF8[79]a/;mn.GIF={validate(r){let e=r.toString("ascii",0,6);return Qp.test(e)},calculate(r){return{height:r.readUInt16LE(8),width:r.readUInt16LE(6)}}}});var sc=Y(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.ICNS=void 0;var Zp=8,ed=4,td=4,rd={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function ic(r,e){let t=e+td;return[r.toString("ascii",e,t),r.readUInt32BE(t)]}function oc(r){let e=rd[r];return{width:e,height:e,type:r}}gn.ICNS={validate(r){return r.toString("ascii",0,4)==="icns"},calculate(r){let e=r.length,t=r.readUInt32BE(ed),n=Zp,i=ic(r,n),o=oc(i[0]);if(n+=i[1],n===t)return o;let s={height:o.height,images:[o],width:o.width};for(;n<t&&n<e;)i=ic(r,n),o=oc(i[0]),n+=i[1],s.images.push(o);return s}}});var ac=Y(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.J2C=void 0;bn.J2C={validate(r){return r.toString("hex",0,4)==="ff4fff51"},calculate(r){return{height:r.readUInt32BE(12),width:r.readUInt32BE(8)}}}});var cc=Y(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.JP2=void 0;var yn={ftyp:"66747970",ihdr:"69686472",jp2h:"6a703268",jp__:"6a502020",rreq:"72726571",xml_:"786d6c20"},nd=r=>{let e=r.readUInt8(0),t=1+2*e,i=r.readUInt16BE(t)*(2+e);t=t+2+i;let s=r.readUInt16BE(t)*(16+e);return t+2+s},lc=r=>({height:r.readUInt32BE(4),width:r.readUInt32BE(8)});vn.JP2={validate(r){let e=r.toString("hex",4,8),t=r.readUInt32BE(0);if(e!==yn.jp__||t<1)return!1;let n=t+4,i=r.readUInt32BE(t);return r.slice(n,n+i).toString("hex",0,4)===yn.ftyp},calculate(r){let e=r.readUInt32BE(0),t=r.readUInt16BE(e+2),n=e+4+t;switch(r.toString("hex",n,n+4)){case yn.rreq:return n=n+4+4+nd(r.slice(n+4)),lc(r.slice(n+8,n+24));case yn.jp2h:return lc(r.slice(n+8,n+24));default:throw new TypeError("Unsupported header found: "+r.toString("ascii",n,n+4))}}}});var no=Y(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readUInt=void 0;function id(r,e,t,n){t=t||0;let i=n?"BE":"LE",o="readUInt"+e+i;return r[o].call(r,t)}wn.readUInt=id});var fc=Y(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.JPG=void 0;var vr=no(),od="45786966",sd=2,io=6,ad=2,ld="4d4d",cd="4949",uc=12,ud=2;function fd(r){return r.toString("hex",2,6)===od}function hd(r,e){return{height:r.readUInt16BE(e),width:r.readUInt16BE(e+2)}}function pd(r,e){let n=io+8,i=vr.readUInt(r,16,n,e);for(let o=0;o<i;o++){let s=n+ud+o*uc,a=s+uc;if(s>r.length)return;let l=r.slice(s,a);if(vr.readUInt(l,16,0,e)===274)return vr.readUInt(l,16,2,e)!==3||vr.readUInt(l,32,4,e)!==1?void 0:vr.readUInt(l,16,8,e)}}function dd(r,e){let t=r.slice(sd,e),n=t.toString("hex",io,io+ad),i=n===ld;if(i||n===cd)return pd(t,i)}function md(r,e){if(e>r.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(r[e]!==255)throw new TypeError("Invalid JPG, marker table corrupted")}xn.JPG={validate(r){return r.toString("hex",0,2)==="ffd8"},calculate(r){r=r.slice(4);let e,t;for(;r.length;){let n=r.readUInt16BE(0);if(fd(r)&&(e=dd(r,n)),md(r,n),t=r[n+1],t===192||t===193||t===194){let i=hd(r,n+5);return e?{height:i.height,orientation:e,width:i.width}:i}r=r.slice(n+2)}throw new TypeError("Invalid JPG, no size found")}}});var hc=Y(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.KTX=void 0;var gd="KTX 11";_n.KTX={validate(r){return gd===r.toString("ascii",1,7)},calculate(r){return{height:r.readUInt32LE(40),width:r.readUInt32LE(36)}}}});var dc=Y(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.PNG=void 0;var bd=`PNG\r
`,yd="IHDR",pc="CgBI";kn.PNG={validate(r){if(bd===r.toString("ascii",1,8)){let e=r.toString("ascii",12,16);if(e===pc&&(e=r.toString("ascii",28,32)),e!==yd)throw new TypeError("Invalid PNG");return!0}return!1},calculate(r){return r.toString("ascii",12,16)===pc?{height:r.readUInt32BE(36),width:r.readUInt32BE(32)}:{height:r.readUInt32BE(20),width:r.readUInt32BE(16)}}}});var bc=Y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.PNM=void 0;var gc={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},vd=Object.keys(gc),mc={default:r=>{let e=[];for(;r.length>0;){let t=r.shift();if(t[0]!=="#"){e=t.split(" ");break}}if(e.length===2)return{height:parseInt(e[1],10),width:parseInt(e[0],10)};throw new TypeError("Invalid PNM")},pam:r=>{let e={};for(;r.length>0;){let t=r.shift();if(t.length>16||t.charCodeAt(0)>128)continue;let[n,i]=t.split(" ");if(n&&i&&(e[n.toLowerCase()]=parseInt(i,10)),e.height&&e.width)break}if(e.height&&e.width)return{height:e.height,width:e.width};throw new TypeError("Invalid PAM")}};Sn.PNM={validate(r){let e=r.toString("ascii",0,2);return vd.includes(e)},calculate(r){let e=r.toString("ascii",0,2),t=gc[e],n=r.toString("ascii",3).split(/[\r\n]+/);return(mc[t]||mc.default)(n)}}});var yc=Y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.PSD=void 0;En.PSD={validate(r){return r.toString("ascii",0,4)==="8BPS"},calculate(r){return{height:r.readUInt32BE(14),width:r.readUInt32BE(18)}}}});var xc=Y(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.SVG=void 0;var vc=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/,On={height:/\sheight=(['"])([^%]+?)\1/,root:vc,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},oo=2.54,wc={in:96,cm:96/oo,em:16,ex:8,m:96/oo*100,mm:96/oo/10,pc:96/72/12,pt:96/72,px:1},wd=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(wc).join("|")})?$`);function $n(r){let e=wd.exec(r);if(e)return Math.round(Number(e[1])*(wc[e[2]]||1))}function xd(r){let e=r.split(" ");return{height:$n(e[3]),width:$n(e[2])}}function _d(r){let e=r.match(On.width),t=r.match(On.height),n=r.match(On.viewbox);return{height:t&&$n(t[2]),viewbox:n&&xd(n[2]),width:e&&$n(e[2])}}function kd(r){return{height:r.height,width:r.width}}function Sd(r,e){let t=e.width/e.height;return r.width?{height:Math.floor(r.width/t),width:r.width}:r.height?{height:r.height,width:Math.floor(r.height*t)}:{height:e.height,width:e.width}}In.SVG={validate(r){let e=String(r);return vc.test(e)},calculate(r){let e=r.toString("utf8").match(On.root);if(e){let t=_d(e[0]);if(t.width&&t.height)return kd(t);if(t.viewbox)return Sd(t,t.viewbox)}throw new TypeError("Invalid SVG")}}});var _c=Y(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.TIFF=void 0;var An=require("fs"),Wt=no();function Ed(r,e,t){let n=Wt.readUInt(r,32,4,t),i=1024,o=An.statSync(e).size;n+i>o&&(i=o-n-10);let s=Buffer.alloc(i),a=An.openSync(e,"r");return An.readSync(a,s,0,i,n),An.closeSync(a),s.slice(2)}function Od(r,e){let t=Wt.readUInt(r,16,8,e);return(Wt.readUInt(r,16,10,e)<<16)+t}function $d(r){if(r.length>24)return r.slice(12)}function Id(r,e){let t={},n=r;for(;n&&n.length;){let i=Wt.readUInt(n,16,0,e),o=Wt.readUInt(n,16,2,e),s=Wt.readUInt(n,32,4,e);if(i===0)break;s===1&&(o===3||o===4)&&(t[i]=Od(n,e)),n=$d(n)}return t}function Ad(r){let e=r.toString("ascii",0,2);if(e==="II")return"LE";if(e==="MM")return"BE"}var Pd=["49492a00","4d4d002a"];Pn.TIFF={validate(r){return Pd.includes(r.toString("hex",0,4))},calculate(r,e){if(!e)throw new TypeError("Tiff doesn't support buffer");let t=Ad(r)==="BE",n=Ed(r,e,t),i=Id(n,t),o=i[256],s=i[257];if(!o||!s)throw new TypeError("Invalid Tiff. Missing tags");return{height:s,width:o}}}});var kc=Y(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.WEBP=void 0;function Td(r){return{height:1+r.readUIntLE(7,3),width:1+r.readUIntLE(4,3)}}function jd(r){return{height:1+((r[4]&15)<<10|r[3]<<2|(r[2]&192)>>6),width:1+((r[2]&63)<<8|r[1])}}function Cd(r){return{height:r.readInt16LE(8)&16383,width:r.readInt16LE(6)&16383}}Tn.WEBP={validate(r){let e=r.toString("ascii",0,4)==="RIFF",t=r.toString("ascii",8,12)==="WEBP",n=r.toString("ascii",12,15)==="VP8";return e&&t&&n},calculate(r){let e=r.toString("ascii",12,16);if(r=r.slice(20,30),e==="VP8X"){let n=r[0],i=(n&192)===0,o=(n&1)===0;if(i&&o)return Td(r);throw new TypeError("Invalid WebP")}if(e==="VP8 "&&r[0]!==47)return Cd(r);let t=r.toString("hex",3,6);if(e==="VP8L"&&t!=="9d012a")return jd(r);throw new TypeError("Invalid WebP")}}});var so=Y(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.typeHandlers=void 0;var Md=Ql(),Fd=tc(),Nd=rc(),Ld=nc(),Rd=sc(),Dd=ro(),Bd=ac(),Vd=cc(),zd=fc(),Gd=hc(),Hd=dc(),qd=bc(),Wd=yc(),Ud=xc(),Kd=_c(),Yd=kc();jn.typeHandlers={bmp:Md.BMP,cur:Fd.CUR,dds:Nd.DDS,gif:Ld.GIF,icns:Rd.ICNS,ico:Dd.ICO,j2c:Bd.J2C,jp2:Vd.JP2,jpg:zd.JPG,ktx:Gd.KTX,png:Hd.PNG,pnm:qd.PNM,psd:Wd.PSD,svg:Ud.SVG,tiff:Kd.TIFF,webp:Yd.WEBP}});var Ec=Y(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.detector=void 0;var ao=so(),Jd=Object.keys(ao.typeHandlers),Sc={56:"psd",66:"bmp",68:"dds",71:"gif",73:"tiff",77:"tiff",82:"webp",105:"icns",137:"png",255:"jpg"};function Xd(r){let e=r[0];if(e in Sc){let n=Sc[e];if(n&&ao.typeHandlers[n].validate(r))return n}let t=n=>ao.typeHandlers[n].validate(r);return Jd.find(t)}Cn.detector=Xd});var Ac=Y((je,Ic)=>{"use strict";var Qd=je&&je.__awaiter||function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(f){s(f)}}function l(u){try{c(n.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((n=n.apply(r,e||[])).next())})};Object.defineProperty(je,"__esModule",{value:!0});je.types=je.setConcurrency=je.disableTypes=je.disableFS=je.imageSize=void 0;var Ut=require("fs"),Zd=require("path"),em=Xl(),co=so(),tm=Ec(),Oc=512*1024,$c=new em.default({concurrency:100,autostart:!0}),Mn={disabledFS:!1,disabledTypes:[]};function lo(r,e){let t=tm.detector(r);if(typeof t<"u"){if(Mn.disabledTypes.indexOf(t)>-1)throw new TypeError("disabled file type: "+t);if(t in co.typeHandlers){let n=co.typeHandlers[t].calculate(r,e);if(n!==void 0)return n.type=t,n}}throw new TypeError("unsupported file type: "+t+" (file: "+e+")")}function rm(r){return Qd(this,void 0,void 0,function*(){let e=yield Ut.promises.open(r,"r"),{size:t}=yield e.stat();if(t<=0)throw yield e.close(),new Error("Empty file");let n=Math.min(t,Oc),i=Buffer.alloc(n);return yield e.read(i,0,n,0),yield e.close(),i})}function nm(r){let e=Ut.openSync(r,"r"),{size:t}=Ut.fstatSync(e);if(t<=0)throw Ut.closeSync(e),new Error("Empty file");let n=Math.min(t,Oc),i=Buffer.alloc(n);return Ut.readSync(e,i,0,n,0),Ut.closeSync(e),i}Ic.exports=je=uo;je.default=uo;function uo(r,e){if(Buffer.isBuffer(r))return lo(r);if(typeof r!="string"||Mn.disabledFS)throw new TypeError("invalid invocation. input should be a Buffer");let t=Zd.resolve(r);if(typeof e=="function")$c.push(()=>rm(t).then(n=>process.nextTick(e,null,lo(n,t))).catch(e));else{let n=nm(t);return lo(n,t)}}je.imageSize=uo;var im=r=>{Mn.disabledFS=r};je.disableFS=im;var om=r=>{Mn.disabledTypes=r};je.disableTypes=om;var sm=r=>{$c.concurrency=r};je.setConcurrency=sm;je.types=Object.keys(co.typeHandlers)});var zo=Y((exports,module)=>{var requireFoolWebpack=eval(`typeof require !== 'undefined' ? require : function (module) { throw new Error('Module " + module + " not found.') }`);module.exports=requireFoolWebpack});var Bn=Y((R0,Ct)=>{var Xc=zo(),Qc=function(r){return typeof r<"u"&&r.versions!=null&&r.versions.node!=null};Ct.exports.isNode=Qc;Ct.exports.platform=typeof process<"u"&&Qc(process)?"node":"browser";var Jc=_m("worker_threads");Ct.exports.isMainThread=Ct.exports.platform==="node"?(!Jc||Jc.isMainThread)&&!process.connected:typeof Window<"u";Ct.exports.cpus=Ct.exports.platform==="browser"?self.navigator.hardwareConcurrency:Xc("os").cpus().length;function _m(r){try{return Xc(r)}catch{return null}}});var Vn=Y((D0,eu)=>{"use strict";function Qe(r,e){var t=this;if(!(this instanceof Qe))throw new SyntaxError("Constructor must be called with the new operator");if(typeof r!="function")throw new SyntaxError("Function parameter handler(resolve, reject) missing");var n=[],i=[];this.resolved=!1,this.rejected=!1,this.pending=!0;var o=function(l,c){n.push(l),i.push(c)};this.then=function(l,c){return new Qe(function(u,f){var g=l?Zc(l,u,f):u,m=c?Zc(c,u,f):f;o(g,m)},t)};var s=function(l){return t.resolved=!0,t.rejected=!1,t.pending=!1,n.forEach(function(c){c(l)}),o=function(c,u){c(l)},s=a=function(){},t},a=function(l){return t.resolved=!1,t.rejected=!0,t.pending=!1,i.forEach(function(c){c(l)}),o=function(c,u){u(l)},s=a=function(){},t};this.cancel=function(){return e?e.cancel():a(new Ir),t},this.timeout=function(l){if(e)e.timeout(l);else{var c=setTimeout(function(){a(new Ar("Promise timed out after "+l+" ms"))},l);t.always(function(){clearTimeout(c)})}return t},r(function(l){s(l)},function(l){a(l)})}function Zc(r,e,t){return function(n){try{var i=r(n);i&&typeof i.then=="function"&&typeof i.catch=="function"?i.then(e,t):e(i)}catch(o){t(o)}}}Qe.prototype.catch=function(r){return this.then(null,r)};Qe.prototype.always=function(r){return this.then(r,r)};Qe.all=function(r){return new Qe(function(e,t){var n=r.length,i=[];n?r.forEach(function(o,s){o.then(function(a){i[s]=a,n--,n==0&&e(i)},function(a){n=0,t(a)})}):e(i)})};Qe.defer=function(){var r={};return r.promise=new Qe(function(e,t){r.resolve=e,r.reject=t}),r};function Ir(r){this.message=r||"promise cancelled",this.stack=new Error().stack}Ir.prototype=new Error;Ir.prototype.constructor=Error;Ir.prototype.name="CancellationError";Qe.CancellationError=Ir;function Ar(r){this.message=r||"timeout exceeded",this.stack=new Error().stack}Ar.prototype=new Error;Ar.prototype.constructor=Error;Ar.prototype.name="TimeoutError";Qe.TimeoutError=Ar;eu.exports=Qe});var ru=Y((B0,tu)=>{tu.exports=`!function(){var __webpack_modules__={577:function(e){e.exports=function(e,r){this.message=e,this.transfer=r}}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];return void 0!==r||(r=__webpack_module_cache__[e]={exports:{}},__webpack_modules__[e](r,r.exports,__webpack_require__)),r.exports}var __webpack_exports__={};!function(){var exports=__webpack_exports__,__webpack_unused_export__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Transfer=__webpack_require__(577),requireFoolWebpack=eval("typeof require !== 'undefined' ? require : function (module) { throw new Error('Module \\" + module + \\" not found.') }"),TERMINATE_METHOD_ID="__workerpool-terminate__",worker={exit:function(){}},WorkerThreads,parentPort;if("undefined"!=typeof self&&"function"==typeof postMessage&&"function"==typeof addEventListener)worker.on=function(e,r){addEventListener(e,function(e){r(e.data)})},worker.send=function(e){postMessage(e)};else{if("undefined"==typeof process)throw new Error("Script must be executed as a worker");try{WorkerThreads=requireFoolWebpack("worker_threads")}catch(error){if("object"!==_typeof(error)||null===error||"MODULE_NOT_FOUND"!==error.code)throw error}WorkerThreads&&null!==WorkerThreads.parentPort?(parentPort=WorkerThreads.parentPort,worker.send=parentPort.postMessage.bind(parentPort),worker.on=parentPort.on.bind(parentPort)):(worker.on=process.on.bind(process),worker.send=function(e){process.send(e)},worker.on("disconnect",function(){process.exit(1)})),worker.exit=process.exit.bind(process)}function convertError(o){return Object.getOwnPropertyNames(o).reduce(function(e,r){return Object.defineProperty(e,r,{value:o[r],enumerable:!0})},{})}function isPromise(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}worker.methods={},worker.methods.run=function(e,r){e=new Function("return ("+e+").apply(null, arguments);");return e.apply(e,r)},worker.methods.methods=function(){return Object.keys(worker.methods)},worker.terminationHandler=void 0,worker.cleanupAndExit=function(e){function r(){worker.exit(e)}if(!worker.terminationHandler)return r();var o=worker.terminationHandler(e);isPromise(o)?o.then(r,r):r()};var currentRequestId=null;worker.on("message",function(r){if(r===TERMINATE_METHOD_ID)return worker.cleanupAndExit(0);try{var e=worker.methods[r.method];if(!e)throw new Error('Unknown method "'+r.method+'"');currentRequestId=r.id;var o=e.apply(e,r.params);isPromise(o)?o.then(function(e){e instanceof Transfer?worker.send({id:r.id,result:e.message,error:null},e.transfer):worker.send({id:r.id,result:e,error:null}),currentRequestId=null}).catch(function(e){worker.send({id:r.id,result:null,error:convertError(e)}),currentRequestId=null}):(o instanceof Transfer?worker.send({id:r.id,result:o.message,error:null},o.transfer):worker.send({id:r.id,result:o,error:null}),currentRequestId=null)}catch(e){worker.send({id:r.id,result:null,error:convertError(e)})}}),worker.register=function(e,r){if(e)for(var o in e)e.hasOwnProperty(o)&&(worker.methods[o]=e[o]);r&&(worker.terminationHandler=r.onTerminate),worker.send("ready")},worker.emit=function(e){currentRequestId&&(e instanceof Transfer?worker.send({id:currentRequestId,isEvent:!0,payload:e.message},e.transfer):worker.send({id:currentRequestId,isEvent:!0,payload:e}))},__webpack_unused_export__=worker.register,worker.emit}()}();`});var lu=Y((V0,Mt)=>{"use strict";var zn=Vn(),su=Bn(),Go=zo(),nu="__workerpool-terminate__";function au(){var r=Uo();if(!r)throw new Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");return r}function iu(){if(typeof Worker!="function"&&(typeof Worker!="object"||typeof Worker.prototype.constructor!="function"))throw new Error("WorkerPool: Web Workers not supported")}function Uo(){try{return Go("worker_threads")}catch(r){if(typeof r=="object"&&r!==null&&r.code==="MODULE_NOT_FOUND")return null;throw r}}function km(){if(su.platform==="browser"){if(typeof Blob>"u")throw new Error("Blob not supported by the browser");if(!window.URL||typeof window.URL.createObjectURL!="function")throw new Error("URL.createObjectURL not supported by the browser");var r=new Blob([ru()],{type:"text/javascript"});return window.URL.createObjectURL(r)}else return __dirname+"/worker.js"}function Sm(r,e){if(e.workerType==="web")return iu(),Ho(r,Worker);if(e.workerType==="thread")return t=au(),qo(r,t,e.workerThreadOpts);if(e.workerType==="process"||!e.workerType)return Wo(r,ou(e),Go("child_process"));if(su.platform==="browser")return iu(),Ho(r,Worker);var t=Uo();return t?qo(r,t):Wo(r,ou(e),Go("child_process"))}function Ho(r,e){var t=new e(r);return t.isBrowserWorker=!0,t.on=function(n,i){this.addEventListener(n,function(o){i(o.data)})},t.send=function(n,i){this.postMessage(n,i)},t}function qo(r,e,t){var n=new e.Worker(r,{stdout:!1,stderr:!1,...t});return n.isWorkerThread=!0,n.send=function(i,o){this.postMessage(i,o)},n.kill=function(){return this.terminate(),!0},n.disconnect=function(){this.terminate()},n}function Wo(r,e,t){var n=t.fork(r,e.forkArgs,e.forkOpts),i=n.send;return n.send=function(o){return i.call(n,o)},n.isChildProcess=!0,n}function ou(r){r=r||{};var e=process.execArgv.join(" "),t=e.indexOf("--inspect")!==-1,n=e.indexOf("--debug-brk")!==-1,i=[];return t&&(i.push("--inspect="+r.debugPort),n&&i.push("--debug-brk")),process.execArgv.forEach(function(o){o.indexOf("--max-old-space-size")>-1&&i.push(o)}),Object.assign({},r,{forkArgs:r.forkArgs,forkOpts:Object.assign({},r.forkOpts,{execArgv:(r.forkOpts&&r.forkOpts.execArgv||[]).concat(i)})})}function Em(r){for(var e=new Error(""),t=Object.keys(r),n=0;n<t.length;n++)e[t[n]]=r[t[n]];return e}function Yt(r,e){var t=this,n=e||{};this.script=r||km(),this.worker=Sm(this.script,n),this.debugPort=n.debugPort,this.forkOpts=n.forkOpts,this.forkArgs=n.forkArgs,this.workerThreadOpts=n.workerThreadOpts,this.workerTerminateTimeout=n.workerTerminateTimeout,r||(this.worker.ready=!0),this.requestQueue=[],this.worker.on("message",function(a){if(!t.terminated)if(typeof a=="string"&&a==="ready")t.worker.ready=!0,o();else{var l=a.id,c=t.processing[l];c!==void 0&&(a.isEvent?c.options&&typeof c.options.on=="function"&&c.options.on(a.payload):(delete t.processing[l],t.terminating===!0&&t.terminate(),a.error?c.resolver.reject(Em(a.error)):c.resolver.resolve(a.result)))}});function i(a){t.terminated=!0;for(var l in t.processing)t.processing[l]!==void 0&&t.processing[l].resolver.reject(a);t.processing=Object.create(null)}function o(){for(let a of t.requestQueue.splice(0))t.worker.send(a.message,a.transfer)}var s=this.worker;this.worker.on("error",i),this.worker.on("exit",function(a,l){var c=`Workerpool Worker terminated Unexpectedly
`;c+=" exitCode: `"+a+"`\n",c+=" signalCode: `"+l+"`\n",c+=" workerpool.script: `"+t.script+"`\n",c+=" spawnArgs: `"+s.spawnargs+"`\n",c+=" spawnfile: `"+s.spawnfile+"`\n",c+=" stdout: `"+s.stdout+"`\n",c+=" stderr: `"+s.stderr+"`\n",i(new Error(c))}),this.processing=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}Yt.prototype.methods=function(){return this.exec("methods")};Yt.prototype.exec=function(r,e,t,n){t||(t=zn.defer());var i=++this.lastId;this.processing[i]={id:i,resolver:t,options:n};var o={message:{id:i,method:r,params:e},transfer:n&&n.transfer};this.terminated?t.reject(new Error("Worker is terminated")):this.worker.ready?this.worker.send(o.message,o.transfer):this.requestQueue.push(o);var s=this;return t.promise.catch(function(a){if(a instanceof zn.CancellationError||a instanceof zn.TimeoutError)return delete s.processing[i],s.terminateAndNotify(!0).then(function(){throw a},function(l){throw l});throw a})};Yt.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0};Yt.prototype.terminate=function(r,e){var t=this;if(r){for(var n in this.processing)this.processing[n]!==void 0&&this.processing[n].resolver.reject(new Error("Worker terminated"));this.processing=Object.create(null)}if(typeof e=="function"&&(this.terminationHandler=e),this.busy())this.terminating=!0;else{var i=function(s){if(t.terminated=!0,t.cleaning=!1,t.worker!=null&&t.worker.removeAllListeners&&t.worker.removeAllListeners("message"),t.worker=null,t.terminating=!1,t.terminationHandler)t.terminationHandler(s,t);else if(s)throw s};if(this.worker)if(typeof this.worker.kill=="function"){if(this.worker.killed){i(new Error("worker already killed!"));return}var o=setTimeout(function(){t.worker&&t.worker.kill()},this.workerTerminateTimeout);this.worker.once("exit",function(){clearTimeout(o),t.worker&&(t.worker.killed=!0),i()}),this.worker.ready?this.worker.send(nu):this.requestQueue.push(nu),this.cleaning=!0;return}else if(typeof this.worker.terminate=="function")this.worker.terminate(),this.worker.killed=!0;else throw new Error("Failed to terminate worker");i()}};Yt.prototype.terminateAndNotify=function(r,e){var t=zn.defer();return e&&(t.promise.timeout=e),this.terminate(r,function(n,i){n?t.reject(n):t.resolve(i)}),t.promise};Mt.exports=Yt;Mt.exports._tryRequireWorkerThreads=Uo;Mt.exports._setupProcessWorker=Wo;Mt.exports._setupBrowserWorker=Ho;Mt.exports._setupWorkerThreadWorker=qo;Mt.exports.ensureWorkerThreads=au});var fu=Y((z0,uu)=>{"use strict";var cu=65535;uu.exports=Ko;function Ko(){this.ports=Object.create(null),this.length=0}Ko.prototype.nextAvailableStartingAt=function(r){for(;this.ports[r]===!0;)r++;if(r>=cu)throw new Error("WorkerPool debug port limit reached: "+r+">= "+cu);return this.ports[r]=!0,this.length++,r};Ko.prototype.releasePort=function(r){delete this.ports[r],this.length--}});var gu=Y((G0,mu)=>{var Yo=Vn(),hu=lu(),Om=Bn(),$m=fu(),Jo=new $m;function Ze(r,e){typeof r=="string"?this.script=r||null:(this.script=null,e=r),this.workers=[],this.tasks=[],e=e||{},this.forkArgs=Object.freeze(e.forkArgs||[]),this.forkOpts=Object.freeze(e.forkOpts||{}),this.workerThreadOpts=Object.freeze(e.workerThreadOpts||{}),this.debugPortStart=e.debugPortStart||43210,this.nodeWorker=e.nodeWorker,this.workerType=e.workerType||e.nodeWorker||"auto",this.maxQueueSize=e.maxQueueSize||1/0,this.workerTerminateTimeout=e.workerTerminateTimeout||1e3,this.onCreateWorker=e.onCreateWorker||(()=>null),this.onTerminateWorker=e.onTerminateWorker||(()=>null),e&&"maxWorkers"in e?(Im(e.maxWorkers),this.maxWorkers=e.maxWorkers):this.maxWorkers=Math.max((Om.cpus||4)-1,1),e&&"minWorkers"in e&&(e.minWorkers==="max"?this.minWorkers=this.maxWorkers:(Am(e.minWorkers),this.minWorkers=e.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),this.workerType==="thread"&&hu.ensureWorkerThreads()}Ze.prototype.exec=function(r,e,t){if(e&&!Array.isArray(e))throw new TypeError('Array expected as argument "params"');if(typeof r=="string"){var n=Yo.defer();if(this.tasks.length>=this.maxQueueSize)throw new Error("Max queue size of "+this.maxQueueSize+" reached");var i=this.tasks,o={method:r,params:e,resolver:n,timeout:null,options:t};i.push(o);var s=n.promise.timeout;return n.promise.timeout=function(l){return i.indexOf(o)!==-1?(o.timeout=l,n.promise):s.call(n.promise,l)},this._next(),n.promise}else{if(typeof r=="function")return this.exec("run",[String(r),e]);throw new TypeError('Function or string expected as argument "method"')}};Ze.prototype.proxy=function(){if(arguments.length>0)throw new Error("No arguments expected");var r=this;return this.exec("methods").then(function(e){var t={};return e.forEach(function(n){t[n]=function(){return r.exec(n,Array.prototype.slice.call(arguments))}}),t})};Ze.prototype._next=function(){if(this.tasks.length>0){var r=this._getWorker();if(r){var e=this,t=this.tasks.shift();if(t.resolver.promise.pending){var n=r.exec(t.method,t.params,t.resolver,t.options).then(e._boundNext).catch(function(){if(r.terminated)return e._removeWorker(r)}).then(function(){e._next()});typeof t.timeout=="number"&&n.timeout(t.timeout)}else e._next()}}};Ze.prototype._getWorker=function(){for(var r=this.workers,e=0;e<r.length;e++){var t=r[e];if(t.busy()===!1)return t}return r.length<this.maxWorkers?(t=this._createWorkerHandler(),r.push(t),t):null};Ze.prototype._removeWorker=function(r){var e=this;return Jo.releasePort(r.debugPort),this._removeWorkerFromList(r),this._ensureMinWorkers(),new Yo(function(t,n){r.terminate(!1,function(i){e.onTerminateWorker({forkArgs:r.forkArgs,forkOpts:r.forkOpts,workerThreadOpts:r.workerThreadOpts,script:r.script}),i?n(i):t(r)})})};Ze.prototype._removeWorkerFromList=function(r){var e=this.workers.indexOf(r);e!==-1&&this.workers.splice(e,1)};Ze.prototype.terminate=function(r,e){var t=this;this.tasks.forEach(function(a){a.resolver.reject(new Error("Pool terminated"))}),this.tasks.length=0;var n=function(a){Jo.releasePort(a.debugPort),this._removeWorkerFromList(a)},i=n.bind(this),o=[],s=this.workers.slice();return s.forEach(function(a){var l=a.terminateAndNotify(r,e).then(i).always(function(){t.onTerminateWorker({forkArgs:a.forkArgs,forkOpts:a.forkOpts,workerThreadOpts:a.workerThreadOpts,script:a.script})});o.push(l)}),Yo.all(o)};Ze.prototype.stats=function(){var r=this.workers.length,e=this.workers.filter(function(t){return t.busy()}).length;return{totalWorkers:r,busyWorkers:e,idleWorkers:r-e,pendingTasks:this.tasks.length,activeTasks:e}};Ze.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var r=this.workers.length;r<this.minWorkers;r++)this.workers.push(this._createWorkerHandler())};Ze.prototype._createWorkerHandler=function(){let r=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new hu(r.script||this.script,{forkArgs:r.forkArgs||this.forkArgs,forkOpts:r.forkOpts||this.forkOpts,workerThreadOpts:r.workerThreadOpts||this.workerThreadOpts,debugPort:Jo.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout})};function Im(r){if(!pu(r)||!du(r)||r<1)throw new TypeError("Option maxWorkers must be an integer number >= 1")}function Am(r){if(!pu(r)||!du(r)||r<0)throw new TypeError("Option minWorkers must be an integer number >= 0")}function pu(r){return typeof r=="number"}function du(r){return Math.round(r)==r}mu.exports=Ze});var Xo=Y((H0,bu)=>{function Pm(r,e){this.message=r,this.transfer=e}bu.exports=Pm});var Qo=Y((exports,module)=>{var Transfer=Xo(),requireFoolWebpack=eval(`typeof require !== 'undefined' ? require : function (module) { throw new Error('Module " + module + " not found.') }`),TERMINATE_METHOD_ID="__workerpool-terminate__",worker={exit:function(){}};if(typeof self<"u"&&typeof postMessage=="function"&&typeof addEventListener=="function")worker.on=function(r,e){addEventListener(r,function(t){e(t.data)})},worker.send=function(r){postMessage(r)};else if(typeof process<"u"){try{WorkerThreads=requireFoolWebpack("worker_threads")}catch(r){if(!(typeof r=="object"&&r!==null&&r.code==="MODULE_NOT_FOUND"))throw r}WorkerThreads&&WorkerThreads.parentPort!==null?(parentPort=WorkerThreads.parentPort,worker.send=parentPort.postMessage.bind(parentPort),worker.on=parentPort.on.bind(parentPort),worker.exit=process.exit.bind(process)):(worker.on=process.on.bind(process),worker.send=function(r){process.send(r)},worker.on("disconnect",function(){process.exit(1)}),worker.exit=process.exit.bind(process))}else throw new Error("Script must be executed as a worker");var WorkerThreads,parentPort;function convertError(r){return Object.getOwnPropertyNames(r).reduce(function(e,t){return Object.defineProperty(e,t,{value:r[t],enumerable:!0})},{})}function isPromise(r){return r&&typeof r.then=="function"&&typeof r.catch=="function"}worker.methods={};worker.methods.run=function r(e,t){var n=new Function("return ("+e+").apply(null, arguments);");return n.apply(n,t)};worker.methods.methods=function r(){return Object.keys(worker.methods)};worker.terminationHandler=void 0;worker.cleanupAndExit=function(r){var e=function(){worker.exit(r)};if(!worker.terminationHandler)return e();var t=worker.terminationHandler(r);isPromise(t)?t.then(e,e):e()};var currentRequestId=null;worker.on("message",function(r){if(r===TERMINATE_METHOD_ID)return worker.cleanupAndExit(0);try{var e=worker.methods[r.method];if(e){currentRequestId=r.id;var t=e.apply(e,r.params);isPromise(t)?t.then(function(n){n instanceof Transfer?worker.send({id:r.id,result:n.message,error:null},n.transfer):worker.send({id:r.id,result:n,error:null}),currentRequestId=null}).catch(function(n){worker.send({id:r.id,result:null,error:convertError(n)}),currentRequestId=null}):(t instanceof Transfer?worker.send({id:r.id,result:t.message,error:null},t.transfer):worker.send({id:r.id,result:t,error:null}),currentRequestId=null)}else throw new Error('Unknown method "'+r.method+'"')}catch(n){worker.send({id:r.id,result:null,error:convertError(n)})}});worker.register=function(r,e){if(r)for(var t in r)r.hasOwnProperty(t)&&(worker.methods[t]=r[t]);e&&(worker.terminationHandler=e.onTerminate),worker.send("ready")};worker.emit=function(r){if(currentRequestId){if(r instanceof Transfer){worker.send({id:currentRequestId,isEvent:!0,payload:r.message},r.transfer);return}worker.send({id:currentRequestId,isEvent:!0,payload:r})}};typeof exports<"u"&&(exports.add=worker.register,exports.emit=worker.emit)});var yu=Y(pt=>{var Zo=Bn();pt.pool=function(e,t){var n=gu();return new n(e,t)};pt.worker=function(e,t){var n=Qo();n.add(e,t)};pt.workerEmit=function(e){var t=Qo();t.emit(e)};pt.Promise=Vn();pt.Transfer=Xo();pt.platform=Zo.platform;pt.isMainThread=Zo.isMainThread;pt.cpus=Zo.cpus});var rs=Y((qn,Iu)=>{(function(r,e){typeof qn=="object"&&typeof Iu<"u"?e(qn):typeof define=="function"&&define.amd?define(["exports"],e):(r=r||self,e(r.sourcemapCodec={}))})(qn,function(r){"use strict";for(var e={},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=0;n<t.length;n++)e[t.charCodeAt(n)]=n;function i(l){for(var c=[],u=[],f=[0,0,0,0,0],g=0,m=0,p=0,y=0;m<l.length;m++){var x=l.charCodeAt(m);if(x===44)o(u,f,g),g=0;else if(x===59)o(u,f,g),g=0,c.push(u),u=[],f[0]=0;else{var _=e[x];if(_===void 0)throw new Error("Invalid character ("+String.fromCharCode(x)+")");var h=_&32;if(_&=31,y+=_<<p,h)p+=5;else{var v=y&1;y>>>=1,v&&(y=y===0?-2147483648:-y),f[g]+=y,g++,y=p=0}}}return o(u,f,g),c.push(u),c}function o(l,c,u){u===4?l.push([c[0],c[1],c[2],c[3]]):u===5?l.push([c[0],c[1],c[2],c[3],c[4]]):u===1&&l.push([c[0]])}function s(l){for(var c=0,u=0,f=0,g=0,m="",p=0;p<l.length;p++){var y=l[p];if(p>0&&(m+=";"),y.length!==0){for(var x=0,_=[],h=0,v=y;h<v.length;h++){var b=v[h],w=a(b[0]-x);x=b[0],b.length>1&&(w+=a(b[1]-c)+a(b[2]-u)+a(b[3]-f),c=b[1],u=b[2],f=b[3]),b.length===5&&(w+=a(b[4]-g),g=b[4]),_.push(w)}m+=_.join(",")}}return m}function a(l){var c="";l=l<0?-l<<1|1:l<<1;do{var u=l&31;l>>>=5,l>0&&(u|=32),c+=t[u]}while(l>0);return c}r.decode=i,r.encode=s,Object.defineProperty(r,"__esModule",{value:!0})})});var Vf=Y((z1,Mg)=>{Mg.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var Gf=Y((G1,ui)=>{var Fg=require("fs"),zf=require("path"),Ng=require("os"),Lg=Vf(),Rg=Lg.version,Dg=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Bg(r){let e={},t=r.toString();t=t.replace(/\r\n?/mg,`
`);let n;for(;(n=Dg.exec(t))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,`
`),o=o.replace(/\\r/g,"\r")),e[i]=o}return e}function ia(r){console.log(`[dotenv@${Rg}][DEBUG] ${r}`)}function Vg(r){return r[0]==="~"?zf.join(Ng.homedir(),r.slice(1)):r}function zg(r){let e=zf.resolve(process.cwd(),".env"),t="utf8",n=!!(r&&r.debug),i=!!(r&&r.override);r&&(r.path!=null&&(e=Vg(r.path)),r.encoding!=null&&(t=r.encoding));try{let o=ci.parse(Fg.readFileSync(e,{encoding:t}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&ia(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&ia(`Failed to load ${e} ${o.message}`),{error:o}}}var ci={config:zg,parse:Bg};ui.exports.config=ci.config;ui.exports.parse=ci.parse;ui.exports=ci});var ah=Y((H1,bt)=>{var ae=require("fs"),hi=require("os"),Oe=require("path"),Hf=require("crypto"),lt={fs:ae.constants,os:hi.constants},qf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Yf=/XXXXXX/,Gg=3,Jf=(lt.O_CREAT||lt.fs.O_CREAT)|(lt.O_EXCL||lt.fs.O_EXCL)|(lt.O_RDWR||lt.fs.O_RDWR),Hg=hi.platform()==="win32",qg=lt.EBADF||lt.os.errno.EBADF,Wg=lt.ENOENT||lt.os.errno.ENOENT,Xf=448,Qf=384,Ug="exit",nr=[],Zf=ae.rmdirSync.bind(ae),eh=!1;function Kg(r,e){return ae.rm(r,{recursive:!0},e)}function th(r){return ae.rmSync(r,{recursive:!0})}function la(r,e){let t=ir(r,e),n=t[0],i=t[1];ib(n,function(o,s){if(o)return i(o);let a=s.tries;(function l(){try{let c=nh(s);ae.stat(c,function(u){if(!u)return a-- >0?l():i(new Error("Could not get a unique tmp filename, max tries reached "+c));i(null,c)})}catch(c){i(c)}})()})}function ca(r){let e=ir(r),t=e[0],n=ob(t),i=n.tries;do{let o=nh(n);try{ae.statSync(o)}catch{return o}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Yg(r,e){let t=ir(r,e),n=t[0],i=t[1];la(n,function(s,a){if(s)return i(s);ae.open(a,Jf,n.mode||Qf,function(c,u){if(c)return i(c);if(n.discardDescriptor)return ae.close(u,function(g){return i(g,a,void 0,sa(a,-1,n,!1))});{let f=n.discardDescriptor||n.detachDescriptor;i(null,a,u,sa(a,f?-1:u,n,!1))}})})}function Jg(r){let e=ir(r),t=e[0],n=t.discardDescriptor||t.detachDescriptor,i=ca(t),o=ae.openSync(i,Jf,t.mode||Qf);return t.discardDescriptor&&(ae.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:sa(i,n?-1:o,t,!0)}}function Xg(r,e){let t=ir(r,e),n=t[0],i=t[1];la(n,function(s,a){if(s)return i(s);ae.mkdir(a,n.mode||Xf,function(c){if(c)return i(c);i(null,a,rh(a,n,!1))})})}function Qg(r){let e=ir(r),t=e[0],n=ca(t);return ae.mkdirSync(n,t.mode||Xf),{name:n,removeCallback:rh(n,t,!0)}}function Zg(r,e){let t=function(n){if(n&&!aa(n))return e(n);e()};0<=r[0]?ae.close(r[0],function(){ae.unlink(r[1],t)}):ae.unlink(r[1],t)}function eb(r){let e=null;try{0<=r[0]&&ae.closeSync(r[0])}catch(t){if(!sb(t)&&!aa(t))throw t}finally{try{ae.unlinkSync(r[1])}catch(t){aa(t)||(e=t)}}if(e!==null)throw e}function sa(r,e,t,n){let i=fi(eb,[e,r],n),o=fi(Zg,[e,r],n,i);return t.keep||nr.unshift(i),n?i:o}function rh(r,e,t){let n=e.unsafeCleanup?Kg:ae.rmdir.bind(ae),i=e.unsafeCleanup?th:Zf,o=fi(i,r,t),s=fi(n,r,t,o);return e.keep||nr.unshift(o),t?o:s}function fi(r,e,t,n){let i=!1;return function o(s){if(!i){let a=n||o,l=nr.indexOf(a);return l>=0&&nr.splice(l,1),i=!0,t||r===Zf||r===th?r(e):r(e,s||function(){})}}}function tb(){if(eh)for(;nr.length;)try{nr[0]()}catch{}}function Wf(r){let e=[],t=null;try{t=Hf.randomBytes(r)}catch{t=Hf.pseudoRandomBytes(r)}for(let n=0;n<r;n++)e.push(qf[t[n]%qf.length]);return e.join("")}function Ge(r){return typeof r>"u"}function ir(r,e){if(typeof r=="function")return[{},r];if(Ge(r))return[{},e];let t={};for(let n of Object.getOwnPropertyNames(r))t[n]=r[n];return[t,e]}function rb(r,e,t){let n=Oe.isAbsolute(r)?r:Oe.join(e,r);ae.stat(n,function(i){i?ae.realpath(Oe.dirname(n),function(o,s){if(o)return t(o);t(null,Oe.join(s,Oe.basename(n)))}):ae.realpath(n,t)})}function nb(r,e){let t=Oe.isAbsolute(r)?r:Oe.join(e,r);try{return ae.statSync(t),ae.realpathSync(t)}catch{let i=ae.realpathSync(Oe.dirname(t));return Oe.join(i,Oe.basename(t))}}function nh(r){let e=r.tmpdir;if(!Ge(r.name))return Oe.join(e,r.dir,r.name);if(!Ge(r.template))return Oe.join(e,r.dir,r.template).replace(Yf,Wf(6));let t=[r.prefix?r.prefix:"tmp","-",process.pid,"-",Wf(12),r.postfix?"-"+r.postfix:""].join("");return Oe.join(e,r.dir,t)}function oa(r,e){if(typeof e!="string")throw new Error(`${r} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}function ih(r){if(!Ge(r.name)){let e=r.name;if(Oe.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let t=Oe.basename(e);if(t===".."||t==="."||t!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!Ge(r.template)){if(typeof r.template!="string")throw new Error(`template option must be a string, got "${typeof r.template}".`);if(!r.template.match(Yf))throw new Error(`Invalid template, found "${r.template}".`)}if(!Ge(r.tries)&&isNaN(r.tries)||r.tries<0)throw new Error(`Invalid tries, found "${r.tries}".`);r.tries=Ge(r.name)?r.tries||Gg:1,r.keep=!!r.keep,r.detachDescriptor=!!r.detachDescriptor,r.discardDescriptor=!!r.discardDescriptor,r.unsafeCleanup=!!r.unsafeCleanup,r.prefix=Ge(r.prefix)?"":oa("prefix",r.prefix),r.postfix=Ge(r.postfix)?"":oa("postfix",r.postfix),r.template=Ge(r.template)?void 0:oa("template",r.template)}function Uf(r,e,t,n){if(Ge(e))return n(null);rb(e,t,function(i,o){if(i)return n(i);let s=Oe.relative(t,o);if(s.startsWith("..")||Oe.isAbsolute(s))return n(new Error(`${r} option must be relative to "${t}", found "${s}".`));n(null,s)})}function Kf(r,e,t){if(Ge(e))return;let n=nb(e,t),i=Oe.relative(t,n);if(i.startsWith("..")||Oe.isAbsolute(i))throw new Error(`${r} option must be relative to "${t}", found "${i}".`);return i}function ib(r,e){lb(r,function(t,n){if(t)return e(t);r.tmpdir=n;try{ih(r,n)}catch(i){return e(i)}Uf("dir",r.dir,n,function(i,o){if(i)return e(i);r.dir=Ge(o)?"":o,Uf("template",r.template,n,function(s,a){if(s)return e(s);r.template=a,e(null,r)})})})}function ob(r){let e=r.tmpdir=sh(r);ih(r,e);let t=Kf("dir",r.dir,e);return r.dir=Ge(t)?"":t,r.template=Kf("template",r.template,e),r}function sb(r){return oh(r,-qg,"EBADF")}function aa(r){return oh(r,-Wg,"ENOENT")}function oh(r,e,t){return Hg?r.code===t:r.code===t&&r.errno===e}function ab(){eh=!0}function lb(r,e){return ae.realpath(r&&r.tmpdir||hi.tmpdir(),e)}function sh(r){return ae.realpathSync(r&&r.tmpdir||hi.tmpdir())}process.addListener(Ug,tb);Object.defineProperty(bt.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return sh()}});bt.exports.dir=Xg;bt.exports.dirSync=Qg;bt.exports.file=Yg;bt.exports.fileSync=Jg;bt.exports.tmpName=la;bt.exports.tmpNameSync=ca;bt.exports.setGracefulCleanup=ab});var ch=Y((q1,ua)=>{"use strict";var cb=require("net"),di=class extends Error{constructor(e){super(`${e} is locked`)}},or={old:new Set,young:new Set},ub=1e3*15,pi,lh=r=>new Promise((e,t)=>{let n=cb.createServer();n.unref(),n.on("error",t),n.listen(r,()=>{let{port:i}=n.address();n.close(()=>{e(i)})})}),fb=function*(r){r&&(yield*r),yield 0};ua.exports=async r=>{let e;r&&(e=typeof r.port=="number"?[r.port]:r.port),pi===void 0&&(pi=setInterval(()=>{or.old=or.young,or.young=new Set},ub),pi.unref&&pi.unref());for(let t of fb(e))try{let n=await lh({...r,port:t});for(;or.old.has(n)||or.young.has(n);){if(t!==0)throw new di(t);n=await lh({...r,port:t})}return or.young.add(n),n}catch(n){if(!["EADDRINUSE","EACCES"].includes(n.code)&&!(n instanceof di))throw n}throw new Error("No available ports found")};ua.exports.makeRange=(r,e)=>{if(!Number.isInteger(r)||!Number.isInteger(e))throw new TypeError("`from` and `to` must be integer numbers");if(r<1024||r>65535)throw new RangeError("`from` must be between 1024 and 65535");if(e<1024||e>65536)throw new RangeError("`to` must be between 1024 and 65536");if(e<r)throw new RangeError("`to` must be greater than or equal to `from`");return function*(n,i){for(let o=n;o<=i;o++)yield o}(r,e)}});var we=Symbol.for("#__init__"),va=Symbol.for("#__initor__"),Eh=Symbol.for("#__inited__"),ya=Symbol.for("#__hooks__");var Oh=Symbol.for("#meta"),gi=Symbol.for("imba");var $h=Symbol.for("#matcher");var kt={IsExtension:1,IsTag:2,HasDescriptors:4,HasSuperCalls:8,HasConstructor:16,HasFields:32,HasMixins:64,HasInitor:128,HasDecorators:256,IsObjectExtension:512,IsMixin:1024},Vt=new Map,Ih=globalThis[gi]||(globalThis[gi]={counter:0,classes:Vt});function zt(r,e={}){return Vt.has(r)||Vt.set(r,{symbol:Symbol(r.name),parent:Object.getPrototypeOf(r.prototype)?.constructor,for:r,uses:null,inits:null,id:Ih.counter++,...e}),Vt.get(r)}function ue(r,e){return r==e||e?.[$h]?.(r)}function _e(r,e){return typeof e=="string"?typeof r===e:e?.[Symbol.hasInstance]?.(r)}function H(r){return r?.toIterable?.()||r}function Ah(r,e){if(!r||!e)return!1;if(r.get)return e.get===r.get;if(r.set)return e.set===r.set;if(r.value)return r.value===e.value}function wa(r,e,t,n={}){let i=r.constructor;!t&&e&&(t=Object.getOwnPropertyDescriptors(e),delete t.constructor,t[we]&&(console.warn(`Cannot define plain fields when extending class ${i.name}`),delete t[we]));let o=zt(i);if(o&&o.augments){let s=new Map;for(let a of Object.keys(t)){let l=Object.getOwnPropertyDescriptor(r,a);for(let c of o.augments){let u=s.get(c);u||s.set(c,u={});let f=Object.getOwnPropertyDescriptor(c.prototype,a);f&&!Ah(l,f)?console.warn("wont extend",a,f,l):u[a]=t[a]}}for(let[a,l]of s)Object.keys(l).length&&wa(a.prototype,null,l)}return Object.defineProperties(r,t),r}function bi(r,e){let t=zt(r),n=zt(e),i=n.parent;for(;i&&zt(i)?.flags&kt.IsMixin;){bi(r,i),i=null;break}if(i&&!(r.prototype instanceof i))throw new Error(`Mixin ${e.name} has superclass not present in target class`);if(!n.augments){n.augments=new Set;let s=n.ref=Symbol(e.name),a=Object[Symbol.hasInstance];e.prototype[s]=!0,Object.defineProperty(e,Symbol.hasInstance,{value:function(l){return this===e?l&&!!l[s]:a.call(this,l)}})}if(r.prototype[n.ref])return r;if(n.uses)for(let s of n.uses)bi(r,s);n.augments.add(r),t.uses||(t.uses=[]),t.uses.push(e);let o=Object.getOwnPropertyDescriptors(e.prototype);return delete o.constructor,o[we]&&(t.inits||(t.inits=[]),t.inits.push(e.prototype[we]),delete o[we]),Object.defineProperties(r.prototype,o),e?.mixed instanceof Function&&e.mixed(r),r}var St={cache:{},self:null,target:null,proxy:new Proxy({},{apply:(r,e,t)=>Reflect.apply(St.target,e,t),get:(r,e)=>{let t=Reflect.get(St.target,e,St.self);return t instanceof Function?t.bind(St.self):t},set:(r,e,t,n)=>Reflect.set(St.target,e,t,St.self)})};function Q(r,e,t,n,i=null){let o=Object.getPrototypeOf(r.prototype),s=(n&(kt.HasMixins|kt.IsExtension))==kt.HasMixins,a;if(s&&(Vt.set(r,Vt.get(o.constructor)),o=Object.getPrototypeOf(o)),i){let c=n&kt.IsObjectExtension?i:i.prototype,u=zt(r);if(u.uses){i===c&&console.warn("Cannot extend object with mixins");for(let f of u.uses)bi(i,f)}return n&kt.HasSuperCalls&&(St.cache[e]=Object.create(Object.getPrototypeOf(c),Object.getOwnPropertyDescriptors(c))),wa(c,r.prototype),i}let l=o?.constructor;if(a=zt(r,{symbol:e}),Object.defineProperty(r,Oh,{value:a,enumerable:!1,configurable:!0}),t&&r.name!==t&&Object.defineProperty(r,"name",{value:t,configurable:!0}),a.flags=n,n&kt.HasConstructor&&(r.prototype[va]=e),a.uses)for(let c of a.uses)c.mixes?.(r);return l?.inherited instanceof Function&&l.inherited(r),r}function ke(r,e){r[va]===e&&(r[Eh]?.(),r[ya]&&r[ya].inited(r))}var ct=te(require("path")),qr=te(require("fs"));var Jr={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strike:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightΞred:[91,39],brightΞgreen:[92,39],brightΞyellow:[93,39],brightΞblue:[94,39],brightΞmagenta:[95,39],brightΞcyan:[96,39],brightΞwhite:[97,39],bgΞblack:[40,49],bgΞred:[41,49],bgΞgreen:[42,49],bgΞyellow:[43,49],bgΞblue:[44,49],bgΞmagenta:[45,49],bgΞcyan:[46,49],bgΞwhite:[47,49],bgΞgray:[100,49],bgΞgrey:[100,49],bgΞbrightΞred:[101,49],bgΞbrightΞgreen:[102,49],bgΞbrightΞyellow:[103,49],bgΞbrightΞblue:[104,49],bgΞbrightΞmagenta:[105,49],bgΞbrightΞcyan:[106,49],bgΞbrightΞwhite:[107,49]},Ph={};for(let r=0,e=Object.keys(Jr),t=e.length,n;r<t;r++){n=e[r];let[i,o]=Jr[n];Ph[n]=function(s){return"\x1B["+i+"m"+s+"\x1B["+o+"m"}}for(let r=0,e=Object.keys(Jr),t=e.length,n;r<t;r++){n=e[r];let[i,o]=Jr[n];String.prototype.__defineGetter__(n,function(){return"\x1B["+i+"m"+this+"\x1B["+o+"m"})}String.prototype.f=function(r){return"\x1B[38;5;"+r+"m"+this+"\x1B[39m"};String.prototype.b=function(r){return"\x1B[48;5;"+r+"m"+this+"\x1B[49m"};var wi=require("perf_hooks"),Th=Symbol.for("#ctime"),xa=Symbol.for("#IMBA_OPTIONS"),_a=Symbol.for("#prefix"),yi=Symbol.for("#last"),lr=!ue(process.platform,"win32")||process.env.CI||ue(process.env.TERM,"xterm-256color"),jh={info:(lr?"ℹ":"i").brightΞyellow,success:(lr?"✔":"√").green,warning:(lr?"⚠":"!!").yellow,error:(lr?"×":"✖").red,debug:(lr?"ℹ":"i").blue},Ch={"-1":"socket",4:"ip4",6:"ip6"},ka=["debug","info","success","warning","error","silent"];function Mh(r){return r.replace(/https?\:[^\s\n\)\]]+/g,function(e){return e.brightΞblue}).replace(/^[\t\s]*\>[^\n]+/gm,function(e){return e.bold}).replace(/\t/g," ").replace(/^/gm," ")}function vi(r,...e){return r=r.replace(/\%([\w\.]+)/g,function(t,n){let i=e.shift(),o=String(i);if(ue(n,"red"))return o.brightΞred;if(ue(n,"green"))return o.green;if(ue(n,"magenta"))return o.brightΞmagenta;if(ue(n,"cyan"))return o.brightΞcyan;if(ue(n,"dim"))return o.dim;if(ue(n,"d"))return o.brightΞblue;if(ue(n,"yellow")||ue(n,"imba"))return o.brightΞyellow;if(ue(n,"path")||ue(n,"bold"))return o.bold;if(ue(n,"ms"))return(""+Math.round(i)+"ms").yellow;if(ue(n,"kb"))return(""+(i/1e3).toFixed(1)+"kb").dim;if(ue(n,"ref"))return("#"+(i.id||i)).brightΞyellow;if(ue(n,"markdown"))return Mh(i);if(ue(n,"elapsed")){i!=null&&e.unshift(i);let s=wi.performance.now();return(""+Math.round(s)+"ms").yellow}else return ue(n,"heap")?(i!=null&&e.unshift(i),(""+(process.memoryUsage().heapUsed/1024/1024).toFixed(2)+"mb").yellow):ue(n,"address")?i.port?[i.address||"http://localhost",i.port].join(":").brightΞblue:String(Ch[i.addressType]).brightΞblue:i}),[r,...e]}var Fh=null,Sa=Symbol(),xi=class xi{static get main(){return Fh||(Fh=new this)}constructor({prefix:e=null,loglevel:t}={}){this[Th]=Date.now(),this.prefix=e,this.loglevel=t||process.env.IMBA_LOGLEVEL||globalThis[xa]&&globalThis[xa].loglevel||"info",ke(this,Sa)}set prefix(e){this[_a]=e?vi(...e)[0]:""}get prefix(){return this[_a]}write(e,...t){if(ka.indexOf(e)<ka.indexOf(this.loglevel))return this;if(!t.length)return console.log();let n=jh[e]||e,[i,...o]=vi(...t);return this.prefix&&(i=this.prefix+i),console.log(n+" "+i,...o)}log(){let[e,...t]=vi(...arguments);return console.log(e,...t)}debug(){return this.write("debug",...arguments)}info(){return this.write("info",...arguments)}warn(){return this.write("warn",...arguments)}error(){return this.write("error",...arguments)}success(){return this.write("success",...arguments)}ts(){let e=wi.performance.now(),t=this[yi]?e-this[yi]:0;return this.write("debug",...arguments,("+"+t.toFixed(1)+"ms").blue),this[yi]=e}get proxy(){let e=this.info;return e.info=this.info.bind(this),e.log=this.log.bind(this),e.warn=this.warn.bind(this),e.error=this.error.bind(this),e.debug=this.debug.bind(this),e.success=this.success.bind(this),e.ts=this.ts.bind(this),e.logger=this,e}async time(e,t){let n=Date.now();if(t){let i=await t();return this.info(""+e+" %ms",Date.now()-n),i}}};Q(xi,Sa,"Logger",16);var Et=xi,Gt=new Et().proxy;var $a=te(require("fs"));var Ia=te(Oa());async function cr(r=Gt.info){try{(await Ia.default.run({System:["OS","CPU"],Binaries:["Node"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*imba*",npmGlobalPackages:"*imba*"})).split(`
`).forEach(function(e){if(e)return r(e.slice(2))})}catch{}try{return r("imba realPath: "+$a.default.realpathSync(process.argv[1]).cyan)}catch{}}var wl=te(Ei()),en=te(require("fs")),Fi=te(require("child_process"));var xl=te(pl());function vl(r,e){return r[r.length+e]}var dl=function(r){return console.error(String(r).red),process.exit()},ml=/^(\s*)\b(L)\b(.*)$/,Ti=/\n\n\n+/gm,ji=/^\s*#\s+(console\.|L)\b.*\n/gm,gl=/^\s*#/,Ci=/^\s*#\s*\n/gm,bl=/^\s*$/,Mi=/[ \t]+$/gm;function yl(r,e){let t=[],n=r.split(`
`);for(let i=0,o=H(n),s=o.length;i<s;i++){let a=o[i];if(!ml.test(a)){t.push(a);continue}let l=vl(t,-1),c=n[i+1],u=i-1;for(;ue(typeof l,"string")&&(bl.test(l)||gl.test(l));)l=n[--u];for(u=i+1;ue(typeof c,"string")&&(bl.test(c)||gl.test(c));)c=n[++u];let f=l?.match?.(/^\t*/)[0],g=a.match(/^\t*/)[0],m=c?.match?.(/^\t*/)[0];ue(f,g)||ue(g,m)||t.push(a.replace(ml,"$1LL$3"))}return t.join(`
`)}function Ni(r,e){var t,n,i;if(!e.force)try{Fi.default.execSync("git status --porcelain --ignore-submodules").toString()&&dl("Git working directory is not clean")}catch{dl("Failed to check git status")}try{n=en.default.readFileSync(".gitignore").toString()}catch{}try{i=Fi.default.execSync("git config --file .gitmodules --get-regexp path").toString().trim().split(`
`).map(function(a){return"/"+vl(a.split(" "),-1)})}catch{}let o=(0,xl.default)().add("fmt.imba").add(".*").add(n).add(i),s=new wl.fdir().withBasePath().filter(function(a){return a.endsWith(".imba")}).exclude(function(a,l){return o.ignores(l)}).crawl(".").sync().filter(o.createFilter());t=[];for(let a of H(s)){let l=en.default.readFileSync(a,"utf8"),c=l;r.length?(r.includes("devlogs")&&(l=yl(l,a)),r.includes("comments")&&(l=l.replaceAll(Ci,""),l=l.replaceAll(ji,"")),r.includes("empty-comments")&&(l=l.replaceAll(Ci,"")),r.includes("commented-logs")&&(l=l.replaceAll(ji,"")),r.includes("whitespace")&&(l=l.replaceAll(Mi,""),l=l.replaceAll(Ti,`
`)),r.includes("trailing-whitespace")&&(l=l.replaceAll(Mi,"")),r.includes("extra-lines")&&(l=l.replaceAll(Ti,`
`))):(l=yl(l,a),l=l.replaceAll(Ci,""),l=l.replaceAll(ji,""),l=l.replaceAll(Mi,""),l=l.replaceAll(Ti,`
`)),!ue(c,l)&&t.push(en.default.writeFileSync(a,l))}return t}var wt=te(Al());var Vc=te(require("fs")),ot=te(require("path")),zc=te(Ei());function jp(r){return Array.isArray(r)}function Pl(r){return!jp(r)}function Vi(r){return typeof r=="string"}function Tl(r){return!Vi(r)}function jl(r){return!r}function It(r,e){return r.ignoreCase&&e?e.toLowerCase():e}function zi(r){return r.replace(/[&<>'"_]/g,"-")}function Cl(r,e){console.log(`${r.languageId}: ${e}`)}function ne(r,e){return new Error(`${r.languageId}: ${e}`)}var Ml={};function Cp(r){let e=[],t=0,n=r.length,i="",o=0;for(;t<n;){let s=r[t++];if(s=="$"){let a=r[t++];if(a=="$"){i+="$";continue}i&&e.push(i),i="",a=="#"?e.push(0):a=="S"?e.push(parseInt(r[t++])+100):e.push(parseInt(a)+1)}else i+=s}return i&&e.push(i),Ml[r]=e,e}function ht(r,e,t,n,i){let o=null,s=Ml[e]||Cp(e),a="";for(let l=0;l<s.length;l++){let c=s[l];typeof c=="string"?a+=c:c>100?(o===null&&(o=i.split(".")),a+=o[c-101]||""):c===100?a+=i:c===0?a+=t:c>0&&(a+=n[c-1])}return a}var Bi={};function rn(r,e){let t=e;if(Bi[t])return r.tokenizer[Bi[t]];for(;t&&t.length>0;){let n=r.tokenizer[t];if(n)return Bi[e]=t,n;let i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return null}function Fl(r,e){let t=e;for(;t&&t.length>0;){if(r.stateNames[t])return!0;let i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return!1}function Fp(r,e){if(!e||!Array.isArray(e))return!1;for(let t of e)if(!r(t))return!1;return!0}function Ll(r,e){return typeof r=="boolean"?r:e}function Rl(r,e){return typeof r=="string"?r:e}function Np(r){let e={};for(let t of r)e[t]=!0;return e}function Dl(r,e=!1){e&&(r=r.map(function(n){return n.toLowerCase()}));let t=Np(r);return e?function(n){return t[n.toLowerCase()]!==void 0&&t.hasOwnProperty(n.toLowerCase())}:function(n){return t[n]!==void 0&&t.hasOwnProperty(n)}}function Gi(r,e){let t=0;for(;e.indexOf("@")>=0&&t<5;)t++,e=e.replace(/@(\w+)/g,function(n,i){let o="";if(typeof r[i]=="string")o=r[i];else if(r[i]&&r[i]instanceof RegExp)o=r[i].source;else throw r[i]===void 0?ne(r,"language definition does not contain attribute '"+i+"', used at: "+e):ne(r,"attribute reference '"+i+"' must be a string, used at: "+e);return jl(o)?"":"(?:"+o+")"});return new RegExp(e,r.ignoreCase?"i":"")}function Lp(r,e,t,n){if(n<0)return r;if(n<e.length)return e[n];if(n>=100){n=n-100;let i=t.split(".");if(i.unshift(t),n<i.length)return i[n]}return null}function Rp(r,e,t,n){let i=-1,o=t,s=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(i=parseInt(s[3]),s[2]&&(i=i+100)),o=s[4]);let a="~",l=o;!o||o.length===0?(a="!=",l=""):/^\w*$/.test(l)?a="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(a=s[1],l=s[2]));let c;if((a==="~"||a==="!~")&&/^(\w|\|)*$/.test(l)){let u=Dl(l.split("|"),r.ignoreCase);c=function(f){return a==="~"?u(f):!u(f)}}else if(a==="@"||a==="!@"){let u=r[l];if(!u)throw ne(r,"the @ match target '"+l+"' is not defined, in rule: "+e);if(!Fp(function(g){return typeof g=="string"},u))throw ne(r,"the @ match target '"+l+"' must be an array of strings, in rule: "+e);let f=Dl(u,r.ignoreCase);c=function(g){return a==="@"?f(g):!f(g)}}else if(a==="~"||a==="!~")if(l.indexOf("$")<0){let u=Gi(r,"^"+l+"$");c=function(f){return a==="~"?u.test(f):!u.test(f)}}else c=function(u,f,g,m){return Gi(r,"^"+ht(r,l,f,g,m)+"$").test(u)};else if(l.indexOf("$")<0){let u=It(r,l);c=function(f){return a==="=="?f===u:f!==u}}else{let u=It(r,l);c=function(f,g,m,p,y){let x=ht(r,u,g,m,p);return a==="=="?f===x:f!==x}}return i===-1?{name:t,value:n,test:function(u,f,g,m){return c(u,u,f,g,m)}}:{name:t,value:n,test:function(u,f,g,m){let p=Lp(u,f,g,i);return c(p||"",u,f,g,m)}}}function Hi(r,e,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw ne(r,"a 'token' attribute must be of type string, in rule: "+e);{let n={token:t.token};if(t.token.indexOf("$")>=0&&(n.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")n.bracket=1;else if(t.bracket==="@close")n.bracket=-1;else throw ne(r,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw ne(r,"the next state must be a string value in rule: "+e);{let i=t.next;if(!/^(@pop|@push|@popall)$/.test(i)&&(i[0]==="@"&&(i=i.substr(1)),i.indexOf("$")<0&&!Fl(r,ht(r,i,"",[],""))))throw ne(r,"the next state '"+t.next+"' is not defined in rule: "+e);n.next=i}}return typeof t.goBack=="number"&&(n.goBack=t.goBack),typeof t.switchTo=="string"&&(n.switchTo=t.switchTo),typeof t.log=="string"&&(n.log=t.log),typeof t._push=="string"&&(n._push=t._push),typeof t._pop=="string"&&(n._pop=t._pop),typeof t.mark=="string"&&(n.mark=t.mark),typeof t.fn=="string"&&(n.fn=t.fn),typeof t.nextEmbedded=="string"&&(n.nextEmbedded=t.nextEmbedded,r.usesEmbedded=!0),n}}else if(Array.isArray(t)){let n=[];for(let i=0,o=t.length;i<o;i++)n[i]=Hi(r,e,t[i]);return{group:n}}else if(t.cases){let n=[];for(let o in t.cases)if(t.cases.hasOwnProperty(o)){let s=Hi(r,e,t.cases[o]);o==="@default"||o==="@"||o===""?n.push({test:void 0,value:s,name:o}):o==="@eos"?n.push({test:function(a,l,c,u){return u},value:s,name:o}):n.push(Rp(r,e,o,s))}let i=r.defaultToken;return{test:function(o,s,a,l){for(let c of n)if(!c.test||c.test(o,s,a,l))return c.value;return i}}}else throw ne(r,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+e)}else return{token:""}}var qi=class{constructor(e){Z(this,"regex",new RegExp(""));Z(this,"action",{token:""});Z(this,"matchOnlyAtLineStart",!1);Z(this,"name","");Z(this,"stats");Z(this,"string");this.name=e,this.stats={time:0,count:0,hits:0}}setRegex(e,t){let n;if(typeof t=="string")n=t;else if(t instanceof RegExp)n=t.source;else throw ne(e,"rules must start with a match string or regular expression: "+this.name);n.length==2&&n[0]=="\\"&&/[\{\}\(\)\[\]]/.test(n[1])&&(this.string=n[1]),this.matchOnlyAtLineStart=n.length>0&&n[0]==="^",this.name=this.name+": "+n,this.regex=Gi(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}setAction(e,t){this.action=Hi(e,this.name,t)}};function Bl(r,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");let t={};t.languageId=r,t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Ll(e.ignoreCase,!1),t.tokenPostfix=Rl(e.tokenPostfix,"."+t.languageId),t.defaultToken=Rl(e.defaultToken,"source"),t.usesEmbedded=!1;let n=e;n.languageId=r,n.ignoreCase=t.ignoreCase,n.noThrow=t.noThrow,n.usesEmbedded=t.usesEmbedded,n.stateNames=e.tokenizer,n.defaultToken=t.defaultToken;function i(s,a,l){for(let c of l){let u=c.include;if(u){if(typeof u!="string")throw ne(t,"an 'include' attribute must be a string at: "+s);if(u[0]==="@"&&(u=u.substr(1)),!e.tokenizer[u])throw ne(t,"include target '"+u+"' is not defined at: "+s);i(s+"."+u,a,e.tokenizer[u])}else{let f=new qi(s);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(f.setRegex(n,c[0]),c.length>=3)if(typeof c[1]=="string")f.setAction(n,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){let g=c[1];g.next=c[2],f.setAction(n,g)}else throw ne(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+s);else f.setAction(n,c[1]);else{if(!c.regex)throw ne(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+s);c.name&&typeof c.name=="string"&&(f.name=c.name),c.matchOnlyAtStart&&(f.matchOnlyAtLineStart=Ll(c.matchOnlyAtLineStart,!1)),f.setRegex(n,c.regex),f.setAction(n,c.action)}a.push(f)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw ne(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let s in e.tokenizer)if(e.tokenizer.hasOwnProperty(s)){t.start||(t.start=s);let a=e.tokenizer[s];t.tokenizer[s]=new Array,i("tokenizer."+s,t.tokenizer[s],a)}if(t.usesEmbedded=n.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw ne(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let s of e.brackets){let a=s;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw ne(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:It(t,a.open),close:It(t,a.close)});else throw ne(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}var hr=class r{constructor(e,t,n){Z(this,"_tokenBrand");Z(this,"offset");Z(this,"type");Z(this,"language");Z(this,"value");Z(this,"scope");Z(this,"stack");Z(this,"mods");Z(this,"kind");Z(this,"symbol");Z(this,"next");Z(this,"context");Z(this,"prev");Z(this,"op");this.offset=e|0,this.type=t,this.language=n,this.kind=0,this.mods=0,this.value=null,this.stack=null}toString(){return this.value||""}get span(){return{offset:this.offset,start:this.offset,length:this.value?this.value.length:0,source:"imba"}}get indent(){return 0}get startOffset(){return this.offset}get endOffset(){return this.offset+(this.value?this.value.length:0)}clone(){let e=new r(this.offset,this.type,this.language);return e.value=this.value,e.stack=this.stack,e}match(e){if(typeof e=="string")if(e.indexOf(" ")>0)e=e.split(" ");else{let t=this.type.indexOf(e);return e[0]=="."?t>=0:t==0}if(e instanceof Array)for(let t of e){let n=this.type.indexOf(t);if(t[0]=="."?n>=0:n==0)return!0}return e instanceof RegExp?e.test(this.type):!1}},nn=class{constructor(e,t){Z(this,"_tokenizationResultBrand");Z(this,"tokens");Z(this,"endState");this.tokens=e,this.endState=t}};var Vl=10;function pr(r,e){return r.split(".")[e]}var an=class an{constructor(e){Z(this,"_maxCacheDepth");Z(this,"_entries");this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new qt(e,t);let n=qt.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let i=this._entries[n];return i||(i=new qt(e,t),this._entries[n]=i,i)}};Z(an,"_INSTANCE",new an(Vl));var dr=an,qt=class r{constructor(e,t){Z(this,"parent");Z(this,"state");Z(this,"depth");this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}get indent(){return this.state.lastIndexOf(" ")-this.state.indexOf(" ")}get scope(){return this.part(2)}get detail(){return this.part(2)}part(e){return this.state.split(".")[e]}equals(e){return r._equals(this,e)}push(e){return dr.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return dr.create(this.parent,e)}},ln=class ln{constructor(e){Z(this,"_maxCacheDepth");Z(this,"_entries");this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e){return this._INSTANCE.create(e)}create(e){if(e!==null&&e.depth>=this._maxCacheDepth)return new on(e);let t=qt.getStackElementId(e),n=this._entries[t];return n||(n=new on(e),this._entries[t]=n,n)}};Z(ln,"_INSTANCE",new ln(Vl));var mr=ln,on=class r{constructor(e){Z(this,"stack");this.stack=e}clone(){return mr.create(this.stack)}equals(e){return!(!(e instanceof r)||!this.stack.equals(e.stack))}},Wi=class{constructor(){Z(this,"_tokens");Z(this,"_language");Z(this,"_lastTokenType");Z(this,"_lastToken");this._tokens=[],this._language=null,this._lastToken=new hr(0,"start","imba"),this._lastTokenType=null}enterMode(e,t){this._language=t}emit(e,t,n){this._lastTokenType;let i=new hr(e,t,this._language);return this._lastTokenType=t,this._lastToken=i,this._tokens.push(i),i}finalize(e){return new nn(this._tokens,e)}},sn=class{constructor(e,t){Z(this,"_modeId");Z(this,"_lexer");Z(this,"_profile");this._modeId=e,this._lexer=t,this._profile=!1}dispose(){}getLoadStatus(){return{loaded:!0}}getInitialState(){let e=dr.create(null,this._lexer.start);return mr.create(e)}tokenize(e,t,n){let i=new Wi,o=this._tokenize(e,t,n,i);return i.finalize(o)}_tokenize(e,t,n,i){return this._myTokenize(e,t,n,i)}_safeRuleName(e){return e?e.name:"(unknown)"}_rescope(e,t,n,i){let o=(e||"").split("-"),s=(t||"").split("-");if(e==t)return;let a=1;for(;o[a]&&o[a]==s[a];)a++;let l=o.length;for(;l>a;)n.push("pop."+o[--l]+"."+l);for(;s.length>a;){let c="push."+s[a++]+"."+(a-1);if(i){let u=pr(i,1);c+="."+u}n.push(c)}}_myTokenize(e,t,n,i){i.enterMode(n,this._modeId);let o=e.length,s=t.stack,a=null,l=0,c=this._profile,u=null,f=!0,g=[],m=0,p=[],y=null;for(;f||l<o;){if(m++,m>1e3)throw console.log("infinite recursion"),"infinite recursion in tokenizer?";let x=l,_=s.depth,h=u?u.groups.length:0,v=s.state,b=null,w=null,d=null,k=null;if(u){b=u.matches;let E=u.groups.shift();w=E.matched,d=E.action,k=u.rule,u.groups.length===0&&(u=null)}else{if(!f&&l>=o)break;if(f=!1,p=this._lexer.tokenizer[v],!p&&(p=rn(this._lexer,v),!p))throw ne(this._lexer,"tokenizer state is not defined: "+v);let E=e.substr(l);for(let O of p)if(O.string!==void 0){if(E[0]===O.string){b=[O.string],w=O.string,d=O.action;break}}else if(l===0||!O.matchOnlyAtLineStart){if(c){O.stats.count++;let I=performance.now();b=E.match(O.regex),O.stats.time+=performance.now()-I,b&&O.stats.hits++}else b=E.match(O.regex);if(b){w=b[0],d=O.action;break}}}if(b||(b=[""],w=""),d||(l<o&&(b=[e.charAt(l)],w=b[0]),d=this._lexer.defaultToken),w===null)break;for(l+=w.length;Pl(d)&&Tl(d)&&d.test;)d=d.test(w,b,v,l===o);let S=null;if(typeof d=="string"||Array.isArray(d))S=d;else if(d.group)S=d.group;else if(d.token!==null&&d.token!==void 0){if(d.tokenSubst?S=ht(this._lexer,d.token,w,b,v):S=d.token,d.goBack&&(l=Math.max(0,l-d.goBack)),d.switchTo&&typeof d.switchTo=="string"){let E=ht(this._lexer,d.switchTo,w,b,v);if(E[0]==="@"&&(E=E.substr(1)),rn(this._lexer,E)){let O=s.scope,I=pr(E,2);O!==I&&this._rescope(O,I,g,E),s=s.switchTo(E)}else throw ne(this._lexer,"trying to switch to a state '"+E+"' that is undefined in rule: "+this._safeRuleName(k))}else{if(d.transform&&typeof d.transform=="function")throw ne(this._lexer,"action.transform not supported");if(d.next)if(d.next==="@push"){if(s.depth>=this._lexer.maxStack)throw ne(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(v)}else if(d.next==="@pop"){if(s.depth<=1)throw ne(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(k));{let E=s;s=s.pop();let O=pr(E.state,2),I=pr(s.state,2);O!==I&&this._rescope(O,I,g,s.state)}}else if(d.next==="@popall")s=s.popall();else{let E=ht(this._lexer,d.next,w,b,v);E[0]==="@"&&(E=E.substr(1));let O=pr(E,2);if(rn(this._lexer,E))O!=s.scope&&this._rescope(s.scope||"",O,g,E),s=s.push(E);else throw ne(this._lexer,"trying to set a next state '"+E+"' that is undefined in rule: "+this._safeRuleName(k))}}d.log&&typeof d.log=="string"&&Cl(this._lexer,this._lexer.languageId+": "+ht(this._lexer,d.log,w,b,v)),d.mark&&i.emit(x+n,d.mark,s)}if(S===null)throw ne(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(k));if(Array.isArray(S)){if(u&&u.groups.length>0)throw ne(this._lexer,"groups cannot be nested: "+this._safeRuleName(k));if(b.length!==S.length+1)throw ne(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(k));let E=0;for(let O=1;O<b.length;O++)E+=b[O].length;if(E!==w.length)throw ne(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(k));u={rule:k,matches:b,groups:[]};for(let O=0;O<S.length;O++)u.groups[O]={action:S[O],matched:b[O+1]};l-=w.length;continue}else{if(S==="@rematch"&&(l-=w.length,w="",b=null,S=""),w.length===0)if(o===0||_!==s.depth||v!==s.state||(u?u.groups.length:0)!==h){for(typeof S=="string"&&S&&i.emit(l+n,S,s);g.length>0;)i.emit(l+n,g.shift(),s);continue}else throw ne(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(k));let E=null;if(Vi(S)&&S.indexOf("@brackets")===0){let I=S.substr(9),P=Dp(this._lexer,w);if(!P)throw ne(this._lexer,"@brackets token returned but no bracket defined as: "+w);E=zi(P.token+I)}else{let I=S===""?"":S+this._lexer.tokenPostfix;E=zi(I)}let O=i.emit(x+n,E,s);for(O.stack=s,a&&a!=O&&(a.value=e.slice(a.offset-n,x)),a=O;g.length>0;)i.emit(l+n,g.shift(),s)}}return a&&!a.value&&(a.value=e.slice(a.offset-n)),mr.create(s)}};function Dp(r,e){if(!e)return null;e=It(r,e);let t=r.brackets;for(let n of t){if(n.open===e)return{token:n.token,bracketType:1};if(n.close===e)return{token:n.token,bracketType:-1}}return null}var zl={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};var Ui={},Bp=Symbol(),Ki=class Ki{static getTokenizer(e){return e=="xml"&&!Ui[e]?this.createTokenizer("xml",zl):Ui[e]}static createTokenizer(e,t){let n=Bl(e,t);return Ui[e]=new sn(e,n)}};Q(Ki,Bp,"Monarch",0);var gr=Ki;function cn(r){let e;return r&&((e=r.toIterable)?e.call(r):r)}var br=Symbol.for("#attributes");function Gl(r,e){var t,n;let i=r.body,o=i.indexOf("<svg");o>0&&(i=i.slice(o));let s=gr.getTokenizer("xml"),a=s.getInitialState(),l=s.tokenize(i,a,0),c={},u={attributes:c,flags:[]},f,g=0;for(let m=0,p=cn(l.tokens),y=p.length;m<y;m++){let x=p[m],_=x.value;if(x.type=="attribute.name.xml"&&(f=x,c[_]=!0),x.type=="attribute.value.xml"){let h=_.length;h>2&&_[0]==_[h-1]&&(_[0]=='"'||_[0]=="'")&&(_=_.slice(1,-1)),c[f.value]=_}if(x.type=="delimiter.xml"&&_==">"){g=x.offset+1;break}}return u.content=i.slice(g).replace("</svg>",""),c.class&&(u.flags=c.class.split(/\s+/g),t=c.class,delete c.class),e&&u.flags.push("asset-"+e.toLowerCase()),n=c.xmlns,delete c.xmlns,u}function Hl(r){let e=r.body,t=gr.getTokenizer("xml"),n=t.getInitialState(),i=t.tokenize(e,n,0),o,s=0,a={attributes:{},[br]:{}},l=[],c={text:r},u=c.imports=[],f="",g=new Set,m=i.tokens.slice(0);for(let y=0,x=cn(m),_=x.length;y<_;y++){let h=x[y],v=h.type,b=h.value,w=i.tokens[y-1];if(v=="tag.xml"&&(w.value=="<"?(l.push(a=h),h.attributes={},h[br]={},l[b]||(l[b]=[]),l[b].push(h)):w.value=="</"&&(a.closer||(a.closer=h))),v=="delimiter.xml"&&b==">"){let d=a?.value;(d=="head"||d=="body")&&(h.value+="<!--$"+d+"$-->")}if(v=="attribute.name.xml"&&(a[br][b]=h,o=b),v=="attribute.value.xml"){let d=b;b.length>2&&b[0]==b[b.length-1]&&(b[0]=='"'||b[0]=="'")&&(d=b.slice(1,-1)),h.raw=d,a.attributes[o]=h}}for(let y=0,x=cn(l),_=x.length;y<_;y++){let h=x[y],v=null,b=h.attributes.src;if(h.value=="script"&&b)v={path:b.raw,tagType:"script"};else if(h.value=="img"&&b)v={path:b.raw,tagType:"img"};else if(h.value=="link"){let w=h.attributes.rel?.raw;b=h.attributes.href;let d=b?.raw||"";w=="stylesheet"?v={path:d,tagType:"style"}:b&&d.match(/^\.\.?\//)&&(v={path:b.raw,tagType:"link"})}else h.value=="style"&&b&&(v={path:b.raw,tagType:"style"},h.value="link rel='stylesheet'",h.closer&&(h.closer.value="link"),h[br].src&&(h[br].src.value="href"));if(b&&v&&!v.path.match(/^(\/|\w+?\:\/\/)/)){let w=u.push(v);b.value="'ASSET_REF_"+(w-1)+"'"}}let p="";for(let y=0,x=cn(m),_=x.length;y<_;y++){let h=x[y];p+=h.value}return c.contents=p.replace(/<\/link>/g,""),c}var ql=require("events");var Wl=require("perf_hooks"),un=Symbol.for("#logger"),yr=Symbol.for("#timestamps"),Vp=Symbol(),Yi=class Yi extends ql.EventEmitter{get log(){return this[un]||(this[un]=new Et)}set log(e){this[un]=e}time(e="default"){let t=Date.now();this[yr]||(this[yr]={});let n=this[yr][e]||t,i=t-n;return this[yr][e]=t,i}timed(e="default"){let t;return t="time "+e+": "+this.time(e)}timelog(e="timing"){return console.log(e,Wl.performance.now())}};Q(Yi,Vp,"Component",0);var Xe=Yi;var Ul=Symbol(),Ji=class Ji{constructor(e={}){this.log=[],this.maps=new WeakMap,this.cursors=e.ignoreInitial?null:new WeakMap,this.depth=0,this.offset=0,this.pulled=0,this.options=e,this.batch=null,ke(this,Ul)}flush(){if(this.batch){if(this.options.withFlags)this.log.push(...Array.from(this.batch));else for(let[e,t]of H(this.batch))this.log.push(e);this.batch=null}return this}push(e){return this.mark(e)}mark(e,t=2){if(this.cursors)return this.batch?this.batch.set(e,(this.batch.get(e)||0)|t):(this.batch=new Map,this.batch.set(e,t))}trim(){return this.offset+=this.log.length,this.log.length=0,this}get cursor(){return this.offset+this.log.length}get length(){return this.log.length}pull(e){this.batch&&this.flush();let t=this.cursors||(this.cursors=new WeakMap),n=t.get(e),i=this.cursor;if(n==null||n<i){t.set(e,i);let o=Math.max((n||0)-this.offset,0);return this.log.slice(o)}return!1}};Q(Ji,Ul,"ChangeLog",16);var At=Ji;var Gc=te(Ac()),_r=te(require("zlib")),fo=Symbol.for("#cache"),Fn=Symbol.for("#watchers"),wr=Symbol.for("#watched"),kr=Symbol.for("#tree"),Ln=Symbol.for("#mtime"),xr=Symbol.for("#body"),Pc=Symbol.for("#abs"),Nn=Symbol.for("#hash"),am=Symbol.for("#mtimesync"),qe=Symbol.for("#files"),lm=Symbol.for("#map"),Hc={size:0,blocks:0,atimeMs:0,mtimeMs:0,ctimeMs:0,birthtimeMs:0,atime:"",mtime:"",ctime:"",birthtime:""},ho={CHECKED:1,EXISTS:2,REGISTERED:4,WATCHED:8,RESOLVED:16,REMOVED:32,ADDED:64},cm={".js":"cyan",".mjs":"cyan",".css":"magenta"},po={};function Tc(r){return r==null?[]:_e(r,Array)?r:[r]}function qc(r){{r=String(r);let e="^",t=0;for(;t<r.length;){let n=r[t];if(n=="*")if(r[t+1]=="*"){t+=2,r[t]=="/"?(t++,e+="(?:.*\\/)?"):e+=".*";continue}else e+="[^\\/]*";else n=="?"?e+="[^\\/]":n=="/"?e+="\\/":e+=n.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&");t++}return po[r]||(po[r]=new RegExp(e+"$"))}}function jc(r,e){return _e(e,RegExp)?e.test(r):qc(e).test(r)}function um(r,e,t=null){let n=Tc(e),i=Tc(t);return r.filter(function(o){return!i.some(function(s){return jc(o,s)})&&n.some(function(s){return jc(o,s)})})}var Cc=Symbol(),Rn=class Rn extends Array{constructor(...e){super(...e),this[fo]={},ke(this,Cc)}withExtension(e){return this.match(new RegExp("\\.("+e.replace(/,/g,"|")+")$"))}match(e){let t=_e(e,RegExp)?e:qc(e);return new Rn(...this.filter(function(n){return t.test(n.rel)}))}add(e){return this.indexOf(e)==-1&&(this.push(e),this[fo]={}),this}get paths(){return this.map(function(e){return e.rel})}remove(e){let t=this.indexOf(e);if(t>=0){this.splice(t,1);for(let n=this[fo],i=0,o=Object.keys(n),s=o.length,a,l;i<s;i++)a=o[i],l=n[a],l.remove(e)}return this}};Q(Rn,Cc,"FSTree",16);var Sr=Rn,Mc=Symbol(),xo=class xo{static create(e,t,n){let i=t.slice(t.lastIndexOf(".")),s={".json":wo,".imba":go,".imba1":bo,".svg":yo,".png":it,".apng":it,".jpg":it,".jpeg":it,".webp":it,".avif":it,".gif":it,".ico":it,".html":vo,".map":mo}[i]||We;return new s(e,t,n)}constructor(e,t,n){this.root=e,this.rel=t,this.abs=n,this.flags=0,this[Fn]=new Set,this[wr]=!1,ke(this,Mc)}get log(){return this.root.log}get program(){return this.root.program}get fs(){return this.root}get nodefs(){return this.root.nodefs}get name(){return ot.default.basename(this.rel)}get ext(){return ot.default.extname(this.rel)}memo(e,t){return this.program.cache.memo(""+this.abs+":"+e,this.mtimesync,t)}watch(e){if(this[Fn].add(e),this[wr]!=!0&&(this[wr]=!0,!0))return this.program.watcher.add(this.abs)}get registeredΦ(){return this.flags&ho.REGISTERED}register(){var e;return(this.flags&(e=ho.REGISTERED))!=e&&(this.flags|=e,!0)&&this.root[kr].add(this),this}deregister(){var e;if(this.flags&(e=ho.REGISTERED)&&(this.flags&=~e,!0))return this.root[kr].remove(this)}touch(){return this[Ln]=Date.now(),this[xr]=void 0,this}existsSync(){return this.registeredΦ?!0:this.nodefs.existsSync(this.abs)?(this.register(),!0):!1}unwatch(e){if(this[Fn].delete(e),this[wr]&&this[Fn].size==0)return this[wr]=!1,this.program.watcher.unwatch(this.abs)}};Q(xo,Mc,"FSNode",16);var Pt=xo,fm=Symbol(),_o=class _o{};Q(_o,fm,"FSProxyNode",0);var Fc=_o,hm=Symbol(),ko=class ko extends Pt{};Q(ko,hm,"DirNode",0);var Er=ko,Nc=Symbol(),So=class So extends Pt{constructor(e,t,n){super(...arguments),this.cache={},ke(this,Nc)}[Symbol.toPrimitive](e){return this.abs}get reldir(){return this.rel.slice(0,this.rel.lastIndexOf("/")+1)}get absdir(){return this.abs.slice(0,this.abs.lastIndexOf(ot.default.sep)+1)}get dir(){return this.root.lookup(this.absdir,Er)}lookup(e){throw"Not implemented"}async write(e,t,n=null){var i=this;if(!t||this[Nn]!=t&&(this[Nn]=t,!0)){await this.nodefs.promises.mkdir(this.absdir,{recursive:!0});let o=this.program.outdir+"/",s=cm[this.ext]||"green";return await this.nodefs.promises.writeFile(this.abs,e),this.program.br&&this.ext.match(/\.([mc]?js|css|map|txt|md|json)/)&&n?.public?await new Promise(function(a){return _r.default.brotliCompress(e,{params:{[_r.default.constants.BROTLI_PARAM_MODE]:_r.default.constants.BROTLI_MODE_TEXT,[_r.default.constants.BROTLI_PARAM_QUALITY]:i.ext==".map"||i.program.command=="run"?3:10}},async function(l,c){return i.log.success("%dim%"+s+" %kb → %kb",o,i.rel,e.length,c.length),await i.nodefs.promises.writeFile(i.abs+".br",c),a()})}):this.log.success("%dim%"+s+" %kb",o,this.rel,e.length)}}writeSync(e,t){if(!t||this[Nn]!=t&&(this[Nn]=t,!0))return this.rel.indexOf("../")!=0,this.log.success("write %path %kb",this.rel,e.length),this.nodefs.writeFileSync(this.abs,e)}read(e="utf8"){return this[xr]||this.nodefs.promises.readFile(this.abs,e)}readSync(e="utf8"){return this[xr]||(this[xr]=this.nodefs.readFileSync(this.abs,e))}stat(){return this.nodefs.promises.stat(this.abs).then(function(e){return e}).catch(function(){return Hc})}get mtimesync(){return this[am]||(this.existsSync()?this.nodefs.statSync(this.abs).mtimeMs:1)}async mtime(){if(!this[Ln]){let e=await this.stat();this[Ln]=e.mtimeMs}return this[Ln]}unlink(){return this.log.debug("unlink %path",this.rel),this.nodefs.promises.unlink(this.abs)}extractStarPattern(e){let t=new RegExp(e.replace(/\*/g,"([^/]+)"));return(this.rel.match(t)||[]).slice(1)}};Q(So,Nc,"FileNode",16);var We=So,pm=Symbol(),Eo=class Eo extends We{};Q(Eo,pm,"SourceMapFile",0);var mo=Eo,dm=Symbol(),Oo=class Oo extends We{};Q(Oo,dm,"JSFile",0);var Lc=Oo,mm=Symbol(),$o=class $o extends We{};Q($o,mm,"TSFile",0);var Rc=$o,gm=Symbol(),Io=class Io extends We{compile(e,t=this.program){var n=this;let i=""+e.platform+"-"+e.hmr+"-"+e.mode;return this.memo(i,async function(){e=Object.assign({platform:e.platform,format:"esm",mode:e.mode,imbaPath:"imba",styles:"extern",hmr:e.hmr,bundle:!0,sourcePath:n.rel,sourceId:n.program.cache.getPathAlias(n.abs),cwd:n.fs.cwd,sourcemap:"inline",config:n.program.config},{}),e.format="esm";let o=await n.read(),s=Date.now(),a=await t.workers.exec("compile_imba",[o,e]);return n.log.debug("compile %path %path in %ms",n.rel,e.platform,Date.now()-s,e.sourceId),a})}};Q(Io,gm,"ImbaFile",0);var go=Io,bm=Symbol(),Ao=class Ao extends We{compile(e,t=this.program){var n=this;return this.memo(e.platform,async function(){e=Object.assign({platform:"node",format:"esm",sourcePath:n.rel,filename:n.rel,inlineHelpers:1,cwd:n.fs.cwd},e),e.target=e.platform;let i=await n.read(),o=Date.now(),s=await t.workers.exec("compile_imba1",[i,e]);return n.log.success("compile %path in %ms",n.rel,Date.now()-o),s})}};Q(Ao,bm,"Imba1File",0);var bo=Ao,ym=Symbol(),Po=class Po extends We{compile(e){var t=this;return this.memo(e.format,async function(){let n=await t.read(),i=Gl({body:n});return{js:"import url from './"+t.name+`';
export default /* @__PURE__ */ Object.assign({
url: url, type: 'svg',toString: function(){ return this.url;}
},`+JSON.stringify(i)+")"}})}};Q(Po,ym,"SVGFile",0);var yo=Po,vm=Symbol(),To=class To extends We{compile(e){var t=this;return this.memo(e.format,async function(){let n=await t.read(),i=Hl({body:n}),o=[],s=[];o.push('import {html} from "imba/src/imba/assets.imba"');for(let l=0,c=H(i.imports),u=c.length;l<u;l++){let f=c[l],g=f.path,m="";f.tagType=="img"?m="":f.tagType=="script"?m="web":f.tagType=="style"&&(m="css"),m&&g.indexOf("?")==-1&&(g=g+"?"+m),o.push("import ref"+l+" from '"+g+"';"),s.push("ref"+l)}let a=JSON.stringify(i.contents);return o.push("export const URLS = ["+s.join(",")+"];"),o.push("export default html("+a+",URLS);"),{js:o.join(`
`),html:i.contents}})}};Q(To,vm,"HTMLFile",0);var vo=To,wm=Symbol(),jo=class jo extends We{compile(e){var t=this;return this.memo(e.format,async function(){let n=await Promise.resolve((0,Gc.default)(t.abs)),i="import url from './"+t.name+`';
export default /* @__PURE__ */ {
url: url,
type: 'image',
width: `+(n.width||0)+`,
height: `+(n.height||0)+`,
toString: function(){ return this.url;}
}`;return{width:n.width,height:n.height,js:i}})}};Q(jo,wm,"ImageFile",0);var it=jo,Dc=Symbol(),Co=class Co extends We{constructor(){super(...arguments),ke(this,Dc)}load(){try{this.raw=this.readSync(),this.data=JSON.parse(this.raw)}catch{this.data={}}return this}save(){let e=JSON.stringify(this.data,null,2);return e!=this.raw&&(this.raw=e,this.writeSync(e)),this}};Q(Co,Dc,"JSONFile",16);var wo=Co,Bc=Symbol(),Mo=class Mo extends Xe{constructor(e,t){super(),this.cwd=ot.default.resolve(e),this.program=t,this.nodemap={},this.existsCache={},this.changelog=new At,this[qe]=null,this[kr]=new Sr,this[lm]={},ke(this,Bc)}toString(){return this.cwd}valueOf(){return this.cwd}existsSync(e){let t=this.nodemap[e];return t?t.existsSync():this.existsCache[e]!=null?this.existsCache[e]:this.existsCache[e]=this.nodefs.existsSync(this.resolve(e))}lookup(e,t=We){var n;return e=this.relative(e),(n=this.nodemap)[e]||(n[e]=t.create(this,e,this.resolve(e)))}nodes(e){var t=this;return e.map(function(n){return t.lookup(n)})}get nodefs(){return this.program.volume||Vc.default}get files(){return this[qe]||this.prescan(),this[qe]}get cache(){return this.program.cache}resolve(...e){return ot.default.resolve(this.cwd,...e)}relative(e){return ot.default.relative(this.cwd,this.resolve(e)).split(ot.default.sep).join(ot.default.posix.sep)}writeFile(e,t){return this.nodefs.promises.writeFile(this.resolve(e),t)}unlink(e,t){return this.nodefs.promises.unlink(this.resolve(e))}readFile(e,t="utf8"){return this.nodefs.promises.readFile(this.resolve(e),t)}stat(e){return this.nodefs.promises.stat(this.resolve(e)).then(function(t){return t}).catch(function(){return Hc})}touchFile(e){return this.changelog.mark(e),this.lookup(e).touch(),this.emit("change")}addFile(e){return this.changelog.mark(e),this.lookup(e).register(),this.emit("change")}removeFile(e){return this.changelog.mark(e),this.lookup(e).deregister(),this.emit("change")}prescan(e=null){var t;if(this[qe])return this[qe];this[qe]=e||this.crawl();for(let n=0,i=H(this[qe]),o=i.length;n<o;n++){let s=i[n],a=s.lastIndexOf("."),l=a==-1?".*":s.slice(a);((t=this[qe])[l]||(t[l]=[])).push(s)}return this[qe]}reset(){return this[qe]=null,this}glob(e=[],t=null,n=null){var i=this;this.prescan();let o=this[kr];if(n&&(o=this[kr].withExtension(n)),_e(e,RegExp)&&!t)return o.filter(function(a){return e.test(a.rel)});if(typeof e=="string")if(e.indexOf("*")>=0)e=[e];else return new Sr(this.existsSync(e)?this.lookup(e):null);if(!e||e.length==0){if(!t)return o.slice(0);e=["*"]}let s=um(o.paths,e,t);return new Sr(...s.map(function(a){return i.nodemap[a]}))}find(e,t=null){this.prescan();let n=t?[]:this[qe];if(typeof t=="string"&&(t=t.split(",")),_e(t,Array))for(let i=0,o=H(t),s=o.length;i<s;i++){let a=o[i];n=n.concat(this[qe]["."+a]||[])}return n.filter(function(i){return e.test(i)})}scan(e){this.prescan();let t=[];for(let n=0,i=H(this[qe]),o=i.length;n<o;n++){let s=i[n],a=!1;_e(e,RegExp)&&(a=e.test(s),a&&t.push(this.lookup(s)))}return t}fromJSON(e,t){var i,o;let n=[];for(let s=0,a=H(this.res),l=a.length;s<l;s++){let c=a[s],u=c.dir,f=u.slice(this.slice),g=(i=this.nodemap)[f]||(i[f]=new Er(this,f,u));for(let m=0,p=H(c.files),y=p.length;m<y;m++){let x=p[m],_=f+"/"+x,h=u+"/"+x;((o=this.nodemap)[_]||(o[_]=Pt.create(this,_,h))).register(),n.push(_)}}return!0}crawl(e={}){var o,s,a;let t=this.cwd.length+1,n=function(l){return l[0]!="."},i=!0;if(this.nodefs.toJSON){let l=this.nodefs.toJSON(),c=[];for(let u=0,f=Object.keys(l),g=f.length,m,p;u<g;u++){m=f[u],p=l[m];let y=m.slice(t);((o=this.nodemap)[y]||(o[y]=Pt.create(this,y,m))).register(),c.push(y)}return c}else{let c=new zc.fdir().crawlWithOptions(this.cwd,{includeBasePath:!i,group:i,includeDirs:!1,maxDepth:8,filters:[n],exclude:function(f,g,m){return m==7&&(e.includeRoots&&!e.includeRoots[f]||e.excludeRoots&&e.excludeRoots[f])?!0:/^(\.|node_modules)/.test(f)}}).sync();if(!i)return c.map(function(f){return f.slice(t)});let u=[];for(let f=0,g=H(c),m=g.length;f<m;f++){let p=g[f],y=p.dir,x=y.slice(t),_=(s=this.nodemap)[x]||(s[x]=new Er(this,x,y));for(let h=0,v=H(p.files),b=v.length;h<b;h++){let w=v[h],d=x?x+"/"+w:w,k=y+ot.default.sep+w;((a=this.nodemap)[d]||(a[d]=Pt.create(this,d,k))).register(),u.push(d)}}return u}}};Q(Mo,Bc,"FileSystem",16);var Tt=Mo;var Lo=te(require("cluster")),Do=te(require("node:path")),Yc=te(require("child_process"));var Kt=Symbol.for("#next"),Dn=Symbol.for("#reload"),Wc=Symbol.for("#exit"),xm=Symbol.for("#prev"),jt=Symbol.for("#listening"),Or=Symbol.for("#replacing"),Fo=Symbol.for("#replaced"),No=Symbol.for("#hash"),Uc=Symbol(),Bo=class Bo{[we](e=null,t=!0,n=!0){var i;this.runner=e&&(i=e.runner)!==void 0?i:null,this.fork=e&&(i=e.fork)!==void 0?i:null,this.args=e&&(i=e.args)!==void 0?i:{},this.mode=e&&(i=e.mode)!==void 0?i:"cluster",this.name=e&&(i=e.name)!==void 0?i:"worker",this.restarts=e&&(i=e.restarts)!==void 0?i:0,this.procs=e&&(i=e.procs)!==void 0?i:new Set}get manifest(){return this.runner.manifest||{}}get bundle(){return this.runner.bundle}constructor(e,t){this[we](t),this.options=t,this.runner=e,this.atime=Date.now(),this.state="closed",this.log=new Et({prefix:["%bold%dim",this.name,": "]}),this.current=null,this.sharedEnv={},this.restarts=0,ke(this,Uc)}start(){var e=this;if(this.current&&this.current[Kt])return;let t=this.runner.o,n=this.bundle.result.main,i={windowsHide:!0,args:t.extras,exec:n,execArgv:[t.inspect&&"--inspect",(t.sourcemap||this.bundle.sourcemappedΦ)&&"--enable-source-maps",t.memlimit&&"--max_old_space_size="+t.memlimit,...t.nodeflags].filter(function(l){return l})},o={IMBA_RESTARTS:this.restarts,IMBA_SERVE:!0,IMBA_PATH:t.imbaPath,IMBA_OUTDIR:t.outdir,IMBA_WORKER_NR:this.options.number,IMBA_CLUSTER:!this.bundle.forkΦ,IMBA_WATCH:t.watch?1:"",IMBA_LOGLEVEL:process.env.IMBA_LOGLEVEL||"warning",PORT:process.env.PORT||t.port};Object.assign(o,this.sharedEnv);for(let l=0,c=Object.keys(o),u=c.length,f,g;l<u;l++)f=c[l],g=o[f],g===!1&&(o[f]="");if(this.bundle.forkΦ)return i.env=Object.assign({},process.env,o),this.fork=Yc.default.fork(Do.default.resolve(n),i.args,i),process.on("SIGINT",function(){return e[Dn]=!1,e[Wc]=!0,e.fork&&e.fork.kill("SIGINT"),setTimeout(function(){return process.exit(0)},5*1e3)}),this.fork.on("exit",function(l){if(e.current=null,t.watch&&!e[Wc]){if(e[Dn])return e[Dn]=!1,e.start()}else return process.exit(l)}),this.current=this.fork,this.fork;Lo.default.setupPrimary(i);let s=this.current,a=Lo.default.fork(o);if(a.nr=this.restarts++,a[xm]=s,this.procs.add(a),s)s[Kt]=a,s[jt]?this.markReplacing(s):(this.log.info("send sigint to %d",s.process?.pid),s.kill("SIGINT"));else{let l=0;process.on("SIGINT",function(){if(l++,l>3)return process.exit(0)})}return a.on("exit",function(l,c){if(c?e.log.info("killed %d by signal: %d",a.process?.pid,c):l==43||(l!=0?e.log.error("exited %d with error code: %red",a.process?.pid,l):a[Kt]||e.log.info("exited")),e.procs.delete(a),!a[Kt])return process.exit()}),a.on("listening",function(l){if(t[jt]=l,e.log.success("listening %d on %address",a.process.pid,l),a[jt]!=!0&&(a[jt]=!0,!0)){a[Kt]&&e.log.debug("proc replaced before listening %d",a.process.pid);for(let c of H(e.procs))c[Or]&&e.markReplaced(c)}}),a.on("error",function(l){if(l.message!="Channel closed")return e.log.info("%red","errored")}),a.on("message",function(l,c){if(l[0]=="imba:setenv"&&Object.assign(e.sharedEnv,l[1]||{}),l=="imba:restart"&&(a[Kt]||e.reload()),l=="imba:listening"&&a[jt]!=!0&&(a[jt]=!0,!0)){e.log.info("imba:listening %d",a.process.pid);for(let u of H(e.procs))u[Or]&&e.markReplaced(u)}}),this.current=a}logProcs(){for(let e of H(this.procs))this.log.info("process %d "+!!e[jt]+" "+!!e[Or]+" "+!!e[Fo],e.process.pid);return!0}markReplacing(e){if(e[Or]!=!0&&(e[Or]=!0,!0))return e.send(["emit","reloading"]),e.send("imba:replacing")}markReplaced(e){if(e[Fo]!=!0&&(e[Fo]=!0,!0))return e.send(["emit","reloaded"]),e.send("imba:replaced")}broadcast(e){return this.current?.send?.(e)}reload(){return this.bundle.forkΦ?this.current?(this[Dn]=!0,this.current.send(["emit","reloadHard"])):this.start():this.start(),this}};Q(Bo,Uc,"WorkerInstance",16);var Ro=Bo,Kc=Symbol(),Vo=class Vo extends Xe{[we](e=null,t=!0,n=!0){t&&super[we]&&super[we](...arguments),this.fileToRun=e?e.fileToRun:void 0}constructor(e,t){super(),super[we]||this[we](),this.o=t,this.bundle=e,this.workers=new Set,this.fileToRun=Do.default.resolve(e.cwd,this.o.name),ke(this,Kc)}start(){var e=this;let t=this.o.instances||1,n=1,i=this.o.name||"script";for(;n<=t;){let o={number:n,name:t>1?""+i+" "+n+"/"+t:i};this.workers.add(new Ro(this,o)),n++}for(let o of H(this.workers))o.start();return this.o.watch&&(this[No]=this.bundle.result.hash,this.bundle?.on?.("errored",function(o){return e.broadcast(["emit","errors",o])}),this.bundle?.on?.("repaired",function(o){return e.broadcast(["emit","repaired"])}),this.bundle?.on?.("built",function(o){var s;return e[No]!=(s=o.hash)&&(e[No]=s,!0)?e.reload():e.broadcast(["emit","rebuild",o.manifest])})),this}reload(){this.o.clear&&console.log("\x1Bc"),this.log.info("reloading %path",this.o.name);for(let e of H(this.workers))e.reload();return this}broadcast(...e){for(let t of H(this.workers))t.broadcast(...e);return this}};Q(Vo,Kc,"Runner",16);var $r=Vo;var Ff=te(require("esbuild"));var wu=te(require("path")),Gn=te(require("os")),xu=te(yu()),Tm=wu.default.resolve(__dirname,"..","workers.imba.js"),jm=(Gn.default.availableParallelism?Gn.default.availableParallelism():Gn.default.cpus().length)||4,vu=parseInt(process.env.IMBA_MAX_WORKERS),Cm=vu>0?vu:Math.max(2,Math.min(jm-1,8)),Ft=null,es=0;function Mm(){return es+=1,Ft||(Ft=xu.pool(Tm,{maxWorkers:Cm}))}function Fm(){if(es-=1,es<1&&Ft)return Ft.terminate()}function Nm(){if(Ft)return Ft.terminate(!0),Ft=null}function _u(){return Mm(),{stop:Fm,kill:Nm,exec:function(...r){return Ft.exec(...r)}}}var st=te(require("fs")),dt=te(require("path")),Au=require("crypto"),Pu=te(require("os"));var Lm={esbuild:"object",external:"array",hashing:"boolean",minify:"boolean",target:"array"},ku={raw:"text",text:"text",copy:"copy",dataurl:"dataurl",binary:"binary",file:"file",url:"file",base64:"base64"},Su={worker:{web:"worker.js",node:null},sharedworker:{web:"sharedworker.js",node:null}},Eu=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","fs/promises","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","trace_events","tty","url","util","v8","vm","worker_threads","zlib"],Ou={".png":"file",".bmp":"file",".pdf":"file",".apng":"file",".webp":"file",".heif":"file",".avif":"file",".svg":"file",".gif":"file",".jpg":"file",".jpeg":"file",".ico":"file",".woff2":"file",".woff":"file",".eot":"file",".ttf":"file",".otf":"file",".html":"text",".webm":"file",".weba":"file",".avi":"file",".mp3":"file",".mp4":"file",".m4a":"file",".mpeg":"file",".wav":"file",".ogg":"file",".ogv":"file",".oga":"file",".opus":"file",".wasm":"file"},Rm={bundles:[],options:{base:{target:["chrome88","edge79","safari15"]},node:{extends:"base",platform:"node",format:"cjs",target:["node14.13.0"],external:["dependencies","!imba","!imba-monarch"]},esm:{extends:"node",format:"esm",splitting:!1},web:{extends:"base",platform:"browser",format:"esm",splitting:!0},iife:{extends:"web",format:"iife",splitting:!1,platform:"browser"},client:{extends:"web",splitting:!0},css:{format:"css",platform:"browser",external:["dependencies","devDependencies","!imba"],sourcemap:!1,splitting:!1},html:{format:"html",platform:"browser",sourcemap:!1,splitting:!1},worker:{extends:"base",format:"esm",platform:"webworker",splitting:!1},nodeworker:{extends:"node",format:"cjs",platform:"nodeworker",splitting:!1},webworker:{extends:"base",format:"esm",platform:"webworker",splitting:!1},sharedworker:{extends:"base",format:"esm",platform:"webworker",splitting:!1},serviceworker:{extends:"base",format:"iife",platform:"webworker",entryNames:"[name]"}}};function Hn(r){return r==null||r==null||r==!0||r==!1?r:JSON.parse(JSON.stringify(r))}function Jt(r,e,...t){let n=typeof r,i=typeof e;if(_e(r,Array)&&(n="array"),_e(e,Array)&&(i="array"),Lm[t[0]]=="boolean"||n=="string"&&i=="string"||i=="boolean"&&(r==null||n=="boolean"))return e;if(n=="array"){i=="string"&&(e=e.split(/\,\s*|\s+/g));let s=e.every(function(l){return/[\-\+]/.test(l||"")}),a=new Set(s?Hn(r):[]);for(let l=0,c=H(e),u=c.length;l<u;l++){let f=c[l];f[0]=="+"?a.add(f.slice(1)):f[0]=="-"?a.delete(f.slice(1)):a.add(f)}return Array.from(a)}if(r==null)return Hn(e);for(let s=0,a=Object.keys(e),l=a.length,c,u;s<l;s++)c=a[s],u=e[c],r||(r={}),r.hasOwnProperty(c)?r[c]=Jt(r[c],u,c,...t):r[c]=Hn(u);return r}function ts(r,e){return r=Jt(Hn(Rm),r),r}function $u(r,e={},t=null){typeof t=="string"&&(t=t.split(","));let n=Symbol.for(t.join("+")),i=Object.assign({presets:[]},e),o=r.options;for(let s=0,a=H(t),l=a.length;s<l;s++){let c=a[s];if(!c)continue;let u=o[c]||{};i.presets.push(c);let f=u,g=[u];for(;f.extends&&g.length<10;)g.unshift(f=o[f.extends]);for(let m=0,p=H(g),y=p.length;m<y;m++){let x=p[m];Object.assign(i,x)}}return i}var X0=te(rs()),Dm=Symbol.for("#mtime"),Bm=Symbol.for("#path");var Tu={assert:!0,async_hooks:!0,buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,dgram:!0,dns:!0,domain:!0,events:!0,fs:!0,"fs/promises":!0,http:!0,http2:!0,https:!0,inspector:!0,module:!0,net:!0,os:!0,path:!0,perf_hooks:!0,process:!0,punycode:!0,querystring:!0,readline:!0,repl:!0,stream:!0,string_decoder:!0,sys:!0,timers:!0,tls:!0,trace_events:!0,tty:!0,url:!0,util:!0,v8:!0,vm:!0,worker_threads:!0,zlib:!0};function ju(r){let e=r?.cwd||process.cwd(),t=process.env.IMBA_CACHEDIR;if(!t){let n=r?.nodeModulesPath||dt.default.resolve(e,"node_modules");t=st.default.existsSync(n)?dt.default.resolve(n,".cache","imba"):dt.default.resolve(e,".imba-cache")}return st.default.existsSync(t)||st.default.mkdirSync(t,{recursive:!0}),t}function Cu(){let r=process.env.IMBA_ALIASDIR||dt.default.resolve(Pu.default.homedir(),".imba");return st.default.existsSync(r)||st.default.mkdirSync(r,{recursive:!0}),r}function ns(r,e={}){return{text:r.message,location:Object.assign({line:r.range.start.line+1,column:r.range.start.character,length:r.range.end.offset-r.range.start.offset,lineText:r.lineText},e)}}function Mu(r){let e=r.cwd,t=r.config||"imbaconfig.json";try{let n=dt.default.resolve(e||".",t||"imbaconfig.json"),i=JSON.parse(st.default.readFileSync(n,"utf8"));return i[Dm]=st.default.statSync(n).mtimeMs||0,i[Bm]=n,ts(i)}catch{return ts({})}}function Fu(r,e,t=[]){return Jt(r,e,...t)}function Wn(r,e=".",t=null){let n=dt.default.resolve(e,r),i=dt.default.dirname(n);if(st.default.existsSync(n))return n;let o=dt.default.dirname(i);return o!=i?Wn(r,o):null}function is(r,e,t){let n;if(n=Wn(r,e)){let i={path:n,body:st.default.readFileSync(n,"utf-8")};return t?t(i):i}return null}function os(r){return is("package.json",r,function(e){return JSON.parse(e.body)})}function Nu(r="bcdefghijklmnopqrstuvwxyz"){let e={};for(let t=r.length,n=0,i=t-n;i>0?n<t:n>t;i>0?n++:n--)e[n.toString(r.length)]=r[n];return function(t){return t.toString(r.length).split("").map(function(n){return e[n]}).join("")}}function Un(r){return(0,Au.createHash)("sha1").update(r).digest("base64").replace(/[\=\+\/]/g,"").slice(0,8).toUpperCase()}var as={};kh(as,{colors:()=>ss,fonts:()=>Kn,modifiers:()=>Pr,named_colors:()=>Yn,variants:()=>Vm});var Kn={sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Pr={odd:{name:"nth-child",valueType:"string",value:"odd"},even:{name:"nth-child",valueType:"string",value:"even"},first:{name:"first-child"},last:{name:"last-child"},only:{name:"only-child"},"not-first":{name:"not",valueType:"raw",value:":first-child"},"not-last":{name:"not",valueType:"raw",value:":last-child"},"first-child":{},"last-child":{},"font-face":{type:"@"},autofill:{},active:{shim:!0},checked:{shim:!0},default:{},defined:{},disabled:{shim:!0},empty:{},enabled:{shim:!0},"first-of-type":{},"first-page":{name:"first"},fullscreen:{},focus:{shim:!0},focin:{name:"focus-within",shim:"focin"},"focus-within":{},"focus-visible":{shim:"focus-visible"},hover:{shim:!0},indeterminate:{shim:!0},"in-range":{},invalid:{shim:!0},is:{type:"selector"},has:{type:"selector"},lang:{},"last-of-type":{},left:{},link:{},not:{type:"selector"},"nth-child":{},modal:{},"picture-in-picture":{},"nth-last-child":{},"nth-last-of-type":{},"nth-of-type":{},"only-child":{},"only-of-type":{},playing:{},paused:{},optional:{shim:!0},"out-of-range":{},"placeholder-shown":{},"read-only":{},"read-write":{},required:{shim:!0},right:{},scope:{},root:{},target:{},"target-within":{},valid:{shim:!0},visited:{},where:{},after:{type:"el"},"-webkit-scrollbar":{type:"el"},"-webkit-scrollbar-button":{type:"el"},"-webkit-scrollbar-track":{type:"el"},"-webkit-scrollbar-track-piece":{type:"el"},"-webkit-scrollbar-thumb":{type:"el"},"-webkit-scrollbar-corner":{type:"el"},"-webkit-resizer":{type:"el"},start:{type:"@"},"scope-to":{type:"@"},"starting-style":{type:"@"},backdrop:{type:"el"},before:{type:"el"},cue:{type:"el"},"cue-region":{type:"el"},"first-letter":{type:"el"},"first-line":{type:"el"},highlight:{type:"pseudoel"},marker:{type:"el"},placeholder:{type:"el"},selection:{type:"el"},inline:{pri:3},important:{pri:4},force:{pri:6},media:{type:"media"},print:{media:"print"},screen:{media:"screen"},speech:{media:"speech"},all:{media:"all"},scrollable:{type:"@",scrollstate:"scroll-state(scrollable: top)"},"scrollable-top":{type:"@",scrollstate:"scroll-state(scrollable: top)"},"scrollable-left":{type:"@",scrollstate:"scroll-state(scrollable: left)"},"scrollable-right":{type:"@",scrollstate:"scroll-state(scrollable: right)"},"scrollable-bottom":{type:"@",scrollstate:"scroll-state(scrollable: bottom)"},"snapped-x":{type:"@",scrollstate:"scroll-state(snapped:x)"},"snapped-y":{type:"@",scrollstate:"scroll-state(snapped:y)"},"snapped-inline":{type:"@",scrollstate:"scroll-state(snapped:inline)"},"snapped-block":{type:"@",scrollstate:"scroll-state(snapped:block)"},"stuck-top":{type:"@",scrollstate:"scroll-state(stuck:top)"},"stuck-bottom":{type:"@",scrollstate:"scroll-state(stuck:bottom)"},"stuck-left":{type:"@",scrollstate:"scroll-state(stuck:left)"},"stuck-right":{type:"@",scrollstate:"scroll-state(stuck:right)"},xs:{media:"(min-width: 480px)",medianeg:"(max-width: 479px)"},sm:{media:"(min-width: 640px)",medianeg:"(max-width: 639px)"},md:{media:"(min-width: 768px)",medianeg:"(max-width: 767px)"},lg:{media:"(min-width: 1024px)",medianeg:"(max-width: 1023px)"},xl:{media:"(min-width: 1280px)",medianeg:"(max-width: 1279px)"},"2xl":{media:"(min-width: 1536px)"},"lt-xs":{media:"(max-width: 479px)"},"lt-sm":{media:"(max-width: 639px)"},"lt-md":{media:"(max-width: 767px)"},"lt-lg":{media:"(max-width: 1023px)"},"lt-xl":{media:"(max-width: 1279px)"},"lt-2xl":{media:"(max-width: 1535px)"},landscape:{media:"(orientation: landscape)",medianeg:"(orientation: portrait)"},portrait:{media:"(orientation: portrait)",medianeg:"(orientation: landscape)"},dark:{media:"(prefers-color-scheme: dark)",medianeg:"(prefers-color-scheme: light)"},light:{media:"(prefers-color-scheme: light)",medianeg:"(prefers-color-scheme: dark)"},standalone:{media:"(display-mode: standalone)"},browser:{media:"(display-mode: browser)"},enter:{flag:"@enter"},leave:{flag:"@leave"},darky:{flag:"@dark",raw:":is( :where(.@dark,.@dark :where(:root,:not(:root))):not(.@dark .@light :where(:root,:not(:root)),.@dark .@light), :where(.@light .@dark,.@light .@dark :where(:root,:not(:root))):not(.@dark .@light .@dark .@light :where(:root,:not(:root)),.@dark .@light .@dark .@light))",neg:":not( :where(.@dark,.@dark :where(:root,:not(:root))):not(.@dark .@light :where(:root,:not(:root)),.@dark .@light), :where(.@light .@dark,.@light .@dark :where(:root,:not(:root))):not(.@dark .@light .@dark .@light :where(:root,:not(:root)),.@dark .@light .@dark .@light))"},lighty:{flag:"@light",raw:":not( :where(.@dark,.@dark :where(:root,:not(:root))):not(.@dark .@light :where(:root,:not(:root)),.@dark .@light), :where(.@light .@dark,.@light .@dark :where(:root,:not(:root))):not(.@dark .@light .@dark .@light :where(:root,:not(:root)),.@dark .@light .@dark .@light))",neg:":is( :where(.@dark,.@dark :where(:root,:not(:root))):not(.@dark .@light :where(:root,:not(:root)),.@dark .@light), :where(.@light .@dark,.@light .@dark :where(:root,:not(:root))):not(.@dark .@light .@dark .@light :where(:root,:not(:root)),.@dark .@light .@dark .@light))"},touch:{flag:"@touch"},suspended:{flag:"@suspended"},"user-invalid":{},move:{flag:"@move"},hold:{flag:"@hold"},ssr:{flag:"@ssr"}},Vm={radius:{full:"9999px",xxs:"1px",xs:"2px",sm:"3px",md:"4px",lg:"6px",xl:"8px",NUMBER:"2px"},sizing:{NUMBER:"0.25rem"},"letter-spacing":{NUMBER:"0.05em"},"font-size":{xxs:["10px",1.5],xs:["12px",1.5],"sm-":["13px",1.5],sm:["14px",1.5],"md-":["15px",1.5],md:["16px",1.5],lg:["18px",1.5],xl:["20px",1.5],"2xl":["24px",1.5],"3xl":["30px",1.5],"4xl":["36px",1.5],"5xl":["48px",1.5],"6xl":["64px",1.5],1:["10px",1.5],2:["12px",1.5],3:["13px",1.5],4:["14px",1.5],5:["15px",1.5],6:["16px",1.5],7:["17px",1.5],8:["18px",1.5],9:["19px",1.5],10:["20px",1.5],11:["24px",1.4],12:["30px",1.3],13:["36px",1.3],14:["48px",1.2],15:["64px",1.2],16:["96px",1.2]},"box-shadow":{xxs:"0 0 0 1px hsla(var(--bxs-xxs-color,0,0%,0%),var(--bxs-xxs-alpha,0.05))",xs:"0 1px 2px 0 hsla(var(--bxs-xs-color,0,0%,0%),var(--bxs-xs-alpha,0.05))",sm:"0 1px 3px 0 hsla(var(--bxs-sm-color,0,0%,0%),var(--bxs-sm-alpha,0.1)), 0 1px 2px 0 hsla(var(--bxs-sm-color,0,0%,0%),calc(var(--bxs-sm-alpha,0.1) * 0.6))",md:"0 4px 6px -1px hsla(var(--bxs-md-color,0,0%,0%), var(--bxs-md-alpha,0.1)), 0 2px 4px -1px hsla(var(--bxs-md-color,0,0%,0%),calc(var(--bxs-md-alpha,0.1) * 0.6))",lg:"0 10px 15px -3px hsla(var(--bxs-lg-color,0,0%,0%), var(--bxs-lg-alpha,0.1)), 0 4px 6px -2px hsla(var(--bxs-lg-color,0,0%,0%),calc(var(--bxs-lg-alpha,0.1) * 0.5))",xl:"0 20px 25px -5px hsla(var(--bxs-xl-color,0,0%,0%), var(--bxs-xl-alpha,0.1)), 0 10px 10px -5px hsla(var(--bxs-xl-color,0,0%,0%), calc(var(--bxs-xl-alpha,0.1) * 0.4))",xxl:"0 25px 50px -6px hsla(var(--bxs-xxl-color,0,0%,0%),var(--bxs-xxl-alpha,0.25))",inner:"inset 0 2px 4px 0 hsla(var(--bxs-inner-color,0,0%,0%),var(--bxs-inner-alpha,0.06))",outline:"0 0 0 3px hsla(var(--bxs-outline-color,207,73%,57%),var(--bxs-outline-alpha,0.5))",none:"none"},easings:{"sine-in":"cubic-bezier(0.47, 0, 0.745, 0.715)","sine-out":"cubic-bezier(0.39, 0.575, 0.565, 1)","sine-in-out":"cubic-bezier(0.445, 0.05, 0.55, 0.95)","quad-in":"cubic-bezier(0.55, 0.085, 0.68, 0.53)","quad-out":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","quad-in-out":"cubic-bezier(0.455, 0.03, 0.515, 0.955)","cubic-in":"cubic-bezier(0.55, 0.055, 0.675, 0.19)","cubic-out":"cubic-bezier(0.215, 0.61, 0.355, 1)","cubic-in-out":"cubic-bezier(0.645, 0.045, 0.355, 1)","quart-in":"cubic-bezier(0.895, 0.03, 0.685, 0.22)","quart-out":"cubic-bezier(0.165, 0.84, 0.44, 1)","quart-in-out":"cubic-bezier(0.77, 0, 0.175, 1)","quint-in":"cubic-bezier(0.755, 0.05, 0.855, 0.06)","quint-out":"cubic-bezier(0.23, 1, 0.32, 1)","quint-in-out":"cubic-bezier(0.86, 0, 0.07, 1)","expo-in":"cubic-bezier(0.95, 0.05, 0.795, 0.035)","expo-out":"cubic-bezier(0.19, 1, 0.22, 1)","expo-in-out":"cubic-bezier(1, 0, 0, 1)","circ-in":"cubic-bezier(0.6, 0.04, 0.98, 0.335)","circ-out":"cubic-bezier(0.075, 0.82, 0.165, 1)","circ-in-out":"cubic-bezier(0.785, 0.135, 0.15, 0.86)","back-in":"cubic-bezier(0.6, -0.28, 0.735, 0.045)","back-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","back-in-out":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},ss={rose:{0:"#fff1f2",1:"#ffe4e6",2:"#fecdd3",3:"#fda4af",4:"#fb7185",5:"#f43f5e",6:"#e11d48",7:"#be123c",8:"#9f1239",9:"#881337"},pink:{0:"#fdf2f8",1:"#fce7f3",2:"#fbcfe8",3:"#f9a8d4",4:"#f472b6",5:"#ec4899",6:"#db2777",7:"#be185d",8:"#9d174d",9:"#831843"},fuchsia:{0:"#fdf4ff",1:"#fae8ff",2:"#f5d0fe",3:"#f0abfc",4:"#e879f9",5:"#d946ef",6:"#c026d3",7:"#a21caf",8:"#86198f",9:"#701a75"},purple:{0:"#faf5ff",1:"#f3e8ff",2:"#e9d5ff",3:"#d8b4fe",4:"#c084fc",5:"#a855f7",6:"#9333ea",7:"#7e22ce",8:"#6b21a8",9:"#581c87"},violet:{0:"#f5f3ff",1:"#ede9fe",2:"#ddd6fe",3:"#c4b5fd",4:"#a78bfa",5:"#8b5cf6",6:"#7c3aed",7:"#6d28d9",8:"#5b21b6",9:"#4c1d95"},indigo:{0:"#eef2ff",1:"#e0e7ff",2:"#c7d2fe",3:"#a5b4fc",4:"#818cf8",5:"#6366f1",6:"#4f46e5",7:"#4338ca",8:"#3730a3",9:"#312e81"},blue:{0:"#eff6ff",1:"#dbeafe",2:"#bfdbfe",3:"#93c5fd",4:"#60a5fa",5:"#3b82f6",6:"#2563eb",7:"#1d4ed8",8:"#1e40af",9:"#1e3a8a"},sky:{0:"#f0f9ff",1:"#e0f2fe",2:"#bae6fd",3:"#7dd3fc",4:"#38bdf8",5:"#0ea5e9",6:"#0284c7",7:"#0369a1",8:"#075985",9:"#0c4a6e"},cyan:{0:"#ecfeff",1:"#cffafe",2:"#a5f3fc",3:"#67e8f9",4:"#22d3ee",5:"#06b6d4",6:"#0891b2",7:"#0e7490",8:"#155e75",9:"#164e63"},teal:{0:"#f0fdfa",1:"#ccfbf1",2:"#99f6e4",3:"#5eead4",4:"#2dd4bf",5:"#14b8a6",6:"#0d9488",7:"#0f766e",8:"#115e59",9:"#134e4a"},emerald:{0:"#ecfdf5",1:"#d1fae5",2:"#a7f3d0",3:"#6ee7b7",4:"#34d399",5:"#10b981",6:"#059669",7:"#047857",8:"#065f46",9:"#064e3b"},green:{0:"#f0fdf4",1:"#dcfce7",2:"#bbf7d0",3:"#86efac",4:"#4ade80",5:"#22c55e",6:"#16a34a",7:"#15803d",8:"#166534",9:"#14532d"},lime:{0:"#f7fee7",1:"#ecfccb",2:"#d9f99d",3:"#bef264",4:"#a3e635",5:"#84cc16",6:"#65a30d",7:"#4d7c0f",8:"#3f6212",9:"#365314"},yellow:{0:"#fefce8",1:"#fef9c3",2:"#fef08a",3:"#fde047",4:"#facc15",5:"#eab308",6:"#ca8a04",7:"#a16207",8:"#854d0e",9:"#713f12"},amber:{0:"#fffbeb",1:"#fef3c7",2:"#fde68a",3:"#fcd34d",4:"#fbbf24",5:"#f59e0b",6:"#d97706",7:"#b45309",8:"#92400e",9:"#78350f"},orange:{0:"#fff7ed",1:"#ffedd5",2:"#fed7aa",3:"#fdba74",4:"#fb923c",5:"#f97316",6:"#ea580c",7:"#c2410c",8:"#9a3412",9:"#7c2d12"},red:{0:"#fef2f2",1:"#fee2e2",2:"#fecaca",3:"#fca5a5",4:"#f87171",5:"#ef4444",6:"#dc2626",7:"#b91c1c",8:"#991b1b",9:"#7f1d1d"},warmer:{0:"#fafaf9",1:"#f5f5f4",2:"#e7e5e4",3:"#d6d3d1",4:"#a8a29e",5:"#78716c",6:"#57534e",7:"#44403c",8:"#292524",9:"#1c1917"},warm:{0:"#fafafa",1:"#f5f5f5",2:"#e5e5e5",3:"#d4d4d4",4:"#a3a3a3",5:"#737373",6:"#525252",7:"#404040",8:"#262626",9:"#171717"},gray:{0:"#fafafa",1:"#f4f4f5",2:"#e4e4e7",3:"#d4d4d8",4:"#a1a1aa",5:"#71717a",6:"#52525b",7:"#3f3f46",8:"#27272a",9:"#18181b"},cool:{0:"#f9fafb",1:"#f3f4f6",2:"#e5e7eb",3:"#d1d5db",4:"#9ca3af",5:"#6b7280",6:"#4b5563",7:"#374151",8:"#1f2937",9:"#111827"},cooler:{0:"#f8fafc",1:"#f1f5f9",2:"#e2e8f0",3:"#cbd5e1",4:"#94a3b8",5:"#64748b",6:"#475569",7:"#334155",8:"#1e293b",9:"#0f172a"}},Yn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zm(r){return r?r.toArray?r.toArray():r:[]}var ls=[["(",")"],["[","]"],["{","}"],["{{","}}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["TAG_START","TAG_END"],["STYLE_START","STYLE_END"],["BLOCK_PARAM_START","BLOCK_PARAM_END"]];var Lu={};for(let r=0,e=ls.length,t;r<e;r++)t=ls[r],Jn=t[0],Xn=t[1],Lu[Xn]=Jn,Lu[Jn]=Xn,ls[Jn]=Xn;var Jn,Xn;var Qn={"":[-1,{id:1,className:"class",slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",width:1,height:1,referrerPolicy:"referrerpolicy",decoding:1,name:1,lowsrc:1,align:1,hspace:1,vspace:1,longDesc:"longdesc",border:1,loading:1}],HTMLInput:[1,{accept:1,alt:1,autocomplete:1,dirName:"dirname",formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",height:1,max:1,maxLength:"maxlength",min:1,minLength:"minlength",name:1,pattern:1,placeholder:1,src:1,step:1,type:1,defaultValue:"value",width:1,align:1,useMap:"usemap"}],HTMLLabel:[1,{htmlFor:"for"}],HTMLLegend:[1,{align:1}],HTMLLI:[1,{value:1,type:1}],HTMLLink:[1,{href:1,crossOrigin:"crossorigin",rel:1,relList:"rel",media:1,hreflang:1,type:1,as:1,referrerPolicy:"referrerpolicy",sizes:1,imageSrcset:"imagesrcset",imageSizes:"imagesizes",charset:1,rev:1,target:1,integrity:1}],HTMLMap:[1,{name:1}],HTMLMenu:[1,{}],HTMLMeta:[1,{name:1,httpEquiv:"http-equiv",content:1,scheme:1}],HTMLMeter:[1,{value:1,min:1,max:1,low:1,high:1,optimum:1}],HTMLObject:[1,{data:1,type:1,name:1,useMap:"usemap",width:1,height:1,align:1,archive:1,code:1,hspace:1,standby:1,vspace:1,codeBase:"codebase",codeType:"codetype",border:1}],HTMLOList:[1,{start:1,type:1}],HTMLOptGroup:[1,{label:1}],HTMLOption:[1,{label:1,value:1}],HTMLOutput:[1,{htmlFor:"for",name:1}],HTMLParagraph:[1,{align:1}],HTMLParam:[1,{name:1,value:1,type:1,valueType:"valuetype"}],HTMLPicture:[1,{}],HTMLPre:[1,{width:1}],HTMLProgress:[1,{value:1,max:1}],HTMLScript:[1,{src:1,type:1,charset:1,crossOrigin:"crossorigin",referrerPolicy:"referrerpolicy",event:1,htmlFor:"for",integrity:1}],HTMLSelect:[1,{autocomplete:1,name:1,size:1}],HTMLSlot:[1,{name:1}],HTMLSource:[1,{src:1,type:1,srcset:1,sizes:1,media:1}],HTMLSpan:[1,{}],HTMLStyle:[1,{media:1,type:1}],HTMLTable:[1,{align:1,border:1,frame:1,rules:1,summary:1,width:1,bgColor:"bgcolor",cellPadding:"cellpadding",cellSpacing:"cellspacing"}],HTMLTableSection:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign"}],HTMLTableCell:[1,{colSpan:"colspan",rowSpan:"rowspan",headers:1,align:1,axis:1,height:1,width:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor",abbr:1,scope:1}],HTMLTemplate:[1,{}],HTMLTextArea:[1,{autocomplete:1,cols:1,dirName:"dirname",maxLength:"maxlength",minLength:"minlength",name:1,placeholder:1,rows:1,wrap:1}],HTMLTime:[1,{dateTime:"datetime"}],HTMLTitle:[1,{}],HTMLTableRow:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor"}],HTMLTrack:[1,{kind:1,src:1,srclang:1,label:1}],HTMLUList:[1,{type:1}],HTMLVideo:[4,{width:1,height:1,poster:1}],SVG:[-1,{}],SVGGraphics:[66,{transform:1}],SVGA:[67,{}],SVGAnimation:[66,{}],SVGAnimate:[69,{}],SVGAnimateMotion:[69,{}],SVGAnimateTransform:[69,{}],SVGGeometry:[67,{}],SVGCircle:[73,{cx:1,cy:1,r:1}],SVGClipPath:[67,{clipPathUnits:1}],SVGDefs:[67,{}],SVGDesc:[66,{}],SVGDiscard:[66,{}],SVGEllipse:[73,{cx:1,cy:1,rx:1,ry:1}],SVGFEBlend:[66,{mode:1,x:1,y:1,width:1,height:1}],SVGFEColorMatrix:[66,{type:1,values:1,x:1,y:1,width:1,height:1}],SVGFEComponentTransfer:[66,{x:1,y:1,width:1,height:1}],SVGFEComposite:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEConvolveMatrix:[66,{orderX:1,orderY:1,kernelMatrix:1,divisor:1,edgeMode:1,x:1,y:1,width:1,height:1}],SVGFEDiffuseLighting:[66,{surfaceScale:1,diffuseConstant:1,x:1,y:1,width:1,height:1}],SVGFEDisplacementMap:[66,{xChannelSelector:1,yChannelSelector:1,x:1,y:1,width:1,height:1}],SVGFEDistantLight:[66,{}],SVGFEDropShadow:[66,{dx:1,dy:1,stdDeviationX:1,stdDeviationY:1,x:1,y:1,width:1,height:1}],SVGFEFlood:[66,{x:1,y:1,width:1,height:1}],SVGComponentTransferFunction:[66,{type:1,tableValues:1,slope:1,amplitude:1,exponent:1}],SVGFEFuncA:[90,{}],SVGFEFuncB:[90,{}],SVGFEFuncG:[90,{}],SVGFEFuncR:[90,{}],SVGFEGaussianBlur:[66,{x:1,y:1,width:1,height:1}],SVGFEImage:[66,{preserveAspectRatio:1,x:1,y:1,width:1,height:1}],SVGFEMerge:[66,{x:1,y:1,width:1,height:1}],SVGFEMergeNode:[66,{}],SVGFEMorphology:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEOffset:[66,{x:1,y:1,width:1,height:1}],SVGFEPointLight:[66,{}],SVGFESpecularLighting:[66,{surfaceScale:1,specularConstant:1,specularExponent:1,x:1,y:1,width:1,height:1}],SVGFESpotLight:[66,{specularExponent:1}],SVGFETile:[66,{x:1,y:1,width:1,height:1}],SVGFETurbulence:[66,{numOctaves:1,stitchTiles:1,type:1,x:1,y:1,width:1,height:1}],SVGFilter:[66,{filterUnits:1,primitiveUnits:1,x:1,y:1,width:1,height:1}],SVGForeignObject:[67,{x:1,y:1,width:1,height:1}],SVGG:[67,{}],SVGImage:[67,{x:1,y:1,width:1,height:1,preserveAspectRatio:1}],SVGLine:[73,{x1:1,y1:1,x2:1,y2:1}],SVGGradient:[66,{gradientUnits:1,gradientTransform:1,spreadMethod:1}],SVGLinearGradient:[111,{x1:1,y1:1,x2:1,y2:1}],SVGMarker:[66,{refX:1,refY:1,markerUnits:1,markerWidth:1,markerHeight:1,orientType:1,orientAngle:1,viewBox:1,preserveAspectRatio:1}],SVGMask:[66,{maskUnits:1,maskContentUnits:1,x:1,y:1,width:1,height:1}],SVGMetadata:[66,{}],SVGMPath:[66,{}],SVGPath:[73,{}],SVGPattern:[66,{patternUnits:1,patternContentUnits:1,patternTransform:1,x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGPolygon:[73,{}],SVGPolyline:[73,{}],SVGRadialGradient:[111,{cx:1,cy:1,r:1,fx:1,fy:1,fr:1}],SVGRect:[73,{x:1,y:1,width:1,height:1,rx:1,ry:1}],SVGScript:[66,{}],SVGSet:[69,{}],SVGStop:[66,{}],SVGStyle:[66,{}],SVGSVG:[67,{x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGSwitch:[67,{}],SVGSymbol:[66,{viewBox:1,preserveAspectRatio:1}],SVGTextContent:[67,{textLength:1,lengthAdjust:1}],SVGTextPositioning:[130,{x:1,y:1,dx:1,dy:1,rotate:1}],SVGText:[131,{}],SVGTextPath:[130,{startOffset:1,method:1,spacing:1}],SVGTitle:[66,{}],SVGTSpan:[131,{}],SVGUse:[67,{x:1,y:1,width:1,height:1}],SVGView:[66,{viewBox:1,preserveAspectRatio:1}]},Tr={a:2,abbr:1,address:1,area:3,article:1,aside:1,audio:5,b:1,base:6,bdi:1,bdo:1,blockquote:7,body:8,br:9,button:10,canvas:11,caption:12,cite:1,code:1,col:13,colgroup:13,data:14,datalist:15,dd:1,del:16,details:17,dfn:1,dialog:18,div:19,dl:20,dt:1,em:1,embed:21,fieldset:22,figcaption:1,figure:1,footer:1,form:23,h1:24,h2:24,h3:24,h4:24,h5:24,h6:24,head:25,header:1,hgroup:1,hr:26,html:27,i:1,iframe:28,img:29,input:30,ins:16,kbd:1,label:31,legend:32,li:33,link:34,main:1,map:35,mark:1,menu:36,meta:37,meter:38,nav:1,noscript:1,object:39,ol:40,optgroup:41,option:42,output:43,p:44,param:45,picture:46,pre:47,progress:48,q:7,rp:1,rt:1,ruby:1,s:1,samp:1,script:49,section:1,select:50,slot:51,small:1,source:52,span:53,strike:1,strong:1,style:54,sub:1,summary:1,sup:1,table:55,tbody:56,td:57,template:58,textarea:59,tfoot:56,th:57,thead:56,time:60,title:61,tr:62,track:63,u:1,ul:64,var:1,video:65,wbr:1,svg_a:68,svg_animate:70,svg_animateMotion:71,svg_animateTransform:72,svg_audio:66,svg_canvas:66,svg_circle:74,svg_clipPath:75,svg_defs:76,svg_desc:77,svg_discard:78,svg_ellipse:79,svg_feBlend:80,svg_feColorMatrix:81,svg_feComponentTransfer:82,svg_feComposite:83,svg_feConvolveMatrix:84,svg_feDiffuseLighting:85,svg_feDisplacementMap:86,svg_feDistantLight:87,svg_feDropShadow:88,svg_feFlood:89,svg_feFuncA:91,svg_feFuncB:92,svg_feFuncG:93,svg_feFuncR:94,svg_feGaussianBlur:95,svg_feImage:96,svg_feMerge:97,svg_feMergeNode:98,svg_feMorphology:99,svg_feOffset:100,svg_fePointLight:101,svg_feSpecularLighting:102,svg_feSpotLight:103,svg_feTile:104,svg_feTurbulence:105,svg_filter:106,svg_foreignObject:107,svg_g:108,svg_iframe:66,svg_image:109,svg_line:110,svg_linearGradient:112,svg_marker:113,svg_mask:114,svg_metadata:115,svg_mpath:116,svg_path:117,svg_pattern:118,svg_polygon:119,svg_polyline:120,svg_radialGradient:121,svg_rect:122,svg_script:123,svg_set:124,svg_stop:125,svg_style:126,svg_svg:127,svg_switch:128,svg_symbol:129,svg_text:132,svg_textPath:133,svg_title:134,svg_tspan:135,svg_unknown:66,svg_use:136,svg_video:66,svg_view:137},cs=Object.keys(Qn);for(let r=0,e=zm(cs),t=e.length,n;r<t;r++){n=e[r];let i=Qn[n];i.up=Qn[cs[i[0]]],i.name=n+"Element"}for(let r,e=0,t=Object.keys(Tr),n=t.length,i;e<n;e++)i=t[e],r=Tr[i],Tr[i]=Qn[cs[r]];function Ce(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}function ei(r,e=[]){return Object.assign(e,r)}Ce.prototype.registerSelectorPseudos=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],this.pseudos[r]="selector";return this};Ce.prototype.unregisterSelectorPseudos=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],delete this.pseudos[r];return this};Ce.prototype.registerNumericPseudos=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],this.pseudos[r]="numeric";return this};Ce.prototype.unregisterNumericPseudos=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],delete this.pseudos[r];return this};Ce.prototype.registerNestingOperators=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],this.ruleNestingOperators[r]=!0;return this};Ce.prototype.unregisterNestingOperators=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],delete this.ruleNestingOperators[r];return this};Ce.prototype.registerAttrEqualityMods=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],this.attrEqualityMods[r]=!0;return this};Ce.prototype.unregisterAttrEqualityMods=function(r){for(var e=0,t=arguments.length;e<t;e++)r=arguments[e],delete this.attrEqualityMods[r];return this};Ce.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this};Ce.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this};function Gm(r){return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="-"||r==="_"}function Hm(r){return r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"||r==="-"||r==="_"}function Zn(r){return r>="a"&&r<="f"||r>="A"&&r<="F"||r>="0"&&r<="9"}var Bu={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},qm={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},Ru={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},Du={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'};function Wm(r,e,t,n,i,o,s){var a,l,c,u,f;return u=r.length,a=null,this.options=s,c=function(g,m){var p,y,x;for(x="",e++,a=r.charAt(e);e<u;){if(a===g)return e++,x;if(a==="\\")if(e++,a=r.charAt(e),a===g)x+=g;else if(p=m[a])x+=p;else if(Zn(a)){for(y=a,e++,a=r.charAt(e);Zn(a);)y+=a,e++,a=r.charAt(e);a===" "&&(e++,a=r.charAt(e)),x+=String.fromCharCode(parseInt(y,16));continue}else x+=a;else x+=a;e++,a=r.charAt(e)}return x},l=function(g){var m="";for(a=r.charAt(e);e<u;){if(Hm(a)||g&&g[a])m+=a;else if(a==="\\"){if(e++,e>=u)throw Error("Expected symbol but end of file reached.");if(a=r.charAt(e),Bu[a])m+=a;else if(Zn(a)){var p=a;for(e++,a=r.charAt(e);Zn(a);)p+=a,e++,a=r.charAt(e);a===" "&&(e++,a=r.charAt(e)),m+=String.fromCharCode(parseInt(p,16));continue}else m+=a}else return m;e++,a=r.charAt(e)}return m},f=function(){a=r.charAt(e);for(var g=!1;a===" "||a===" "||a===`
`||a==="\r"||a==="\f";)g=!0,e++,a=r.charAt(e);return g},this.parse=function(){var g=this.parseSelector();if(e<u)throw Error('Rule expected but "'+r.charAt(e)+'" found.');return g},this.parseSelector=function(){var g,m=g=this.parseSingleSelector();for(a=r.charAt(e);a===",";){if(e++,f(),g.type!=="selectors"&&(g={type:"selectors",selectors:[m]}),m=this.parseSingleSelector(),!m)throw Error('Rule expected after ",".');g.selectors.push(m)}return g},this.parseSingleSelector=function(){f();let g=r.slice(e,e+4).match(/^(\>{1,3}|\+|~)/);var m={type:"ruleSet"},p=g?Object.assign([],{type:"rule",isScope:!0}):this.parseRule();if(!p)return null;for(var y=m;p&&(p.type="rule",y==p||(y.rule=p,y=p),f(),a=r.charAt(e),!(e>=u||a===","||a===")"));)if(i[a]){var x=a;if(x==">"&&r.charAt(e+1)==">"&&r.charAt(e+2)==">"?(x=">>>",e=e+3):x==">"&&r.charAt(e+1)==">"?(x=">>",e=e+2):e++,f(),p=this.parseRule(null),!p)if(x==">"||x==">>>"||x==">>")p=ei({tagName:"*"});else throw Error('Rule expected after "'+x+'".');p.nestingOperator=x}else p=this.parseRule(y);return m},this.parseSubRule=function(g="is",m=!1,p=!1){let y={name:g,valueType:"selector",up:!0};if(m){let x=this.parseRule();x.type="rule",y.value={type:"ruleSet",rule:x},p&&(y.after=x.rule=ei({tagName:"*",nestingOperator:null,type:"rule"}))}else{let x=this.parseSelector();y.value=x}return y},this.parseRule=function(g){for(var m=null,p=!1,y=!1,x=!1,_=!1,h={},v=0;e<u;){if(a=r.charAt(e),h={},a=="!"&&(x=!0,a=r.charAt(++e),m=m||g,h.not=!0),a=="@"&&r.charAt(e+1)==".")m=m||g,h.implicitScope=!0,e++,a=".";else if(a=="@"&&r.charAt(e+1)=="@")h.implicitScope=!0,h.base=this.options.tags?.[0],h.base&&(h.base="."+h.base.cssid()),_=h,m=m||g,e++,r.charAt(e+1)=="."&&(e++,a=".",h.implicitScope=!0);else if(a=="."&&r.charAt(e+1)=="."){_=h,m=m||g,h.implicitScope=!0,e++;let E=r.charAt(e+1);(E=="%"||E=="$"||E=="@")&&(a=E,e++)}for(;a=="^";)a=r.charAt(++e),m=m||g,h.implicitScope=!0,v++;if(h.up=v,h.closest=_,a==="&")e++,(m=m||[]).isScope=!0;else if(a==="^"){e++;let E=this.parseSubRule("is",!0,!0);(m=m||g||[]).push(E)}else if(a==="*")e++,(m=m||[]).tagName="*";else if(Gm(a)||a==="\\")(m=m||[]).tagName=l();else if(a==="$")e++,h.flag="$"+l(),h.ref=!0,(m=m||[]).push(h);else if(a==="%")e++,h.flag=a+l(),(m=m||[]).push(h);else if(a==="."){e++;let E=r.charAt(e++);E=="!"&&(h.not=!0,E=""),E+=l({}),h.flag=E,(m=m||[]).push(h)}else if(a==="#")e++,(m=m||[]).id=l();else if(a==="["){e++,f();var b=h.attr={name:l()};if(f(),a==="]")e++;else{var w="";if(n[a]&&(w=a,e++,a=r.charAt(e)),e>=u)throw Error('Expected "=" but end of file reached.');if(a!=="=")throw Error('Expected "=" but "'+a+'" found.');b.operator=w+"=",e++,f();var d="";if(b.valueType="string",a==='"')d=c('"',Du);else if(a==="'")d=c("'",Ru);else if(o&&a==="$")e++,d=l(),b.valueType="substitute";else{for(;e<u&&a!=="]";)d+=a,e++,a=r.charAt(e);d=d.trim()}if(f(),e>=u)throw Error('Expected "]" but end of file reached.');if(a!=="]")throw Error('Expected "]" but "'+a+'" found.');e++,b.value=d}(m=m||[]).push(h)}else if(a===":"||a==="@"){if(a==":"&&r.charAt(e+1)==":"){(m=m||g||[]).pseudoElement=l({":":!0});continue}e++,h.name=a;var k=h;let E=r.charAt(e++);if(E=="!"&&(h.not=!0,E=""),E+=l({"~":!0,"+":!0,".":!1,">":!0,"<":!0}),E=="unimportant"){p=!0,h.type="unimportant",(m=m||g||[]).push(h);continue}if(h.name+=E,h.pseudo=E,a==="("){e++;var S="";if(f(),t[E]==="selector")k.valueType="selector",S=this.parseSelector();else{if(k.valueType=t[E]||"string",a==='"')S=c('"',Du);else if(a==="'")S=c("'",Ru);else if(o&&a==="$")e++,S=l(),k.valueType="substitute";else{for(;e<u&&a!==")";)S+=a,e++,a=r.charAt(e);S=S.trim()}f()}if(e>=u)throw Error('Expected ")" but end of file reached.');if(a!==")")throw Error('Expected ")" but "'+a+'" found.');e++,k.value=S}(m=m||g||[]).push(h)}else break}return m},this}Ce.prototype.parse=function(r,e){var t=new Wm(r,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled,e);return t.parse()};Ce.prototype.escapeIdentifier=function(r){for(var e="",t=0,n=r.length;t<n;){var i=r.charAt(t);if(Bu[i])e+="\\"+i;else if(i==="_"||i==="-"||i>="A"&&i<="Z"||i>="a"&&i<="z"||t!==0&&i>="0"&&i<="9")e+=i;else{var o=i.charCodeAt(0);if((o&63488)===55296){var s=r.charCodeAt(t++);if((o&64512)!==55296||(s&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");o=((o&1023)<<10)+(s&1023)+65536}e+="\\"+o.toString(16)+" "}t++}return e};Ce.prototype.escapeStr=function(r){for(var e="",t=0,n=r.length,i,o;t<n;)i=r.charAt(t),i==='"'?i='\\"':i==="\\"?i="\\\\":(o=qm[i])&&(i=o),e+=i,t++;return'"'+e+'"'};Ce.prototype.render=function(r,e={}){return this._renderEntity(r,null,e).trim()};var Um=null,Vu=":where(:root,:not(:root))";function Km(r){return r&&r!=="*"?`:where(${r})`:Vu}function Ym(r,e,t){if(e>5)return`${r} ${t}`;for(var n=r,i=1;i<e;i++)n+=` > ${Vu}`;return`${n} > ${t}`}Ce.prototype._renderEntity=function(r,e,t={}){var n,i,o;switch(o="",r.type){case"ruleSet":for(n=r.rule,Um=r,i=[];n;)n.nestingOperator&&i.push(n.nestingOperator),i.push(this._renderEntity(n,null,t)),n=n.rule;if(r.media?.length&&(t.media=r.media),r.container?.length&&(t.container=r.container),r.scopeFrom){let m=r.scopeFrom.map(this._renderEntity,this).join(" ");t.scopeFrom=m}r.scopeTo&&(t.scopeTo=r.scopeTo),o=i.join(" ");break;case"selectors":o=r.selectors.map(this._renderEntity,this).join(", ");break;case"rule":let s=r.s1,a=r.s2,l=r.tagName;if(l)if(l==="*")o="*";else{let m=Tr[l]||l=="svg"||l.indexOf("-")>0,p=this.escapeIdentifier(l);m?o=p:o=`:is(${p},${p}-tag)`}r.id&&(o+="#"+this.escapeIdentifier(r.id));let c=0,u=r.length,f,g=()=>(f===void 0&&(f=o),Km(f));for(;c<u;){let m=null,p=r[c++],y=p.attr,x=p.flag,_="",h=p.not,v=h,b=p.pseudo?p:null,w=Pr[p.pseudo];if(w?.raw){let d=h?w.rawneg:w.raw;p.pseudo=="lighty"&&o==":root"?d=h?":not(.@light)":".@light":p.pseudo=="darky"&&o==":root"&&(d=h?":not(.@dark)":".@dark"),o+=d.replace(/\.\@/g,".\\@");continue}if(!(p.media||p.skip||p.container)){if(w&&w.flag&&(x=w.flag,b=null),w&&w.type=="el"&&(b=null,r.pseudoElement||(r.pseudoElement="::"+p.pseudo)),w&&w.type=="@"&&(b=null,r.pseudoElement||(r.pseudoElement="@"+p.pseudo)),x&&(_="."+this.escapeIdentifier(x)),y&&(y.operator?y.valueType==="substitute"?_="["+this.escapeIdentifier(y.name)+y.operator+"$"+y.value+"]":_="["+this.escapeIdentifier(y.name)+y.operator+this.escapeStr(y.value)+"]":_="["+this.escapeIdentifier(y.name)+"]"),b){let d=(w&&w.name)??b.pseudo,k=this.escapeIdentifier(d);w&&w.valueType&&(b=w);let S="",E=b.value||b.name,O=":"+k;if(w&&w.type=="pseudoel"&&(O=":"+O),b.valueType)b.valueType==="selector"?_=O+"("+this._renderEntity(b.value,e,t)+")"+S:b.valueType==="substitute"?_=O+"($"+b.value+")"+S:b.valueType==="numeric"||b.valueType==="raw"||b.valueType==="string"?_=O+"("+b.value+")"+S:_=O+"("+this.escapeIdentifier(b.value)+")"+S;else if(b.type=="el")_=":"+O;else if(!w)_=`.\\@${k}`;else if(w.shim){let I=h?":not":":is";_=`.\\@${w.shim==!0?k:w.shim}`,_=`${I}(:${typeof w.native=="string"?w.native:k},${_})`,h=!1}else w.flag?_=`.\\@${k}`:_=O+S}if(p.closest){let d=r.filter(S=>S.closest==p);d.map(S=>S.closest=null),p.not=!1;let k=this._renderEntity(ei({type:"rule"},d),null,t);d.map(S=>S.skip=!0),p.base&&(k=`${p.base}${k}`),_=`:${v?"not":"is"}(${k} ${g()})`,h=!1}else if(p.up){if(v){let d=Object.assign({},p,{not:!1,up:0,closest:!1,skip:!1});_=this._renderEntity(ei({type:"rule"},[d]),null,t)}_=`:${v?"not":"is"}(${Ym(_,p.up,g())})`,h=!1}h&&(_=`:not(${_})`),o+=_}}if(s>0)for(;--s>=0;)o+=":not(#_)";if(a>0)for(;--a>=0;)o+=":not(._0)";r.pseudoElement&&(o+=r.pseudoElement);break;default:throw Error('Unknown entity type: "'+r.type(+'".'))}return o};var Xt=new Ce;Xt.registerSelectorPseudos("has","not","is","matches","any","where");Xt.registerNumericPseudos("nth-child");Xt.registerNestingOperators(">>>",">>",">","+","~");Xt.registerAttrEqualityMods("^","$","*","~");var zu=function(r,e){return Xt.parse(r,e)},Gu=function(r,e={}){return Xt.render(r,e)};function ze(r){let e;return r&&((e=r.toIterable)?e.call(r):r)}function Hu(r,e){return r[r.length+e]}function qu(r,e){return r===e||e?.[Xm]?.(r)||!1}var Xm=Symbol.for("#matcher"),Wu=Symbol.for("#rules"),Qm=Symbol.for("#string"),Zm=Symbol.for("#media"),eg=Symbol.for("#container");function Ku(r,e){return r.unshift({flag:e}),r}function Uu(r,e){return Ku(r,e),r.metas||(r.metas=[]),r.metas.push(e),r}function Yu(r,e,t={}){if(r.type=="selectors")for(let w=0,d=ze(r.selectors),k=d.length;w<k;w++){let S=d[w];Yu(S,r,t)}if(r.type!="ruleSet")return r;let n=r,i=0,o=0,s=0,a=0;r.meta={},r.scopeTo=null,r.media=[],r.container=[];let l=[],c=r.rule;for(;c;)l.push(c),c=c.rule;let u=l.slice(0).reverse();for(let w=0,d=ze(u),k=d.length;w<k;w++){let S=d[w],E=u[w+1];for(let O=0,I=ze(S),P=I.length;O<P;O++){let T=I[O];T.up>0&&E&&(T.up-=1,E.push(T),S[O]={})}}let f=l[0],g=null,m=null,p=!1,y=!!t.global,x=!1,_=0;if(l[0]?.tagName=="*"){l[0].nestingOperator=">>>";let w=l[0];l[0].length==0&&l[1]&&(w=l[1],w.nestingOperator=">>>"),l.unshift(r.rule=Object.assign([],{type:"rule",rule:w,isScope:!0,nestingOperator:">>>"}))}for(let w=0,d=ze(l),k=d.length;w<k;w++){let S=d[w],E=l[w-1],O=l[w+1],I=S.tagName,P=S.slice(0),T=S.op=S.nestingOperator;if(I=="*"&&(P.length==0&&O&&E&&!y&&(E.rule=O,O.op=O.nestingOperator=">>>"),g||(g=E),p||(p=S),y=!0,S.op=">>>"),w==0&&!I&&!T&&(S[0]?.pseudo||S[0]?.implicitScope)&&(S.implicitScope=!0),T==">>"?(g=E,p=S,S.nestingOperator=">",y=!0):T==">>>"&&(g=E,p=S,S.nestingOperator=null,y=!0),y||(S.isScoped=!0),I=="html"&&(S.isRoot=!0),P.some(function(R){return R.pseudo=="root"})&&(S.isRoot=!0),I=="self"||S.isScope){for(let R=0,L=ze(l.slice(0,w)),B=L.length;R<B;R++){let C=L[R];C.isScoped=!1}S.isScope=!0,S.isScoped=!1,S.tagName=null}(I=="body"||I=="html")&&(S.isScoped=!1),t.ns&&(!O||O.nestingOperator==">>>")&&!g&&!m&&(S.isScope,g=S);for(let R=0,L=ze(P),B=L.length,C,F;R<B;R++){let M=L[R],z=M.pseudo,D=Pr[M.pseudo],J=/^(\!)?(\d+)([a-z]+)?$/;if(C=z?.match?.(J)){let N=parseInt(C[2]);C[1]=="!"&&(M.not=!M.not);let q={w:"width",h:"height","":"width"}[C[3]||""],K=M.not?"(max-"+q+": "+(N-1)+"px)":"(min-"+q+": "+N+"px)";M.closest?M.container=K:M.media=K}if(z=="scoped"){try{F=t.scope.cssid()}catch{}M.pseudo=null;let N=[];for(;Hu(S,-1)!=M;)N.unshift(S.pop());r.scopeFrom=l.slice(0,w+1),r.scopeTo="."+F,y=!0,r.rule=[{pseudo:"scope"}].concat(N),r.rule.type="rule",r.rule.rule=O}if(z=="scope-to"){M.scopeTo=M.value,M.pseudo=null;let N=[];for(;Hu(S,-1)!=M;)N.unshift(S.pop());r.scopeFrom=l.slice(0,w+1),r.scopeTo=M.value,r.rule=[{pseudo:"scope"}].concat(N),r.rule.type="rule",r.rule.rule=O}(z=="important"||z=="force")&&(M.pseudo=null,M.important=!0,_+=1),D?.scrollstate&&(M.container=D.scrollstate),D?.media&&(M.not?D.medianeg&&(M.media=D.medianeg):M.media=D.media),D?.container&&(M.not?D.containerneg&&(M.container=D.containerneg):M.container=D.media),M.pseudo=="media"&&(M.media="("+M.value+")"),z=="local"?(M.remove=!0,t.hasScopedStyles=!0,t.ns&&Ku(S,t.ns)):z=="off"||z=="out"||z=="in"?(x=!0,(e||r).hasTransitionStyles=!0,(e||r)["_"+z+"_"]=!0):(M.name=="enter"||M.name=="leave")&&((e||r)["_"+z+"_"]=!0),M.media&&r.media.push(M.media),M.container&&r.container.push(M.container),(qu(z,"odd")||qu(z,"even"))&&Object.assign(M,D)}}let h=l[l.length-1],v=l.find(function(w){return w.isScope});if(!v&&(t.id||l[0].nestingOperator||l[0].tagName=="*")){let w=l.findIndex(function(k){return k.isScoped}),d=0>=w?r:l[w-1];v=d.rule=Object.assign([],{isScope:!0,rule:l[w],type:"rule"})}!v&&l[0].implicitScope&&(l[0].isScope=!0,v=l[0],v.isScoped=!1);for(let w=0,d=ze(l),k=d.length;w<k;w++){let S=d[w];if(S.isScoped&&t.scope){let E=t.scope.cssns();Uu(S,E)}}if(v&&t.scope&&!(!v.length&&v!=h&&v==l[0]&&!t.id&&(!v.rule||!v.rule.op))){let w=t.id||(t.scope.cssid?t.scope.cssid():t.scope.cssns());Uu(v,w)}let b=0;for(let w=0,d=ze(l),k=d.length;w<k;w++){let S=d[w];if(S.isScope)continue;!(S.metas?.length||0)&&S.length&&(b+=1)}return b>1&&(b=1),a=b,t.inline&&(s=3,a=0),t.type=="component"&&(s=h.isScope?0:1),t.type=="scoped"&&(s=h.isScope?2:1),x&&(s=4),s+=_,t.respecify!==!1&&(h.s1=Math.max(o,s),h.s2=a),t.respecify===!1&&(h.s1=h.s2=0),r}function us(r,e={}){let t=[[]],n=[t],i=r.selectors||[r];r[Wu]=[];for(let o=0,s=ze(i),a=s.length;o<a;o++){let l=s[o],c={media:"",scopeFrom:null,scopeTo:null,container:null},u=Gu(l,c);l[Qm]=u;let f=[];if(c.scopeTo){let g="@scope ("+c.scopeFrom+") to ("+c.scopeTo+")";f.push(g)}if(c.media){let g="@media "+c.media.join(" and ");f.push(l[Zm]=g)}if(c.container){let g="@container "+c.container.join(" and ");l[eg]=g,f.push(g)}for(let g=0,m=ze(f),p=m.length;g<p;g++){let y=m[g];if(t[0][g]!=y){n.push(t=[f]);break}}t.push(u),r[Wu].push(l)}return n}function Ju(r,e,t={},n={}){let i=us(r,t),o=[],s=n.indent||"",a=s;for(let l=0,c=ze(i),u=c.length;l<u;l++){let[f,...g]=c[l];if(g.length==0)continue;let m=g.join(",")+" {$CONTENT$}";for(let p=0,y=ze(f.toReversed()),x=y.length;p<x;p++){let _=y[p];a+=" ",m=_+"{ "+m+" }"}o.push(m)}return o.join(`
`).replace(/\$CONTENT\$/g,e+s)}function fs(r,e){let t=r.split(","),n=e.split(","),i=[];for(let o=0,s=ze(n),a=s.length;o<a;o++){let l=s[o];for(let c=0,u=ze(t),f=u.length;c<f;c++){let g=u[c],m=l;m.indexOf("&")>=0?m=m.replace("&",g):m=g+" "+m,i.push(m)}}return i.join(",")}function hs(r,e){let t=zu(r,e);return t&&Yu(t,null,e)}var V={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},jr=V;for(let r of Object.keys(V)){if(!("channels"in V[r]))throw new Error("missing channels property: "+r);if(!("labels"in V[r]))throw new Error("missing channel labels property: "+r);if(V[r].labels.length!==V[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=V[r];delete V[r].channels,delete V[r].labels,Object.defineProperty(V[r],"channels",{value:e}),Object.defineProperty(V[r],"labels",{value:t})}V.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),o=Math.max(e,t,n),s=o-i,a,l;o===i?a=0:e===o?a=(t-n)/s:t===o?a=2+(n-e)/s:n===o&&(a=4+(e-t)/s),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+o)/2;return o===i?l=0:c<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,c*100]};V.rgb.hsv=function(r){let e,t,n,i,o,s=r[0]/255,a=r[1]/255,l=r[2]/255,c=Math.max(s,a,l),u=c-Math.min(s,a,l),f=function(g){return(c-g)/6/u+1/2};return u===0?(i=0,o=0):(o=u/c,e=f(s),t=f(a),n=f(l),s===c?i=n-t:a===c?i=1/3+e-n:l===c&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,c*100]};V.rgb.hwb=function(r){let e=r[0],t=r[1],n=r[2],i=V.rgb.hsl(r)[0],o=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[i,o*100,n*100]};V.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(1-e,1-t,1-n),o=(1-e-i)/(1-i)||0,s=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};V.rgb.xyz=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124564+t*.3575761+n*.1804375,o=e*.2126729+t*.7151522+n*.072175,s=e*.0193339+t*.119192+n*.9503041;return[i*100,o*100,s*100]};V.rgb.lab=function(r){let e=V.rgb.xyz(r),t=e[0],n=e[1],i=e[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(t-n),a=200*(n-i);return[o,s,a]};V.rgb.lch=function(r){return V.lab.lch(V.rgb.lab(r))};V.hsl.lch=function(r){return V.rgb.lch(V.hsl.rgb(r))};V.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,i,o,s;if(t===0)return s=n*255,[s,s,s];n<.5?i=n*(1+t):i=n+t-n*t;let a=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[c]=s*255;return l};V.hsl.hsv=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,i=t,o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+t)/2,a=n===0?2*i/(o+i):2*t/(n+t);return[e,a*100,s*100]};V.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,n=r[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-t),a=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};V.hsv.hsl=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,i=Math.max(n,.01),o,s;s=(2-t)*n;let a=(2-t)*i;return o=t*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};V.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,i=t+n,o;i>1&&(t/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,s&1&&(o=1-o);let l=t+o*(a-t),c,u,f;switch(s){default:case 6:case 0:c=a,u=l,f=t;break;case 1:c=l,u=a,f=t;break;case 2:c=t,u=a,f=l;break;case 3:c=t,u=l,f=a;break;case 4:c=l,u=t,f=a;break;case 5:c=a,u=t,f=l;break}return[c*255,u*255,f*255]};V.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,i=r[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};V.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,i,o,s;return i=e*3.2404542+t*-1.5371385+n*-.4985314,o=e*-.969266+t*1.8760108+n*.041556,s=e*.0556434+t*-.2040259+n*1.0572252,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};V.xyz.lab=function(r){let e=r[0],t=r[1],n=r[2];e/=95.047,t/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*t-16,o=500*(e-t),s=200*(t-n);return[i,o,s]};V.lab.xyz=function(r){let e=r[0],t=r[1],n=r[2],i,o,s;o=(e+16)/116,i=t/500+o,s=o-n/200;let a=o**3,l=i**3,c=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};V.lab.lch=function(r){let e=r[0],t=r[1],n=r[2],i;i=Math.atan2(n,t)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(t*t+n*n);return[e,s,i]};V.lch.lab=function(r){let e=r[0],t=r[1],i=r[2]/360*2*Math.PI,o=t*Math.cos(i),s=t*Math.sin(i);return[e,o,s]};V.rgb.ansi16=function(r,e=null){let[t,n,i]=r,o=e===null?V.rgb.hsv(r)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return o===2&&(s+=60),s};V.hsv.ansi16=function(r){return V.rgb.ansi16(V.hsv.rgb(r),r[2])};V.rgb.ansi256=function(r){let e=r[0],t=r[1],n=r[2];return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};V.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,n=(e&1)*t*255,i=(e>>1&1)*t*255,o=(e>>2&1)*t*255;return[n,i,o]};V.ansi256.rgb=function(r){if(r>=232){let o=(r-232)*10+8;return[o,o,o]}r-=16;let e,t=Math.floor(r/36)/5*255,n=Math.floor((e=r%36)/6)/5*255,i=e%6/5*255;return[t,n,i]};V.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};V.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let n=parseInt(t,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};V.hex.hsl=function(r){return V.rgb.hsl(V.hex.rgb(r))};V.hex.lch=function(r){return V.rgb.lch(V.hex.rgb(r))};V.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(Math.max(e,t),n),o=Math.min(Math.min(e,t),n),s=i-o,a,l;return s<1?a=o/(1-s):a=0,s<=0?l=0:i===e?l=(t-n)/s%6:i===t?l=2+(n-e)/s:l=4+(e-t)/s,l/=6,l%=1,[l*360,s*100,a*100]};V.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=t<.5?2*e*t:2*e*(1-t),i=0;return n<1&&(i=(t-.5*n)/(1-n)),[r[0],n*100,i*100]};V.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=e*t,i=0;return n<1&&(i=(t-n)/(1-n)),[r[0],n*100,i*100]};V.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-t)*n,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};V.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e),i=0;return n>0&&(i=e/n),[r[0],i*100,n*100]};V.hcg.hsl=function(r){let e=r[1]/100,n=r[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[r[0],i*100,n*100]};V.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};V.hwb.hcg=function(r){let e=r[1]/100,n=1-r[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[r[0],i*100,o*100]};V.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};V.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};V.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};V.gray.hsl=function(r){return[0,0,r[0]]};V.gray.hsv=V.gray.hsl;V.gray.hwb=function(r){return[0,100,r[0]]};V.gray.cmyk=function(r){return[0,0,0,r[0]]};V.gray.lab=function(r){return[r[0],0,0]};V.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};var rg={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Ie=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t+0},Ke=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r>e?r:e},of=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},Xu=function(r){return{r:Ke(r.r,0,255),g:Ke(r.g,0,255),b:Ke(r.b,0,255),a:Ke(r.a)}},ps=function(r){return{r:Ie(r.r),g:Ie(r.g),b:Ie(r.b),a:Ie(r.a,3)}},ng=/^#([0-9a-f]{3,8})$/i,ti=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},sf=function(r){var e=r.r,t=r.g,n=r.b,i=r.a,o=Math.max(e,t,n),s=o-Math.min(e,t,n),a=s?o===e?(t-n)/s:o===t?2+(n-e)/s:4+(e-t)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},af=function(r){var e=r.h,t=r.s,n=r.v,i=r.a;e=e/360*6,t/=100,n/=100;var o=Math.floor(e),s=n*(1-t),a=n*(1-(e-o)*t),l=n*(1-(1-e+o)*t),c=o%6;return{r:255*[n,a,s,s,l,n][c],g:255*[l,n,n,a,s,s][c],b:255*[s,s,l,n,n,a][c],a:i}},Qu=function(r){return{h:of(r.h),s:Ke(r.s,0,100),l:Ke(r.l,0,100),a:Ke(r.a)}},Zu=function(r){return{h:Ie(r.h),s:Ie(r.s),l:Ie(r.l),a:Ie(r.a,3)}},ef=function(r){return af((t=(e=r).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},Cr=function(r){return{h:(e=sf(r)).h,s:(i=(200-(t=e.s))*(n=e.v)/100)>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,t,n,i},ig=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,og=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ag=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gs={string:[[function(r){var e=ng.exec(r);return e?(r=e[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Ie(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?Ie(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var e=sg.exec(r)||ag.exec(r);return e?e[2]!==e[4]||e[4]!==e[6]?null:Xu({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(r){var e=ig.exec(r)||og.exec(r);if(!e)return null;var t,n,i=Qu({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(rg[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ef(i)},"hsl"]],object:[[function(r){var e=r.r,t=r.g,n=r.b,i=r.a,o=i===void 0?1:i;return mt(e)&&mt(t)&&mt(n)?Xu({r:Number(e),g:Number(t),b:Number(n),a:Number(o)}):null},"rgb"],[function(r){var e=r.h,t=r.s,n=r.l,i=r.a,o=i===void 0?1:i;if(!mt(e)||!mt(t)||!mt(n))return null;var s=Qu({h:Number(e),s:Number(t),l:Number(n),a:Number(o)});return ef(s)},"hsl"],[function(r){var e=r.h,t=r.s,n=r.v,i=r.a,o=i===void 0?1:i;if(!mt(e)||!mt(t)||!mt(n))return null;var s=function(a){return{h:of(a.h),s:Ke(a.s,0,100),v:Ke(a.v,0,100),a:Ke(a.a)}}({h:Number(e),s:Number(t),v:Number(n),a:Number(o)});return af(s)},"hsv"]]},tf=function(r,e){for(var t=0;t<e.length;t++){var n=e[t][0](r);if(n)return[n,e[t][1]]}return[null,void 0]},lg=function(r){return typeof r=="string"?tf(r.trim(),gs.string):typeof r=="object"&&r!==null?tf(r,gs.object):[null,void 0]};var ds=function(r,e){var t=Cr(r);return{h:t.h,s:Ke(t.s+100*e,0,100),l:t.l,a:t.a}},ms=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},rf=function(r,e){var t=Cr(r);return{h:t.h,s:t.s,l:Ke(t.l+100*e,0,100),a:t.a}},bs=function(){function r(e){this.parsed=lg(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return Ie(ms(this.rgba),2)},r.prototype.isDark=function(){return ms(this.rgba)<.5},r.prototype.isLight=function(){return ms(this.rgba)>=.5},r.prototype.toHex=function(){return e=ps(this.rgba),t=e.r,n=e.g,i=e.b,s=(o=e.a)<1?ti(Ie(255*o)):"","#"+ti(t)+ti(n)+ti(i)+s;var e,t,n,i,o,s},r.prototype.toRgb=function(){return ps(this.rgba)},r.prototype.toRgbString=function(){return e=ps(this.rgba),t=e.r,n=e.g,i=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+i+", "+o+")":"rgb("+t+", "+n+", "+i+")";var e,t,n,i,o},r.prototype.toHsl=function(){return Zu(Cr(this.rgba))},r.prototype.toHslString=function(){return e=Zu(Cr(this.rgba)),t=e.h,n=e.s,i=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+i+"%, "+o+")":"hsl("+t+", "+n+"%, "+i+"%)";var e,t,n,i,o},r.prototype.toHsv=function(){return e=sf(this.rgba),{h:Ie(e.h),s:Ie(e.s),v:Ie(e.v),a:Ie(e.a,3)};var e},r.prototype.invert=function(){return et({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},r.prototype.saturate=function(e){return e===void 0&&(e=.1),et(ds(this.rgba,e))},r.prototype.desaturate=function(e){return e===void 0&&(e=.1),et(ds(this.rgba,-e))},r.prototype.grayscale=function(){return et(ds(this.rgba,-1))},r.prototype.lighten=function(e){return e===void 0&&(e=.1),et(rf(this.rgba,e))},r.prototype.darken=function(e){return e===void 0&&(e=.1),et(rf(this.rgba,-e))},r.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},r.prototype.alpha=function(e){return typeof e=="number"?et({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ie(this.rgba.a,3);var t},r.prototype.hue=function(e){var t=Cr(this.rgba);return typeof e=="number"?et({h:e,s:t.s,l:t.l,a:t.a}):Ie(t.h)},r.prototype.isEqual=function(e){return this.toHex()===et(e).toHex()},r}(),et=function(r){return r instanceof bs?r:new bs(r)},nf=[],lf=function(r){r.forEach(function(e){nf.indexOf(e)<0&&(e(bs,gs),nf.push(e))})};var ug={grad:.9,turn:360,rad:360/(2*Math.PI)},ys=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Qt=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t+0},gt=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r>e?r:e},vs=function(r){var e=r/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},ws=function(r){return 255*(r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r)},xs=96.422,_s=100,ks=82.521,fg=function(r){var e,t,n={x:.9555766*(e=r).x+-.0230393*e.y+.0631636*e.z,y:-.0282895*e.x+1.0099416*e.y+.0210077*e.z,z:.0122982*e.x+-.020483*e.y+1.3299098*e.z};return t={r:ws(.032404542*n.x-.015371385*n.y-.004985314*n.z),g:ws(-.00969266*n.x+.018760108*n.y+41556e-8*n.z),b:ws(556434e-9*n.x-.002040259*n.y+.010572252*n.z),a:r.a},{r:gt(t.r,0,255),g:gt(t.g,0,255),b:gt(t.b,0,255),a:gt(t.a)}},hg=function(r){var e=vs(r.r),t=vs(r.g),n=vs(r.b);return function(i){return{x:gt(i.x,0,xs),y:gt(i.y,0,_s),z:gt(i.z,0,ks),a:gt(i.a)}}(function(i){return{x:1.0478112*i.x+.0228866*i.y+-.050127*i.z,y:.0295424*i.x+.9904844*i.y+-.0170491*i.z,z:-.0092345*i.x+.0150436*i.y+.7521316*i.z,a:i.a}}({x:100*(.4124564*e+.3575761*t+.1804375*n),y:100*(.2126729*e+.7151522*t+.072175*n),z:100*(.0193339*e+.119192*t+.9503041*n),a:r.a}))},Mr=216/24389,Zt=24389/27,ff=function(r){return{l:gt(r.l,0,100),c:r.c,h:(e=r.h,(e=isFinite(e)?e%360:0)>0?e:e+360),a:r.a};var e},cf=function(r){return{l:Qt(r.l,2),c:Qt(r.c,2),h:Qt(r.h,2),a:Qt(r.a,3)}},pg=function(r){var e=r.l,t=r.c,n=r.h,i=r.a,o=i===void 0?1:i;if(!ys(e)||!ys(t)||!ys(n))return null;var s=ff({l:Number(e),c:Number(t),h:Number(n),a:Number(o)});return hf(s)},uf=function(r){var e=function(o){var s=hg(o),a=s.x/xs,l=s.y/_s,c=s.z/ks;return a=a>Mr?Math.cbrt(a):(Zt*a+16)/116,{l:116*(l=l>Mr?Math.cbrt(l):(Zt*l+16)/116)-16,a:500*(a-l),b:200*(l-(c=c>Mr?Math.cbrt(c):(Zt*c+16)/116)),alpha:s.a}}(r),t=Qt(e.a,3),n=Qt(e.b,3),i=Math.atan2(n,t)/Math.PI*180;return{l:e.l,c:Math.sqrt(t*t+n*n),h:i<0?i+360:i,a:e.alpha}},hf=function(r){return e={l:r.l,a:r.c*Math.cos(r.h*Math.PI/180),b:r.c*Math.sin(r.h*Math.PI/180),alpha:r.a},n=e.a/500+(t=(e.l+16)/116),i=t-e.b/200,fg({x:(Math.pow(n,3)>Mr?Math.pow(n,3):(116*n-16)/Zt)*xs,y:(e.l>8?Math.pow((e.l+16)/116,3):e.l/Zt)*_s,z:(Math.pow(i,3)>Mr?Math.pow(i,3):(116*i-16)/Zt)*ks,a:e.alpha});var e,t,n,i},dg=/^lch\(\s*([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)\s+([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,mg=function(r){var e=dg.exec(r);if(!e)return null;var t,n,i=ff({l:Number(e[1]),c:Number(e[2]),h:(t=e[3],n=e[4],n===void 0&&(n="deg"),Number(t)*(ug[n]||1)),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return hf(i)};function pf(r,e){r.prototype.toLch=function(){return cf(uf(this.rgba))},r.prototype.toLchString=function(){return t=cf(uf(this.rgba)),n=t.l,i=t.c,o=t.h,(s=t.a)<1?"lch("+n+"% "+i+" "+o+" / "+s+")":"lch("+n+"% "+i+" "+o+")";var t,n,i,o,s},e.string.push([mg,"lch"]),e.object.push([pg,"lch"])}lf([pf]);function Ss(r){let e=et(r).toLch();return[e.l,e.c,e.h,e.a]}function fe(r){let e;return r&&((e=r.toIterable)?e.call(r):r)}function rr(r,e){return typeof e=="string"?typeof r===e:e[Symbol.hasInstance]?.(r)}function df(r,e){return r===e||e?.[gg]?.(r)||!1}function mf(r,e){return r[r.length+e]}var _f,Es=Symbol.for("#lcha"),gg=Symbol.for("#matcher"),Os=Symbol.for("#stack"),Fr=Symbol.for("#parts"),Nr=Symbol.for("#apply"),ri=Symbol.for("#register"),yt=Symbol.for("#string"),bg=Symbol.for("#media"),yg=Symbol.for("#rules");var vg=null,gf=new WeakMap,kf={vflex:function(r){return r.display="flex",r.fld="column"},hflex:function(r){return r.display="flex",r.fld="row"},box:function(r){return r.display="flex",r.ai="center",r.jc="center"},vbox:function(r){return r.display="flex",r.fld="column",r.ai="center",r.jc="center"},hbox:function(r){return r.display="flex",r.fld="row",r.ai="center",r.jc="center"},lbox:function(r){return r.display="flex",r.fld="row",r.ai="center",r.jc="flex-start"},rbox:function(r){return r.display="flex",r.fld="row",r.ai="center",r.jc="flex-end"},tbox:function(r){return r.display="flex",r.fld="column",r.ai="center",r.jc="flex-start"},bbox:function(r){return r.display="flex",r.fld="column",r.ai="center",r.jc="flex-end"},hgrid:function(r){return r.display="grid",r.gaf="column",r.gac="1fr"},vgrid:function(r){return r.display="grid",r.gaf="row"}};_f=0;for(let r of fe("vh")){let e=_f++;for(let t of fe("tcbs"))for(let n of fe("lcrs")){let i={t:"flex-start",b:"flex-end",c:"center",s:e?"stretch":"space-between"},o={l:"flex-start",r:"flex-end",c:"center",s:e?"space-between":"stretch"},s=""+r+t+n,a={display:"flex",fld:e?"row":"column",jc:e?o[n]:i[t],ai:e?i[t]:o[n],ac:e?i[t]:o[n]};kf[s]=function(l){return Object.assign(l,a),l}}}var ni={ease:"linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end|stepsƒ|cubic-bezierƒ"};for(let r=0,e=Object.keys(ni),t=e.length,n,i;r<t;r++){n=e[r],i=ni[n];let o={};for(let s=0,a=fe(i.split("|")),l=a.length;s<l;s++){let c=a[s];o[c]=1}ni[n]=o}var Lr={c:"color",d:"display",pos:"position",p:"padding",pl:"padding-left",pr:"padding-right",pt:"padding-top",pb:"padding-bottom",px:"padding-x",py:"padding-y",m:"margin",ml:"margin-left",mr:"margin-right",mt:"margin-top",mb:"margin-bottom",mx:"margin-x",my:"margin-y",w:"width",h:"height",t:"top",b:"bottom",l:"left",r:"right",s:"size",mih:"min-height",mah:"max-height",miw:"min-width",maw:"max-width",ji:"justify-items",jc:"justify-content",js:"justify-self",j:["justify-content","justify-items"],ai:"align-items",ac:"align-content",as:"align-self",a:["align-content","align-items"],jai:"place-items",jac:"place-content",jas:"place-self",ja:"justify-align",fl:"flex",flf:"flex-flow",fld:"flex-direction",flb:"flex-basis",flg:"flex-grow",fls:"flex-shrink",flw:"flex-wrap",ff:"font-family",fs:"font-size",fw:"font-weight",ts:"text-shadow",txs:"text-shadow",td:"text-decoration",tdl:"text-decoration-line",tdc:"text-decoration-color",tds:"text-decoration-style",tdt:"text-decoration-thickness",tdsi:"text-decoration-skip-ink",tuo:"text-underline-offset",te:"text-emphasis",tec:"text-emphasis-color",tes:"text-emphasis-style",tep:"text-emphasis-position",tet:"text-emphasis-thickness",tt:"text-transform",ta:"text-align",va:"vertical-align",ls:"letter-spacing",lh:"line-height",bd:"border",bdr:"border-right",bdl:"border-left",bdt:"border-top",bdb:"border-bottom",bdx:"border-x",bdy:"border-y",bs:"border-style",bsr:"border-right-style",bsl:"border-left-style",bst:"border-top-style",bsb:"border-bottom-style",bsx:"border-x-style",bsy:"border-y-style",bw:"border-width",bwr:"border-right-width",bwl:"border-left-width",bwt:"border-top-width",bwb:"border-bottom-width",bwx:"border-x-width",bwy:"border-y-width",bc:"border-color",bcr:"border-right-color",bcl:"border-left-color",bct:"border-top-color",bcb:"border-bottom-color",bcx:"border-x-color",bcy:"border-y-color",rd:"border-radius",rdtl:"border-top-left-radius",rdtr:"border-top-right-radius",rdbl:"border-bottom-left-radius",rdbr:"border-bottom-right-radius",rdt:"border-top-radius",rdb:"border-bottom-radius",rdl:"border-left-radius",rdr:"border-right-radius",bg:"background",bgp:"background-position",bgc:"background-color",bgr:"background-repeat",bgi:"background-image",bga:"background-attachment",bgs:"background-size",bgo:"background-origin",bgclip:"background-clip",g:"gap",rg:"row-gap",cg:"column-gap",gtr:"grid-template-rows",gtc:"grid-template-columns",gta:"grid-template-areas",gar:"grid-auto-rows",gac:"grid-auto-columns",gaf:"grid-auto-flow",gcg:"grid-column-gap",grg:"grid-row-gap",ga:"grid-area",gr:"grid-row",gc:"grid-column",gt:"grid-template",grs:"grid-row-start",gcs:"grid-column-start",gre:"grid-row-end",gce:"grid-column-end",shadow:"box-shadow",bxs:"box-shadow",of:"overflow",ofx:"overflow-x",ofy:"overflow-y",ofa:"overflow-anchor",tof:"text-overflow",prefix:"content@before",suffix:"content@after",x:"x",y:"y",z:"z",rotate:"rotate",scale:"scale","scale-x":"scale-x","scale-y":"scale-y","skew-x":"skew-x","skew-y":"skew-y",origin:"transform-origin",ws:"white-space",zi:"z-index",pe:"pointer-events",us:"user-select",o:"opacity",tween:"transition",e:"ease-styles",ea:"ease-all",ead:"ease-all-duration",eaf:"ease-all-function",eaw:"ease-all-delay",es:"ease-styles",esd:"ease-styles-duration",esf:"ease-styles-function",esw:"ease-styles-delay",eo:"ease-opacity",eod:"ease-opacity-duration",eof:"ease-opacity-function",eow:"ease-opacity-delay",ec:"ease-colors",ecd:"ease-colors-duration",ecf:"ease-colors-function",ecw:"ease-colors-delay",eb:"ease-box",ebd:"ease-box-duration",ebf:"ease-box-function",ebw:"ease-box-delay",et:"ease-transform",etd:"ease-transform-duration",etf:"ease-transform-function",etw:"ease-transform-delay",ol:"outline",olo:"outline-offset",olc:"outline-color",ols:"outline-style",olw:"outline-width"},Ps={};for(let r=0,e=Object.keys(Lr),t=e.length,n,i;r<t;r++)n=e[r],i=Lr[n],typeof i=="string"&&(Ps[i]=n);function bf(r){return!!(r._value&&r._value._type=="NUMBER"&&!r._unit)}function $s(r){let e=parseFloat(r);return typeof r=="string"&&r.indexOf("%")>0&&(e=e/100),e}function Ts(r,e="hsl"){let t;if(Yn[r]&&(r=Yn[r]),e=="lch")return Ss(r);if(r[0]=="#"){let n=jr.hex.rgb(r);return jr.rgb.hsl(n)}if(t=r.match(/^(hsla?|rgba?)\((.+)\)$/)){let[n,i,o,s=""]=t[2].replace(/[\,\/]/g," ").split(/\s+/g),a;return n=$s(n),i=$s(i),o=$s(o),e=="lch"?jr.rgb.lch([n,i,o]):((t[1]=="rgb"||t[1]=="rgba")&&(a=jr.rgb.hsl([parseFloat(n),parseFloat(i),parseFloat(o)])),(t[1]=="hsl"||t[1]=="hsla")&&(a=[parseFloat(n),parseFloat(i),parseFloat(o)]),a)}return null}var wg=Symbol(),tr=class tr{static from(e){if(typeof e=="string"){if(e[0]=="#"&&!e.match(/^\#([A-Fa-f0-9]{6})([A-Fa-f0-9]{2})?$/))return new Is(e.slice(1));e=Ts(e)}return rr(e,Array)?new this("",e[0],e[1],e[2]):null}constructor(e,t,n,i,o=1){this.name=e,this.h=t,this.s=n,this.l=i,this.a=o}lcha(){return this[Es]||(this[Es]=Ss("hsla("+this.h+" "+this.s+"% "+this.l+"% / "+this.a+")"))}alpha(e=1){return new tr(this.name,this.h,this.s,this.l,e)}clone(){return new tr(this.name,this.h,this.s,this.l,this.a)}mix(e,t=.5,n=.5,i=.5){let o=this.h+(e.h-this.h)*t,s=this.s+(e.s-this.s)*n,a=this.l+(e.l-this.l)*i;return new tr(this.name+e.name,o,s,a)}toString(e=this.a){return typeof e=="string"&&e[0]=="$"&&(e="var(--"+e.slice(1)+",100%)"),"hsla("+this.h.toFixed(2)+","+this.s.toFixed(2)+"%,"+this.l.toFixed(2)+"%,"+e+")"}toVar(e=2){return""+Math.round(this.h)+","+Math.round(this.s)+"%,"+Math.round(this.l)+"%"}toLchString(){let[e,t,n,i]=this.lcha();return"lcha("+e.toFixed(2)+" "+t.toFixed(2)+" "+n.toFixed(2)+"% / "+i+")"}c(){return this.toString()}};Q(tr,wg,"Color",16);var tt=tr,xg=Symbol(),js=class js extends tt{toVar(){return"var(--c_"+this.name+")"}};Q(js,xg,"NamedColor",0);var Is=js,_g=Symbol(),Rr=class Rr extends tt{alpha(e=1){return new Rr(this.name,this.h,this.s,this.l,e)}clone(){return new Rr(this.name,this.h,this.s,this.l,this.a)}toString(e=this.a){return typeof e=="string"&&e[0]=="$"&&(e="var(--"+e.slice(1)+",100%)"),"hsla(var(--"+this.name+"),"+e+")"}toVar(e=2){return"var(--"+this.name+")"}};Q(Rr,_g,"Tint",0);var As=Rr,kg=Symbol(),oi=class oi{static parse(e){let t=String(e).match(/^(\-?[\d\.]+)(\w+|%)?$/);return t?new this(parseFloat(t[1]),t[2]):null}constructor(e,t){this.number=e,this.unit=t}valueOf(){return this.number}toString(){return this.number+(this.unit||"")}clone(e=this.number,t=this.unit){return new oi(e,t)}rounded(){return this.clone(Math.round(this.number))}c(){return this.toString()}get _unit(){return this.unit}get _number(){return this.number}};Q(oi,kg,"Length",16);var er=oi,Sg=Symbol(),Cs=class Cs{constructor(e,t){this.name=e,this.fallback=t}c(){return this.fallback?"var(--"+this.name+","+(this.fallback.c?this.fallback.c():String(this.fallback))+")":"var(--"+this.name+")"}};Q(Cs,Sg,"Var",16);var Nt=Cs,Eg=Symbol(),Ms=class Ms{constructor(e){this.expr=e}cpart(e){let t="(";for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n];typeof s=="string"?t+=" "+s+" ":typeof s=="number"?t+=s:rr(s.c,Function)?t+=s.c():rr(s,Array)&&(t+=this.cpart(s))}return t+=")",t}c(){return"calc"+this.cpart(this.expr)}};Q(Ms,Eg,"Calc",16);var yf=Ms,Sf={current:{string:"currentColor",c:function(){return"currentColor"}},transparent:new tt("transparent",0,0,100,"0%"),clear:new tt("transparent",100,100,100,"0%"),black:new tt("black",0,0,0,"100%"),white:new tt("white",0,0,100,"100%")};function Ef(r,e){for(let t=0,n=Object.keys(e),i=n.length,o,s;t<i;t++){if(o=n[t],s=e[o],typeof s=="string"){r[o]=s;continue}for(let a=0,l=Object.keys(s),c=l.length,u,f;a<c;a++){u=l[a],f=s[u];let g=o+u;if(r[f])r[g]=r[f];else{let[m,p,y]=Ts(f),x=r[g]=new tt(g,m,p,y,"100%")}}}return r}Ef(Sf,ss);var Og="cm mm Q in pc pt px em ex ch rem vw vh vmin vmax % s ms fr deg rad grad turn Hz kHz".split(" "),$g=Symbol(),Fs=class Fs{static instance(){return vg||(vg=new this)}static propAbbr(e){return Ps[e]||e}static wrap(e){if(!e)return this.instance();let t=gf.get(e);return t||gf.set(e,t=new this(e)),t}constructor(e={}){this.options=as,this.palette=Object.assign({},Sf),e.theme&&(e=e.theme),e&&e.colors&&Ef(this.palette,e.colors)}expandProperty(e){return Lr[e]||void 0}expandValue(e,t){if(e==null&&(e=t.default),t.hasOwnProperty(e)&&(e=t[e]),typeof e=="number"&&t.NUMBER){let[n,i,o]=t.NUMBER.match(/^(\-?[\d\.]+)(\w+|%)?$/);return e*parseFloat(i)+o}return e}padding_x([e,t=e]){return{"padding-left":e,"padding-right":t}}padding_y([e,t=e]){return{"padding-top":e,"padding-bottom":t}}margin_x([e,t=e]){return{"margin-left":e,"margin-right":t}}margin_y([e,t=e]){return{"margin-top":e,"margin-bottom":t}}ease(e){return this.$ease(e,"s")}ease_all(e){return this.$ease(e,"a")}ease_opacity(e){return this.$ease(e,"o")}ease_styles(e){return this.$ease(e,"s")}ease_box(e){return this.$ease(e,"b")}ease_transform(e){return this.$ease(e,"t")}ease_colors(e){return this.$ease(e,"c")}$ease(e,t="",n=null){e=e.slice(0);let i={__ease__:t};if(e[0]?.unit&&(i["--e_"+t+"d"]=e[0],e.shift()),e[0]&&!e[0].unit){let o=this.$varFallback("ease",[e[0]]);i["--e_"+t+"f"]=o,e.shift()}return e[0]&&e[0].unit&&(i["--e_"+t+"w"]=e[0],e.shift()),i}inset([e,t=e,n=e,i=t]){return{position:"absolute",top:e,right:t,bottom:n,left:i}}grid(e){let t;if(t=this.$varFallback("grid",e))return t}animation(...e){let t={normal:1,reverse:1,alternate:1,"alternate-reverse":1,infinite:2,none:3,forwards:3,backwards:3,both:3,running:4,paused:4},n={};for(let i=0,o=fe(e),s=o.length;i<s;i++){let a=o[i],l=null,c=null;for(let u=0,f=fe(a),g=f.length;u<g;u++){let m=f[u],p=String(m),y=t[p];ni.ease[p]&&!c?c=!0:y?(n[y]&&(l=[u,p]),n[y]=!0):p.match(/^[^\d\.]/)&&p.indexOf("(")==-1&&(l?c=[u,p]:l=[u,p])}if(l&&(a[l[0]]=new Nt("animation-"+l[1],l[1])),rr(c,Array)){let u=this.options.variants.easings[c[1]];a[c[0]]=new Nt("ease-"+c[1],u)}}return{animation:e}}animation_timing_function(...e){for(let t=0,n=fe(e),i=n.length;t<i;t++){let o=n[t],s=this.$varFallback("ease",o);s&&(e[t]=s)}return e}animation_name(...e){let t;for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n],a=this.$varFallback("animation",s);a&&(e[n]=a)}return e}display(e){let t={display:e};for(let n=0,i=fe(e),o=i.length,s;n<o;n++){let a=i[n];(s=kf[String(a)])&&s.call(this,t,a,e)}return t}text_transform(e){let t={"text-transform":e},n=String(e[0]);return df(n,"cap")?t["text-transform"]="capitalize":df(n,"up")&&(t["text-transform"]="uppercase"),t}position(e){let t={position:e},n=String(e[0]);return n=="abs"?t.position="absolute":n=="rel"&&(t.position="relative"),t}width([...e]){let t={};for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n],a=s._options||{},l=s._unit;l=="c"||l=="col"||l=="cols"?t["grid-column-end"]="span "+s._number:a.op&&String(a.op)==">"?t["min-width"]=s:a.op&&String(a.op)=="<"?t["max-width"]=s:t.width=s}return t}height([...e]){let t={};for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n],a=s._options||{},l=s._unit;l=="r"||l=="row"||l=="rows"?t["grid-row-end"]="span "+s._number:a.op&&String(a.op)==">"?t["min-height"]=s:a.op&&String(a.op)=="<"?t["max-height"]=s:t.height=s}return t}transition(...e){let t={},n={},i=["name | duration","name | duration | delay","name | duration | ease","name | duration | ease | delay"],o={styles:["background-color","border-color","color","fill","stroke","opacity","box-shadow","transform"],sizes:["width","height","left","top","right","bottom","margin","padding"],colors:["background-color","border-color","color","fill","stroke"]},s=0;for(;s<e.length;){let a=e[s],l=String(a[0]);l.match(/^[\-\+]?\d?(\.?\d+)(s|ms)?$/)&&a.unshift(l="styles");let c=a[2],u=o[l];if(u&&e.length==0)a[0]="none",Object.assign(n,{"transition-property":u.join(",")});else if(u&&e.length>1){let f=u.map(function(g){return[g].concat(a.slice(1))});e.splice(s,1,...f);continue}s++}return Object.assign(t,{"--e_rest":e},n),t}font(e,...t){for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n]}}font_family(e){let t;if(t=this.$varFallback("font",e))return t}text_shadow(...e){for(let t=0,n=fe(e),i=n.length,o;t<i;t++){let s=n[t];(o=this.$varFallback("text-shadow",s))&&(e[t]=o)}return e}box_shadow(...e){let t={"box-shadow":e};for(let n=0,i=fe(e),o=i.length;n<o;n++){let s=i[n],a=!1;for(let l=0,c=fe(s),u=c.length;l<u;l++){let f=c[l];if(l==0&&s.length<3){let g=String(f);g.match(/^[\w\-]+$/)&&(a=g,s[l]=new Nt("box-shadow-"+g,f))}l==1&&a&&(t["--bxs-"+a+"-color"]="/*##*/"+f,f.param&&(t["--bxs-"+a+"-alpha"]=f.param.toAlpha()),f.set({parameterize:!0}),s[l]="")}}return t}grid_template(e){for(let t=0,n=fe(e),i=n.length;t<i;t++){let o=n[t];bf(o)&&(o._resolvedValue="repeat("+o._value+",1fr)")}}grid_template_columns(e){return this.grid_template(e)}grid_template_rows(e){return this.grid_template(e)}size([e,t=e]){return{width:e,height:t}}font_size([e]){let t=this.options.variants["font-size"],n=String(e),i=e,o,s={};if(t[n]&&([i,o]=t[n],i=er.parse(i),o=er.parse(o||"")),e.param&&e.param&&(o=e.param),s["font-size"]=i,o){let a=o._unit,l=o._number;if(s.lh=o,a=="fs")s.lh=new er(l);else if(a)s.lh=o;else if(l==0)s.lh="inherit";else if(l&&i._unit=="px"){let c=Math.round(i._number*l);c%2==1&&c++,s.lh=new er(c,"px")}}return s}line_height([e]){let t=e;return e._number&&!e._unit&&(t=e.clone(e._number,"em")),{"line-height":e,"--u_lh":t}}text_decoration(e){for(let t=0,n=fe(e),i=n.length;t<i;t++){let o=n[t],s=String(o);s=="u"?o._resolvedValue="underline":s=="s"&&(o._resolvedValue="line-through")}return[e]}border([...e]){return this.$border(e,"")}$border(e,t=""){var o;let n={__border__:!0},i=e.length;if(i==3)return n["border"+t]=[e],n;if(this.isNumeric(e[0])){if(i==2&&this.isColorish(e[1]))return e.splice(1,0,"solid"),n["border"+t]=[e],n;n["border"+t+"-style"]="solid",n["border"+t+"-width"]=e.shift()}return this.isColorish(e[0])&&(i==1?n["border"+t]=[["1px","solid",e.shift()]]:(n[o="border"+t+"-width"]||(n[o]="1px"),n["border"+t+"-style"]="solid",n["border"+t+"-color"]=e.shift())),e[0]&&(n["border"+t+"-style"]=e[0]),n}border_left(e){return this.$border(e,"-left")}border_right(e){return this.$border(e,"-right")}border_top(e){return this.$border(e,"-top")}border_bottom(e){return this.$border(e,"-bottom")}border_x(e){return this.$border(e,"-inline")}border_y(e){return this.$border(e,"-block")}border_x_width([e,t=e]){return{bwl:e,bwr:t}}border_y_width([e,t=e]){return{bwt:e,bwb:t}}border_x_style([e,t=e]){return{bsl:e,bsr:t}}border_y_style([e,t=e]){return{bst:e,bsb:t}}border_x_color([e,t=e]){return{bcl:e,bcr:t}}border_y_color([e,t=e]){return{bct:e,bcb:t}}border_top_radius(e){return{"border-top-left-radius":[e],"border-top-right-radius":[e]}}border_left_radius(e){return{"border-top-left-radius":[e],"border-bottom-left-radius":[e]}}border_bottom_radius(e){return{"border-bottom-left-radius":[e],"border-bottom-right-radius":[e]}}border_right_radius(e){return{"border-top-right-radius":[e],"border-bottom-right-radius":[e]}}justify_align([e,t=e]){let n={};return e==t?n["place-items"]=n["place-content"]=e:(n["justify-content"]=n["justify-items"]=e,n["align-content"]=n["align-items"]=t),n}outline(e){if(e.length==3||e.length==1&&String(e[0])=="none")return{outline:[e]};let t={__outline__:!0};return this.isNumeric(e[0])&&(t.olw=e.shift()),this.isColorish(e[0])&&(t.olc=e.shift()),t.olw||(t["--ol_w"]="1px"),t}gap([e,t=e]){let n={};return t!=e?n={"row-gap":e,"column-gap":t}:(n={gap:e},e._unit!="rg"&&(n["--u_rg"]=e),e._unit!="cg"&&(n["--u_cg"]=e)),n}row_gap([e]){let t={"row-gap":e};return e._unit!="rg"&&(t["--u_rg"]=e),t}column_gap([e]){let t={"column-gap":e};return e._unit!="cg"&&(t["--u_cg"]=e),t}tint([e]){let t={"--hue":e};for(let n=0;n<10;n++)t["--hue"+n]="/*##*/"+e+n;return t}hue([e]){let t={"--hue":e};for(let n=0;n<10;n++)t["--hue"+n]="/*##*/"+e+n;return t}colormix(e,t){let n={},i="--c_"+e,o=t[0][0],[s,a,l,c]=[null,null,null,1];return o?.lcha?[s,a,l,c]=o.lcha():rr(o?._resolvedValue,tt)&&([s,a,l,c]=o._resolvedValue.lcha(),o.param&&o.param.toAlpha&&(c=o.param.toAlpha())),typeof s=="number"&&(s=Math.round(s*10)/10),typeof a=="number"&&(a=Math.round(a*10)/10),typeof l=="number"&&(l=Math.round(l*10)/10),s!=null&&(n["--u_"+e+"L"]=s,n["--u_"+e+"C"]=a,n["--u_"+e+"H"]=l?._resolvedValue??l,n["--u_"+e+"A"]=c??1),n}$color(e){let t,n=e.match(/^([A-Za-z\-]+)(\d)(\d*)$/),i=n&&n[1];if(i&&typeof this.palette[i]=="string")return this.$color(this.palette[i]+e.slice(i.length));if(i=="hue")return new As(e);if(this.palette[e])return this.palette[e];if(n){let o=parseInt(n[2]),s=n[3]?parseFloat("0."+n[3]):0,a=null,l=null,c=o+1,u=o;if(typeof this.palette[i]=="string")return this.$color(this.palette[i]+e.slice(i.length));for(;c>1&&!a;)a=this.palette[i+--c];for(;u<9&&!l;)l=this.palette[i+ ++u];let f=(o-c+s)/(u-c),g=f,m=f,p=f;if(l||(l=this.palette.black,g=0,m=p=s),a||(a=this.palette.blue1,g=1,m=p=1-s),a&&l)return this.palette[e]=a.mix(l,g,m,p)}return(t=Ts(e))?new tt("",...t):null}isNumeric(e){return!!(bf(e)||typeof e=="number"||String(e).match(/^[\-\+]?\d?(\.?\d+)(\w+|%)?$/))}isColorish(e){return!!this.$parseColor(e)}$parseColor(e){let t,n=String(e);return(t=this.$color(n))?t:n.match(/^#[a-fA-F0-9]{3,8}/)||n.match(/^(rgb|hsl)/)||n=="currentColor"?e:null}$varFallback(e,t,n=[]){if(t.length==1){let i=String(t[0]),o=t[0];if(n.push("none","initial","unset","inherit"),n.indexOf(i)==-1&&i.match(/^[\w\-]+$/))return e=="font"&&Kn[i]&&(o=Kn[i]),e=="ease"&&this.options.variants.easings[i]&&(o=this.options.variants.easings[i]),[new Nt(""+e+"-"+i,o)]}}$value(e,t,n){let i,o=n,s=e,a=e&&e.toRaw?e.toRaw():String(e),l=String(e),c=!1,u=null,f=s._unit;if(typeof n=="string"){if(Lr[n]&&(n=Lr[n],rr(n,Array)&&(n=n[0])),n.match(/^((min-|max-)?(width|height)|top|left|bottom|right|padding|margin|sizing|inset|spacing|sy$|s$|\-\-s[xy])/))n="sizing";else if(n.match(/^\-\-[gs][xy]_/))n="sizing";else if(n.match(/^(row-|column-)?gap/))n="sizing";else if(n.match(/^[mps][trblxy]?$/))n="sizing";else if(n.match(/^[trblwh]$/))n="sizing";else if(n.match(/^e[otbca]?f$/)||n.match(/^ease(-\w+)?-function$/))n="easings",c="ease";else if(n.match(/^border-.*radius/)||n.match(/^rd[tlbr]{0,2}$/))n="radius",c="border-radius";else if(n.match(/^tween|transition/)&&this.options.variants.easings[a])return this.options.variants.easings[a];n=this.options.variants[n]||{}}if(e==null&&(e=n.default),n.hasOwnProperty(a)&&(e=n[e]),typeof a=="number"&&n.NUMBER){let[g,m,p]=n.NUMBER.match(/^(\-?[\d\.]+)(\w+|%)?$/);return e*parseFloat(m)+p}else if(typeof a=="string"&&(i=this.$parseColor(a)))return i;if(c&&!f){let g=l.match(/^[a-zA-Z\-][\w\-]*$/)&&!l.match(/^(none|inherit|unset|initial)$/),m=f&&Og.indexOf(f)==-1;if((g||m)&&e.alone)return new Nt(""+c+"-"+l,s!=e?e:a)}return e}transformColors(e){var t=this;return e=e.replace(/\/\*(#+)\*\/(\#?\w+)(?:\/(\d+%?|\$[\w\-]+))?/g,function(n,i,o,s){let a;if(a=t.$color(o)){if(i=="#")return a.toString(s,i);if(i=="##")return a.toVar(s)}return n}),e}};Q(Fs,$g,"StyleTheme",16);var ii=Fs,Ig={transform:{specificity:0,body:`--t_x:0;--t_y:0;--t_rotate:0;
--t_scale:1;--t_scale-x:1;--t_scale-y:1;
transform: translate(var(--t_x),var(--t_y)) rotate(var(--t_rotate))
scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale));`},transform_complex:{specificity:0,body:`--t_z:0;--t_skew-x:0;--t_skew-y:0;
transform: translate3d(var(--t_x),var(--t_y),var(--t_z))
rotate(var(--t_rotate))
skewX(var(--t_skew-x)) skewY(var(--t_skew-y))
scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale)) !important;`},outline:{body:`--ol_s:solid;--ol_w:1px;--ol_o:0px; --ol_c:transparent;
outline:var(--ol_w) var(--ol_s) var(--ol_c); outline-offset:var(--ol_o);
outline:1px solid transparent; outline-offset:var(--ol_o);`},ease:{body:`--e_ad:0ms;--e_af:cubic-bezier(0.23, 1, 0.32, 1);--e_aw:0ms;
--e_sd:var(--e_ad);--e_sf:var(--e_af);--e_sw:var(--e_aw);
--e_od:var(--e_sd);--e_of:var(--e_sf);--e_ow:var(--e_sw);
--e_cd:var(--e_sd);--e_cf:var(--e_sf);--e_cw:var(--e_sw);
--e_bd:var(--e_sd);--e_bf:var(--e_sf);--e_bw:var(--e_sw);
--e_td:var(--e_bd);--e_tf:var(--e_bf);--e_tw:var(--e_bw);
--e_b:var(--e_bd) var(--e_bf) var(--e_bw);
--e_c:var(--e_cd) var(--e_cf) var(--e_cw);
--e_rest:any;
transition:
all var(--e_ad) var(--e_af) var(--e_aw),
opacity var(--e_od) var(--e_of) var(--e_ow),
transform var(--e_td) var(--e_tf) var(--e_tw),
color var(--e_c),background-color var(--e_c),border-color var(--e_c),fill var(--e_c),stroke var(--e_c), outline-color var(--e_c), box-shadow var(--e_c), filter var(--e_c),
inset var(--e_b), width var(--e_b),height var(--e_b),max-width var(--e_b),max-height var(--e_b),min-width var(--e_b),min-height var(--e_b),border-width var(--e_b),outline-width var(--e_b),stroke-width var(--e_b),margin var(--e_b),padding var(--e_b),
var(--e_rest);`}},vf={"user-select":["-webkit-user-select"],appearance:["-webkit-appearance"],"backdrop-filter":["-webkit-backdrop-filter"],"mask-image":["-webkit-mask-image"]},Ag=Symbol(),Ns=class Ns{constructor(e){this[Os]=e,this[Fr]=[],this[Nr]={transform_complex:[],transform:[]},this[ri]={},this.transforms=null}get transitions(){return this[ri].transition}add(e,t={}){var n;if(this[Fr].push(e),t.apply)for(let i=t.apply,o=0,s=Object.keys(i),a=s.length,l,c;o<a;o++){l=s[o],c=i[l];let u=(n=this[Nr])[l]||(n[l]=[]);for(let f=0,g=fe(c),m=g.length;f<m;f++){let p=g[f];u.indexOf(p)<0&&u.push(p)}}}js(e,t){let n=[];for(let i=this[ri],o=0,s=Object.keys(i),a=s.length,l,c;o<a;o++)l=s[o],c=i[l],n.push(e.runtime().transitions+(".addSelectors("+JSON.stringify(c)+",'"+l+"')"));return n.join(`
`)}parse(){if(this[yt]!==void 0)return this[yt];if(this[Fr].length==0&&this[Nr].transform_complex.length==0&&this[Nr].transform.length==0)return this[yt]="";let e=[],t=this[Fr].slice(0),n=function(i){if(t.indexOf(i)<0)return t.unshift(i)};for(let i=this[Nr],o=0,s=Object.keys(i),a=s.length,l,c;o<a;o++){if(l=s[o],c=i[l],!c||c.length==0)continue;let u=Ig[l],f={},g={},m={"":f},p=l=="transition"||l.match(/^_(off|out|in)_sized/);for(let x=0,_=fe(c),h=_.length;x<h;x++){let v=_[x];for(let b=0,w=fe(v[yg]||[]),d=w.length;b<d;b++){let k=w[b],S=k[bg]||"",E=k[yt].replace(/:not\((#_|\._0?)+\)/g,"");(p||l=="ease")&&(E=E.replace(/\.\\@(off|out|in|on)\b/g,"")),E=E.replace(/((\:+)[\w\-]+)(?!\()/g,function(I,P){return P.length>1?I:""}),E=E.replace(/^\:root /g,"");let O=m[S]||(m[S]={});O[E]=k,g[E]=!0}}if(u)for(let x=0,_=Object.keys(m),h=_.length,v,b;x<h;x++){v=_[x],b=m[v];let w=Object.keys(b);if(v!=""&&(w=w.filter(function(O){return!f[O]})),w.length==0)continue;let d=w.sort(function(O,I){return O.length-I.length}),k=[];for(let O=0,I=fe(d),P=I.length;O<P;O++){let T=I[O];(!d.slice(0,O).find(function(B){return T.indexOf(B)>=0})||T.match(/[\s\>\,]|:(not|before|after|marker)|::/))&&k.push(T)}w=k;let E=w.join(", ")+` {
`+u.body+`
}`;v&&(E=v+` {
`+E+`
}`),t.unshift(E)}let y=Object.keys(g);l=="transition"&&y.length&&(n(".\\@enter:not(#_),.\\@leave:not(#_) {--e_ad:300ms;}"),n("._instant_:not(#_):not(#_):not(#_):not(#_) { transition-duration:0ms !important; }")),p&&(this[ri][l]=y)}return this[yt]=t.join(`
`),this[Os].resolveColors()&&(this[yt]=this[Os].theme().transformColors(this[yt],{prefix:!1})),this[yt]}toString(){try{return this.parse()}catch(e){return console.warn("failed to parse stylesheet",this[Fr],e),""}}};Q(Ns,Ag,"StyleSheet",16);var wf=Ns,Pg=Symbol(),at=class at{constructor(e,t,n,i={}){this.parent=e,this.selector=t,this.content=n,this.options=i,this.isKeyFrames=!!t.match(/\@keyframes \w/),this.isKeyFrame=e&&e.isKeyFrames,this.meta={}}root(){return this.parent?this.parent.root:this}apply(e,t){var i;return((i=this.options.apply)[e]||(i[e]=[])).push(t)}register(e,t){var i;return((i=this.options.register)[e]||(i[e]=[])).push(t)}toString(e={}){if(!this.parent&&this.selector){let u,f;try{u=hs(this.selector,this.options),f=us(u,this.options),f[1]&&f[1][0]&&([this.ownsel,...this.ownrules]=f[1])}catch(g){console.log("error",g,u,this.selector)}}let t=[],n=[],i,o="",s=[],a=e.indent||"";if(this.isKeyFrames){let[u,f]=this.selector.split(/\s*\@keyframes\s*/);u=u.trim(),f=f.trim();let g=[f,u,this.options.ns].filter(function(p){return p}).join("-");this.meta.name=f,this.meta.uniqueName=g.replace(/[\s\.\,]+/g,"").replace(/[^\w\-]/g,"_"),this.options.global&&!u&&(this.meta.uniqueName=this.meta.name);let m={};m["--animation-"+f]=""+this.meta.uniqueName,u?n.push(new at(null,u,m,this.options)):this.options.ns&&!this.options.global&&n.push(new at(null,"."+this.options.ns,m,{}))}let l=typeof this.selector=="string"&&this.selector.indexOf("@important")>=0?1:0;for(let u=this.content,f=0,g=Object.keys(u),m=g.length,p,y;f<m;f++){if(p=g[f],y=u[p],y==null)continue;let x=null,_=l?" !important":"",h=p;if(p.indexOf("&")>=0){if(this.isKeyFrames){let b=p.replace(/&/g,""),w=new at(this,b,y,this.options);t.push(w.toString({indent:a+" "}));continue}if(p.match(/@start\b/)){let[b,w]=p.split(/\s*\@start\s*/),d=new at(null,"@starting-style",y,{});t.push(d.toString({indent:a+" "}));continue}let v=fs(this.selector,p);this.ownsel&&(v=p.replace(/&/g,":scope")),n.push(new at(this,v,y,this.options));continue}else if(p.indexOf("§")>=0){let v=h.split("§"),b=v.slice(1).join(""),w=fs(this.selector,b),d={};d[v[0]]=y,(i=n[w])?i.content[v[0]]=y:(i=new at(this,w,d,this.options),n.push(n[w]=i));continue}else if(p.match(/^__(\w+)__$/))this.meta[p.slice(2,-2)]=!0;else if(p[0]=="["){let v=JSON.parse(p);n.push(new at(this,this.selector,y,this.options));continue}else if(p.match(/^(x|y|z|scale|scale-x|scale-y|skew-x|skew-y|rotate)$/))this.meta.transform||(this.meta.transform=!0),p.match(/^(z|skew-x|skew-y)$/)&&(this.meta.transform_complex=!0),t.push("--t_"+p+": "+y+" !important;");else if(p.match(/^(ease-.*)$/)){this.meta.ease=!0;let v=p.replace("delay","wait").split("-").map(function(b){return b[0]}).join("");t.push("--e_"+v.slice(1)+": "+y+" !important;"),Ps[p]||console.warn(""+p+" is not a valid style property")}else if(p.match(/^(--e_\w+)$/))this.meta.ease=!0,this.selector.match(/@in\b/),t.push(""+p+": "+y+" !important;");else if(!p.match(/^__ease__$/)){if(p.match(/^raw-/))t.push(""+p.slice(4)+": "+y+_+";");else if(p.match(/^__outline__$/))this.meta.outline=!0;else if(p.match(/^(width|height)$/)&&(this.meta.size=!0),t.push(""+p+": "+y+_+";"),vf[p])for(let v=0,b=fe(vf[p]),w=b.length;v<w;v++){let d=b[v];t.push(""+d+": "+y+_+";")}}}let c=t.map(function(u){return a+" "+u}).join(`
`);if((e.indent||this.isKeyFrames)&&(c=`
`+c+`
`),this.isKeyFrame)o=""+this.selector+" {"+c+"}";else if(this.isKeyFrames)o="@keyframes "+this.meta.uniqueName+" {"+c+"}";else{let u=this.isKeyFrame?this.selector:hs(this.selector,this.options);if(this.meta.transform&&this.apply("transform",u),this.meta.transform_complex&&this.apply("transform_complex",u),this.meta.ease&&this.apply("ease",u),this.meta.outline&&this.apply("outline",u),u&&u.hasTransitionStyles&&(this.apply("transition",u),this.meta.ease||this.apply("ease",u)),this.meta.size)for(let f=0,g=["_off_","_out_","_in_"],m=g.length;f<m;f++){let p=g[f];u[p]&&this.apply(""+p+"sized",u)}o=c.match(/[^\n\s]/)?Ju(u,c,this.options,e):"",o=a+o}if(e.indent=a,!this.parent&&this.ownsel){o="";let u=a;for(let f=0,g=fe(this.ownsel),m=g.length;f<m;f++){let p=g[f];o+=u+p+`{
`,s.push(`
`+u+"}"),u+=" "}for(let f=0,g=fe(this.ownrules),m=g.length;f<m;f++){let p=g[f];o+=u+p+` {
`,s.push(`
`+u+"}"),u+=" "}c&&(o+=t.map(function(f){return u+f}).join(`
`)),mf(this.ownrules,-1)==":scope"&&(u=u.slice(0,-1),o+=mf(s,-1),s.pop()),e.indent=u}for(let u=0,f=fe(n),g=f.length;u<g;u++){let m=f[u];o+=`
`+m.toString(e)}return e.indent=a,o+=s.toReversed().join(""),o}};Q(at,Pg,"StyleRule",16);var xf=at;var se=te(require("path")),Le=te(require("fs")),Nf=te(require("child_process"));var Ne=require("fs"),Dr=require("path"),Of=$f;function $f(r,e,t,n){var i=n;n||(i=t,t={});var o=process.cwd(),s=Dr.resolve(o,r),a=Dr.resolve(o,e),l=t.filter,c=t.rename,u=t.transform,f=t.clobber!==!1,g=t.modified,m=t.dereference,p=null,y=0,x=0,_=0,h=t.limit||$f.limit||16;h=h<1?1:h>512?512:h,v(s);function v(C){if(y++,l){if(l instanceof RegExp){if(!l.test(C))return B(!0)}else if(typeof l=="function"&&!l(C))return B(!0)}return b(C)}function b(C){var F=m?Ne.stat:Ne.lstat;if(_>=h)return setImmediate(function(){b(C)});_++,F(C,function(M,z){var D={};if(M)return L(M);if(D.name=C,D.mode=z.mode,D.mtime=z.mtime,D.atime=z.atime,z.isDirectory())return S(D);if(z.isFile())return w(D);if(z.isSymbolicLink())return I(C)})}function w(C){var F=C.name.replace(s,a);c&&(F=c(F)),R(F,function(M){if(M)return d(C,F);if(f&&k(F,function(){d(C,F)}),g){var z=m?Ne.stat:Ne.lstat;z(F,function(D,J){if(C.mtime.getTime()>J.mtime.getTime())d(C,F);else return B()})}else return B()})}function d(C,F){var M=Ne.createReadStream(C.name),z=Ne.createWriteStream(F,{mode:C.mode});M.on("error",L),z.on("error",L),u?u(M,z,C):z.on("open",function(){M.pipe(z)}),z.once("finish",function(){g&&Ne.utimesSync(F,C.atime,C.mtime),B()})}function k(C,F){Ne.unlink(C,function(M){return M?L(M):F()})}function S(C){var F=C.name.replace(s,a);R(F,function(M){if(M)return E(C,F);O(C.name)})}function E(C,F){Ne.mkdir(F,C.mode,function(M){if(M)return L(M);O(C.name)})}function O(C){Ne.readdir(C,function(F,M){return F?L(F):(M.forEach(function(z){v(Dr.join(C,z))}),B())})}function I(C){var F=C.replace(s,a);Ne.readlink(C,function(M,z){if(M)return L(M);P(z,F)})}function P(C,F){m&&(C=Dr.resolve(o,C)),R(F,function(M){if(M)return T(C,F);Ne.readlink(F,function(z,D){return z?L(z):(m&&(D=Dr.resolve(o,D)),D===C?B():k(F,function(){T(C,F)}))})})}function T(C,F){Ne.symlink(C,F,function(M){return M?L(M):B()})}function R(C,F){Ne.lstat(C,function(M){return M&&M.code==="ENOENT"?F(!0):F(!1)})}function L(C){return t.stopOnError?i(C):(!p&&t.errs?p=Ne.createWriteStream(t.errs):p||(p=[]),typeof p.write>"u"?p.push(C):p.write(C.stack+`
`),B())}function B(C){if(C||_--,x++,y===x&&_===0&&i!==void 0)return i(p||null)}}var Zs=te(require("url"));var Br=class{static strip(e){return e.indexOf("/*%")<0?e:e.replace(/\/\*\%([\w\|]*)\$\*\//g,"")}static run(e,t={}){return e.indexOf("/*%")<0?{code:e,map:null,toString(){return this.code}}:{code:e.replace(/\/\*\%([\w\|]*)\$\*\//g,""),map:null,toString(){return this.code}}}};var Lf=te(rs());var Rs=te(require("path")),Af=te(require("chokidar")),rt=Symbol.for("#watcher"),Ls={CHANGE:1,ADD:2,UNLINK:4},If=Symbol(),Ds=class Ds extends Xe{constructor(e){super(),this.fs=e,this.history=new At({withFlags:!0}),this.events=[],this.map={},this.map[e.cwd]=1,ke(this,If)}get instance(){var e=this;if(this[rt])return this[rt];let t=function(i){return i.split(Rs.default.sep).join(Rs.default.posix.sep)},n=Object.keys(this.map);return this[rt]=Af.default.watch(n,{ignoreInitial:!0,depth:1,ignored:this.isIgnored.bind(this),cwd:this.fs.cwd}),this[rt].on("change",function(i,o){return i=t(i),e.history.mark(i,Ls.CHANGE),e.emit("change",i),e.emit("touch",i)}),this[rt].on("unlink",function(i,o){return i=t(i),e.history.mark(i,Ls.UNLINK),e.emit("unlink",i),e.emit("touch",i)}),this[rt].on("add",function(i,o){return i=t(i),console.log("add",i),e.history.mark(i,Ls.ADD),e.emit("add",i),e.emit("touch",i)}),this[rt]}isIgnored(e){return!!e.match(/(\/\.(git|imba-cache|cache)\/|\.DS_Store)/)}add(...e){let t=[];for(let n=0,i=H(e),o=i.length;n<o;n++){let s=i[n];this.map[s]||(this.map[s]=!0,t.push(s))}return this[rt]&&t.length&&this[rt].add(t),this}close(){if(this[rt])return this[rt].close()}has(e){return!!this.map[e]}sync(e){return this.history.pull(e)}start(){return this.instance,this}};Q(Ds,If,"Watcher",16);var Vr=Ds;var Bs=Symbol.for("#distInsideRoot"),Vs=Symbol.for("#baseurl"),zs=Symbol.for("#outfs"),Gs=Symbol.for("#theme"),Hs=Symbol.for("#githash"),zr=Symbol.for("#buildcache"),qs=Symbol.for("#_id_"),Ws=Symbol.for("#bundles"),Lt=Symbol.for("#watchedPaths"),Us=Symbol.for("#bundler"),Pf=Symbol.for("#watching"),Ks=Symbol.for("#rebuildTimeout"),si=Symbol.for("#csschunk"),Rt=Symbol.for("#file"),Dt=Symbol.for("#contents"),Tg=Symbol.for("#output"),Ys=Symbol.for("#type"),Tf=Symbol.for("#ordered"),Js=Symbol.for("#errors"),Xs=Symbol.for("#text"),Qs=Symbol.for("#hash"),jf=Symbol.for("#listening");globalThis.E=function(){return process.stderr.write("\x1B[31m"),console.error(...arguments),process.stderr.write("\x1B[0m"),process.exit(1)};var jg=0,Cf=Symbol(),ea=class ea{constructor(e=null){this[we](e),ke(this,Cf)}[we](e=null,t=!0,n=!0){var i;this.startAt=e&&(i=e.startAt)!==void 0?i:Date.now(),this.refs=e&&(i=e.refs)!==void 0?i:{},this.inputs=e&&(i=e.inputs)!==void 0?i:{},this.outputs=e&&(i=e.outputs)!==void 0?i:new Set,this.bundlers=e&&(i=e.bundlers)!==void 0?i:{},this.meta=e&&(i=e.meta)!==void 0?i:{},this.styles=e&&(i=e.styles)!==void 0?i:{},this.entries=e&&(i=e.entries)!==void 0?i:{}}get elapsed(){return Date.now()-this.startAt}};Q(ea,Cf,"Builder",16);var ai=ea,Mf=Symbol(),vt=class vt extends Xe{[we](e=null,t=!0,n=!0){var i;t&&super[we]&&super[we](...arguments),this.hasGlobStylesheet=e?e.hasGlobStylesheet:void 0,this.builtΦ=e&&(i=e.builtΦ)!==void 0?i:!1}get o(){return this.options}get nodeΦ(){return this.platform=="node"}get nodeworkerΦ(){return this.platform=="nodeworker"}get webworkerΦ(){return this.platform=="webworker"}get workerΦ(){return this.webworkerΦ||this.nodeworkerΦ}get nodeishΦ(){return this.nodeΦ||this.nodeworkerΦ}get webΦ(){return!this.nodeishΦ}get webishΦ(){return this.webΦ||this.webworkerΦ}get esmΦ(){return!this.o.format||this.o.format=="esm"}get cjsΦ(){return this.o.format=="cjs"}get iifeΦ(){return this.o.format=="iife"}get htmlΦ(){return this.o.format=="html"}get sourcemappedΦ(){return!!this.esoptions.sourcemap}get buildΦ(){return this.program.command=="build"}get watchΦ(){return!!this.program.watch}get serveΦ(){return this.program.command=="serve"||this.root.entryPoints[0].match(/\.html$/)&&!this.buildΦ}get runΦ(){return!this.buildΦ}get forkΦ(){return(!this.program.watch||this.program.fork)&&this.program.instances==1}get standaloneΦ(){return!!this.program.bundle}get staticΦ(){return!!this.program.web||this.root.htmlΦ}get minifyΦ(){return this.o.minify??this.program.minify??!1}get sourcemapΦ(){return this.o.sourcemap??this.program.sourcemap??!1}get devΦ(){return this.program.mode=="development"}get productionΦ(){return this.program.mode=="production"}get hmrΦ(){return this.program.hmr==!0||this.program.watch==!0}get mainΦ(){return this.root==this}get outdir(){return this.program.outdir||this.fs.cwd}get outbase(){return this.o.outbase||this.fs.cwd}get assetsDir(){return this.o.assetsDir||this.program.assetsDir||"assets"}get pubdir(){return this.buildΦ&&this.staticΦ?".":"public"}get distInsideRootΦ(){return this[Bs]??(this[Bs]=/^(\.\/|\w)/.test(se.default.relative(this.fs.cwd,this.outdir)))}urlForOutputPath(e){let t=se.default.relative(se.default.resolve(this.program.cwd,this.program.outdir),e);return this.baseurl&&(t=this.baseurl+t),t}get baseurl(){return this[Vs]||(this[Vs]=((this.program.baseurl||this.program.base||"")+"/").replace(/\/+$/g,"/"))}get fs(){return this.program.fs}get outfs(){var e;return(e=this.root)[zs]||(e[zs]=new Tt(this.program.outdir,this.program))}get imbaconfig(){return this.program.config}get theme(){var e;return(e=this.imbaconfig)[Gs]||(e[Gs]=new ii(this.imbaconfig))}get githash(){var e;try{return(e=this.root)[Hs]||(e[Hs]=JSON.stringify(Nf.default.execSync("git rev-parse --short HEAD",{stdio:["ignore","pipe","ignore"]}).toString().trim()))}catch{}}get root(){return this.parent?this.parent.root:this}get buildcache(){return this.root[zr]}[Symbol.toPrimitive](e){return this[qs]||(this[qs]=Symbol())}async terminate(){return await this.watcher?.close?.(),await(async()=>{try{return await this.root.context?.dispose?.()}catch(e){return e}})(),process.exit(1)}constructor(e,t){var l;var n,i;super(),super[we]||this[we](),this[Ws]={web:{},node:{}},this[Lt]={},this[zr]={},_e(e,vt)?(this.parent=e,this.program=e.program):this.program=e,this.nr=jg++,this.styles={},this.options=t,this.result=null,this.firstBuild=null,this.workers=null,this.built=!1,this.meta={},this.cwd=this.fs.cwd,this.platform=t.platform||"browser",this.entryPoints=t.entryPoints||[],this.builder=null,this.parent?this.watcher=this.parent.watcher:this.program.watch&&(this.watcher||(this.watcher=new Vr(this.fs)));let o=[],s=this.program.package||{};this.peerDependencies=Object.keys(s.peerDependencies||{}),this.devDependencies=Object.keys(s.devDependencies||{});for(let c=0,u=H(t.external||[]),f=u.length;c<f;c++){let g=u[c];if(g=="dependencies"){let m=Object.keys(s.dependencies||{});o.push(...m),this.runΦ&&o.push(...this.devDependencies)}g=="devDependencies"&&o.push(...this.devDependencies),g=="peerDependencies"&&o.push(...this.peerDependencies),g=="builtins"&&o.push(...Object.keys(Tu)),g==".json"&&o.push("*.json"),o.push(g)}if(o=o.filter(function(c){return!t.external||t.external.indexOf("!"+c)==-1}),this.buildΦ&&this.peerDependencies.length)for(let c=0,u=H(this.peerDependencies),f=u.length;c<f;c++){let g=u[c],m=o.indexOf("!"+g);m>=0&&o.splice(m,1),o.push(g)}if(o=o.filter(function(c,u,f){return f.indexOf(c)==u}),this.externals=o,this.esoptions={entryPoints:this.entryPoints,bundle:t.bundle!==!1,define:t.define,platform:this.nodeishΦ?"node":"browser",format:t.format||"esm",outfile:t.outfile,outdir:this.program.outdir,globalName:t.globalName,publicPath:this.baseurl||"/",assetNames:""+this.assetsDir+"/[name].[hash]",chunkNames:""+this.assetsDir+"/chunks/[name].[hash]",entryNames:t.entryNames||""+this.assetsDir+"/[name].[hash]",conditions:["imba"],banner:{js:"//__HEAD__"+(t.banner?`
`+t.banner:"")},footer:{js:t.footer||"//__FOOT__"},splitting:t.splitting,sourcemap:this.sourcemapΦ,minifySyntax:!0,minifyWhitespace:this.minifyΦ&&t.format!="html",minifyIdentifiers:this.minifyΦ&&t.format!="html",legalComments:"inline",loader:Object.assign({},Ou,t.loader||{}),write:!1,charset:"utf8",metafile:!0,external:o,tsconfig:t.tsconfig,nodePaths:(t.nodePaths||[]).slice(0),plugins:(t.plugins||[]).concat({name:"imba",setup:this.plugin.bind(this)}),pure:["Symbol.for","Symbol"],treeShaking:t.treeShaking||!0,supported:{"for-await":!0,"top-level-await":!0},resolveExtensions:[".imba",".imba1",".ts",".mjs",".cjs",".js",".svg"]},this.esoptions.entryPoints?.sort?.(),this.esoptions.sourcemap&&!this.devΦ&&(this.esoptions.sourcesContent=!1),this.mainΦ&&!this.webΦ&&(this.esoptions.entryNames="[dir]/[name]"),this.mainΦ&&(this.esoptions.external=[]),this.webΦ&&t.ref&&!this.workerΦ&&(this.esoptions.entryNames=""+this.assetsDir+"/[name].[hash]"),t.ref&&t.format!="html"&&t.ref!="web"&&(this.esoptions.outbase=this.fs.cwd),t.esbuild&&Fu(this.esoptions,t.esbuild,"esbuild"),this.imbaoptions={platform:t.platform,css:"external",hmr:this.program.hmr||!1,mode:this.program.mode},t.sourcesContent!==void 0&&(this.esoptions.sourcesContent=t.sourcesContent),t.platform=="worker"&&(this.imbaoptions.platform="node"),t.target&&(this.esoptions.target=t.target),this.nodeishΦ&&this.runΦ&&t.target){let c=process.version.replace(/^v(?=\d)/,"node");this.esoptions.target=[c]}if(t.format=="css"&&(this.esoptions.format="esm"),this.htmlΦ&&(this.esoptions.format="esm",this.esoptions.minify=!1,this.esoptions.sourcemap=!1,this.esoptions.entryNames="[dir]/[name]",this.esoptions.loader[".json"]="file"),this.workerΦ?this.esoptions.outExtension={".js":".worker.js"}:this.iifeΦ?this.esoptions.outExtension={".js":".iife.js"}:this.esoptions.format=="esm"&&this.nodeishΦ&&(this.esoptions.outExtension={".js":".mjs"}),(n={webworker:[".webworker.imba",".worker.imba"],serviceworker:[".serviceworker.imba",".webworker.imba",".worker.imba"],sharedworker:[".sharedworker.imba",".webworker.imba",".worker.imba"],nodeworker:[".nodeworker.imba",".worker.imba",".node.imba"],worker:[".imba.web-pkg.js",".worker.imba"],node:[".node.imba"],browser:[".web.imba"],web:[".web.imba"]}[t.platform||this.esoptions.platform])&&this.esoptions.resolveExtensions.unshift(...n),t.extensions){let u=t.extensions;typeof u=="string"&&(u=u.split(",")),this.esoptions.resolveExtensions.unshift(...u)}let a=(l=this.esoptions).define||(l.define={});if(a["globalThis.DEBUG_IMBA"]||(a["globalThis.DEBUG_IMBA"]=String(!this.productionΦ)),a["process.env.IMBA_GIT_HASH"]=this.githash||"undefined",!this.nodeishΦ){let c=t.env||(this.productionΦ?"production":"development");a.global="globalThis",a["process.platform"]="'web'",a["process.browser"]="true",a["process.env.NODE_ENV"]="'"+c+"'",this.esoptions.inject=[se.default.resolve(this.program.imbaPath,"polyfills","buffer","index.js"),se.default.resolve(this.program.imbaPath,"polyfills","__inject__.js")],this.esoptions.inject=[],this.esoptions.nodePaths.push(se.default.resolve(this.program.imbaPath,"polyfills"))}if(a["globalThis.IMBA_DEV"]||(a["globalThis.IMBA_DEV"]=String(this.hmrΦ)),a["globalThis.IMBA_ENV_DEV"]||(a["globalThis.IMBA_ENV_DEV"]=String(!this.productionΦ)),a["globalThis.IMBA_ENV_PROD"]||(a["globalThis.IMBA_ENV_PROD"]=String(this.productionΦ)),a["globalThis.IMBA_ENV_DEBUG"]||(a["globalThis.IMBA_ENV_DEBUG"]=String(!this.productionΦ&&this.runΦ)),this.nodeishΦ&&this.mainΦ&&this.esmΦ&&(this.esoptions.banner.js+=`
import { createRequire as $require$ } from "module"; let require = $require$(import.meta.url);`),this.program.dotvars)for(let c=this.program.dotvars,u=0,f=Object.keys(c),g=f.length,m,p;u<g;u++)m=f[u],p=c[m],p=JSON.stringify(p),this.webishΦ&&m.match(/(^|_|api|access_?)(private|key|secret|password|token)/i)&&!m.match(/\b(public)\b/i)&&!m.match(/(_|^)(public)(_|$)/i)&&(this.log.ts("process.env."+m+" will not be included in web builds - include PUBLIC in the name to allow",m.match(/public/i)),p="undefined"),a["process.env."+m]=p;if(this.mainΦ&&(this.hmrΦ&&(this.esoptions.banner.js+="globalThis.IMBA_HMR = true;"),this.runΦ&&(this.esoptions.banner.js+="globalThis.IMBA_RUN = true;")),this.webishΦ&&(a["process.env"]="{}"),t.bundle==!1&&(this.esoptions.bundle=!1,i=this.esoptions.external,delete this.esoptions.external),t.splitting&&this.esoptions.format!="esm"&&this.log.error("code-splitting not allowed when format is not esm"),this.mainΦ){try{cr(this.log.debug.bind(this.log))}catch{}this.log.ts("created main bundle"),this.manifest={}}ke(this,Mf)}addEntrypoint(e){return this.entryPoints.indexOf(e)<0&&this.entryPoints.push(e),this.entryPoints.sort(),this}setup(){return this}watchPath(e){return this[Lt][e]||(this[Lt][e]=1,this.parent?this.parent.watchPath(e):this.watcher&&e.indexOf(":")==-1&&this.watchΦ&&this.watcher.add(e.slice(0,e.lastIndexOf("/")))),this}resolveConfigPreset(e=[]){let t=e.join("&"),n=Symbol.for(t),i=this.imbaconfig;if(i[n])return i[n];let o={presets:[],ref:t},s=this.imbaconfig.options;for(let a=0,l=H(e),c=l.length;a<c;a++){let u=l[a],f=s[u]||{};o.presets.push(f);let g=f,m=[f];for(;g.extends&&m.length<10;)m.unshift(g=s[g.extends]);for(let p=0,y=H(m),x=y.length;p<x;p++){let _=y[p];Object.assign(o,_)}}return i[n]=o}resolveTemplate(e){let t=se.default.resolve(this.program.imbaPath,"src","templates",e);return Le.default.existsSync(t)?t:null}plugin(e){var t=this;let n=this.externals||[],i=this.program.imbaPath,o=function(l){return/\.imba$/.test(l)&&l.indexOf("styles:")!=0},s=function(l){return`import {asset} from 'imba/src/imba/assets.imba';
export default asset(`+JSON.stringify(l)+")"},a=async function(l){return await e.resolve(l.path,{resolveDir:l.resolveDir,namespace:"",kind:l.kind})};if(this.o.resolve){let l=new RegExp("^("+Object.keys(this.o.resolve).join("|")+")$");e.onResolve({filter:l},function(c){let u=t.o.resolve[c.path];return u=u&&u[t.platform]||u,u})}return this.mainΦ&&this.serveΦ&&e.onResolve({namespace:"file",filter:/.*/},async function(l){if(l.kind=="entry-point"){let c=l.path.split(".").pop(),u=t.resolveTemplate("serve-"+c+".imba")||t.resolveTemplate("serve-web.imba"),f=await e.resolve(l.path,{kind:l.kind,resolveDir:l.resolveDir});return{path:u,namespace:"file",pluginData:{__ENTRYPOINT__:f.path,resolveDir:l.resolveDir}}}if(l.path=="__ENTRYPOINT__"){let c=await e.resolve(t.entryPoints[0],{kind:l.kind,resolveDir:t.fs.cwd});return{path:l.pluginData?.__ENTRYPOINT__||c.path,pluginData:{path:l.path,asset:!0,kind:l.kind}}}}),this.mainΦ&&e.onResolve({filter:/\.html$/,namespace:"file"},async function(l){if(l.kind=="entry-point")return{path:(await a(l)).path,namespace:"file",pluginData:{path:l.path,kind:l.kind,serve:!t.buildΦ}};if(l.kind=="import-statement")return{path:(await a(l)).path,pluginData:{asset:!0,path:l.path,kind:l.kind}}}),e.onResolve({filter:/^\*\?css$/},function(l){return t.root.hasGlobStylesheet=!0,{path:"*?css",namespace:"css"}}),e.onResolve({filter:/\?(as=)?([\w\-\,\.\&]+)$/},async function(l){let c;if(l.namespace=="")return;if(t.o.format=="css")return{path:"_",namespace:"imba-raw"};let[u,f]=l.path.split("?"),g=f.replace(/^as=/,"").split(/[&\-]/g);if(f.match(/^(url|dataurl|binary|raw|text|base64|file|copy|img|svg|styles|bundle|external)/))return;let m;if(u=="__ENTRYPOINT__"?m={path:t.fs.resolve(t.entryPoints[0]),suffix:"?"+f}:m=await a(l),(c=Su[f])&&(c=c[t.webishΦ?"web":"node"],c&&!l.pluginData))return{namespace:"wrap",suffix:m.suffix,path:m.path,pluginData:c};if(!m)return;let p=t.resolveConfigPreset(g),y=t.fs.relative(m.path);return{path:y+m.suffix,namespace:"entry",pluginData:{config:p,path:y}}}),e.onResolve({filter:/^imba(\/|$)/},function(l){if(t.peerDependencies.indexOf("imba")>=0)return null;let c=l.path.slice(l.path.indexOf("/")+1);if(l.path=="imba"){if(t.o.format=="css")return{path:l.path,external:!0};if(process.env.WEBCONTAINER){if(t.nodeishΦ)return t.runΦ?{path:se.default.resolve(i,"dist","imba.node.js"),external:!0}:{path:"imba",external:!0};if(t.webΦ&&t.esmΦ&&t.runΦ)return{path:"/__imba__.mjs",external:!0}}return{path:se.default.resolve(i,"index.imba"),namespace:"file"}}let u={colors:"src/utils/colors.imba",std:"src/utils/std/std.imba",spec:"src/utils/spec.imba",runtime:"src/imba/runtime.mjs"};if(t.webΦ&&t.esmΦ&&t.runΦ&&process.env.WEBCONTAINER&&c=="runtime")return{path:"/__imba__.mjs",external:!0};let f=se.default.resolve(i,u[c]||c),g=["",".imba"];(c=="program"||c=="compiler")&&g.unshift(".imba.js");for(let m=0,p=H(g),y=p.length;m<y;m++){let x=p[m];if(Le.default.existsSync(f+x))return{path:f+x}}return null}),e.onResolve({filter:/^_styles_$/},function({importer:l}){return{path:l,suffix:"?styles",namespace:"file"}}),e.onResolve({namespace:"file",filter:/.*/},async function(l){if(l.pluginData=="skip"||l.path.indexOf("data:")==0)return null;let c=l.path,u=/^(\/|\w\:\/)/.test(c),f=c[0]=="."||c[0]=="#",g=!u&&!f,m=g&&c.match(/^(@[\w\.\-]+\/)?\w[\w\.\-]*/)[0]||null,p=c.split("?")[1]||"",y=n.indexOf(c)>=0||g&&n.indexOf(m)>=0||p=="external",x=p?c.split("?")[0]:c;if(p=="style")return null;if(l.kind=="import-rule")return{external:!0};if(c.indexOf("node:")==0)return{external:!0};if(Eu.indexOf(c)>=0&&!t.webΦ)return{external:!0,path:c};if(p=="bundle"){let h={importer:l.importer,resolveDir:l.resolveDir,namespace:"",kind:t.esmΦ?"import-statement":"require-call",pluginData:"skip"};return{path:(await e.resolve(x,h)).path}}if(p=="external"&&!t.nodeishΦ)return{path:x,external:!0};if(g&&t.nodeishΦ&&(t.runΦ&&!t.standaloneΦ||p=="external")){if(n.indexOf("!"+c)>=0&&p!="external")return null;let h=!1,v={importer:l.importer,resolveDir:l.resolveDir,namespace:"",kind:t.esmΦ?"import-statement":"require-call",pluginData:"skip"},b=await e.resolve(l.path,v);if(b.path){if(b.path.match(/\.imba$/))return null;let w=b.path.split("node_modules")[0];se.default.relative(w,t.outdir).indexOf("../")!=0&&(h=!0)}if(y&&h)return{external:!0,path:x};if(y)return t.runΦ||t.log.info("Building with absolute external path "+x+" => "+b.path),{external:!0,path:b.path}}if(y)return t.program.bundle?null:{external:!0};let _=/(\.(svg|png|jpe?g|gif|tiff|webp))$/.test(c);if(u)return l.kind=="url-token"?{external:!0}:null;if(p=="img")return{path:(await a(l)).path};if(o(l.importer)&&_&&l.kind!="url-token"){let h=await a(l);if(h?.path)return{path:h.path,suffix:"?js"}}if(c.match(/\.json(\?copy)?$/)){let h=await a(l);if(l.importer?.match?.(/\.html$/))return{path:h.path,suffix:"?url"};if(t.webΦ&&t.esoptions.splitting&&o(l.importer))return{path:h.path+".js",suffix:"?external"}}return null}),e.onLoad({namespace:"img",filter:/.*/},async function({path:l}){let c=t.fs.lookup(l);return{loader:"js",contents:(await c.compile({format:"esm"},t)).js,resolveDir:c.absdir}}),e.onLoad({namespace:"wrap",filter:/.*/},function(l){let c=l.pluginData,f=Le.default.readFileSync(t.resolveTemplate(c),"utf-8").replace("__ENTRYPOINT__?",l.path+"?");return f=f.replace("__ENTRYPOINT__",l.path+(l.suffix||"")),{loader:"js",contents:f,resolveDir:se.default.dirname(l.path)}}),e.onLoad({namespace:"html",filter:/.*/},async function({path:l}){let c=t.fs.lookup(l);return{loader:"js",contents:(await c.compile({format:"esm"},t)).js,resolveDir:c.absdir,pluginData:{resolver:l}}}),e.onLoad({namespace:"js",filter:/.*/},async function({path:l}){let c=t.fs.lookup(l),u=await c.compile({format:"esm"},t);return t.builder.meta[c.rel]=u,{loader:"js",contents:u.js,resolveDir:c.absdir,pluginData:{importerFile:c.rel}}}),e.onLoad({namespace:"file",filter:/\.html$/},async function(l){if(t.htmlΦ||l.pluginData?.asset){let c=t.fs.lookup(l.path),u=await c.compile({format:"esm"},t);return t.builder.meta[c.rel]=u,{loader:"js",contents:u.js,resolveDir:c.absdir,pluginData:{importerFile:c.rel}}}}),e.onLoad({namespace:"file",filter:/.*/},async function({path:l,suffix:c,pluginData:u}){if(c){let f=c.slice(1),g=ku[f];if(f=="external"&&t.webΦ&&l.match(/\.json\.m?js$/)){let m=l.replace(/\.m?js$/,"");return{loader:"copy",contents:"export default "+Le.default.readFileSync(m,"utf-8"),resolveDir:se.default.dirname(l)}}if(g){let m=Le.default.readFileSync(l);return{loader:g,contents:m}}else if(f=="js"){let m=t.fs.lookup(l);return{loader:"js",contents:(await m.compile({format:"esm"},t)).js,resolveDir:m.absdir}}}return null}),e.onLoad({namespace:"css",filter:/^\*\?css/},function(){return t.htmlΦ?{loader:"text",contents:"*?css"}:{loader:"js",contents:s("*?css"),resolveDir:t.fs.cwd}}),e.onLoad({namespace:"entry",filter:/.*/},async function({path:l,pluginData:c}){var y;if(l=="__styles__")return t.htmlΦ?{loader:"text",contents:"*?css"}:{loader:"js",contents:s("*?css"),resolveDir:t.fs.cwd};if(t.o.format=="css")return{loader:"text",contents:""};let u=c,f=u.config,g="entry:"+u.path+"?"+f.ref,m=t.fs.lookup(u.path);if(f.splitting||f.ref=="html"&&t.mainΦ){let x=f[Us]||(f[Us]=new vt(t.root,Object.create(f)));return x.addEntrypoint(u.path),t.root.builder.refs[g]=x,t.builder.refs[g]=x,t.htmlΦ?{loader:"text",contents:g}:{loader:"js",contents:s(g),resolveDir:se.default.dirname(l)}}t.log.debug("lookup up bundle for id "+g);let p=(y=t.root[Ws])[g]||(y[g]=new vt(t.root,Object.assign({entryPoints:[u.path]},f)));if(t.builder.refs[g]=p,f.format!="css"){let x=p.rebuild();if(t.webΦ){t.log.debug("rebuilt immediately - and maybe link directly to the asset?!");let _=await x;try{let h=_.meta.entries[g];if(t.log.debug("returned from iife",g),h)return{loader:"text",contents:h.url}}catch(h){console.error(h)}}}return t.htmlΦ?{loader:"text",contents:g}:{loader:"js",contents:s(g),resolveDir:m.absdir}}),e.onLoad({filter:/\.css$/},function(l){let c=Le.default.readFileSync(l.path,"utf-8");return c+="/*! @path "+t.fs.relative(l.path)+" */",{loader:"css",contents:c}}),e.onLoad({namespace:"imba-raw",filter:/.*/},function({path:l}){return{loader:"text",contents:""}}),e.onLoad({namespace:"styles",filter:/\.imba$/},function({path:l,namespace:c}){let u;return(u=t.builder.styles[l])?u:{loader:"css",contents:""}}),e.onLoad({filter:/\.imba1?$/},async function({path:l,namespace:c,pluginData:u,suffix:f}){let g=t.fs.lookup(l);if(f=="?styles")return t.builder.styles[g.rel]||{loader:"css",contents:""};let m=Date.now(),p=await g.compile(t.imbaoptions,t);if(p.css){let h=t.theme.transformColors(Br.strip(p.css||""),{prefix:!1});h+="/*! @path "+t.fs.relative(l)+"?styles */",t.builder.styles[g.rel]={loader:"css",contents:h,resolveDir:g.absdir}}let x=p.css||t.o.format=="css"?`
import '_styles_';`:"";return p[t]||(p[t]={loader:"js",contents:Br.strip(p.js||"")+x,errors:(p.errors||[]).map(function(h){return ns(h,{file:g.abs,namespace:c})}),warnings:(p.warnings||[]).map(function(h){return ns(h,{file:g.abs,namespace:c})}),resolveDir:g.absdir,pluginData:u})})}build(e=!1){var n;var t=this;return(n=this.buildcache)[this]||(n[this]=new Promise(async function(i,o){if(t.built!=!0&&(t.built=!0,!0)||e){t.mainΦ&&t.log.info("starting to build in %path",t.program.outdir),t.workers=await _u(),t.log.debug("build "+t.entryPoints.join(",")+" "+t.o.format+"|"+t.o.platform+" "+t.nr);try{t.context||(t.context=await Ff.context(t.esoptions)),t.builder=new ai({previous:t.builder}),t.result=await t.context.rebuild(),t.firstBuild=t.result,t.lastResult=t.result}catch(s){t.result=s}await t.transform(t.result),t.mainΦ&&await t.write(t.result),t.watcher||(t.workers.stop(),t.workers=null,t.context.dispose()),t.watcher&&t.mainΦ&&(t[Pf]!=!0&&(t[Pf]=!0,!0))&&(t.watcher.start(),t.watcher.on("touch",function(s){return t.log.debug("watcher touch",s),clearTimeout(t[Ks]),t[Ks]=setTimeout(function(){return clearTimeout(t[Ks]),t.log.debug("try rebuild",!!t.buildcache[t],t.o.watch),t.rebuild()},100)}))}return t[zr]={},i(t.result)}))}isResolutionSibling(e){let t=this.esoptions.resolveExtensions;if(!t)return!1;for(let n=0,i=H(t),o=i.length;n<o;n++){let s=i[n];if(!e.endsWith(s))continue;let a=e.slice(0,e.length-s.length);for(let l=0,c=H(t),u=c.length;l<u;l++){let f=c[l],g=a+f;if(g!=e&&this[Lt][g])return!0}}return!1}rebuild({force:e=!1}={}){var n;var t=this;return this.built&&this.context&&_e(this.context.rebuild,Function)?(n=this.buildcache)[this]||(n[this]=new Promise(async function(i){if(t.watcher&&!e){let a=t.watcher.sync(t),l=!1;for(let c=0,u=H(a),f=u.length;c<f;c++){let[g,m]=u[c];(t[Lt][g]||m!=1&&t.isResolutionSibling(g))&&(l=!0)}if(_e(t.result,Error)&&(l=!0),!l)return t[zr]={},i(t.result);t.mainΦ&&t.log.debug("changes demanding a resolve?",a)}t.mainΦ&&t.log.debug("starting rebuild!",!!t.watcher,e);let o=t.lastResult,s=!1;try{t.builder=new ai({previous:t.builder});let a=await t.context.rebuild();t.result=a,t.lastResult=t.result}catch(a){t.log.debug("error when rebuilding",a),s=!0,t.result=a}return await t.transform(t.result,o),t.mainΦ&&await t.write(t.result,o),t[zr]={},i(t.result)})):this.build(!0)}collectStyleInputs(e,t,n=[],i=[]){if(_e(e,Array)){for(let o=0,s=H(e),a=s.length;o<a;o++){let l=s[o];this.collectStyleInputs(l,t,n,i)}return n}if(i.indexOf(e)>=0)return n;if(i.push(e),e.path.match(/(^styles:)|(\.css$)|(\?styles?$)/)&&n.indexOf(e)==-1){let o=n.find(function(s){return s.path==e.path});if(!o)n.push(e);else{let s=o[si]||"",a=e[si]||"";s!=a&&(a.length>=s.length&&(n[n.indexOf(o)]=e),this.log.info("ambiguous css between server and client"))}}for(let o=0,s=H(e.imports),a=s.length;o<a;o++){let l=s[o];l.external||(l&&l.path||console.log("PATH NOT FOUND?!",l,e.imports),!l.path.match(/\?css$/)&&this.collectStyleInputs(l,t,n,i))}return e.asset&&t&&this.collectStyleInputs(e.asset.source,t,n,i),n}transformCompiledHTML(e,t,n,i){let o={},s={},a=i;t.replace(/(\w+_default\d*) = \"(.*)\"/g,function(c,u,f){let g;return(g=a[f])?o[u]=g.url||g.path:o[u]=s[f]||f});let l=t.match(/URLS = \[(.*)\]/)[1].split(/\,\s*/g).map(function(c){return o[c]});return n&&n.html?n.html.replace(/ASSET_REF_(\d+)/g,function(u,f){return l[parseInt(f)]}):t}async transform(e,t){var g,m,p;var n=this;let i=Date.now();if(_e(e,Error)){if(this.watchΦ)for(let y=0,x=H(e.errors||[]),_=x.length;y<_;y++){let h=x[y];this.watchPath(h.location.file)}return e.rebuild=t?.rebuild?.bind?.(t),e.meta={inputs:{},outputs:{},urls:{},errors:e.errors,warnings:e.warnings},e}let o=e.outputFiles||[],s=e.metafile;if(s=e.meta={ref:this.o.ref,format:this.o.format,platform:this.o.platform,inputs:s.inputs,outputs:s.outputs,errors:[].concat(e.errors||[]),warnings:[].concat(e.warnings||[]),entries:{},urls:{}},process.env.DEBUG){let y=se.default.resolve(this.fs.cwd,"dist");s.entryPoints=this.esoptions.entryPoints;let x={entryPoints:s.entryPoints,files:o.map(function(_){return[_.path,n.fs.relative(_.path)]}),outputs:Object.keys(s.outputs),inputs:Object.keys(s.inputs),full:s};try{Le.default.mkdirSync(y)}catch{}Le.default.writeFileSync(se.default.resolve(y,"manifest."+this.nr+".json"),JSON.stringify(x,null,4))}let a=s.inputs,l=s.outputs;for(let y=0,x=H(o),_=x.length;y<_;y++){let h=x[y],v=this.fs.relative(h.path);l[v]?(l[v].fullpath=h.path,l[v][Rt]=h,l[v][Dt]=h.contents,l[v],h[Tg]=l[v]):console.log("could not map the file to anything!!",h.path,v,Object.keys(l),this.fs.cwd,this.esoptions.outdir)}for(let y=s.outputs,x=0,_=Object.keys(y),h=_.length,v,b;x<h;x++)if(v=_[x],b=y[v],this.root.builder.outputs.add(b),l[v+".map"]&&(b.map=l[v+".map"]),b.entryPoint){let w=b.entryPoint,d=a[w];if(d){b.source=d;let k=v.split(".").pop();if((k=="mjs"||k=="js")&&(d.output=d[k]=b,d.js||(d.js=b)),k=="css"&&(d.css=b),b.cssBundle&&l[b.cssBundle]&&(d.css||(d.css=l[b.cssBundle]),(g=d.css).source||(g.source=d)),this.o.ref){let S=this.o.format=="css"&&d.css||b,E="entry:"+b.entryPoint+"?"+this.o.ref;S.entryId=E,this.root.builder.entries[E]=this.builder.entries[E]=s.entries[E]=S,S!=b&&(b.virtual??(b.virtual=!0))}}this.mainΦ&&this.serveΦ&&(b.main=!0)}for(let y=0,x=Object.keys(a),_=x.length,h,v;y<_;y++)h=x[y],v=a[h],v[Ys]=v._="input",v.path=h,v.imports=v.imports.map(function(b){return a[b.path]}),v.imports=v.imports.filter(function(b){return b}),this.watchPath(h.replace(".json.js?external",".json").replace(/\?.+/,""));let c=new Set,u=new Set;for(let y=this.builder.refs,x=0,_=Object.keys(y),h=_.length,v,b;x<h;x++){v=_[x],b=y[v];let w=a[v],d=b,k=v.slice(v.indexOf(":")+1).split("?")[0];v&&w&&_e(b,vt)&&(d=await b.rebuild());let S=d&&d.meta&&d.meta.inputs?.[k];_e(b,vt)&&Object.assign(this[Lt],b[Lt]),S&&(w.asset=d.meta.format=="css"?S.css:S.js,c.add(d.meta.outputs)),d&&d.meta&&((m=d.meta).errors||(m.errors=[]),(p=d.meta).warnings||(p.warnings=[]),s.errors.push(...d.meta.errors),s.warnings.push(...d.meta.warnings))}for(let y=s.outputs,x=0,_=Object.keys(y),h=_.length,v,b,w;x<h;x++){v=_[x],b=y[v],b[Ys]=b._="output",b.path=v,(se.default.extname(v)||"").slice(1)=="json"&&Object.keys(b.inputs||{}).some(function(E){return E.match(/\?url/)})&&(b.public=!0),b.source&&b.source.path.match(/\.html$/)&&b==b.source.js&&(!this.mainΦ||this.buildΦ)?(b.public=!0,b.path=v=v.replace(/\.m?js/,".html")):(this.webishΦ||b.type=="css")&&(b.public=!0),this.nodeishΦ&&v.match(/\.css(\.map)?$/)&&(b.virtual??(b.virtual=!0)),b.public&&(b.url=this.urlForOutputPath(b.path)),b.type??(b.type=(se.default.extname(v)||"").slice(1));let k=[],S=new Set;for(let E=b.inputs,O=0,I=Object.keys(E),P=I.length,T,R;O<P;O++)T=I[O],R=E[T],T.indexOf("entry:")==0&&S.add(a[T]),k.push([a[T],R.bytesInOutput]);if(b.dependencies=Array.from(S),b.inputs=k,b.type=="css"&&!b[Tf]){let O=b[Rt].text.split(/\/\*\! @path (.+?) \*\//g),I={};for(;O.length;){let P=O.shift()||"",T=O.shift();I[T]=P}for(let P=0,T=H(k),R=T.length;P<R;P++){let[L,B]=T[P];u.add(L),L[si]=I[L.path]}b[Tf]=!0}b.imports&&(b.imports=b.imports.map(function(E){let O=l[E.path];return O||null}),b.imports=b.imports.filter(function(E){return E})),(w=v.match(/\.([A-Z\d]{8})(\.\w+)?\.\w+(\.map)?$/))&&(b.hash=w[1])}let f={};for(let y=s.outputs,x=0,_=Object.keys(y),h=_.length,v,b;x<h;x++)v=_[x],b=y[v],f[b.path]=b;for(let y of H(c))Object.assign(f,y);return l=s.outputs=f,e}copyPublicFiles(){let e=this.fs.resolve("public"),t=this.outfs.resolve(this.pubdir);if(Le.default.existsSync(e))return new Promise(function(n){return Of(e,t,{},n)})}cleanOutDir(){if(!Le.default.existsSync(this.program.outdir))return this;let e=Le.default.readdirSync(this.program.outdir);for(let t=0,n=H(e),i=n.length;t<i;t++){let o=n[t];o.match(/^\.git/)||Le.default.rmSync(se.default.resolve(this.program.outdir,o),{recursive:!0})}return this}async write(e){var t,n;let i=se.default.relative(this.fs.cwd,this.outdir),o=/^(\.\/|\w)/.test(i),s=Le.default.existsSync(this.fs.resolve("public"))&&this.fs.resolve("public"),a=e.meta,l=a.inputs,c=a.outputs,u=a.urls;if(a.errors?.length){this.log.error("failed with "+a.errors.length+" errors"),this.emit("errored",a.errors),this[Js]=a.errors,this.watchΦ||this.terminate();return}let f=e.manifest={},g={inputs:l,outputs:{},urls:u,mappings:{},hash:null,path:null,main:null,assets:null,pubdir:this.pubdir},m=g.assets=Object.values(c),p=null;this.serveΦ&&(p=m.find(function(_){return _.main}));try{t=l[this.entryPoints[0]].output}catch{}if(p=t||p,this.hasGlobStylesheet){let _=this.entryPoints.map(function(v){return l[v]||p?.source}),h=this.collectStyleInputs(_,!0);if(h.length){let v="",b={version:3,sourceRoot:String(Zs.default.pathToFileURL(this.fs.cwd)),sources:[],names:[],raw:[],mappings:""};for(let E=0,O=H(h),I=O.length;E<I;E++){let P=O[E],T=P[si];if(T){let R=P.path.replace(/(^\w+\:)|(\?.+$)/g,"");b.sources.indexOf(R)<0&&b.sources.push(R);let L=[0,b.sources.indexOf(R),0,0],B=T.split(`
`);for(let C=0,F=H(B),M=F.length;C<M;C++){let z=F[C];b.raw.push([L.slice(0)])}v+=T+`
`}}let w=Un(v),d="index."+w+".css",k=se.default.resolve(this.fs.cwd,this.esoptions.outdir,this.assetsDir||".",d);b.file=d,this.esoptions.sourcemap&&(v+=`
/*# sourceMappingURL=./`+d+".map */");let S={[Ys]:"output",_:"output",type:"css",public:!0,path:k,hash:w,fullpath:k,virtual:!1,url:this.urlForOutputPath(k),entryId:"*?css",imports:[],[Dt]:v};S.asset=S,this.builder.entries["*?css"]=S,l["*?css"]=S,m.push(S),this.esoptions.sourcemap&&(b.mappings=Lf.encode(b.raw),n=b.raw,delete b.raw,m.push({path:S.path+".map",fullpath:S.fullpath+".map",hash:w,public:!0,[Dt]:JSON.stringify(b,null,2)}))}}for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_];if(b.public&&this.pubdir&&b.resolved!=!0&&(b.resolved=!0,!0)){let w=se.default.resolve(this.fs.cwd,b.path),d=se.default.relative(this.esoptions.outdir,w),k=se.default.resolve(this.esoptions.outdir,this.pubdir,d);b.fullpath=k,b.path=se.default.relative(this.fs.cwd,k)}}for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_];if(!b.entryId)continue;let w=f[b.entryId]={url:b.url,path:b.fullpath}}for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_];if(!(b.url&&b.imports)||b.type=="map")continue;let w=f[b.url]={},d=b.imports.map(function(k){return k.url});d.length&&(w.imports=d)}this.log.ts("resolved public paths");for(let _=0,h=H(m),v=h.length,b;_<v;_++){let w=h[_];if(w.type=="html"){let k=(w.entryPoint||"").replace(/^\w+\:/,"");if(b=this.builder.meta[k]){let S=this.transformCompiledHTML(w,w[Rt].text,b,f);w[Xs]=w[Dt]=S}}if(w.type=="js"||w.type=="mjs"){let d=w[Xs]||w[Rt].text,k="";if(w.hash||w.hash||(w.hash=Un(d)),!w.public){let O=["globalThis.IMBA_MANIFEST="+JSON.stringify(f),"globalThis.IMBA_ASSETS_PATH='"+this.assetsDir+"'"];s&&this.program.tmpdir&&O.push("globalThis.IMBA_STATICDIR='"+s+"'"),k=O.join(";")+";"}w.public&&this.hmrΦ&&(k="(globalThis.IMBA_LOADED || (globalThis.IMBA_LOADED={}))['"+w.url+"']=true;"),k&&(d=d.replace("//__HEAD__",k));let S=/\/([\/\*])# sourceMappingURL=([\/\w\.\-\%]+\.map)/g,E=se.default.basename(w.path);d=d.replace(S,function(O,I,P){return"/"+I+"# sourceMappingURL=./"+E+".map"}),w[Xs]=w[Dt]=d}}this.log.ts("injected head in assets");for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_];if(b.type=="map"&&b.public&&b[Rt]){let w=b[Rt].text,d=b[Rt].path;w='{"sourceRoot": "'+Zs.default.pathToFileURL(se.default.dirname(d))+'",'+w.slice(1),b[Dt]=w}}this.log.ts("rewrote sourcemaps"),g.path="manifest.json",f.main=this.outfs.relative(p.fullpath),e.main=p.fullpath,e.hash=p.hash,this.log.ts("ready to write");let y=this.outfs.lookup("manifest.json");for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_];g.outputs[b.path]=b}let x=Un(m.map(function(_){return _.hash}).sort().join("-"));if(this[Qs]==x&&this[Js]&&(this[Js]=null,this.emit("repaired")),this[Qs]!=x&&(this[Qs]=x,!0)){if(!this.builtΦ&&!this.program.keep&&!this.program.tmpdir&&o&&this.cleanOutDir(),!this.builtΦ&&this.program.tmpdir&&this.nodeΦ&&this.program.nodeModulesPath)try{Le.default.symlinkSync(this.program.nodeModulesPath,se.default.resolve(this.program.tmpdir,"node_modules"),"dir")}catch{this.log.error(`Unable to create symlink for node_modules. If you're on Windows, try enabling "Developer Mode" in Windows settings or creating node_modules manually.`),process.exit()}for(let _=0,h=H(m),v=h.length;_<v;_++){let b=h[_],w=b.path;if(this.buildΦ&&this.staticΦ&&!b.public||b.virtual)continue;await this.outfs.lookup(b.fullpath).write(b[Dt],b.hash,b)}s&&!this.program.tmpdir&&(Object.keys(this[Ws].web).length>0||this.staticΦ)&&await this.copyPublicFiles(),await y.write(JSON.stringify(f,null,2),g.hash),this.program.clear&&console.log("\x1Bc"),this.program[jf]?this.log.info("built %bold in %ms - %heap (%address)",this.entryPoints[0],this.builder.elapsed,this.program[jf]):this.log.info("built %bold in %ms - %heap",this.entryPoints[0],this.builder.elapsed),this.builtΦ=!0,this.emit("built",e)}return e}};Q(vt,Mf,"Bundle",16);var Gr=vt;var li=te(require("path")),Df=te(require("fs")),Bf=require("crypto");var Cg=Symbol.for("#key"),ta={},ra={},Rf=Symbol(),na=class na{constructor(e){this[Cg]=Symbol(),this.o=e,this.dir=this.o.cachedir,this.nodefs=this.o.volume||Df.default;let t=this.o.aliasdir||this.dir;this.aliaspath=t&&li.default.resolve(t,".imba-aliases"),this.aliasmap=[],this.aliasindex=new Map,this.aliascache={},this.data={aliases:{},cache:{}},this.mintime=this.o.mtime||0,this.persistToDisk=!!this.dir,this.idFaucet=Nu(),this.preload(),ke(this,Rf)}preload(){if(!this.persistToDisk)return;this.nodefs.existsSync(this.dir)||this.nodefs.mkdirSync(this.dir);let e=this.nodefs.readdirSync(this.dir);for(let t=0,n=H(e),i=n.length;t<i;t++){let o=n[t];this.cache[o]={exists:1}}if(!this.nodefs.existsSync(this.aliaspath)){let t=li.default.dirname(this.aliaspath);this.nodefs.existsSync(t)||this.nodefs.mkdirSync(t,{recursive:!0}),this.nodefs.appendFileSync(this.aliaspath,"")}return this.refreshAliasMap(),Gt.ts("cache loaded"),this}setup(){return!0}save(){return this}deserialize(){return this}serialize(){return this}get cache(){var e;return(e=this.data).cache||(e.cache={})}get aliases(){var e;return(e=this.data).aliases||(e.aliases={})}alias(e){if(!this.aliases[e]){let t=Object.keys(this.aliases).length;this.aliases[e]=this.idFaucet(t)+"0"}return this.aliases[e]}normalizeKey(e){if(ta[e])return ta[e];let t=(0,Bf.createHash)("sha1");return t.update(e),ta[e]=t.digest("hex")}fullKeyPath(e){return ra[e]||(ra[e]=li.default.resolve(this.dir,e))}getKeyTime(e){e=this.normalizeKey(e);let t=this.cache[e];if(t&&t.time)return t.time;if(t&&t.exists&&this.persistToDisk){let n=this.fullKeyPath(e);return this.nodefs.statSync(n).mtimeMs}else return 0}refreshAliasMap(){var e;this.aliasmap=this.nodefs.readFileSync(this.aliaspath,"utf8").split(/\r?\n/).filter(function(t){return t}),this.aliasindex=new Map,e=[];for(let t=0,n=H(this.aliasmap),i=n.length;t<i;t++){let o=n[t];e.push(!this.aliasindex.has(o)&&this.aliasindex.set(o,t))}return e}getPathAlias(e){return this.getKeyAlias(e)}getKeyAlias(e){if(this.aliascache[e])return this.aliascache[e];let t=this.aliasindex.get(e);return t==null&&(t=this.aliasmap.length,this.aliasmap.push(e),this.aliasindex.set(e,t),this.persistToDisk&&this.nodefs.appendFileSync(this.aliaspath,e+`
`,"utf8")),this.aliascache[e]=this.idFaucet(t)}async getKeyValue(e){let t=this.fullKeyPath(e),n=await this.nodefs.promises.readFile(t,"utf8");return JSON.parse(n)}setKeyValue(e,t){if(!this.persistToDisk)return;let n=this.fullKeyPath(e),i=JSON.stringify(t);return this.nodefs.promises.writeFile(n,i)}memo(e,t,n){var i=this;let o=this.normalizeKey(e);this.mintime>t&&(t=this.mintime);let s=this.cache[o];if(s&&s.time>=t)return s.promise;if(this.getKeyTime(e)>t&&!process.env.CI){let l=this.getKeyValue(o).catch(function(c){return console.warn("Error compiling file in getKeyValue name: "+e+", key: "+o,c),n().then(function(u){return i.setKeyValue(o,u)})});return s=this.cache[o]={time:Date.now(),promise:l},s.promise}else return s=this.cache[o]={time:Date.now(),promise:n()},s.promise.then(function(l){return i.setKeyValue(o,l)}),s.promise}};Q(na,Rf,"Cache",16);var Hr=na;var hh=te(Gf()),fa=te(ah()),ha=te(ch()),uh=Symbol.for("#parsed"),hb=Symbol.for("#IMBA_OPTIONS"),pa={int:function(r){return parseInt(r)},i:function(r){return r=="max"?0:parseInt(r)},v:function(r,e){return e+1}},pb=os(ct.default.resolve(__dirname,".."))||{},ph={},ut=process.argv.slice(0),dh=[],db={M:{minify:!1},m:{minify:!0},S:{sourcemap:!1},s:{sourcemap:!0}},mb={true:!0,false:!1,null:null,undefined:void 0},gb={"--trace-gc":!0,"--trace-uncaught":!0,"--prof":!0},ry=ut.slice(0),fh;for(let r=0,e=H(ut),t=e.length;r<t;r++){let n=e[r];if(n){if(gb[n])dh.push(n),ut[r]=null;else if(n.match(/^\-\-(\w+)(\.\w+)+$/)){let i=ut[r+1],o=n.slice(2).split("."),s=ph;for(ut[r]=null;o[1];)s=s[fh=o[0]]||(s[fh]={}),o.shift();let a=o[0];if(a?.match?.(/^[mMsS]+$/))for(let l of H(a))Object.assign(s,db[l]);else i.indexOf(" ")>=0&&(i=i.split(/\,\s*|\s+/g)),i=mb[i]||i,s[a]=i,ut[r]=null,ut[r+1]=null}}}ut=ut.filter(function(r){return r!==null});async function bb(r,e=[]){if(r[uh])return r;let t=r._name;_e(r.opts,Function)&&(r=r.opts());let n=r.cwd||(r.cwd=process.cwd());if(r.args&&r.args[0]){let i=ct.default.resolve(r.args[0]);n=ct.default.dirname(i)}if(r.imbaPath||(r.imbaPath=ct.default.resolve(__dirname,"..")),r.nodeflags=dh.slice(0),r.command=t,r.extras=e,r.config=await Mu(r),r.package=os(r.cwd)||{},r.dotenv=qr.default.existsSync(ct.default.resolve(r.cwd,".env"))?is(".env",r.cwd):null,r.nodeModulesPath=Wn("node_modules",r.cwd),r.dotenv&&(r.dotvars=hh.parse(r.dotenv.body)),r.esm&&(r.as??(r.as="esm")),r.verbose>1?r.loglevel||(r.loglevel="debug"):r.verbose&&(r.loglevel||(r.loglevel="info")),r.development&&(r.minify??(r.minify=!1),r.sourcemap??(r.sourcemap=!0),r.watch??(r.watch=!0),r.hmr=!0,r.mode="development"),r.production&&(r.minify??(r.minify=!0),r.sourcemap??(r.sourcemap=!1),r.hmr=!1,r.mode="production"),t=="build"&&(r.minify??(r.minify=!0),r.mode??(r.mode="production"),r.sourcemap??(r.sourcemap=!1),r.loglevel||(r.loglevel="info"),r.outdir||(r.outdir="dist")),r.web&&t!="build"&&(t=r.command="serve"),r.web&&t!="serve"&&(r.as??(r.as="web")),t=="serve"&&(r.watch=!0,r.hmr=!0),r.watch&&(r.loglevel||(r.loglevel="info"),r.mode=="development"&&(r.hmr=!0)),process.env.WEBCONTAINER&&(r.fork=!0),r.force)r.mtime=Date.now();else{let i=[__filename,ct.default.resolve(__dirname,"..","workers.imba.js"),ct.default.resolve(__dirname,"..","dist","compiler.cjs"),ct.default.resolve(__dirname,"..","scripts","bootstrap.compiler.js")];r.mtime=Math.max(...i.map(function(o){return qr.default.statSync(o).mtimeMs}))}return r.loglevel||(r.loglevel="warning"),r.cachedir=ju(r),r.aliasdir=Cu(),globalThis[hb]=r,r[uh]=!0,r}async function da(r,e,t){let n;if(r?._name=="serve"){let g=e;e=r,r=g,r?.length&&(r=r[0])}if(!(e._name=="serve"||e._name=="build")&&e.args.length==0)return wt.program.help();let i=e=await bb(e,t);(e.command=="serve"||e.command=="build")&&!r&&(console.log("imba "+e.command+" error: missing required argument 'script'"),process.exit(1));let[o,s]=r.split("?");if(o=ct.default.resolve(o),e.cache=new Hr(e),e.fs=new Tt(e.cwd,e),Jt(i.config.options,ph),!e.outdir)if(e.command=="build")e.outdir="dist";else{fa.default.setGracefulCleanup();let g=fa.default.dirSync({unsafeCleanup:!0});e.outdir=e.tmpdir=qr.default.realpathSync(g.name)}let a=e.fs.lookup(o);s?e.as=s.replace(/^as=/,""):a.ext==".html"&&(e.as="html",e.command!="build"&&(e.as="node"));let l=$u(i.config,{entryPoints:[a.rel]},e.as||["node",e.platform||"node"]);e.command!="build"&&(e.port||(e.port=await(0,ha.default)({port:ha.default.makeRange(3e3,3100)})));let c=new Gr(e,l),u;if(u=await c.build(),n=e.writeBundlePathTo)try{qr.default.writeFileSync(n,c.outdir)}catch{}let f=function(){return e.name||(e.name=r),new $r(c,e).start()};u?.main&&e.command!="build"?f():e.watch&&e.command!="build"&&c.once("built",f)}var yb=wt.program.storeOptionsAsProperties(!1).version(pb.version).name("imba");function ma(r){return r.option("-o, --outdir <dir>","Directory to output files").option("-w, --watch","Continously build and watch project").option("--loglevel <level>","Log level: debug|info|success|warning|error|silent").option("-v, --verbose","verbosity (repeat to increase)",pa.v,0).option("-s, --sourcemap","Enable sourcemaps").option("-S, --no-sourcemap","Omit sourcemaps").option("-m, --minify","Minify generated files").option("-M, --no-minify","Disable minifying").option("-f, --force","Disregard previously cached outputs").option("-k, --keep","Keep existing files in output directory").option("-d, --development","Use defaults for development").option("-p, --production","Use defaults for production").option("--br","Compress assets with brotli").option("--fork","Disable cluster mode").option("--skipReloadingFor <glob>","Skip reloading server code for these globs (glob format)").option("--bundle","Try to bundle all external dependencies").option("--base <url>","Base url for your generated site","/").option("--assets-dir <url>","Base dir for assets","assets").option("--web","Build entrypoints for the browser").option("--esm","Output module files").option("--writeBundlePathTo <url>","Write bundle path to a file")}ma(wt.program.command("run [script]",{isDefault:!0}).description("Imba")).option("-i, --instances [count]","Number of instances to start",pa.i,1).option("--inspect","Debug").option("--memlimit <bytes>","Set the memory limit of the process").action(da);ma(wt.program.command("build [script]").description("Build an imba/js/html entrypoint and their dependencies")).option("--platform <platform>","Platform for entry","browser").action(da);ma(wt.program.command("serve").description("Spawn a webserver for an imba/js/html entrypoint")).option("-i, --instances [count]","Number of instances to start",pa.i,1).option("--port <port>","Specify port").option("--host [host]","Specify host (true for 0.0.0.0)").action(da);wt.program.command("info").description("Print helpful information").action(function(){return cr()});wt.program.command("fmt [formatters...]").description("Removes extra whitespace, debug logs, and commented logs from **/*.imba").option("-f, --force","Format without checking git status").action(function(r,e){return Ni(r,e.opts())});Gt.ts("parse options");yb.parse(ut);
/*! Bundled license information:
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
*/