UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

8 lines (7 loc) 114 kB
var Jo=Object.create;var pr=Object.defineProperty;var Ko=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Zo=Object.getPrototypeOf,ea=Object.prototype.hasOwnProperty;var L=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ra=(r,e)=>{for(var t in e)pr(r,t,{get:e[t],enumerable:!0})},on=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xo(e))!ea.call(r,i)&&i!==t&&pr(r,i,{get:()=>e[i],enumerable:!(n=Ko(e,i))||n.enumerable});return r};var gr=(r,e,t)=>(t=r!=null?Jo(Zo(r)):{},on(e||!r||!r.__esModule?pr(t,"default",{value:r,enumerable:!0}):t,r)),ta=r=>on(pr({},"__esModule",{value:!0}),r);var an=L((Vr,Hr)=>{(function(r,e){typeof Vr=="object"&&typeof Hr<"u"?Hr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Vr,function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",i="second",o="minute",a="hour",s="day",u="week",l="month",c="quarter",_="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var y=["th","st","nd","rd"],v=O%100;return"["+O+(y[(v-20)%10]||y[v]||y[0])+"]"}},w=function(O,y,v){var E=String(O);return!E||E.length>=y?O:""+Array(y+1-E.length).join(v)+O},M={s:w,z:function(O){var y=-O.utcOffset(),v=Math.abs(y),E=Math.floor(v/60),p=v%60;return(y<=0?"+":"-")+w(E,2,"0")+":"+w(p,2,"0")},m:function O(y,v){if(y.date()<v.date())return-O(v,y);var E=12*(v.year()-y.year())+(v.month()-y.month()),p=y.clone().add(E,l),m=v-p<0,g=y.clone().add(E+(m?-1:1),l);return+(-(E+(v-p)/(m?p-g:g-p))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:l,y:_,w:u,d:s,D:f,h:a,m:o,s:i,ms:n,Q:c}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},j="en",k={};k[j]=R;var N="$isDayjsObject",B=function(O){return O instanceof Y||!(!O||!O[N])},P=function O(y,v,E){var p;if(!y)return j;if(typeof y=="string"){var m=y.toLowerCase();k[m]&&(p=m),v&&(k[m]=v,p=m);var g=y.split("-");if(!p&&g.length>1)return O(g[0])}else{var b=y.name;k[b]=y,p=b}return!E&&p&&(j=p),p||!E&&j},x=function(O,y){if(B(O))return O.clone();var v=typeof y=="object"?y:{};return v.date=O,v.args=arguments,new Y(v)},A=M;A.l=P,A.i=B,A.w=function(O,y){return x(O,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var Y=function(){function O(v){this.$L=P(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[N]=!0}var y=O.prototype;return y.parse=function(v){this.$d=function(E){var p=E.date,m=E.utc;if(p===null)return new Date(NaN);if(A.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var g=p.match(h);if(g){var b=g[2]-1||0,T=(g[7]||"0").substring(0,3);return m?new Date(Date.UTC(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,T)):new Date(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,T)}}return new Date(p)}(v),this.init()},y.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},y.$utils=function(){return A},y.isValid=function(){return this.$d.toString()!==d},y.isSame=function(v,E){var p=x(v);return this.startOf(E)<=p&&p<=this.endOf(E)},y.isAfter=function(v,E){return x(v)<this.startOf(E)},y.isBefore=function(v,E){return this.endOf(E)<x(v)},y.$g=function(v,E,p){return A.u(v)?this[E]:this.set(p,v)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(v,E){var p=this,m=!!A.u(E)||E,g=A.p(v),b=function(se,V){var ie=A.w(p.$u?Date.UTC(p.$y,V,se):new Date(p.$y,V,se),p);return m?ie:ie.endOf(s)},T=function(se,V){return A.w(p.toDate()[se].apply(p.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(V)),p)},$=this.$W,U=this.$M,ee=this.$D,ge="set"+(this.$u?"UTC":"");switch(g){case _:return m?b(1,0):b(31,11);case l:return m?b(1,U):b(0,U+1);case u:var ce=this.$locale().weekStart||0,Oe=($<ce?$+7:$)-ce;return b(m?ee-Oe:ee+(6-Oe),U);case s:case f:return T(ge+"Hours",0);case a:return T(ge+"Minutes",1);case o:return T(ge+"Seconds",2);case i:return T(ge+"Milliseconds",3);default:return this.clone()}},y.endOf=function(v){return this.startOf(v,!1)},y.$set=function(v,E){var p,m=A.p(v),g="set"+(this.$u?"UTC":""),b=(p={},p[s]=g+"Date",p[f]=g+"Date",p[l]=g+"Month",p[_]=g+"FullYear",p[a]=g+"Hours",p[o]=g+"Minutes",p[i]=g+"Seconds",p[n]=g+"Milliseconds",p)[m],T=m===s?this.$D+(E-this.$W):E;if(m===l||m===_){var $=this.clone().set(f,1);$.$d[b](T),$.init(),this.$d=$.set(f,Math.min(this.$D,$.daysInMonth())).$d}else b&&this.$d[b](T);return this.init(),this},y.set=function(v,E){return this.clone().$set(v,E)},y.get=function(v){return this[A.p(v)]()},y.add=function(v,E){var p,m=this;v=Number(v);var g=A.p(E),b=function(U){var ee=x(m);return A.w(ee.date(ee.date()+Math.round(U*v)),m)};if(g===l)return this.set(l,this.$M+v);if(g===_)return this.set(_,this.$y+v);if(g===s)return b(1);if(g===u)return b(7);var T=(p={},p[o]=e,p[a]=t,p[i]=r,p)[g]||1,$=this.$d.getTime()+v*T;return A.w($,this)},y.subtract=function(v,E){return this.add(-1*v,E)},y.format=function(v){var E=this,p=this.$locale();if(!this.isValid())return p.invalidDate||d;var m=v||"YYYY-MM-DDTHH:mm:ssZ",g=A.z(this),b=this.$H,T=this.$m,$=this.$M,U=p.weekdays,ee=p.months,ge=p.meridiem,ce=function(V,ie,fe,ye){return V&&(V[ie]||V(E,m))||fe[ie].slice(0,ye)},Oe=function(V){return A.s(b%12||12,V,"0")},se=ge||function(V,ie,fe){var ye=V<12?"AM":"PM";return fe?ye.toLowerCase():ye};return m.replace(S,function(V,ie){return ie||function(fe){switch(fe){case"YY":return String(E.$y).slice(-2);case"YYYY":return A.s(E.$y,4,"0");case"M":return $+1;case"MM":return A.s($+1,2,"0");case"MMM":return ce(p.monthsShort,$,ee,3);case"MMMM":return ce(ee,$);case"D":return E.$D;case"DD":return A.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return ce(p.weekdaysMin,E.$W,U,2);case"ddd":return ce(p.weekdaysShort,E.$W,U,3);case"dddd":return U[E.$W];case"H":return String(b);case"HH":return A.s(b,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return se(b,T,!0);case"A":return se(b,T,!1);case"m":return String(T);case"mm":return A.s(T,2,"0");case"s":return String(E.$s);case"ss":return A.s(E.$s,2,"0");case"SSS":return A.s(E.$ms,3,"0");case"Z":return g}return null}(V)||g.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(v,E,p){var m,g=this,b=A.p(E),T=x(v),$=(T.utcOffset()-this.utcOffset())*e,U=this-T,ee=function(){return A.m(g,T)};switch(b){case _:m=ee()/12;break;case l:m=ee();break;case c:m=ee()/3;break;case u:m=(U-$)/6048e5;break;case s:m=(U-$)/864e5;break;case a:m=U/t;break;case o:m=U/e;break;case i:m=U/r;break;default:m=U}return p?m:A.a(m)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return k[this.$L]},y.locale=function(v,E){if(!v)return this.$L;var p=this.clone(),m=P(v,E,!0);return m&&(p.$L=m),p},y.clone=function(){return A.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},O}(),D=Y.prototype;return x.prototype=D,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",l],["$y",_],["$D",f]].forEach(function(O){D[O[1]]=function(y){return this.$g(y,O[0],O[1])}}),x.extend=function(O,y){return O.$i||(O(y,Y,x),O.$i=!0),x},x.locale=P,x.isDayjs=B,x.unix=function(O){return x(1e3*O)},x.en=k[j],x.Ls=k,x.p={},x})});var sn=L((Qr,Jr)=>{(function(r,e){typeof Qr=="object"&&typeof Jr<"u"?Jr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=e()})(Qr,function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,t=/\d/,n=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(S){this[h]=+S}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var R=S.match(/([+-]|\d\d)/g),w=60*R[1]+(+R[2]||0);return w===0?0:R[0]==="+"?-w:w}(h)}],c=function(h){var S=a[h];return S&&(S.indexOf?S:S.s.concat(S.f))},_=function(h,S){var R,w=a.meridiem;if(w){for(var M=1;M<=24;M+=1)if(h.indexOf(w(M,0,S))>-1){R=M>12;break}}else R=h===(S?"pm":"PM");return R},f={A:[o,function(h){this.afternoon=_(h,!1)}],a:[o,function(h){this.afternoon=_(h,!0)}],Q:[t,function(h){this.month=3*(h-1)+1}],S:[t,function(h){this.milliseconds=100*+h}],SS:[n,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[o,function(h){var S=a.ordinal,R=h.match(/\d+/);if(this.day=R[0],S)for(var w=1;w<=31;w+=1)S(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[o,function(h){var S=c("months"),R=(c("monthsShort")||S.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[o,function(h){var S=c("months").indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(h){this.year=s(h)}],YYYY:[/\d{4}/,u("year")],Z:l,ZZ:l};function d(h){var S,R;S=h,R=a&&a.formats;for(var w=(h=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,A,Y){var D=Y&&Y.toUpperCase();return A||R[Y]||r[Y]||R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,y,v){return y||v.slice(1)})})).match(e),M=w.length,j=0;j<M;j+=1){var k=w[j],N=f[k],B=N&&N[0],P=N&&N[1];w[j]=P?{regex:B,parser:P}:k.replace(/^\[|\]$/g,"")}return function(x){for(var A={},Y=0,D=0;Y<M;Y+=1){var O=w[Y];if(typeof O=="string")D+=O.length;else{var y=O.regex,v=O.parser,E=x.slice(D),p=y.exec(E)[0];v.call(A,p),x=x.replace(p,"")}}return function(m){var g=m.afternoon;if(g!==void 0){var b=m.hours;g?b<12&&(m.hours+=12):b===12&&(m.hours=0),delete m.afternoon}}(A),A}}return function(h,S,R){R.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(s=h.parseTwoDigitYear);var w=S.prototype,M=w.parse;w.parse=function(j){var k=j.date,N=j.utc,B=j.args;this.$u=N;var P=B[1];if(typeof P=="string"){var x=B[2]===!0,A=B[3]===!0,Y=x||A,D=B[2];A&&(D=B[2]),a=this.$locale(),!x&&D&&(a=R.Ls[D]),this.$d=function(E,p,m,g){try{if(["x","X"].indexOf(p)>-1)return new Date((p==="X"?1e3:1)*E);var b=d(p)(E),T=b.year,$=b.month,U=b.day,ee=b.hours,ge=b.minutes,ce=b.seconds,Oe=b.milliseconds,se=b.zone,V=b.week,ie=new Date,fe=U||(T||$?1:ie.getDate()),ye=T||ie.getFullYear(),mr=0;T&&!$||(mr=$>0?$-1:ie.getMonth());var vr,Gr=ee||0,qr=ge||0,Ur=ce||0,zr=Oe||0;return se?new Date(Date.UTC(ye,mr,fe,Gr,qr,Ur,zr+60*se.offset*1e3)):m?new Date(Date.UTC(ye,mr,fe,Gr,qr,Ur,zr)):(vr=new Date(ye,mr,fe,Gr,qr,Ur,zr),V&&(vr=g(vr).week(V).toDate()),vr)}catch{return new Date("")}}(k,P,N,R),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),Y&&k!=this.format(P)&&(this.$d=new Date("")),a={}}else if(P instanceof Array)for(var O=P.length,y=1;y<=O;y+=1){B[1]=P[y-1];var v=R.apply(this,B);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}y===O&&(this.$d=new Date(""))}else M.call(this,j)}}})});var cn=L((Du,Kr)=>{var aa=Object.prototype.hasOwnProperty;function un(r){return"[Throws: "+(r?r.message:"?")+"]"}function sa(r,e){if(aa.call(r,e))try{return r[e]}catch(t){return un(t)}return r[e]}function ln(r){var e=[];function t(n){if(n===null||typeof n!="object")return n;if(e.indexOf(n)!==-1)return"[Circular]";if(e.push(n),typeof n.toJSON=="function")try{var i=t(n.toJSON());return e.pop(),i}catch(s){return un(s)}if(Array.isArray(n)){var o=n.map(t);return e.pop(),o}var a=Object.keys(n).reduce(function(s,u){return s[u]=t(sa(n,u)),s},{});return e.pop(),a}return t(r)}Kr.exports=function(r,e,t){return JSON.stringify(ln(r),e,t)};Kr.exports.ensureProperties=ln});var hn=L((ku,fn)=>{var Z=require("fs"),He=require("path");fn.exports=yr;yr.ncp=yr;function yr(r,e,t,n){var i=n;n||(i=t,t={});var o=process.cwd(),a=He.resolve(o,r),s=He.resolve(o,e),u=t.filter,l=t.rename,c=t.transform,_=t.clobber!==!1,f=t.modified,d=t.dereference,h=null,S=0,R=0,w=0,M=t.limit||yr.limit||16;M=M<1?1:M>512?512:M,j(a);function j(m){if(S++,u){if(u instanceof RegExp){if(!u.test(m))return p(!0)}else if(typeof u=="function"&&!u(m))return p(!0)}return k(m)}function k(m){var g=d?Z.stat:Z.lstat;if(w>=M)return setImmediate(function(){k(m)});w++,g(m,function(b,T){var $={};if(b)return E(b);if($.name=m,$.mode=T.mode,$.mtime=T.mtime,$.atime=T.atime,T.isDirectory())return x($);if(T.isFile())return N($);if(T.isSymbolicLink())return D(m)})}function N(m){var g=m.name.replace(a,s);l&&(g=l(g)),v(g,function(b){if(b)return B(m,g);if(_&&P(g,function(){B(m,g)}),f){var T=d?Z.stat:Z.lstat;T(g,function($,U){if(m.mtime.getTime()>U.mtime.getTime())B(m,g);else return p()})}else return p()})}function B(m,g){var b=Z.createReadStream(m.name),T=Z.createWriteStream(g,{mode:m.mode});b.on("error",E),T.on("error",E),c?c(b,T,m):T.on("open",function(){b.pipe(T)}),T.once("finish",function(){f&&Z.utimesSync(g,m.atime,m.mtime),p()})}function P(m,g){Z.unlink(m,function(b){return b?E(b):g()})}function x(m){var g=m.name.replace(a,s);v(g,function(b){if(b)return A(m,g);Y(m.name)})}function A(m,g){Z.mkdir(g,m.mode,function(b){if(b)return E(b);Y(m.name)})}function Y(m){Z.readdir(m,function(g,b){return g?E(g):(b.forEach(function(T){j(He.join(m,T))}),p())})}function D(m){var g=m.replace(a,s);Z.readlink(m,function(b,T){if(b)return E(b);O(T,g)})}function O(m,g){d&&(m=He.resolve(o,m)),v(g,function(b){if(b)return y(m,g);Z.readlink(g,function(T,$){return T?E(T):(d&&($=He.resolve(o,$)),$===m?p():P(g,function(){y(m,g)}))})})}function y(m,g){Z.symlink(m,g,function(b){return b?E(b):p()})}function v(m,g){Z.lstat(m,function(b){return b&&b.code==="ENOENT"?g(!0):g(!1)})}function E(m){return t.stopOnError?i(m):(!h&&t.errs?h=Z.createWriteStream(t.errs):h||(h=[]),typeof h.write>"u"?h.push(m):h.write(m.stack+` `),p())}function p(m){if(m||w--,R++,S===R&&w===0&&i!==void 0)return i(h||null)}}});var mn=L((Ru,dn)=>{dn.exports=function(r,e){for(var t=[],n=0;n<r.length;n++){var i=e(r[n],n);ua(i)?t.push.apply(t,i):t.push(i)}return t};var ua=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}});var _n=L((Tu,yn)=>{"use strict";yn.exports=pn;function pn(r,e,t){r instanceof RegExp&&(r=vn(r,t)),e instanceof RegExp&&(e=vn(e,t));var n=gn(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function vn(r,e){var t=e.match(r);return t?t[0]:null}pn.range=gn;function gn(r,e,t){var n,i,o,a,s,u=t.indexOf(r),l=t.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(r===e)return[u,l];for(n=[],o=t.length;c>=0&&!s;)c==u?(n.push(c),u=t.indexOf(r,c+1)):n.length==1?s=[n.pop(),l]:(i=n.pop(),i<o&&(o=i,a=l),l=t.indexOf(e,c+1)),c=u<l&&u>=0?u:l;n.length&&(s=[o,a])}return s}});var An=L((Lu,Mn)=>{var la=mn(),Sn=_n();Mn.exports=ha;var wn="\0SLASH"+Math.random()+"\0",bn="\0OPEN"+Math.random()+"\0",Zr="\0CLOSE"+Math.random()+"\0",En="\0COMMA"+Math.random()+"\0",On="\0PERIOD"+Math.random()+"\0";function Xr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ca(r){return r.split("\\\\").join(wn).split("\\{").join(bn).split("\\}").join(Zr).split("\\,").join(En).split("\\.").join(On)}function fa(r){return r.split(wn).join("\\").split(bn).join("{").split(Zr).join("}").split(En).join(",").split(On).join(".")}function Cn(r){if(!r)return[""];var e=[],t=Sn("{","}",r);if(!t)return r.split(",");var n=t.pre,i=t.body,o=t.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var s=Cn(o);return o.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function ha(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),Ne(ca(r),!0).map(fa)):[]}function da(r){return"{"+r+"}"}function ma(r){return/^-?0\d/.test(r)}function va(r,e){return r<=e}function pa(r,e){return r>=e}function Ne(r,e){var t=[],n=Sn("{","}",r);if(!n||/\$$/.test(n.pre))return[r];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=i||o,s=n.body.indexOf(",")>=0;if(!a&&!s)return n.post.match(/,.*\}/)?(r=n.pre+"{"+n.body+Zr+n.post,Ne(r)):[r];var u;if(a)u=n.body.split(/\.\./);else if(u=Cn(n.body),u.length===1&&(u=Ne(u[0],!1).map(da),u.length===1)){var c=n.post.length?Ne(n.post,!1):[""];return c.map(function(D){return n.pre+u[0]+D})}var l=n.pre,c=n.post.length?Ne(n.post,!1):[""],_;if(a){var f=Xr(u[0]),d=Xr(u[1]),h=Math.max(u[0].length,u[1].length),S=u.length==3?Math.abs(Xr(u[2])):1,R=va,w=d<f;w&&(S*=-1,R=pa);var M=u.some(ma);_=[];for(var j=f;R(j,d);j+=S){var k;if(o)k=String.fromCharCode(j),k==="\\"&&(k="");else if(k=String(j),M){var N=h-k.length;if(N>0){var B=new Array(N+1).join("0");j<0?k="-"+B+k.slice(1):k=B+k}}_.push(k)}}else _=la(u,function(Y){return Ne(Y,!1)});for(var P=0;P<_.length;P++)for(var x=0;x<c.length;x++){var A=l+_[P]+c[x];(!e||a||A)&&t.push(A)}return t}});var wr=L((Nu,Ln)=>{Ln.exports=re;re.Minimatch=H;var Qe=function(){try{return require("path")}catch{}}()||{sep:"/"};re.sep=Qe.sep;var tt=re.GLOBSTAR=H.GLOBSTAR={},ga=An(),Dn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},et="[^/]",rt=et+"*?",ya="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_a="(?:(?!(?:\\/|^)\\.).)*?",kn=Sa("().*{}+?[]^$\\!");function Sa(r){return r.split("").reduce(function(e,t){return e[t]=!0,e},{})}var Rn=/\/+/;re.filter=wa;function wa(r,e){return e=e||{},function(t,n,i){return re(t,r,e)}}function _e(r,e){e=e||{};var t={};return Object.keys(r).forEach(function(n){t[n]=r[n]}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}re.defaults=function(r){if(!r||typeof r!="object"||!Object.keys(r).length)return re;var e=re,t=function(i,o,a){return e(i,o,_e(r,a))};return t.Minimatch=function(i,o){return new e.Minimatch(i,_e(r,o))},t.Minimatch.defaults=function(i){return e.defaults(_e(r,i)).Minimatch},t.filter=function(i,o){return e.filter(i,_e(r,o))},t.defaults=function(i){return e.defaults(_e(r,i))},t.makeRe=function(i,o){return e.makeRe(i,_e(r,o))},t.braceExpand=function(i,o){return e.braceExpand(i,_e(r,o))},t.match=function(n,i,o){return e.match(n,i,_e(r,o))},t};H.defaults=function(r){return re.defaults(r).Minimatch};function re(r,e,t){return Sr(e),t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:new H(e,t).match(r)}function H(r,e){if(!(this instanceof H))return new H(r,e);Sr(r),e||(e={}),r=r.trim(),!e.allowWindowsEscape&&Qe.sep!=="/"&&(r=r.split(Qe.sep).join("/")),this.options=e,this.set=[],this.pattern=r,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}H.prototype.debug=function(){};H.prototype.make=ba;function ba(){var r=this.pattern,e=this.options;if(!e.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,t),t=this.globParts=t.map(function(n){return n.split(Rn)}),this.debug(this.pattern,t),t=t.map(function(n,i,o){return n.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}H.prototype.parseNegate=Ea;function Ea(){var r=this.pattern,e=!1,t=this.options,n=0;if(!t.nonegate){for(var i=0,o=r.length;i<o&&r.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=r.substr(n)),this.negate=e}}re.braceExpand=function(r,e){return Tn(r,e)};H.prototype.braceExpand=Tn;function Tn(r,e){return e||(this instanceof H?e=this.options:e={}),r=typeof r>"u"?this.pattern:r,Sr(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:ga(r)}var Oa=1024*64,Sr=function(r){if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>Oa)throw new TypeError("pattern is too long")};H.prototype.parse=Ca;var _r={};function Ca(r,e){Sr(r);var t=this.options;if(r==="**")if(t.noglobstar)r="*";else return tt;if(r==="")return"";var n="",i=!!t.nocase,o=!1,a=[],s=[],u,l=!1,c=-1,_=-1,f=r.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(u){switch(u){case"*":n+=rt,i=!0;break;case"?":n+=et,i=!0;break;default:n+="\\"+u;break}d.debug("clearStateChar %j %j",u,n),u=!1}}for(var S=0,R=r.length,w;S<R&&(w=r.charAt(S));S++){if(this.debug("%s %s %s %j",r,S,n,w),o&&kn[w]){n+="\\"+w,o=!1;continue}switch(w){case"/":return!1;case"\\":h(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,S,n,w),l){this.debug(" in class"),w==="!"&&S===_+1&&(w="^"),n+=w;continue}d.debug("call clearStateChar %j",u),h(),u=w,t.noext&&h();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}a.push({type:u,start:S-1,reStart:n.length,open:Dn[u].open,close:Dn[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!a.length){n+="\\)";continue}h(),i=!0;var M=a.pop();n+=M.close,M.type==="!"&&s.push(M),M.reEnd=n.length;continue;case"|":if(l||!a.length||o){n+="\\|",o=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+w;continue}l=!0,_=S,c=n.length,n+=w;continue;case"]":if(S===_+1||!l){n+="\\"+w,o=!1;continue}var j=r.substring(_+1,S);try{RegExp("["+j+"]")}catch{var k=this.parse(j,_r);n=n.substr(0,c)+"\\["+k[0]+"\\]",i=i||k[1],l=!1;continue}i=!0,l=!1,n+=w;continue;default:h(),o?o=!1:kn[w]&&!(w==="^"&&l)&&(n+="\\"),n+=w}}for(l&&(j=r.substr(_+1),k=this.parse(j,_r),n=n.substr(0,c)+"\\["+k[0],i=i||k[1]),M=a.pop();M;M=a.pop()){var N=n.slice(M.reStart+M.open.length);this.debug("setting tail",n,M),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(T,$,U){return U||(U="\\"),$+$+U+"|"}),this.debug(`tail=%j %s`,N,N,M,n);var B=M.type==="*"?rt:M.type==="?"?et:"\\"+M.type;i=!0,n=n.slice(0,M.reStart)+B+"\\("+N}h(),o&&(n+="\\\\");var P=!1;switch(n.charAt(0)){case"[":case".":case"(":P=!0}for(var x=s.length-1;x>-1;x--){var A=s[x],Y=n.slice(0,A.reStart),D=n.slice(A.reStart,A.reEnd-8),O=n.slice(A.reEnd-8,A.reEnd),y=n.slice(A.reEnd);O+=y;var v=Y.split("(").length-1,E=y;for(S=0;S<v;S++)E=E.replace(/\)[+*?]?/,"");y=E;var p="";y===""&&e!==_r&&(p="$");var m=Y+D+y+p+O;n=m}if(n!==""&&i&&(n="(?=.)"+n),P&&(n=f+n),e===_r)return[n,i];if(!i)return Aa(r);var g=t.nocase?"i":"";try{var b=new RegExp("^"+n+"$",g)}catch{return new RegExp("$.")}return b._glob=r,b._src=n,b}re.makeRe=function(r,e){return new H(r,e||{}).makeRe()};H.prototype.makeRe=Ma;function Ma(){if(this.regexp||this.regexp===!1)return this.regexp;var r=this.set;if(!r.length)return this.regexp=!1,this.regexp;var e=this.options,t=e.noglobstar?rt:e.dot?ya:_a,n=e.nocase?"i":"",i=r.map(function(o){return o.map(function(a){return a===tt?t:typeof a=="string"?Da(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}re.match=function(r,e,t){t=t||{};var n=new H(e,t);return r=r.filter(function(i){return n.match(i)}),n.options.nonull&&!r.length&&r.push(e),r};H.prototype.match=function(e,t){if(typeof t>"u"&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var n=this.options;Qe.sep!=="/"&&(e=e.split(Qe.sep).join("/")),e=e.split(Rn),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var o,a;for(a=e.length-1;a>=0&&(o=e[a],!o);a--);for(a=0;a<i.length;a++){var s=i[a],u=e;n.matchBase&&s.length===1&&(u=[o]);var l=this.matchOne(u,s,t);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};H.prototype.matchOne=function(r,e,t){var n=this.options;this.debug("matchOne",{this:this,file:r,pattern:e}),this.debug("matchOne",r.length,e.length);for(var i=0,o=0,a=r.length,s=e.length;i<a&&o<s;i++,o++){this.debug("matchOne loop");var u=e[o],l=r[i];if(this.debug(e,u,l),u===!1)return!1;if(u===tt){this.debug("GLOBSTAR",[e,u,l]);var c=i,_=o+1;if(_===s){for(this.debug("** at the end");i<a;i++)if(r[i]==="."||r[i]===".."||!n.dot&&r[i].charAt(0)===".")return!1;return!0}for(;c<a;){var f=r[c];if(this.debug(` globstar while`,r,c,e,_,f),this.matchOne(r.slice(c),e.slice(_),t))return this.debug("globstar found match!",c,a,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",r,c,e,_);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(t&&(this.debug(` >>> no match, partial?`,r,c,e,_),c===a))}var d;if(typeof u=="string"?(d=l===u,this.debug("string match",u,l,d)):(d=l.match(u),this.debug("pattern match",u,l,d)),!d)return!1}if(i===a&&o===s)return!0;if(i===a)return t;if(o===s)return i===a-1&&r[i]==="";throw new Error("wtf?")};function Aa(r){return r.replace(/\\(.)/g,"$1")}function Da(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Nn=L((xu,nt)=>{typeof Object.create=="function"?nt.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:nt.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 xn=L(($u,ot)=>{try{if(it=require("util"),typeof it.inherits!="function")throw"";ot.exports=it.inherits}catch{ot.exports=Nn()}var it});var Er=L((ju,br)=>{"use strict";function $n(r){return r.charAt(0)==="/"}function jn(r){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(r),n=t[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(t[2]||i)}br.exports=process.platform==="win32"?jn:$n;br.exports.posix=$n;br.exports.win32=jn});var ut=L(ue=>{ue.alphasort=Pn;ue.alphasorti=Fn;ue.setopts=Na;ue.ownProp=In;ue.makeAbs=st;ue.finish=xa;ue.mark=$a;ue.isIgnored=Yn;ue.childrenIgnored=ja;function In(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var xe=require("path"),ka=wr(),Ra=Er(),at=ka.Minimatch;function Fn(r,e){return r.toLowerCase().localeCompare(e.toLowerCase())}function Pn(r,e){return r.localeCompare(e)}function Ta(r,e){r.ignore=e.ignore||[],Array.isArray(r.ignore)||(r.ignore=[r.ignore]),r.ignore.length&&(r.ignore=r.ignore.map(La))}function La(r){var e=null;if(r.slice(-3)==="/**"){var t=r.replace(/(\/\*\*)+$/,"");e=new at(t,{dot:!0})}return{matcher:new at(r,{dot:!0}),gmatcher:e}}function Na(r,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}r.silent=!!t.silent,r.pattern=e,r.strict=t.strict!==!1,r.realpath=!!t.realpath,r.realpathCache=t.realpathCache||Object.create(null),r.follow=!!t.follow,r.dot=!!t.dot,r.mark=!!t.mark,r.nodir=!!t.nodir,r.nodir&&(r.mark=!0),r.sync=!!t.sync,r.nounique=!!t.nounique,r.nonull=!!t.nonull,r.nosort=!!t.nosort,r.nocase=!!t.nocase,r.stat=!!t.stat,r.noprocess=!!t.noprocess,r.maxLength=t.maxLength||1/0,r.cache=t.cache||Object.create(null),r.statCache=t.statCache||Object.create(null),r.symlinks=t.symlinks||Object.create(null),Ta(r,t),r.changedCwd=!1;var n=process.cwd();In(t,"cwd")?(r.cwd=t.cwd,r.changedCwd=xe.resolve(t.cwd)!==n):r.cwd=n,r.root=t.root||xe.resolve(r.cwd,"/"),r.root=xe.resolve(r.root),process.platform==="win32"&&(r.root=r.root.replace(/\\/g,"/")),r.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,r.minimatch=new at(e,t),r.options=r.minimatch.options}function xa(r){for(var e=r.nounique,t=e?[]:Object.create(null),n=0,i=r.matches.length;n<i;n++){var o=r.matches[n];if(!o||Object.keys(o).length===0){if(r.nonull){var a=r.minimatch.globSet[n];e?t.push(a):t[a]=!0}}else{var s=Object.keys(o);e?t.push.apply(t,s):s.forEach(function(u){t[u]=!0})}}if(e||(t=Object.keys(t)),r.nosort||(t=t.sort(r.nocase?Fn:Pn)),r.mark){for(var n=0;n<t.length;n++)t[n]=r._mark(t[n]);r.nodir&&(t=t.filter(function(u){return!/\/$/.test(u)}))}r.ignore.length&&(t=t.filter(function(u){return!Yn(r,u)})),r.found=t}function $a(r,e){var t=st(r,e),n=r.cache[t],i=e;if(n){var o=n==="DIR"||Array.isArray(n),a=e.slice(-1)==="/";if(o&&!a?i+="/":!o&&a&&(i=i.slice(0,-1)),i!==e){var s=st(r,i);r.statCache[s]=r.statCache[t],r.cache[s]=r.cache[t]}}return i}function st(r,e){var t=e;return e.charAt(0)==="/"?t=xe.join(r.root,e):Ra(e)||e===""?t=e:r.changedCwd?t=xe.resolve(r.cwd,e):t=xe.resolve(e),t}function Yn(r,e){return r.ignore.length?r.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}):!1}function ja(r,e){return r.ignore.length?r.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}):!1}});var zn=L((qu,Un)=>{Un.exports=qn;qn.GlobSync=W;var Je=require("fs"),Bn=wr(),Fu=Bn.Minimatch,Pu=ft().Glob,Yu=require("util"),lt=require("path"),Gn=require("assert"),Or=Er(),Se=ut(),Bu=Se.alphasort,Gu=Se.alphasorti,Ia=Se.setopts,ct=Se.ownProp,Fa=Se.childrenIgnored;function qn(r,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new W(r,e).found}function W(r,e){if(!r)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof W))return new W(r,e);if(Ia(this,r,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var n=0;n<t;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}W.prototype._finish=function(){if(Gn(this instanceof W),this.realpath){var r=this;this.matches.forEach(function(e,t){var n=r.matches[t]=Object.create(null);for(var i in e)try{i=r._makeAbs(i);var o=Je.realpathSync(i,r.realpathCache);n[o]=!0}catch(a){if(a.syscall==="stat")n[r._makeAbs(i)]=!0;else throw a}})}Se.finish(this)};W.prototype._process=function(r,e,t){Gn(this instanceof W);for(var n=0;typeof r[n]=="string";)n++;var i;switch(n){case r.length:this._processSimple(r.join("/"),e);return;case 0:i=null;break;default:i=r.slice(0,n).join("/");break}var o=r.slice(n),a;i===null?a=".":((Or(i)||Or(r.join("/")))&&(!i||!Or(i))&&(i="/"+i),a=i);var s=this._makeAbs(a);if(!Fa(this,a)){var u=o[0]===Bn.GLOBSTAR;u?this._processGlobStar(i,a,s,o,e,t):this._processReaddir(i,a,s,o,e,t)}};W.prototype._processReaddir=function(r,e,t,n,i,o){var a=this._readdir(t,o);if(a){for(var s=n[0],u=!!this.minimatch.negate,l=s._glob,c=this.dot||l.charAt(0)===".",_=[],f=0;f<a.length;f++){var d=a[f];if(d.charAt(0)!=="."||c){var h;u&&!r?h=!d.match(s):h=d.match(s),h&&_.push(d)}}var S=_.length;if(S!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<S;f++){var d=_[f];r&&(r.slice(-1)!=="/"?d=r+"/"+d:d=r+d),d.charAt(0)==="/"&&!this.nomount&&(d=lt.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<S;f++){var d=_[f],R;r?R=[r,d]:R=[d],this._process(R.concat(n),i,o)}}}};W.prototype._emitMatch=function(r,e){var t=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[r][e]){if(this.nodir){var n=this.cache[this._makeAbs(e)];if(n==="DIR"||Array.isArray(n))return}this.matches[r][e]=!0,this.stat&&this._stat(e)}};W.prototype._readdirInGlobStar=function(r){if(this.follow)return this._readdir(r,!1);var e,t,n;try{t=Je.lstatSync(r)}catch{return null}var i=t.isSymbolicLink();return this.symlinks[r]=i,!i&&!t.isDirectory()?this.cache[r]="FILE":e=this._readdir(r,!1),e};W.prototype._readdir=function(r,e){var t;if(e&&!ct(this.symlinks,r))return this._readdirInGlobStar(r);if(ct(this.cache,r)){var n=this.cache[r];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(r,Je.readdirSync(r))}catch(i){return this._readdirError(r,i),null}};W.prototype._readdirEntries=function(r,e){if(!this.mark&&!this.stat)for(var t=0;t<e.length;t++){var n=e[t];r==="/"?n=r+n:n=r+"/"+n,this.cache[n]=!0}return this.cache[r]=e,e};W.prototype._readdirError=function(r,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(r)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(r)]=!1;break;default:if(this.cache[this._makeAbs(r)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};W.prototype._processGlobStar=function(r,e,t,n,i,o){var a=this._readdir(t,o);if(a){var s=n.slice(1),u=r?[r]:[],l=u.concat(s);this._process(l,i,!1);var c=a.length,_=this.symlinks[t];if(!(_&&o))for(var f=0;f<c;f++){var d=a[f];if(!(d.charAt(0)==="."&&!this.dot)){var h=u.concat(a[f],s);this._process(h,i,!0);var S=u.concat(a[f],n);this._process(S,i,!0)}}}};W.prototype._processSimple=function(r,e){var t=this._stat(r);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!t){if(r&&Or(r)&&!this.nomount){var n=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=lt.join(this.root,r):(r=lt.resolve(this.root,r),n&&(r+="/"))}process.platform==="win32"&&(r=r.replace(/\\/g,"/")),this.matches[e][r]=!0}};W.prototype._stat=function(r){var e=this._makeAbs(r),t=r.slice(-1)==="/";if(r.length>this.maxLength)return!1;if(!this.stat&&ct(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!t||a==="DIR")return a;if(t&&a==="FILE")return!1}var n,i=this.statCache[e];if(!i){var o;try{o=Je.lstatSync(e)}catch{return!1}if(o.isSymbolicLink())try{i=Je.statSync(e)}catch{i=o}else i=o}this.statCache[e]=i;var a=i.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||a,t&&a!=="DIR"?!1:a};W.prototype._mark=function(r){return Se.mark(this,r)};W.prototype._makeAbs=function(r){return Se.makeAbs(this,r)}});var ht=L((Uu,Vn)=>{Vn.exports=Wn;function Wn(r,e){if(r&&e)return Wn(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(n){t[n]=r[n]}),t;function t(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=r.apply(this,n),a=n[n.length-1];return typeof o=="function"&&o!==a&&Object.keys(a).forEach(function(s){o[s]=a[s]}),o}}});var mt=L((zu,dt)=>{var Hn=ht();dt.exports=Hn(Cr);dt.exports.strict=Hn(Qn);Cr.proto=Cr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Cr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Qn(this)},configurable:!0})});function Cr(r){var e=function(){return e.called?e.value:(e.called=!0,e.value=r.apply(this,arguments))};return e.called=!1,e}function Qn(r){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=r.apply(this,arguments)},t=r.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var Kn=L((Wu,Jn)=>{var Pa=ht(),Ke=Object.create(null),Ya=mt();Jn.exports=Pa(Ba);function Ba(r,e){return Ke[r]?(Ke[r].push(e),null):(Ke[r]=[e],Ga(r))}function Ga(r){return Ya(function e(){var t=Ke[r],n=t.length,i=qa(arguments);try{for(var o=0;o<n;o++)t[o].apply(null,i)}finally{t.length>n?(t.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete Ke[r]}})}function qa(r){for(var e=r.length,t=[],n=0;n<e;n++)t[n]=r[n];return t}});var ft=L((Ku,Zn)=>{Zn.exports=Ce;var Xe=require("fs"),Xn=wr(),Vu=Xn.Minimatch,Ua=xn(),za=require("events").EventEmitter,vt=require("path"),pt=require("assert"),Mr=Er(),yt=zn(),he=ut(),Hu=he.alphasort,Qu=he.alphasorti,Wa=he.setopts,gt=he.ownProp,_t=Kn(),Ju=require("util"),Va=he.childrenIgnored,Ha=he.isIgnored,Qa=mt();function Ce(r,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return yt(r,e)}return new F(r,e,t)}Ce.sync=yt;var Ja=Ce.GlobSync=yt.GlobSync;Ce.glob=Ce;function Ka(r,e){if(e===null||typeof e!="object")return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r}Ce.hasMagic=function(r,e){var t=Ka({},e);t.noprocess=!0;var n=new F(r,t),i=n.minimatch.set;if(i.length>1)return!0;for(var o=0;o<i[0].length;o++)if(typeof i[0][o]!="string")return!0;return!1};Ce.Glob=F;Ua(F,za);function F(r,e,t){if(typeof e=="function"&&(t=e,e=null),e&&e.sync){if(t)throw new TypeError("callback provided to sync glob");return new Ja(r,e)}if(!(this instanceof F))return new F(r,e,t);Wa(this,r,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof t=="function"&&(t=Qa(t),this.on("error",t),this.on("end",function(s){t(null,s)}));var n=this,i=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(i),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return a();for(var o=0;o<i;o++)this._process(this.minimatch.set[o],o,!1,a);function a(){--n._processing,n._processing<=0&&n._finish()}}F.prototype._finish=function(){if(pt(this instanceof F),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();he.finish(this),this.emit("end",this.found)}};F.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var r=this.matches.length;if(r===0)return this._finish();for(var e=this,t=0;t<this.matches.length;t++)this._realpathSet(t,n);function n(){--r===0&&e._finish()}};F.prototype._realpathSet=function(r,e){var t=this.matches[r];if(!t)return e();var n=Object.keys(t),i=this,o=n.length;if(o===0)return e();var a=this.matches[r]=Object.create(null);n.forEach(function(s,u){s=i._makeAbs(s),Xe.realpath(s,i.realpathCache,function(l,c){l?l.syscall==="stat"?a[s]=!0:i.emit("error",l):a[c]=!0,--o===0&&(i.matches[r]=a,e())})})};F.prototype._mark=function(r){return he.mark(this,r)};F.prototype._makeAbs=function(r){return he.makeAbs(this,r)};F.prototype.abort=function(){this.aborted=!0,this.emit("abort")};F.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};F.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var r=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<r.length;e++){var t=r[e];this._emitMatch(t[0],t[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var i=n[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};F.prototype._process=function(r,e,t,n){if(pt(this instanceof F),pt(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([r,e,t,n]);return}for(var i=0;typeof r[i]=="string";)i++;var o;switch(i){case r.length:this._processSimple(r.join("/"),e,n);return;case 0:o=null;break;default:o=r.slice(0,i).join("/");break}var a=r.slice(i),s;o===null?s=".":((Mr(o)||Mr(r.join("/")))&&(!o||!Mr(o))&&(o="/"+o),s=o);var u=this._makeAbs(s);if(Va(this,s))return n();var l=a[0]===Xn.GLOBSTAR;l?this._processGlobStar(o,s,u,a,e,t,n):this._processReaddir(o,s,u,a,e,t,n)}};F.prototype._processReaddir=function(r,e,t,n,i,o,a){var s=this;this._readdir(t,o,function(u,l){return s._processReaddir2(r,e,t,n,i,o,l,a)})};F.prototype._processReaddir2=function(r,e,t,n,i,o,a,s){if(!a)return s();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,_=this.dot||c.charAt(0)===".",f=[],d=0;d<a.length;d++){var h=a[d];if(h.charAt(0)!=="."||_){var S;l&&!r?S=!h.match(u):S=h.match(u),S&&f.push(h)}}var R=f.length;if(R===0)return s();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<R;d++){var h=f[d];r&&(r!=="/"?h=r+"/"+h:h=r+h),h.charAt(0)==="/"&&!this.nomount&&(h=vt.join(this.root,h)),this._emitMatch(i,h)}return s()}n.shift();for(var d=0;d<R;d++){var h=f[d],w;r&&(r!=="/"?h=r+"/"+h:h=r+h),this._process([h].concat(n),i,o,s)}s()};F.prototype._emitMatch=function(r,e){if(!this.aborted&&!this.matches[r][e]&&!Ha(this,e)){if(this.paused){this._emitQueue.push([r,e]);return}var t=this._makeAbs(e);if(this.nodir){var n=this.cache[t];if(n==="DIR"||Array.isArray(n))return}this.mark&&(e=this._mark(e)),this.matches[r][e]=!0;var i=this.statCache[t];i&&this.emit("stat",e,i),this.emit("match",e)}};F.prototype._readdirInGlobStar=function(r,e){if(this.aborted)return;if(this.follow)return this._readdir(r,!1,e);var t="lstat\0"+r,n=this,i=_t(t,o);i&&Xe.lstat(r,i);function o(a,s){if(a)return e();var u=s.isSymbolicLink();n.symlinks[r]=u,!u&&!s.isDirectory()?(n.cache[r]="FILE",e()):n._readdir(r,!1,e)}};F.prototype._readdir=function(r,e,t){if(!this.aborted&&(t=_t("readdir\0"+r+"\0"+e,t),!!t)){if(e&&!gt(this.symlinks,r))return this._readdirInGlobStar(r,t);if(gt(this.cache,r)){var n=this.cache[r];if(!n||n==="FILE")return t();if(Array.isArray(n))return t(null,n)}var i=this;Xe.readdir(r,Xa(this,r,t))}};function Xa(r,e,t){return function(n,i){n?r._readdirError(e,n,t):r._readdirEntries(e,i,t)}}F.prototype._readdirEntries=function(r,e,t){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];r==="/"?i=r+i:i=r+"/"+i,this.cache[i]=!0}return this.cache[r]=e,t(null,e)}};F.prototype._readdirError=function(r,e,t){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(r)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(r)]=!1;break;default:this.cache[this._makeAbs(r)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return t()}};F.prototype._processGlobStar=function(r,e,t,n,i,o,a){var s=this;this._readdir(t,o,function(u,l){s._processGlobStar2(r,e,t,n,i,o,l,a)})};F.prototype._processGlobStar2=function(r,e,t,n,i,o,a,s){if(!a)return s();var u=n.slice(1),l=r?[r]:[],c=l.concat(u);this._process(c,i,!1,s);var _=this.symlinks[t],f=a.length;if(_&&o)return s();for(var d=0;d<f;d++){var h=a[d];if(!(h.charAt(0)==="."&&!this.dot)){var S=l.concat(a[d],u);this._process(S,i,!0,s);var R=l.concat(a[d],n);this._process(R,i,!0,s)}}s()};F.prototype._processSimple=function(r,e,t){var n=this;this._stat(r,function(i,o){n._processSimple2(r,e,i,o,t)})};F.prototype._processSimple2=function(r,e,t,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(r&&Mr(r)&&!this.nomount){var o=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=vt.join(this.root,r):(r=vt.resolve(this.root,r),o&&(r+="/"))}process.platform==="win32"&&(r=r.replace(/\\/g,"/")),this._emitMatch(e,r),i()};F.prototype._stat=function(r,e){var t=this._makeAbs(r),n=r.slice(-1)==="/";if(r.length>this.maxLength)return e();if(!this.stat&&gt(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return e(null,i);if(n&&i==="FILE")return e()}var o,a=this.statCache[t];if(a!==void 0){if(a===!1)return e(null,a);var s=a.isDirectory()?"DIR":"FILE";return n&&s==="FILE"?e():e(null,s,a)}var u=this,l=_t("stat\0"+t,c);l&&Xe.lstat(t,l);function c(_,f){if(f&&f.isSymbolicLink())return Xe.stat(t,function(d,h){d?u._stat2(r,t,null,f,e):u._stat2(r,t,d,h,e)});u._stat2(r,t,_,f,e)}};F.prototype._stat2=function(r,e,t,n,i){if(t)return this.statCache[e]=!1,i();var o=r.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&!n.isDirectory())return i(null,!1,n);var a=n.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||a,o&&a!=="DIR"?i():i(null,a,n)}});var oi=L((Xu,ii)=>{ii.exports=Et;Et.sync=ni;var I=require("assert"),ei=require("path"),kr=require("fs"),Rr=ft(),ri={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},St=0,bt=process.platform==="win32";function ti(r){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(t){r[t]=r[t]||kr[t],t=t+"Sync",r[t]=r[t]||kr[t]}),r.maxBusyTries=r.maxBusyTries||3,r.emfileWait=r.emfileWait||1e3,r.disableGlob=r.disableGlob||!1}function Et(r,e,t){typeof e=="function"&&(t=e,e={}),I(r,"rimraf: missing path"),I.equal(typeof r,"string","rimraf: path should be a string"),I(e,"rimraf: missing options"),I.equal(typeof e,"object","rimraf: options should be object"),I.equal(typeof t,"function","rimraf: callback function required"),ti(e);var n=0,i=null,o=0;if(e.disableGlob||!Rr.hasMagic(r))return s(null,[r]);kr.lstat(r,function(u,l){if(!u)return s(null,[r]);Rr(r,ri,s)});function a(u){i=i||u,--o===0&&t(i)}function s(u,l){if(u)return t(u);if(o=l.length,o===0)return t();l.forEach(function(c){wt(c,e,function _(f){if(f){if(bt&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){wt(c,e,_)},d)}if(f.code==="EMFILE"&&St<e.emfileWait)return setTimeout(function(){wt(c,e,_)},St++);f.code==="ENOENT"&&(f=null)}St=0,a(f)})})}}function wt(r,e,t){I(r),I(e),I(typeof t=="function"),e.lstat(r,function(n,i){if(n&&n.code==="ENOENT")return t(null);if(i&&i.isDirectory())return Ar(r,e,n,t);e.unlink(r,function(o){if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return bt?Za(r,e,o,t):Ar(r,e,o,t);if(o.code==="EISDIR")return Ar(r,e,o,t)}return t(o)})})}function Za(r,e,t,n){I(r),I(e),I(typeof n=="function"),t&&I(t instanceof Error),e.chmod(r,666,function(i){i?n(i.code==="ENOENT"?null:t):e.stat(r,function(o,a){o?n(o.code==="ENOENT"?null:t):a.isDirectory()?Ar(r,e,t,n):e.unlink(r,n)})})}function es(r,e,t){I(r),I(e),t&&I(t instanceof Error);try{e.chmodSync(r,666)}catch(i){if(i.code==="ENOENT")return;throw t}try{var n=e.statSync(r)}catch(i){if(i.code==="ENOENT")return;throw t}n.isDirectory()?Dr(r,e,t):e.unlinkSync(r)}function Ar(r,e,t,n){I(r),I(e),t&&I(t instanceof Error),I(typeof n=="function"),e.rmdir(r,function(i){i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?rs(r,e,n):i&&i.code==="ENOTDIR"?n(t):n(i)})}function rs(r,e,t){I(r),I(e),I(typeof t=="function"),e.readdir(r,function(n,i){if(n)return t(n);var o=i.length;if(o===0)return e.rmdir(r,t);var a;i.forEach(function(s){Et(ei.join(r,s),e,function(u){if(!a){if(u)return t(a=u);--o===0&&e.rmdir(r,t)}})})})}function ni(r,e){e=e||{},ti(e),I(r,"rimraf: missing path"),I.equal(typeof r,"string","rimraf: path should be a string"),I(e,"rimraf: missing options"),I.equal(typeof e,"object","rimraf: options should be object");var t;if(e.disableGlob||!Rr.hasMagic(r))t=[r];else try{kr.lstatSync(r),t=[r]}catch{t=Rr.sync(r,ri)}if(t.length)for(var n=0;n<t.length;n++){var r=t[n];try{var i=e.lstatSync(r)}catch(a){if(a.code==="ENOENT")return}try{i&&i.isDirectory()?Dr(r,e,null):e.unlinkSync(r)}catch(a){if(a.code==="ENOENT")return;if(a.code==="EPERM")return bt?es(r,e,a):Dr(r,e,a);if(a.code!=="EISDIR")throw a;Dr(r,e,a)}}}function Dr(r,e,t){I(r),I(e),t&&I(t instanceof Error);try{e.rmdirSync(r)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw t;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&ts(r,e)}}function ts(r,e){I(r),I(e),e.readdirSync(r).forEach(function(t){ni(ei.join(r,t),e)}),e.rmdirSync(r,e)}});var li=L((Zu,ui)=>{var Ze=require("path"),ai=require("fs"),si=parseInt("0777",8);ui.exports=$e.mkdirp=$e.mkdirP=$e;function $e(r,e,t,n){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,o=e.fs||ai;i===void 0&&(i=si),n||(n=null);var a=t||function(){};r=Ze.resolve(r),o.mkdir(r,i,function(s){if(!s)return n=n||r,a(null,n);switch(s.code){case"ENOENT":if(Ze.dirname(r)===r)return a(s);$e(Ze.dirname(r),e,function(u,l){u?a(u,l):$e(r,e,a,l)});break;default:o.stat(r,function(u,l){u||!l.isDirectory()?a(s,n):a(null,n)});break}})}$e.sync=function r(e,t,n){(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,o=t.fs||ai;i===void 0&&(i=si),n||(n=null),e=Ze.resolve(e);try{o.mkdirSync(e,i),n=n||e}catch(s){switch(s.code){case"ENOENT":n=r(Ze.dirname(e),t,n),r(e,t,n);break;default:var a;try{a=o.statSync(e)}catch{throw s}if(!a.isDirectory())throw s;break}}return n}});var mi=L((el,di)=>{var je=require("fs"),ns=hn().ncp,is=require("path"),ci=oi(),os=li();di.exports=as;function as(r,e,t,n){typeof t=="function"&&(n=t,t={});var i=!!t.mkdirp,o=t.clobber!==!1,a=t.limit||16;i?s():u();function s(){os(is.dirname(e),function(l){if(l)return n(l);u()})}function u(){o?je.rename(r,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);fi(r,e,o,a,n)}):je.link(r,e,function(l){if(l){if(l.code==="EXDEV"){fi(r,e,o,a,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){hi(r,e,o,a,n);return}n(l);return}je.unlink(r,n)})}}function fi(r,e,t,n,i){var o=t?"w":"wx",a=je.createReadStream(r),s=je.createWriteStream(e,{flags:o});a.on("error",function(l){a.destroy(),s.destroy(),s.removeListener("close",u),l.code==="EISDIR"||l.code==="EPERM"?hi(r,e,t,n,i):i(l)}),s.on("error",function(l){a.destroy(),s.destroy(),s.removeListener("close",u),i(l)}),s.once("close",u),a.pipe(s);function u(){je.unlink(r,i)}}function hi(r,e,t,n,i){var o={stopOnErr:!0,clobber:!1,limit:n};t?ci(e,{disableGlob:!0},function(s){if(s)return i(s);a()}):a();function a(){ns(r,e,o,function(s){if(s)return i(s[0]);ci(r,{disableGlob:!0},i)})}}});var pi=L(Ot=>{var vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ot.encode=function(r){if(0<=r&&r<vi.length)return vi[r];throw new TypeError("Must be between 0 and 63: "+r)};Ot.decode=function(r){var e=65,t=90,n=97,i=122,o=48,a=57,s=43,u=47,l=26,c=52;return e<=r&&r<=t?r-e:n<=r&&r<=i?r-n+l:o<=r&&r<=a?r-o+c:r==s?62:r==u?63:-1}});var At=L(Mt=>{var gi=pi(),Ct=5,yi=1<<Ct,_i=yi-1,Si=yi;function ss(r){return r<0?(-r<<1)+1:(r<<1)+0}function us(r){var e=(r&1)===1,t=r>>1;return e?-t:t}Mt.encode=function(e){var t="",n,i=ss(e);do n=i&_i,i>>>=Ct,i>0&&(n|=Si),t+=gi.encode(n);while(i>0);return t};Mt.decode=function(e,t,n){var i=e.length,o=0,a=0,s,u;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=gi.decode(e.charCodeAt(t++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));s=!!(u&Si),u&=_i,o=o+(u<<a),a+=Ct}while(s);n.value=us(o),n.rest=t}});var Pe=L(X=>{function ls(r,e,t){if(e in r)return r[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}X.getArg=ls;var wi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,cs=/^data:.+\,.+$/;function er(r){var e=r.match(wi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}X.urlPars