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) 115 kB
var Ja=Object.create;var gr=Object.defineProperty;var Ka=Object.getOwnPropertyDescriptor;var Xa=Object.getOwnPropertyNames;var Za=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var L=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ro=(r,e)=>{for(var t in e)gr(r,t,{get:e[t],enumerable:!0})},on=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xa(e))!eo.call(r,i)&&i!==t&&gr(r,i,{get:()=>e[i],enumerable:!(n=Ka(e,i))||n.enumerable});return r};var yr=(r,e,t)=>(t=r!=null?Ja(Za(r)):{},on(e||!r||!r.__esModule?gr(t,"default",{value:r,enumerable:!0}):t,r)),to=r=>on(gr({},"__esModule",{value:!0}),r);var sn=L((Hr,Qr)=>{(function(r,e){typeof Hr=="object"&&typeof Qr<"u"?Qr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Hr,function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",i="second",a="minute",o="hour",s="day",u="week",l="month",c="quarter",S="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+)?$/,_=/\[([^\]]+)]|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,k={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},C={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:S,w:u,d:s,D:f,h:o,m:a,s:i,ms:n,Q:c}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},j="en",T={};T[j]=k;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();T[m]&&(p=m),v&&(T[m]=v,p=m);var g=y.split("-");if(!p&&g.length>1)return O(g[0])}else{var b=y.name;T[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)},M=C;M.l=P,M.i=B,M.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(M.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,R=(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,R)):new Date(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,R)}}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 M},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 M.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=!!M.u(E)||E,g=M.p(v),b=function(se,V){var ie=M.w(p.$u?Date.UTC(p.$y,V,se):new Date(p.$y,V,se),p);return m?ie:ie.endOf(s)},R=function(se,V){return M.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 S: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 R(ge+"Hours",0);case o:return R(ge+"Minutes",1);case a:return R(ge+"Seconds",2);case i:return R(ge+"Milliseconds",3);default:return this.clone()}},y.endOf=function(v){return this.startOf(v,!1)},y.$set=function(v,E){var p,m=M.p(v),g="set"+(this.$u?"UTC":""),b=(p={},p[s]=g+"Date",p[f]=g+"Date",p[l]=g+"Month",p[S]=g+"FullYear",p[o]=g+"Hours",p[a]=g+"Minutes",p[i]=g+"Seconds",p[n]=g+"Milliseconds",p)[m],R=m===s?this.$D+(E-this.$W):E;if(m===l||m===S){var $=this.clone().set(f,1);$.$d[b](R),$.init(),this.$d=$.set(f,Math.min(this.$D,$.daysInMonth())).$d}else b&&this.$d[b](R);return this.init(),this},y.set=function(v,E){return this.clone().$set(v,E)},y.get=function(v){return this[M.p(v)]()},y.add=function(v,E){var p,m=this;v=Number(v);var g=M.p(E),b=function(U){var ee=x(m);return M.w(ee.date(ee.date()+Math.round(U*v)),m)};if(g===l)return this.set(l,this.$M+v);if(g===S)return this.set(S,this.$y+v);if(g===s)return b(1);if(g===u)return b(7);var R=(p={},p[a]=e,p[o]=t,p[i]=r,p)[g]||1,$=this.$d.getTime()+v*R;return M.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=M.z(this),b=this.$H,R=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 M.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(_,function(V,ie){return ie||function(fe){switch(fe){case"YY":return String(E.$y).slice(-2);case"YYYY":return M.s(E.$y,4,"0");case"M":return $+1;case"MM":return M.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 M.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 M.s(b,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return se(b,R,!0);case"A":return se(b,R,!1);case"m":return String(R);case"mm":return M.s(R,2,"0");case"s":return String(E.$s);case"ss":return M.s(E.$s,2,"0");case"SSS":return M.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=M.p(E),R=x(v),$=(R.utcOffset()-this.utcOffset())*e,U=this-R,ee=function(){return M.m(g,R)};switch(b){case S: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 o:m=U/t;break;case a:m=U/e;break;case i:m=U/r;break;default:m=U}return p?m:M.a(m)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return T[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 M.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",a],["$H",o],["$W",s],["$M",l],["$y",S],["$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=T[j],x.Ls=T,x.p={},x})});var un=L((Jr,Kr)=>{(function(r,e){typeof Jr=="object"&&typeof Kr<"u"?Kr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=e()})(Jr,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?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(_){this[h]=+_}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var k=_.match(/([+-]|\d\d)/g),w=60*k[1]+(+k[2]||0);return w===0?0:k[0]==="+"?-w:w}(h)}],c=function(h){var _=o[h];return _&&(_.indexOf?_:_.s.concat(_.f))},S=function(h,_){var k,w=o.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,_))>-1){k=C>12;break}}else k=h===(_?"pm":"PM");return k},f={A:[a,function(h){this.afternoon=S(h,!1)}],a:[a,function(h){this.afternoon=S(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:[a,function(h){var _=o.ordinal,k=h.match(/\d+/);if(this.day=k[0],_)for(var w=1;w<=31;w+=1)_(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(h){var _=c("months"),k=(c("monthsShort")||_.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[a,function(h){var _=c("months").indexOf(h)+1;if(_<1)throw new Error;this.month=_%12||_}],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 _,k;_=h,k=o&&o.formats;for(var w=(h=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,M,Y){var D=Y&&Y.toUpperCase();return M||k[Y]||r[Y]||k[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,y,v){return y||v.slice(1)})})).match(e),C=w.length,j=0;j<C;j+=1){var T=w[j],N=f[T],B=N&&N[0],P=N&&N[1];w[j]=P?{regex:B,parser:P}:T.replace(/^\[|\]$/g,"")}return function(x){for(var M={},Y=0,D=0;Y<C;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(M,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}}(M),M}}return function(h,_,k){k.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(s=h.parseTwoDigitYear);var w=_.prototype,C=w.parse;w.parse=function(j){var T=j.date,N=j.utc,B=j.args;this.$u=N;var P=B[1];if(typeof P=="string"){var x=B[2]===!0,M=B[3]===!0,Y=x||M,D=B[2];M&&(D=B[2]),o=this.$locale(),!x&&D&&(o=k.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),R=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||(R||$?1:ie.getDate()),ye=R||ie.getFullYear(),vr=0;R&&!$||(vr=$>0?$-1:ie.getMonth());var pr,qr=ee||0,Ur=ge||0,zr=ce||0,Wr=Oe||0;return se?new Date(Date.UTC(ye,vr,fe,qr,Ur,zr,Wr+60*se.offset*1e3)):m?new Date(Date.UTC(ye,vr,fe,qr,Ur,zr,Wr)):(pr=new Date(ye,vr,fe,qr,Ur,zr,Wr),V&&(pr=g(pr).week(V).toDate()),pr)}catch{return new Date("")}}(T,P,N,k),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),Y&&T!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var O=P.length,y=1;y<=O;y+=1){B[1]=P[y-1];var v=k.apply(this,B);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}y===O&&(this.$d=new Date(""))}else C.call(this,j)}}})});var fn=L((Tu,Xr)=>{var oo=Object.prototype.hasOwnProperty;function ln(r){return"[Throws: "+(r?r.message:"?")+"]"}function so(r,e){if(oo.call(r,e))try{return r[e]}catch(t){return ln(t)}return r[e]}function cn(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 ln(s)}if(Array.isArray(n)){var a=n.map(t);return e.pop(),a}var o=Object.keys(n).reduce(function(s,u){return s[u]=t(so(n,u)),s},{});return e.pop(),o}return t(r)}Xr.exports=function(r,e,t){return JSON.stringify(cn(r),e,t)};Xr.exports.ensureProperties=cn});var dn=L((ku,hn)=>{var Z=require("fs"),He=require("path");hn.exports=Sr;Sr.ncp=Sr;function Sr(r,e,t,n){var i=n;n||(i=t,t={});var a=process.cwd(),o=He.resolve(a,r),s=He.resolve(a,e),u=t.filter,l=t.rename,c=t.transform,S=t.clobber!==!1,f=t.modified,d=t.dereference,h=null,_=0,k=0,w=0,C=t.limit||Sr.limit||16;C=C<1?1:C>512?512:C,j(o);function j(m){if(_++,u){if(u instanceof RegExp){if(!u.test(m))return p(!0)}else if(typeof u=="function"&&!u(m))return p(!0)}return T(m)}function T(m){var g=d?Z.stat:Z.lstat;if(w>=C)return setImmediate(function(){T(m)});w++,g(m,function(b,R){var $={};if(b)return E(b);if($.name=m,$.mode=R.mode,$.mtime=R.mtime,$.atime=R.atime,R.isDirectory())return x($);if(R.isFile())return N($);if(R.isSymbolicLink())return D(m)})}function N(m){var g=m.name.replace(o,s);l&&(g=l(g)),v(g,function(b){if(b)return B(m,g);if(S&&P(g,function(){B(m,g)}),f){var R=d?Z.stat:Z.lstat;R(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),R=Z.createWriteStream(g,{mode:m.mode});b.on("error",E),R.on("error",E),c?c(b,R,m):R.on("open",function(){b.pipe(R)}),R.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(o,s);v(g,function(b){if(b)return M(m,g);Y(m.name)})}function M(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(R){j(He.join(m,R))}),p())})}function D(m){var g=m.replace(o,s);Z.readlink(m,function(b,R){if(b)return E(b);O(R,g)})}function O(m,g){d&&(m=He.resolve(a,m)),v(g,function(b){if(b)return y(m,g);Z.readlink(g,function(R,$){return R?E(R):(d&&($=He.resolve(a,$)),$===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--,k++,_===k&&w===0&&i!==void 0)return i(h||null)}}});var vn=L((Ru,mn)=>{mn.exports=function(r,e){for(var t=[],n=0;n<r.length;n++){var i=e(r[n],n);uo(i)?t.push.apply(t,i):t.push(i)}return t};var uo=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}});var _n=L((Lu,Sn)=>{"use strict";Sn.exports=gn;function gn(r,e,t){r instanceof RegExp&&(r=pn(r,t)),e instanceof RegExp&&(e=pn(e,t));var n=yn(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 pn(r,e){var t=e.match(r);return t?t[0]:null}gn.range=yn;function yn(r,e,t){var n,i,a,o,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=[],a=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<a&&(a=i,o=l),l=t.indexOf(e,c+1)),c=u<l&&u>=0?u:l;n.length&&(s=[a,o])}return s}});var Dn=L((Nu,Mn)=>{var lo=vn(),wn=_n();Mn.exports=ho;var bn="\0SLASH"+Math.random()+"\0",En="\0OPEN"+Math.random()+"\0",et="\0CLOSE"+Math.random()+"\0",On="\0COMMA"+Math.random()+"\0",An="\0PERIOD"+Math.random()+"\0";function Zr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function co(r){return r.split("\\\\").join(bn).split("\\{").join(En).split("\\}").join(et).split("\\,").join(On).split("\\.").join(An)}function fo(r){return r.split(bn).join("\\").split(En).join("{").split(et).join("}").split(On).join(",").split(An).join(".")}function Cn(r){if(!r)return[""];var e=[],t=wn("{","}",r);if(!t)return r.split(",");var n=t.pre,i=t.body,a=t.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=Cn(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),e.push.apply(e,o),e}function ho(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),Ne(co(r),!0).map(fo)):[]}function mo(r){return"{"+r+"}"}function vo(r){return/^-?0\d/.test(r)}function po(r,e){return r<=e}function go(r,e){return r>=e}function Ne(r,e){var t=[],n=wn("{","}",r);if(!n||/\$$/.test(n.pre))return[r];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=i||a,s=n.body.indexOf(",")>=0;if(!o&&!s)return n.post.match(/,.*\}/)?(r=n.pre+"{"+n.body+et+n.post,Ne(r)):[r];var u;if(o)u=n.body.split(/\.\./);else if(u=Cn(n.body),u.length===1&&(u=Ne(u[0],!1).map(mo),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):[""],S;if(o){var f=Zr(u[0]),d=Zr(u[1]),h=Math.max(u[0].length,u[1].length),_=u.length==3?Math.abs(Zr(u[2])):1,k=po,w=d<f;w&&(_*=-1,k=go);var C=u.some(vo);S=[];for(var j=f;k(j,d);j+=_){var T;if(a)T=String.fromCharCode(j),T==="\\"&&(T="");else if(T=String(j),C){var N=h-T.length;if(N>0){var B=new Array(N+1).join("0");j<0?T="-"+B+T.slice(1):T=B+T}}S.push(T)}}else S=lo(u,function(Y){return Ne(Y,!1)});for(var P=0;P<S.length;P++)for(var x=0;x<c.length;x++){var M=l+S[P]+c[x];(!e||o||M)&&t.push(M)}return t}});var br=L((xu,Nn)=>{Nn.exports=re;re.Minimatch=H;var Qe=function(){try{return require("path")}catch{}}()||{sep:"/"};re.sep=Qe.sep;var nt=re.GLOBSTAR=H.GLOBSTAR={},yo=Dn(),Tn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},rt="[^/]",tt=rt+"*?",So="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_o="(?:(?!(?:\\/|^)\\.).)*?",kn=wo("().*{}+?[]^$\\!");function wo(r){return r.split("").reduce(function(e,t){return e[t]=!0,e},{})}var Rn=/\/+/;re.filter=bo;function bo(r,e){return e=e||{},function(t,n,i){return re(t,r,e)}}function Se(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,a,o){return e(i,a,Se(r,o))};return t.Minimatch=function(i,a){return new e.Minimatch(i,Se(r,a))},t.Minimatch.defaults=function(i){return e.defaults(Se(r,i)).Minimatch},t.filter=function(i,a){return e.filter(i,Se(r,a))},t.defaults=function(i){return e.defaults(Se(r,i))},t.makeRe=function(i,a){return e.makeRe(i,Se(r,a))},t.braceExpand=function(i,a){return e.braceExpand(i,Se(r,a))},t.match=function(n,i,a){return e.match(n,i,Se(r,a))},t};H.defaults=function(r){return re.defaults(r).Minimatch};function re(r,e,t){return wr(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);wr(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=Eo;function Eo(){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,a){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=Oo;function Oo(){var r=this.pattern,e=!1,t=this.options,n=0;if(!t.nonegate){for(var i=0,a=r.length;i<a&&r.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=r.substr(n)),this.negate=e}}re.braceExpand=function(r,e){return Ln(r,e)};H.prototype.braceExpand=Ln;function Ln(r,e){return e||(this instanceof H?e=this.options:e={}),r=typeof r>"u"?this.pattern:r,wr(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:yo(r)}var Ao=1024*64,wr=function(r){if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>Ao)throw new TypeError("pattern is too long")};H.prototype.parse=Co;var _r={};function Co(r,e){wr(r);var t=this.options;if(r==="**")if(t.noglobstar)r="*";else return nt;if(r==="")return"";var n="",i=!!t.nocase,a=!1,o=[],s=[],u,l=!1,c=-1,S=-1,f=r.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(u){switch(u){case"*":n+=tt,i=!0;break;case"?":n+=rt,i=!0;break;default:n+="\\"+u;break}d.debug("clearStateChar %j %j",u,n),u=!1}}for(var _=0,k=r.length,w;_<k&&(w=r.charAt(_));_++){if(this.debug("%s %s %s %j",r,_,n,w),a&&kn[w]){n+="\\"+w,a=!1;continue}switch(w){case"/":return!1;case"\\":h(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,_,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}o.push({type:u,start:_-1,reStart:n.length,open:Tn[u].open,close:Tn[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!o.length){n+="\\)";continue}h(),i=!0;var C=o.pop();n+=C.close,C.type==="!"&&s.push(C),C.reEnd=n.length;continue;case"|":if(l||!o.length||a){n+="\\|",a=!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,a=!1;continue}var j=r.substring(S+1,_);try{RegExp("["+j+"]")}catch{var T=this.parse(j,_r);n=n.substr(0,c)+"\\["+T[0]+"\\]",i=i||T[1],l=!1;continue}i=!0,l=!1,n+=w;continue;default:h(),a?a=!1:kn[w]&&!(w==="^"&&l)&&(n+="\\"),n+=w}}for(l&&(j=r.substr(S+1),T=this.parse(j,_r),n=n.substr(0,c)+"\\["+T[0],i=i||T[1]),C=o.pop();C;C=o.pop()){var N=n.slice(C.reStart+C.open.length);this.debug("setting tail",n,C),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(R,$,U){return U||(U="\\"),$+$+U+"|"}),this.debug(`tail=%j %s`,N,N,C,n);var B=C.type==="*"?tt:C.type==="?"?rt:"\\"+C.type;i=!0,n=n.slice(0,C.reStart)+B+"\\("+N}h(),a&&(n+="\\\\");var P=!1;switch(n.charAt(0)){case"[":case".":case"(":P=!0}for(var x=s.length-1;x>-1;x--){var M=s[x],Y=n.slice(0,M.reStart),D=n.slice(M.reStart,M.reEnd-8),O=n.slice(M.reEnd-8,M.reEnd),y=n.slice(M.reEnd);O+=y;var v=Y.split("(").length-1,E=y;for(_=0;_<v;_++)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 Do(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=Mo;function Mo(){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?tt:e.dot?So:_o,n=e.nocase?"i":"",i=r.map(function(a){return a.map(function(o){return o===nt?t:typeof o=="string"?To(o):o._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 a,o;for(o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],u=e;n.matchBase&&s.length===1&&(u=[a]);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,a=0,o=r.length,s=e.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var u=e[a],l=r[i];if(this.debug(e,u,l),u===!1)return!1;if(u===nt){this.debug("GLOBSTAR",[e,u,l]);var c=i,S=a+1;if(S===s){for(this.debug("** at the end");i<o;i++)if(r[i]==="."||r[i]===".."||!n.dot&&r[i].charAt(0)===".")return!1;return!0}for(;c<o;){var f=r[c];if(this.debug(` globstar while`,r,c,e,S,f),this.matchOne(r.slice(c),e.slice(S),t))return this.debug("globstar found match!",c,o,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",r,c,e,S);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(t&&(this.debug(` >>> no match, partial?`,r,c,e,S),c===o))}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===o&&a===s)return!0;if(i===o)return t;if(a===s)return i===o-1&&r[i]==="";throw new Error("wtf?")};function Do(r){return r.replace(/\\(.)/g,"$1")}function To(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var xn=L(($u,it)=>{typeof Object.create=="function"?it.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:it.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 $n=L((ju,ot)=>{try{if(at=require("util"),typeof at.inherits!="function")throw"";ot.exports=at.inherits}catch{ot.exports=xn()}var at});var Or=L((Iu,Er)=>{"use strict";function jn(r){return r.charAt(0)==="/"}function In(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)}Er.exports=process.platform==="win32"?In:jn;Er.exports.posix=jn;Er.exports.win32=In});var lt=L(ue=>{ue.alphasort=Yn;ue.alphasorti=Pn;ue.setopts=xo;ue.ownProp=Fn;ue.makeAbs=ut;ue.finish=$o;ue.mark=jo;ue.isIgnored=Bn;ue.childrenIgnored=Io;function Fn(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var xe=require("path"),ko=br(),Ro=Or(),st=ko.Minimatch;function Pn(r,e){return r.toLowerCase().localeCompare(e.toLowerCase())}function Yn(r,e){return r.localeCompare(e)}function Lo(r,e){r.ignore=e.ignore||[],Array.isArray(r.ignore)||(r.ignore=[r.ignore]),r.ignore.length&&(r.ignore=r.ignore.map(No))}function No(r){var e=null;if(r.slice(-3)==="/**"){var t=r.replace(/(\/\*\*)+$/,"");e=new st(t,{dot:!0})}return{matcher:new st(r,{dot:!0}),gmatcher:e}}function xo(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),Lo(r,t),r.changedCwd=!1;var n=process.cwd();Fn(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 st(e,t),r.options=r.minimatch.options}function $o(r){for(var e=r.nounique,t=e?[]:Object.create(null),n=0,i=r.matches.length;n<i;n++){var a=r.matches[n];if(!a||Object.keys(a).length===0){if(r.nonull){var o=r.minimatch.globSet[n];e?t.push(o):t[o]=!0}}else{var s=Object.keys(a);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?Pn:Yn)),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!Bn(r,u)})),r.found=t}function jo(r,e){var t=ut(r,e),n=r.cache[t],i=e;if(n){var a=n==="DIR"||Array.isArray(n),o=e.slice(-1)==="/";if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==e){var s=ut(r,i);r.statCache[s]=r.statCache[t],r.cache[s]=r.cache[t]}}return i}function ut(r,e){var t=e;return e.charAt(0)==="/"?t=xe.join(r.root,e):Ro(e)||e===""?t=e:r.changedCwd?t=xe.resolve(r.cwd,e):t=xe.resolve(e),t}function Bn(r,e){return r.ignore.length?r.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}):!1}function Io(r,e){return r.ignore.length?r.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}):!1}});var Wn=L((Uu,zn)=>{zn.exports=Un;Un.GlobSync=W;var Je=require("fs"),Gn=br(),Pu=Gn.Minimatch,Yu=ht().Glob,Bu=require("util"),ct=require("path"),qn=require("assert"),Ar=Or(),_e=lt(),Gu=_e.alphasort,qu=_e.alphasorti,Fo=_e.setopts,ft=_e.ownProp,Po=_e.childrenIgnored;function Un(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(Fo(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(qn(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 a=Je.realpathSync(i,r.realpathCache);n[a]=!0}catch(o){if(o.syscall==="stat")n[r._makeAbs(i)]=!0;else throw o}})}_e.finish(this)};W.prototype._process=function(r,e,t){qn(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 a=r.slice(n),o;i===null?o=".":((Ar(i)||Ar(r.join("/")))&&(!i||!Ar(i))&&(i="/"+i),o=i);var s=this._makeAbs(o);if(!Po(this,o)){var u=a[0]===Gn.GLOBSTAR;u?this._processGlobStar(i,o,s,a,e,t):this._processReaddir(i,o,s,a,e,t)}};W.prototype._processReaddir=function(r,e,t,n,i,a){var o=this._readdir(t,a);if(o){for(var s=n[0],u=!!this.minimatch.negate,l=s._glob,c=this.dot||l.charAt(0)===".",S=[],f=0;f<o.length;f++){var d=o[f];if(d.charAt(0)!=="."||c){var h;u&&!r?h=!d.match(s):h=d.match(s),h&&S.push(d)}}var _=S.length;if(_!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<_;f++){var d=S[f];r&&(r.slice(-1)!=="/"?d=r+"/"+d:d=r+d),d.charAt(0)==="/"&&!this.nomount&&(d=ct.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<_;f++){var d=S[f],k;r?k=[r,d]:k=[d],this._process(k.concat(n),i,a)}}}};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&&!ft(this.symlinks,r))return this._readdirInGlobStar(r);if(ft(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,a){var o=this._readdir(t,a);if(o){var s=n.slice(1),u=r?[r]:[],l=u.concat(s);this._process(l,i,!1);var c=o.length,S=this.symlinks[t];if(!(S&&a))for(var f=0;f<c;f++){var d=o[f];if(!(d.charAt(0)==="."&&!this.dot)){var h=u.concat(o[f],s);this._process(h,i,!0);var _=u.concat(o[f],n);this._process(_,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&&Ar(r)&&!this.nomount){var n=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=ct.join(this.root,r):(r=ct.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&&ft(this.cache,e)){var o=this.cache[e];if(Array.isArray(o)&&(o="DIR"),!t||o==="DIR")return o;if(t&&o==="FILE")return!1}var n,i=this.statCache[e];if(!i){var a;try{a=Je.lstatSync(e)}catch{return!1}if(a.isSymbolicLink())try{i=Je.statSync(e)}catch{i=a}else i=a}this.statCache[e]=i;var o=i.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||o,t&&o!=="DIR"?!1:o};W.prototype._mark=function(r){return _e.mark(this,r)};W.prototype._makeAbs=function(r){return _e.makeAbs(this,r)}});var dt=L((zu,Hn)=>{Hn.exports=Vn;function Vn(r,e){if(r&&e)return Vn(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 a=r.apply(this,n),o=n[n.length-1];return typeof a=="function"&&a!==o&&Object.keys(o).forEach(function(s){a[s]=o[s]}),a}}});var vt=L((Wu,mt)=>{var Qn=dt();mt.exports=Qn(Cr);mt.exports.strict=Qn(Jn);Cr.proto=Cr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Cr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Jn(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 Jn(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 Xn=L((Vu,Kn)=>{var Yo=dt(),Ke=Object.create(null),Bo=vt();Kn.exports=Yo(Go);function Go(r,e){return Ke[r]?(Ke[r].push(e),null):(Ke[r]=[e],qo(r))}function qo(r){return Bo(function e(){var t=Ke[r],n=t.length,i=Uo(arguments);try{for(var a=0;a<n;a++)t[a].apply(null,i)}finally{t.length>n?(t.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete Ke[r]}})}function Uo(r){for(var e=r.length,t=[],n=0;n<e;n++)t[n]=r[n];return t}});var ht=L((Xu,ei)=>{ei.exports=Ae;var Xe=require("fs"),Zn=br(),Hu=Zn.Minimatch,zo=$n(),Wo=require("events").EventEmitter,pt=require("path"),gt=require("assert"),Mr=Or(),St=Wn(),he=lt(),Qu=he.alphasort,Ju=he.alphasorti,Vo=he.setopts,yt=he.ownProp,_t=Xn(),Ku=require("util"),Ho=he.childrenIgnored,Qo=he.isIgnored,Jo=vt();function Ae(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 St(r,e)}return new F(r,e,t)}Ae.sync=St;var Ko=Ae.GlobSync=St.GlobSync;Ae.glob=Ae;function Xo(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}Ae.hasMagic=function(r,e){var t=Xo({},e);t.noprocess=!0;var n=new F(r,t),i=n.minimatch.set;if(i.length>1)return!0;for(var a=0;a<i[0].length;a++)if(typeof i[0][a]!="string")return!0;return!1};Ae.Glob=F;zo(F,Wo);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 Ko(r,e)}if(!(this instanceof F))return new F(r,e,t);Vo(this,r,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof t=="function"&&(t=Jo(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 o();for(var a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--n._processing,n._processing<=0&&n._finish()}}F.prototype._finish=function(){if(gt(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,a=n.length;if(a===0)return e();var o=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"?o[s]=!0:i.emit("error",l):o[c]=!0,--a===0&&(i.matches[r]=o,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(gt(this instanceof F),gt(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 a;switch(i){case r.length:this._processSimple(r.join("/"),e,n);return;case 0:a=null;break;default:a=r.slice(0,i).join("/");break}var o=r.slice(i),s;a===null?s=".":((Mr(a)||Mr(r.join("/")))&&(!a||!Mr(a))&&(a="/"+a),s=a);var u=this._makeAbs(s);if(Ho(this,s))return n();var l=o[0]===Zn.GLOBSTAR;l?this._processGlobStar(a,s,u,o,e,t,n):this._processReaddir(a,s,u,o,e,t,n)}};F.prototype._processReaddir=function(r,e,t,n,i,a,o){var s=this;this._readdir(t,a,function(u,l){return s._processReaddir2(r,e,t,n,i,a,l,o)})};F.prototype._processReaddir2=function(r,e,t,n,i,a,o,s){if(!o)return s();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,S=this.dot||c.charAt(0)===".",f=[],d=0;d<o.length;d++){var h=o[d];if(h.charAt(0)!=="."||S){var _;l&&!r?_=!h.match(u):_=h.match(u),_&&f.push(h)}}var k=f.length;if(k===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<k;d++){var h=f[d];r&&(r!=="/"?h=r+"/"+h:h=r+h),h.charAt(0)==="/"&&!this.nomount&&(h=pt.join(this.root,h)),this._emitMatch(i,h)}return s()}n.shift();for(var d=0;d<k;d++){var h=f[d],w;r&&(r!=="/"?h=r+"/"+h:h=r+h),this._process([h].concat(n),i,a,s)}s()};F.prototype._emitMatch=function(r,e){if(!this.aborted&&!this.matches[r][e]&&!Qo(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,a);i&&Xe.lstat(r,i);function a(o,s){if(o)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&&!yt(this.symlinks,r))return this._readdirInGlobStar(r,t);if(yt(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,Zo(this,r,t))}};function Zo(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,a,o){var s=this;this._readdir(t,a,function(u,l){s._processGlobStar2(r,e,t,n,i,a,l,o)})};F.prototype._processGlobStar2=function(r,e,t,n,i,a,o,s){if(!o)return s();var u=n.slice(1),l=r?[r]:[],c=l.concat(u);this._process(c,i,!1,s);var S=this.symlinks[t],f=o.length;if(S&&a)return s();for(var d=0;d<f;d++){var h=o[d];if(!(h.charAt(0)==="."&&!this.dot)){var _=l.concat(o[d],u);this._process(_,i,!0,s);var k=l.concat(o[d],n);this._process(k,i,!0,s)}}s()};F.prototype._processSimple=function(r,e,t){var n=this;this._stat(r,function(i,a){n._processSimple2(r,e,i,a,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 a=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=pt.join(this.root,r):(r=pt.resolve(this.root,r),a&&(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&&yt(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 a,o=this.statCache[t];if(o!==void 0){if(o===!1)return e(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&s==="FILE"?e():e(null,s,o)}var u=this,l=_t("stat\0"+t,c);l&&Xe.lstat(t,l);function c(S,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,S,f,e)}};F.prototype._stat2=function(r,e,t,n,i){if(t)return this.statCache[e]=!1,i();var a=r.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&!n.isDirectory())return i(null,!1,n);var o=n.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||o,a&&o!=="DIR"?i():i(null,o,n)}});var oi=L((Zu,ai)=>{ai.exports=Ot;Ot.sync=ii;var I=require("assert"),ri=require("path"),kr=require("fs"),Rr=ht(),ti={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},wt=0,Et=process.platform==="win32";function ni(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 Ot(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"),ni(e);var n=0,i=null,a=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,ti,s)});function o(u){i=i||u,--a===0&&t(i)}function s(u,l){if(u)return t(u);if(a=l.length,a===0)return t();l.forEach(function(c){bt(c,e,function S(f){if(f){if(Et&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){bt(c,e,S)},d)}if(f.code==="EMFILE"&&wt<e.emfileWait)return setTimeout(function(){bt(c,e,S)},wt++);f.code==="ENOENT"&&(f=null)}wt=0,o(f)})})}}function bt(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 Dr(r,e,n,t);e.unlink(r,function(a){if(a){if(a.code==="ENOENT")return t(null);if(a.code==="EPERM")return Et?es(r,e,a,t):Dr(r,e,a,t);if(a.code==="EISDIR")return Dr(r,e,a,t)}return t(a)})})}function es(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(a,o){a?n(a.code==="ENOENT"?null:t):o.isDirectory()?Dr(r,e,t,n):e.unlink(r,n)})})}function rs(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()?Tr(r,e,t):e.unlinkSync(r)}function Dr(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")?ts(r,e,n):i&&i.code==="ENOTDIR"?n(t):n(i)})}function ts(r,e,t){I(r),I(e),I(typeof t=="function"),e.readdir(r,function(n,i){if(n)return t(n);var a=i.length;if(a===0)return e.rmdir(r,t);var o;i.forEach(function(s){Ot(ri.join(r,s),e,function(u){if(!o){if(u)return t(o=u);--a===0&&e.rmdir(r,t)}})})})}function ii(r,e){e=e||{},ni(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,ti)}if(t.length)for(var n=0;n<t.length;n++){var r=t[n];try{var i=e.lstatSync(r)}catch(o){if(o.code==="ENOENT")return}try{i&&i.isDirectory()?Tr(r,e,null):e.unlinkSync(r)}catch(o){if(o.code==="ENOENT")return;if(o.code==="EPERM")return Et?rs(r,e,o):Tr(r,e,o);if(o.code!=="EISDIR")throw o;Tr(r,e,o)}}}function Tr(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")&&ns(r,e)}}function ns(r,e){I(r),I(e),e.readdirSync(r).forEach(function(t){ii(ri.join(r,t),e)}),e.rmdirSync(r,e)}});var ci=L((el,li)=>{var Ze=require("path"),si=require("fs"),ui=parseInt("0777",8);li.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,a=e.fs||si;i===void 0&&(i=ui),n||(n=null);var o=t||function(){};r=Ze.resolve(r),a.mkdir(r,i,function(s){if(!s)return n=n||r,o(null,n);switch(s.code){case"ENOENT":if(Ze.dirname(r)===r)return o(s);$e(Ze.dirname(r),e,function(u,l){u?o(u,l):$e(r,e,o,l)});break;default:a.stat(r,function(u,l){u||!l.isDirectory()?o(s,n):o(null,n)});break}})}$e.sync=function r(e,t,n){(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,a=t.fs||si;i===void 0&&(i=ui),n||(n=null),e=Ze.resolve(e);try{a.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 o;try{o=a.statSync(e)}catch{throw s}if(!o.isDirectory())throw s;break}}return n}});var vi=L((rl,mi)=>{var je=require("fs"),is=dn().ncp,as=require("path"),fi=oi(),os=ci();mi.exports=ss;function ss(r,e,t,n){typeof t=="function"&&(n=t,t={});var i=!!t.mkdirp,a=t.clobber!==!1,o=t.limit||16;i?s():u();function s(){os(as.dirname(e),function(l){if(l)return n(l);u()})}function u(){a?je.rename(r,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);hi(r,e,a,o,n)}):je.link(r,e,function(l){if(l){if(l.code==="EXDEV"){hi(r,e,a,o,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){di(r,e,a,o,n);return}n(l);return}je.unlink(r,n)})}}function hi(r,e,t,n,i){var a=t?"w":"wx",o=je.createReadStream(r),s=je.createWriteStream(e,{flags:a});o.on("error",function(l){o.destroy(),s.destroy(),s.removeListener("close",u),l.code==="EISDIR"||l.code==="EPERM"?di(r,e,t,n,i):i(l)}),s.on("error",function(l){o.destroy(),s.destroy(),s.removeListener("close",u),i(l)}),s.once("close",u),o.pipe(s);function u(){je.unlink(r,i)}}function di(r,e,t,n,i){var a={stopOnErr:!0,clobber:!1,limit:n};t?fi(e,{disableGlob:!0},function(s){if(s)return i(s);o()}):o();function o(){is(r,e,a,function(s){if(s)return i(s[0]);fi(r,{disableGlob:!0},i)})}}});var gi=L(At=>{var pi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");At.encode=function(r){if(0<=r&&r<pi.length)return pi[r];throw new TypeError("Must be between 0 and 63: "+r)};At.decode=function(r){var e=65,t=90,n=97,i=122,a=48,o=57,s=43,u=47,l=26,c=52;return e<=r&&r<=t?r-e:n<=r&&r<=i?r-n+l:a<=r&&r<=o?r-a+c:r==s?62:r==u?63:-1}});var Dt=L(Mt=>{var yi=gi(),Ct=5,Si=1<<Ct,_i=Si-1,wi=Si;function us(r){return r<0?(-r<<1)+1:(r<<1)+0}function ls(r){var e=(r&1)===1,t=r>>1;return e?-t:t}Mt.encode=function(e){var t="",n,i=us(e);do n=i&_i,i>>>=Ct,i>0&&(n|=wi),t+=yi.encode(n);while(i>0);return t};Mt.decode=function(e,t,n){var i=e.length,a=0,o=0,s,u;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=yi.decode(e.charCodeAt(t++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));s=!!(u&wi),u&=_i,a=a+(u<<o),o+=Ct}while(s);n.value=ls(a),n.rest=t}});var Pe=L(X=>{function cs(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=cs;var bi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,fs=/^data:.+\,.+$/;function er(r){var e=r.match(bi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}X.urlPars