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