@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) • 487 kB
JavaScript
var sx=Object.create;var Hn=Object.defineProperty;var ox=Object.getOwnPropertyDescriptor;var cx=Object.getOwnPropertyNames;var lx=Object.getPrototypeOf,px=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ux=(t,e)=>{for(var i in e)Hn(t,i,{get:e[i],enumerable:!0})},xc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of cx(e))!px.call(t,a)&&a!==i&&Hn(t,a,{get:()=>e[a],enumerable:!(n=ox(e,a))||n.enumerable});return t};var xe=(t,e,i)=>(i=t!=null?sx(lx(t)):{},xc(e||!t||!t.__esModule?Hn(i,"default",{value:t,enumerable:!0}):i,t)),dx=t=>xc(Hn({},"__esModule",{value:!0}),t);var kc=g((LA,br)=>{var gx=Object.prototype.hasOwnProperty;function Sc(t){return"[Throws: "+(t?t.message:"?")+"]"}function xx(t,e){if(gx.call(t,e))try{return t[e]}catch(i){return Sc(i)}return t[e]}function Ec(t){var e=[];function i(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 a=i(n.toJSON());return e.pop(),a}catch(o){return Sc(o)}if(Array.isArray(n)){var r=n.map(i);return e.pop(),r}var s=Object.keys(n).reduce(function(o,c){return o[c]=i(xx(n,c)),o},{});return e.pop(),s}return i(t)}br.exports=function(t,e,i){return JSON.stringify(Ec(t),e,i)};br.exports.ensureProperties=Ec});var Ac=g((FA,Dc)=>{var we=require("fs"),Fi=require("path");Dc.exports=Yn;Yn.ncp=Yn;function Yn(t,e,i,n){var a=n;n||(a=i,i={});var r=process.cwd(),s=Fi.resolve(r,t),o=Fi.resolve(r,e),c=i.filter,l=i.rename,p=i.transform,m=i.clobber!==!1,u=i.modified,d=i.dereference,h=null,x=0,E=0,y=0,v=i.limit||Yn.limit||16;v=v<1?1:v>512?512:v,b(s);function b(w){if(x++,c){if(c instanceof RegExp){if(!c.test(w))return _(!0)}else if(typeof c=="function"&&!c(w))return _(!0)}return k(w)}function k(w){var C=d?we.stat:we.lstat;if(y>=v)return setImmediate(function(){k(w)});y++,C(w,function(R,I){var $={};if(R)return S(R);if($.name=w,$.mode=I.mode,$.mtime=I.mtime,$.atime=I.atime,I.isDirectory())return j($);if(I.isFile())return L($);if(I.isSymbolicLink())return F(w)})}function L(w){var C=w.name.replace(s,o);l&&(C=l(C)),f(C,function(R){if(R)return A(w,C);if(m&&q(C,function(){A(w,C)}),u){var I=d?we.stat:we.lstat;I(C,function($,K){if(w.mtime.getTime()>K.mtime.getTime())A(w,C);else return _()})}else return _()})}function A(w,C){var R=we.createReadStream(w.name),I=we.createWriteStream(C,{mode:w.mode});R.on("error",S),I.on("error",S),p?p(R,I,w):I.on("open",function(){R.pipe(I)}),I.once("finish",function(){u&&we.utimesSync(C,w.atime,w.mtime),_()})}function q(w,C){we.unlink(w,function(R){return R?S(R):C()})}function j(w){var C=w.name.replace(s,o);f(C,function(R){if(R)return O(w,C);P(w.name)})}function O(w,C){we.mkdir(C,w.mode,function(R){if(R)return S(R);P(w.name)})}function P(w){we.readdir(w,function(C,R){return C?S(C):(R.forEach(function(I){b(Fi.join(w,I))}),_())})}function F(w){var C=w.replace(s,o);we.readlink(w,function(R,I){if(R)return S(R);D(I,C)})}function D(w,C){d&&(w=Fi.resolve(r,w)),f(C,function(R){if(R)return T(w,C);we.readlink(C,function(I,$){return I?S(I):(d&&($=Fi.resolve(r,$)),$===w?_():q(C,function(){T(w,C)}))})})}function T(w,C){we.symlink(w,C,function(R){return R?S(R):_()})}function f(w,C){we.lstat(w,function(R){return R&&R.code==="ENOENT"?C(!0):C(!1)})}function S(w){return i.stopOnError?a(w):(!h&&i.errs?h=we.createWriteStream(i.errs):h||(h=[]),typeof h.write>"u"?h.push(w):h.write(w.stack+`
`),_())}function _(w){if(w||y--,E++,x===E&&y===0&&a!==void 0)return a(h||null)}}});var Tc=g((jA,Cc)=>{Cc.exports=function(t,e){for(var i=[],n=0;n<t.length;n++){var a=e(t[n],n);yx(a)?i.push.apply(i,a):i.push(a)}return i};var yx=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var jc=g((NA,Fc)=>{"use strict";Fc.exports=Rc;function Rc(t,e,i){t instanceof RegExp&&(t=Oc(t,i)),e instanceof RegExp&&(e=Oc(e,i));var n=Lc(t,e,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+t.length,n[1]),post:i.slice(n[1]+e.length)}}function Oc(t,e){var i=e.match(t);return i?i[0]:null}Rc.range=Lc;function Lc(t,e,i){var n,a,r,s,o,c=i.indexOf(t),l=i.indexOf(e,c+1),p=c;if(c>=0&&l>0){if(t===e)return[c,l];for(n=[],r=i.length;p>=0&&!o;)p==c?(n.push(p),c=i.indexOf(t,p+1)):n.length==1?o=[n.pop(),l]:(a=n.pop(),a<r&&(r=a,s=l),l=i.indexOf(e,p+1)),p=c<l&&c>=0?c:l;n.length&&(o=[r,s])}return o}});var Uc=g((qA,zc)=>{var bx=Tc(),Nc=jc();zc.exports=Sx;var qc="\0SLASH"+Math.random()+"\0",Ic="\0OPEN"+Math.random()+"\0",_r="\0CLOSE"+Math.random()+"\0",Mc="\0COMMA"+Math.random()+"\0",Pc="\0PERIOD"+Math.random()+"\0";function wr(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function wx(t){return t.split("\\\\").join(qc).split("\\{").join(Ic).split("\\}").join(_r).split("\\,").join(Mc).split("\\.").join(Pc)}function _x(t){return t.split(qc).join("\\").split(Ic).join("{").split(_r).join("}").split(Mc).join(",").split(Pc).join(".")}function $c(t){if(!t)return[""];var e=[],i=Nc("{","}",t);if(!i)return t.split(",");var n=i.pre,a=i.body,r=i.post,s=n.split(",");s[s.length-1]+="{"+a+"}";var o=$c(r);return r.length&&(s[s.length-1]+=o.shift(),s.push.apply(s,o)),e.push.apply(e,s),e}function Sx(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Qt(wx(t),!0).map(_x)):[]}function Ex(t){return"{"+t+"}"}function kx(t){return/^-?0\d/.test(t)}function Dx(t,e){return t<=e}function Ax(t,e){return t>=e}function Qt(t,e){var i=[],n=Nc("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),r=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||r,o=n.body.indexOf(",")>=0;if(!s&&!o)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+_r+n.post,Qt(t)):[t];var c;if(s)c=n.body.split(/\.\./);else if(c=$c(n.body),c.length===1&&(c=Qt(c[0],!1).map(Ex),c.length===1)){var p=n.post.length?Qt(n.post,!1):[""];return p.map(function(F){return n.pre+c[0]+F})}var l=n.pre,p=n.post.length?Qt(n.post,!1):[""],m;if(s){var u=wr(c[0]),d=wr(c[1]),h=Math.max(c[0].length,c[1].length),x=c.length==3?Math.abs(wr(c[2])):1,E=Dx,y=d<u;y&&(x*=-1,E=Ax);var v=c.some(kx);m=[];for(var b=u;E(b,d);b+=x){var k;if(r)k=String.fromCharCode(b),k==="\\"&&(k="");else if(k=String(b),v){var L=h-k.length;if(L>0){var A=new Array(L+1).join("0");b<0?k="-"+A+k.slice(1):k=A+k}}m.push(k)}}else m=bx(c,function(P){return Qt(P,!1)});for(var q=0;q<m.length;q++)for(var j=0;j<p.length;j++){var O=l+m[q]+p[j];(!e||s||O)&&i.push(O)}return i}});var Jn=g((IA,Wc)=>{Wc.exports=Ce;Ce.Minimatch=me;var ji=function(){try{return require("path")}catch{}}()||{sep:"/"};Ce.sep=ji.sep;var kr=Ce.GLOBSTAR=me.GLOBSTAR={},Cx=Uc(),Bc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Sr="[^/]",Er=Sr+"*?",Tx="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ox="(?:(?!(?:\\/|^)\\.).)*?",Hc=Rx("().*{}+?[]^$\\!");function Rx(t){return t.split("").reduce(function(e,i){return e[i]=!0,e},{})}var Vc=/\/+/;Ce.filter=Lx;function Lx(t,e){return e=e||{},function(i,n,a){return Ce(i,t,e)}}function ht(t,e){e=e||{};var i={};return Object.keys(t).forEach(function(n){i[n]=t[n]}),Object.keys(e).forEach(function(n){i[n]=e[n]}),i}Ce.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return Ce;var e=Ce,i=function(a,r,s){return e(a,r,ht(t,s))};return i.Minimatch=function(a,r){return new e.Minimatch(a,ht(t,r))},i.Minimatch.defaults=function(a){return e.defaults(ht(t,a)).Minimatch},i.filter=function(a,r){return e.filter(a,ht(t,r))},i.defaults=function(a){return e.defaults(ht(t,a))},i.makeRe=function(a,r){return e.makeRe(a,ht(t,r))},i.braceExpand=function(a,r){return e.braceExpand(a,ht(t,r))},i.match=function(n,a,r){return e.match(n,a,ht(t,r))},i};me.defaults=function(t){return Ce.defaults(t).Minimatch};function Ce(t,e,i){return Gn(e),i||(i={}),!i.nocomment&&e.charAt(0)==="#"?!1:new me(e,i).match(t)}function me(t,e){if(!(this instanceof me))return new me(t,e);Gn(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&ji.sep!=="/"&&(t=t.split(ji.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()}me.prototype.debug=function(){};me.prototype.make=Fx;function Fx(){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 i=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,i),i=this.globParts=i.map(function(n){return n.split(Vc)}),this.debug(this.pattern,i),i=i.map(function(n,a,r){return n.map(this.parse,this)},this),this.debug(this.pattern,i),i=i.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,i),this.set=i}me.prototype.parseNegate=jx;function jx(){var t=this.pattern,e=!1,i=this.options,n=0;if(!i.nonegate){for(var a=0,r=t.length;a<r&&t.charAt(a)==="!";a++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}Ce.braceExpand=function(t,e){return Yc(t,e)};me.prototype.braceExpand=Yc;function Yc(t,e){return e||(this instanceof me?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,Gn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Cx(t)}var Nx=1024*64,Gn=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Nx)throw new TypeError("pattern is too long")};me.prototype.parse=qx;var Wn={};function qx(t,e){Gn(t);var i=this.options;if(t==="**")if(i.noglobstar)t="*";else return kr;if(t==="")return"";var n="",a=!!i.nocase,r=!1,s=[],o=[],c,l=!1,p=-1,m=-1,u=t.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(c){switch(c){case"*":n+=Er,a=!0;break;case"?":n+=Sr,a=!0;break;default:n+="\\"+c;break}d.debug("clearStateChar %j %j",c,n),c=!1}}for(var x=0,E=t.length,y;x<E&&(y=t.charAt(x));x++){if(this.debug("%s %s %s %j",t,x,n,y),r&&Hc[y]){n+="\\"+y,r=!1;continue}switch(y){case"/":return!1;case"\\":h(),r=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,x,n,y),l){this.debug(" in class"),y==="!"&&x===m+1&&(y="^"),n+=y;continue}d.debug("call clearStateChar %j",c),h(),c=y,i.noext&&h();continue;case"(":if(l){n+="(";continue}if(!c){n+="\\(";continue}s.push({type:c,start:x-1,reStart:n.length,open:Bc[c].open,close:Bc[c].close}),n+=c==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",c,n),c=!1;continue;case")":if(l||!s.length){n+="\\)";continue}h(),a=!0;var v=s.pop();n+=v.close,v.type==="!"&&o.push(v),v.reEnd=n.length;continue;case"|":if(l||!s.length||r){n+="\\|",r=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+y;continue}l=!0,m=x,p=n.length,n+=y;continue;case"]":if(x===m+1||!l){n+="\\"+y,r=!1;continue}var b=t.substring(m+1,x);try{RegExp("["+b+"]")}catch{var k=this.parse(b,Wn);n=n.substr(0,p)+"\\["+k[0]+"\\]",a=a||k[1],l=!1;continue}a=!0,l=!1,n+=y;continue;default:h(),r?r=!1:Hc[y]&&!(y==="^"&&l)&&(n+="\\"),n+=y}}for(l&&(b=t.substr(m+1),k=this.parse(b,Wn),n=n.substr(0,p)+"\\["+k[0],a=a||k[1]),v=s.pop();v;v=s.pop()){var L=n.slice(v.reStart+v.open.length);this.debug("setting tail",n,v),L=L.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(I,$,K){return K||(K="\\"),$+$+K+"|"}),this.debug(`tail=%j
%s`,L,L,v,n);var A=v.type==="*"?Er:v.type==="?"?Sr:"\\"+v.type;a=!0,n=n.slice(0,v.reStart)+A+"\\("+L}h(),r&&(n+="\\\\");var q=!1;switch(n.charAt(0)){case"[":case".":case"(":q=!0}for(var j=o.length-1;j>-1;j--){var O=o[j],P=n.slice(0,O.reStart),F=n.slice(O.reStart,O.reEnd-8),D=n.slice(O.reEnd-8,O.reEnd),T=n.slice(O.reEnd);D+=T;var f=P.split("(").length-1,S=T;for(x=0;x<f;x++)S=S.replace(/\)[+*?]?/,"");T=S;var _="";T===""&&e!==Wn&&(_="$");var w=P+F+T+_+D;n=w}if(n!==""&&a&&(n="(?=.)"+n),q&&(n=u+n),e===Wn)return[n,a];if(!a)return Mx(t);var C=i.nocase?"i":"";try{var R=new RegExp("^"+n+"$",C)}catch{return new RegExp("$.")}return R._glob=t,R._src=n,R}Ce.makeRe=function(t,e){return new me(t,e||{}).makeRe()};me.prototype.makeRe=Ix;function Ix(){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,i=e.noglobstar?Er:e.dot?Tx:Ox,n=e.nocase?"i":"",a=t.map(function(r){return r.map(function(s){return s===kr?i:typeof s=="string"?Px(s):s._src}).join("\\/")}).join("|");a="^(?:"+a+")$",this.negate&&(a="^(?!"+a+").*$");try{this.regexp=new RegExp(a,n)}catch{this.regexp=!1}return this.regexp}Ce.match=function(t,e,i){i=i||{};var n=new me(e,i);return t=t.filter(function(a){return n.match(a)}),n.options.nonull&&!t.length&&t.push(e),t};me.prototype.match=function(e,i){if(typeof i>"u"&&(i=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&i)return!0;var n=this.options;ji.sep!=="/"&&(e=e.split(ji.sep).join("/")),e=e.split(Vc),this.debug(this.pattern,"split",e);var a=this.set;this.debug(this.pattern,"set",a);var r,s;for(s=e.length-1;s>=0&&(r=e[s],!r);s--);for(s=0;s<a.length;s++){var o=a[s],c=e;n.matchBase&&o.length===1&&(c=[r]);var l=this.matchOne(c,o,i);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};me.prototype.matchOne=function(t,e,i){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var a=0,r=0,s=t.length,o=e.length;a<s&&r<o;a++,r++){this.debug("matchOne loop");var c=e[r],l=t[a];if(this.debug(e,c,l),c===!1)return!1;if(c===kr){this.debug("GLOBSTAR",[e,c,l]);var p=a,m=r+1;if(m===o){for(this.debug("** at the end");a<s;a++)if(t[a]==="."||t[a]===".."||!n.dot&&t[a].charAt(0)===".")return!1;return!0}for(;p<s;){var u=t[p];if(this.debug(`
globstar while`,t,p,e,m,u),this.matchOne(t.slice(p),e.slice(m),i))return this.debug("globstar found match!",p,s,u),!0;if(u==="."||u===".."||!n.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,p,e,m);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
>>> no match, partial?`,t,p,e,m),p===s))}var d;if(typeof c=="string"?(d=l===c,this.debug("string match",c,l,d)):(d=l.match(c),this.debug("pattern match",c,l,d)),!d)return!1}if(a===s&&r===o)return!0;if(a===s)return i;if(r===o)return a===s-1&&t[a]==="";throw new Error("wtf?")};function Mx(t){return t.replace(/\\(.)/g,"$1")}function Px(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Gc=g((MA,Dr)=>{typeof Object.create=="function"?Dr.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Dr.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Jc=g((PA,Cr)=>{try{if(Ar=require("util"),typeof Ar.inherits!="function")throw"";Cr.exports=Ar.inherits}catch{Cr.exports=Gc()}var Ar});var Kn=g(($A,Qn)=>{"use strict";function Qc(t){return t.charAt(0)==="/"}function Kc(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,i=e.exec(t),n=i[1]||"",a=!!(n&&n.charAt(1)!==":");return!!(i[2]||a)}Qn.exports=process.platform==="win32"?Kc:Qc;Qn.exports.posix=Qc;Qn.exports.win32=Kc});var Rr=g(He=>{He.alphasort=el;He.alphasorti=Zc;He.setopts=Hx;He.ownProp=Xc;He.makeAbs=Or;He.finish=Vx;He.mark=Yx;He.isIgnored=tl;He.childrenIgnored=Wx;function Xc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Kt=require("path"),$x=Jn(),zx=Kn(),Tr=$x.Minimatch;function Zc(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function el(t,e){return t.localeCompare(e)}function Ux(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(Bx))}function Bx(t){var e=null;if(t.slice(-3)==="/**"){var i=t.replace(/(\/\*\*)+$/,"");e=new Tr(i,{dot:!0})}return{matcher:new Tr(t,{dot:!0}),gmatcher:e}}function Hx(t,e,i){if(i||(i={}),i.matchBase&&e.indexOf("/")===-1){if(i.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!i.silent,t.pattern=e,t.strict=i.strict!==!1,t.realpath=!!i.realpath,t.realpathCache=i.realpathCache||Object.create(null),t.follow=!!i.follow,t.dot=!!i.dot,t.mark=!!i.mark,t.nodir=!!i.nodir,t.nodir&&(t.mark=!0),t.sync=!!i.sync,t.nounique=!!i.nounique,t.nonull=!!i.nonull,t.nosort=!!i.nosort,t.nocase=!!i.nocase,t.stat=!!i.stat,t.noprocess=!!i.noprocess,t.maxLength=i.maxLength||1/0,t.cache=i.cache||Object.create(null),t.statCache=i.statCache||Object.create(null),t.symlinks=i.symlinks||Object.create(null),Ux(t,i),t.changedCwd=!1;var n=process.cwd();Xc(i,"cwd")?(t.cwd=i.cwd,t.changedCwd=Kt.resolve(i.cwd)!==n):t.cwd=n,t.root=i.root||Kt.resolve(t.cwd,"/"),t.root=Kt.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,t.minimatch=new Tr(e,i),t.options=t.minimatch.options}function Vx(t){for(var e=t.nounique,i=e?[]:Object.create(null),n=0,a=t.matches.length;n<a;n++){var r=t.matches[n];if(!r||Object.keys(r).length===0){if(t.nonull){var s=t.minimatch.globSet[n];e?i.push(s):i[s]=!0}}else{var o=Object.keys(r);e?i.push.apply(i,o):o.forEach(function(c){i[c]=!0})}}if(e||(i=Object.keys(i)),t.nosort||(i=i.sort(t.nocase?Zc:el)),t.mark){for(var n=0;n<i.length;n++)i[n]=t._mark(i[n]);t.nodir&&(i=i.filter(function(c){return!/\/$/.test(c)}))}t.ignore.length&&(i=i.filter(function(c){return!tl(t,c)})),t.found=i}function Yx(t,e){var i=Or(t,e),n=t.cache[i],a=e;if(n){var r=n==="DIR"||Array.isArray(n),s=e.slice(-1)==="/";if(r&&!s?a+="/":!r&&s&&(a=a.slice(0,-1)),a!==e){var o=Or(t,a);t.statCache[o]=t.statCache[i],t.cache[o]=t.cache[i]}}return a}function Or(t,e){var i=e;return e.charAt(0)==="/"?i=Kt.join(t.root,e):zx(e)||e===""?i=e:t.changedCwd?i=Kt.resolve(t.cwd,e):i=Kt.resolve(e),i}function tl(t,e){return t.ignore.length?t.ignore.some(function(i){return i.matcher.match(e)||!!(i.gmatcher&&i.gmatcher.match(e))}):!1}function Wx(t,e){return t.ignore.length?t.ignore.some(function(i){return!!(i.gmatcher&&i.gmatcher.match(e))}):!1}});var sl=g((WA,rl)=>{rl.exports=al;al.GlobSync=oe;var Ni=require("fs"),il=Jn(),UA=il.Minimatch,BA=jr().Glob,HA=require("util"),Lr=require("path"),nl=require("assert"),Xn=Kn(),vt=Rr(),VA=vt.alphasort,YA=vt.alphasorti,Gx=vt.setopts,Fr=vt.ownProp,Jx=vt.childrenIgnored;function al(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 oe(t,e).found}function oe(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 oe))return new oe(t,e);if(Gx(this,t,e),this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var n=0;n<i;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}oe.prototype._finish=function(){if(nl(this instanceof oe),this.realpath){var t=this;this.matches.forEach(function(e,i){var n=t.matches[i]=Object.create(null);for(var a in e)try{a=t._makeAbs(a);var r=Ni.realpathSync(a,t.realpathCache);n[r]=!0}catch(s){if(s.syscall==="stat")n[t._makeAbs(a)]=!0;else throw s}})}vt.finish(this)};oe.prototype._process=function(t,e,i){nl(this instanceof oe);for(var n=0;typeof t[n]=="string";)n++;var a;switch(n){case t.length:this._processSimple(t.join("/"),e);return;case 0:a=null;break;default:a=t.slice(0,n).join("/");break}var r=t.slice(n),s;a===null?s=".":((Xn(a)||Xn(t.join("/")))&&(!a||!Xn(a))&&(a="/"+a),s=a);var o=this._makeAbs(s);if(!Jx(this,s)){var c=r[0]===il.GLOBSTAR;c?this._processGlobStar(a,s,o,r,e,i):this._processReaddir(a,s,o,r,e,i)}};oe.prototype._processReaddir=function(t,e,i,n,a,r){var s=this._readdir(i,r);if(s){for(var o=n[0],c=!!this.minimatch.negate,l=o._glob,p=this.dot||l.charAt(0)===".",m=[],u=0;u<s.length;u++){var d=s[u];if(d.charAt(0)!=="."||p){var h;c&&!t?h=!d.match(o):h=d.match(o),h&&m.push(d)}}var x=m.length;if(x!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var u=0;u<x;u++){var d=m[u];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=Lr.join(this.root,d)),this.matches[a][d]=!0}return}n.shift();for(var u=0;u<x;u++){var d=m[u],E;t?E=[t,d]:E=[d],this._process(E.concat(n),a,r)}}}};oe.prototype._emitMatch=function(t,e){var i=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)}};oe.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,i,n;try{i=Ni.lstatSync(t)}catch{return null}var a=i.isSymbolicLink();return this.symlinks[t]=a,!a&&!i.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};oe.prototype._readdir=function(t,e){var i;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,Ni.readdirSync(t))}catch(a){return this._readdirError(t,a),null}};oe.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var n=e[i];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,e};oe.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}};oe.prototype._processGlobStar=function(t,e,i,n,a,r){var s=this._readdir(i,r);if(s){var o=n.slice(1),c=t?[t]:[],l=c.concat(o);this._process(l,a,!1);var p=s.length,m=this.symlinks[i];if(!(m&&r))for(var u=0;u<p;u++){var d=s[u];if(!(d.charAt(0)==="."&&!this.dot)){var h=c.concat(s[u],o);this._process(h,a,!0);var x=c.concat(s[u],n);this._process(x,a,!0)}}}};oe.prototype._processSimple=function(t,e){var i=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!i){if(t&&Xn(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Lr.join(this.root,t):(t=Lr.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this.matches[e][t]=!0}};oe.prototype._stat=function(t){var e=this._makeAbs(t),i=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&Fr(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!i||s==="DIR")return s;if(i&&s==="FILE")return!1}var n,a=this.statCache[e];if(!a){var r;try{r=Ni.lstatSync(e)}catch{return!1}if(r.isSymbolicLink())try{a=Ni.statSync(e)}catch{a=r}else a=r}this.statCache[e]=a;var s=a.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||s,i&&s!=="DIR"?!1:s};oe.prototype._mark=function(t){return vt.mark(this,t)};oe.prototype._makeAbs=function(t){return vt.makeAbs(this,t)}});var Zn=g((GA,cl)=>{cl.exports=ol;function ol(t,e){if(t&&e)return ol(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){i[n]=t[n]}),i;function i(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];var r=t.apply(this,n),s=n[n.length-1];return typeof r=="function"&&r!==s&&Object.keys(s).forEach(function(o){r[o]=s[o]}),r}}});var ta=g((JA,Nr)=>{var ll=Zn();Nr.exports=ll(ea);Nr.exports.strict=ll(pl);ea.proto=ea(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ea(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return pl(this)},configurable:!0})});function ea(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function pl(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},i=t.name||"Function wrapped with `once`";return e.onceError=i+" shouldn't be called more than once",e.called=!1,e}});var dl=g((QA,ul)=>{var Qx=Zn(),qi=Object.create(null),Kx=ta();ul.exports=Qx(Xx);function Xx(t,e){return qi[t]?(qi[t].push(e),null):(qi[t]=[e],Zx(t))}function Zx(t){return Kx(function e(){var i=qi[t],n=i.length,a=ey(arguments);try{for(var r=0;r<n;r++)i[r].apply(null,a)}finally{i.length>n?(i.splice(0,n),process.nextTick(function(){e.apply(null,a)})):delete qi[t]}})}function ey(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n]=t[n];return i}});var jr=g((tC,fl)=>{fl.exports=Ft;var Ii=require("fs"),ml=Jn(),KA=ml.Minimatch,ty=Jc(),iy=require("events").EventEmitter,qr=require("path"),Ir=require("assert"),ia=Kn(),Pr=sl(),at=Rr(),XA=at.alphasort,ZA=at.alphasorti,ny=at.setopts,Mr=at.ownProp,$r=dl(),eC=require("util"),ay=at.childrenIgnored,ry=at.isIgnored,sy=ta();function Ft(t,e,i){if(typeof e=="function"&&(i=e,e={}),e||(e={}),e.sync){if(i)throw new TypeError("callback provided to sync glob");return Pr(t,e)}return new Q(t,e,i)}Ft.sync=Pr;var oy=Ft.GlobSync=Pr.GlobSync;Ft.glob=Ft;function cy(t,e){if(e===null||typeof e!="object")return t;for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}Ft.hasMagic=function(t,e){var i=cy({},e);i.noprocess=!0;var n=new Q(t,i),a=n.minimatch.set;if(a.length>1)return!0;for(var r=0;r<a[0].length;r++)if(typeof a[0][r]!="string")return!0;return!1};Ft.Glob=Q;ty(Q,iy);function Q(t,e,i){if(typeof e=="function"&&(i=e,e=null),e&&e.sync){if(i)throw new TypeError("callback provided to sync glob");return new oy(t,e)}if(!(this instanceof Q))return new Q(t,e,i);ny(this,t,e),this._didRealPath=!1;var a=this.minimatch.set.length;this.matches=new Array(a),typeof i=="function"&&(i=sy(i),this.on("error",i),this.on("end",function(o){i(null,o)}));var n=this,a=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(a),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(a===0)return s();for(var r=0;r<a;r++)this._process(this.minimatch.set[r],r,!1,s);function s(){--n._processing,n._processing<=0&&n._finish()}}Q.prototype._finish=function(){if(Ir(this instanceof Q),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();at.finish(this),this.emit("end",this.found)}};Q.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,i=0;i<this.matches.length;i++)this._realpathSet(i,n);function n(){--t===0&&e._finish()}};Q.prototype._realpathSet=function(t,e){var i=this.matches[t];if(!i)return e();var n=Object.keys(i),a=this,r=n.length;if(r===0)return e();var s=this.matches[t]=Object.create(null);n.forEach(function(o,c){o=a._makeAbs(o),Ii.realpath(o,a.realpathCache,function(l,p){l?l.syscall==="stat"?s[o]=!0:a.emit("error",l):s[p]=!0,--r===0&&(a.matches[t]=s,e())})})};Q.prototype._mark=function(t){return at.mark(this,t)};Q.prototype._makeAbs=function(t){return at.makeAbs(this,t)};Q.prototype.abort=function(){this.aborted=!0,this.emit("abort")};Q.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};Q.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 i=t[e];this._emitMatch(i[0],i[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var a=n[e];this._processing--,this._process(a[0],a[1],a[2],a[3])}}}};Q.prototype._process=function(t,e,i,n){if(Ir(this instanceof Q),Ir(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,i,n]);return}for(var a=0;typeof t[a]=="string";)a++;var r;switch(a){case t.length:this._processSimple(t.join("/"),e,n);return;case 0:r=null;break;default:r=t.slice(0,a).join("/");break}var s=t.slice(a),o;r===null?o=".":((ia(r)||ia(t.join("/")))&&(!r||!ia(r))&&(r="/"+r),o=r);var c=this._makeAbs(o);if(ay(this,o))return n();var l=s[0]===ml.GLOBSTAR;l?this._processGlobStar(r,o,c,s,e,i,n):this._processReaddir(r,o,c,s,e,i,n)}};Q.prototype._processReaddir=function(t,e,i,n,a,r,s){var o=this;this._readdir(i,r,function(c,l){return o._processReaddir2(t,e,i,n,a,r,l,s)})};Q.prototype._processReaddir2=function(t,e,i,n,a,r,s,o){if(!s)return o();for(var c=n[0],l=!!this.minimatch.negate,p=c._glob,m=this.dot||p.charAt(0)===".",u=[],d=0;d<s.length;d++){var h=s[d];if(h.charAt(0)!=="."||m){var x;l&&!t?x=!h.match(c):x=h.match(c),x&&u.push(h)}}var E=u.length;if(E===0)return o();if(n.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var d=0;d<E;d++){var h=u[d];t&&(t!=="/"?h=t+"/"+h:h=t+h),h.charAt(0)==="/"&&!this.nomount&&(h=qr.join(this.root,h)),this._emitMatch(a,h)}return o()}n.shift();for(var d=0;d<E;d++){var h=u[d],y;t&&(t!=="/"?h=t+"/"+h:h=t+h),this._process([h].concat(n),a,r,o)}o()};Q.prototype._emitMatch=function(t,e){if(!this.aborted&&!this.matches[t][e]&&!ry(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var i=this._makeAbs(e);if(this.nodir){var n=this.cache[i];if(n==="DIR"||Array.isArray(n))return}this.mark&&(e=this._mark(e)),this.matches[t][e]=!0;var a=this.statCache[i];a&&this.emit("stat",e,a),this.emit("match",e)}};Q.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var i="lstat\0"+t,n=this,a=$r(i,r);a&&Ii.lstat(t,a);function r(s,o){if(s)return e();var c=o.isSymbolicLink();n.symlinks[t]=c,!c&&!o.isDirectory()?(n.cache[t]="FILE",e()):n._readdir(t,!1,e)}};Q.prototype._readdir=function(t,e,i){if(!this.aborted&&(i=$r("readdir\0"+t+"\0"+e,i),!!i)){if(e&&!Mr(this.symlinks,t))return this._readdirInGlobStar(t,i);if(Mr(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return i();if(Array.isArray(n))return i(null,n)}var a=this;Ii.readdir(t,ly(this,t,i))}};function ly(t,e,i){return function(n,a){n?t._readdirError(e,n,i):t._readdirEntries(e,a,i)}}Q.prototype._readdirEntries=function(t,e,i){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var a=e[n];t==="/"?a=t+a:a=t+"/"+a,this.cache[a]=!0}return this.cache[t]=e,i(null,e)}};Q.prototype._readdirError=function(t,e,i){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 i()}};Q.prototype._processGlobStar=function(t,e,i,n,a,r,s){var o=this;this._readdir(i,r,function(c,l){o._processGlobStar2(t,e,i,n,a,r,l,s)})};Q.prototype._processGlobStar2=function(t,e,i,n,a,r,s,o){if(!s)return o();var c=n.slice(1),l=t?[t]:[],p=l.concat(c);this._process(p,a,!1,o);var m=this.symlinks[i],u=s.length;if(m&&r)return o();for(var d=0;d<u;d++){var h=s[d];if(!(h.charAt(0)==="."&&!this.dot)){var x=l.concat(s[d],c);this._process(x,a,!0,o);var E=l.concat(s[d],n);this._process(E,a,!0,o)}}o()};Q.prototype._processSimple=function(t,e,i){var n=this;this._stat(t,function(a,r){n._processSimple2(t,e,a,r,i)})};Q.prototype._processSimple2=function(t,e,i,n,a){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return a();if(t&&ia(t)&&!this.nomount){var r=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=qr.join(this.root,t):(t=qr.resolve(this.root,t),r&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),a()};Q.prototype._stat=function(t,e){var i=this._makeAbs(t),n=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&Mr(this.cache,i)){var a=this.cache[i];if(Array.isArray(a)&&(a="DIR"),!n||a==="DIR")return e(null,a);if(n&&a==="FILE")return e()}var r,s=this.statCache[i];if(s!==void 0){if(s===!1)return e(null,s);var o=s.isDirectory()?"DIR":"FILE";return n&&o==="FILE"?e():e(null,o,s)}var c=this,l=$r("stat\0"+i,p);l&&Ii.lstat(i,l);function p(m,u){if(u&&u.isSymbolicLink())return Ii.stat(i,function(d,h){d?c._stat2(t,i,null,u,e):c._stat2(t,i,d,h,e)});c._stat2(t,i,m,u,e)}};Q.prototype._stat2=function(t,e,i,n,a){if(i)return this.statCache[e]=!1,a();var r=t.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&!n.isDirectory())return a(null,!1,n);var s=n.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||s,r&&s!=="DIR"?a():a(null,s,n)}});var bl=g((iC,yl)=>{yl.exports=Hr;Hr.sync=xl;var J=require("assert"),hl=require("path"),ra=require("fs"),sa=jr(),vl={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},zr=0,Br=process.platform==="win32";function gl(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(i){t[i]=t[i]||ra[i],i=i+"Sync",t[i]=t[i]||ra[i]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.disableGlob=t.disableGlob||!1}function Hr(t,e,i){typeof e=="function"&&(i=e,e={}),J(t,"rimraf: missing path"),J.equal(typeof t,"string","rimraf: path should be a string"),J(e,"rimraf: missing options"),J.equal(typeof e,"object","rimraf: options should be object"),J.equal(typeof i,"function","rimraf: callback function required"),gl(e);var n=0,a=null,r=0;if(e.disableGlob||!sa.hasMagic(t))return o(null,[t]);ra.lstat(t,function(c,l){if(!c)return o(null,[t]);sa(t,vl,o)});function s(c){a=a||c,--r===0&&i(a)}function o(c,l){if(c)return i(c);if(r=l.length,r===0)return i();l.forEach(function(p){Ur(p,e,function m(u){if(u){if(Br&&(u.code==="EBUSY"||u.code==="ENOTEMPTY"||u.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){Ur(p,e,m)},d)}if(u.code==="EMFILE"&&zr<e.emfileWait)return setTimeout(function(){Ur(p,e,m)},zr++);u.code==="ENOENT"&&(u=null)}zr=0,s(u)})})}}function Ur(t,e,i){J(t),J(e),J(typeof i=="function"),e.lstat(t,function(n,a){if(n&&n.code==="ENOENT")return i(null);if(a&&a.isDirectory())return na(t,e,n,i);e.unlink(t,function(r){if(r){if(r.code==="ENOENT")return i(null);if(r.code==="EPERM")return Br?py(t,e,r,i):na(t,e,r,i);if(r.code==="EISDIR")return na(t,e,r,i)}return i(r)})})}function py(t,e,i,n){J(t),J(e),J(typeof n=="function"),i&&J(i instanceof Error),e.chmod(t,666,function(a){a?n(a.code==="ENOENT"?null:i):e.stat(t,function(r,s){r?n(r.code==="ENOENT"?null:i):s.isDirectory()?na(t,e,i,n):e.unlink(t,n)})})}function uy(t,e,i){J(t),J(e),i&&J(i instanceof Error);try{e.chmodSync(t,666)}catch(a){if(a.code==="ENOENT")return;throw i}try{var n=e.statSync(t)}catch(a){if(a.code==="ENOENT")return;throw i}n.isDirectory()?aa(t,e,i):e.unlinkSync(t)}function na(t,e,i,n){J(t),J(e),i&&J(i instanceof Error),J(typeof n=="function"),e.rmdir(t,function(a){a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")?dy(t,e,n):a&&a.code==="ENOTDIR"?n(i):n(a)})}function dy(t,e,i){J(t),J(e),J(typeof i=="function"),e.readdir(t,function(n,a){if(n)return i(n);var r=a.length;if(r===0)return e.rmdir(t,i);var s;a.forEach(function(o){Hr(hl.join(t,o),e,function(c){if(!s){if(c)return i(s=c);--r===0&&e.rmdir(t,i)}})})})}function xl(t,e){e=e||{},gl(e),J(t,"rimraf: missing path"),J.equal(typeof t,"string","rimraf: path should be a string"),J(e,"rimraf: missing options"),J.equal(typeof e,"object","rimraf: options should be object");var i;if(e.disableGlob||!sa.hasMagic(t))i=[t];else try{ra.lstatSync(t),i=[t]}catch{i=sa.sync(t,vl)}if(i.length)for(var n=0;n<i.length;n++){var t=i[n];try{var a=e.lstatSync(t)}catch(s){if(s.code==="ENOENT")return}try{a&&a.isDirectory()?aa(t,e,null):e.unlinkSync(t)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return Br?uy(t,e,s):aa(t,e,s);if(s.code!=="EISDIR")throw s;aa(t,e,s)}}}function aa(t,e,i){J(t),J(e),i&&J(i instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw i;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&my(t,e)}}function my(t,e){J(t),J(e),e.readdirSync(t).forEach(function(i){xl(hl.join(t,i),e)}),e.rmdirSync(t,e)}});var El=g((nC,Sl)=>{var Mi=require("path"),wl=require("fs"),_l=parseInt("0777",8);Sl.exports=Xt.mkdirp=Xt.mkdirP=Xt;function Xt(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||wl;a===void 0&&(a=_l),n||(n=null);var s=i||function(){};t=Mi.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Mi.dirname(t)===t)return s(o);Xt(Mi.dirname(t),e,function(c,l){c?s(c,l):Xt(t,e,s,l)});break;default:r.stat(t,function(c,l){c||!l.isDirectory()?s(o,n):s(null,n)});break}})}Xt.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||wl;a===void 0&&(a=_l),n||(n=null),e=Mi.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Mi.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var Tl=g((aC,Cl)=>{var Zt=require("fs"),fy=Ac().ncp,hy=require("path"),kl=bl(),vy=El();Cl.exports=gy;function gy(t,e,i,n){typeof i=="function"&&(n=i,i={});var a=!!i.mkdirp,r=i.clobber!==!1,s=i.limit||16;a?o():c();function o(){vy(hy.dirname(e),function(l){if(l)return n(l);c()})}function c(){r?Zt.rename(t,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);Dl(t,e,r,s,n)}):Zt.link(t,e,function(l){if(l){if(l.code==="EXDEV"){Dl(t,e,r,s,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){Al(t,e,r,s,n);return}n(l);return}Zt.unlink(t,n)})}}function Dl(t,e,i,n,a){var r=i?"w":"wx",s=Zt.createReadStream(t),o=Zt.createWriteStream(e,{flags:r});s.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",c),l.code==="EISDIR"||l.code==="EPERM"?Al(t,e,i,n,a):a(l)}),o.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",c),a(l)}),o.once("close",c),s.pipe(o);function c(){Zt.unlink(t,a)}}function Al(t,e,i,n,a){var r={stopOnErr:!0,clobber:!1,limit:n};i?kl(e,{disableGlob:!0},function(o){if(o)return a(o);s()}):s();function s(){fy(t,e,r,function(o){if(o)return a(o[0]);kl(t,{disableGlob:!0},a)})}}});var Rl=g(Vr=>{var Ol="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Vr.encode=function(t){if(0<=t&&t<Ol.length)return Ol[t];throw new TypeError("Must be between 0 and 63: "+t)};Vr.decode=function(t){var e=65,i=90,n=97,a=122,r=48,s=57,o=43,c=47,l=26,p=52;return e<=t&&t<=i?t-e:n<=t&&t<=a?t-n+l:r<=t&&t<=s?t-r+p:t==o?62:t==c?63:-1}});var Gr=g(Wr=>{var Ll=Rl(),Yr=5,Fl=1<<Yr,jl=Fl-1,Nl=Fl;function xy(t){return t<0?(-t<<1)+1:(t<<1)+0}function yy(t){var e=(t&1)===1,i=t>>1;return e?-i:i}Wr.encode=function(e){var i="",n,a=xy(e);do n=a&jl,a>>>=Yr,a>0&&(n|=Nl),i+=Ll.encode(n);while(a>0);return i};Wr.decode=function(e,i,n){var a=e.length,r=0,s=0,o,c;do{if(i>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Ll.decode(e.charCodeAt(i++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));o=!!(c&Nl),c&=jl,r=r+(c<<s),s+=Yr}while(o);n.value=yy(r),n.rest=i}});var ii=g(ye=>{function by(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}ye.getArg=by;var ql=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,wy=/^data:.+\,.+$/;function Pi(t){var e=t.match(ql);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}ye.urlParse=Pi;function ei(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}ye.urlGenerate=ei;function Jr(t){var e=t,i=Pi(t);if(i){if(!i.path)return t;e=i.path}for(var n=ye.isAbsolute(e),a=e.split(/\/+/),r,s=0,o=a.length-1;o>=0;o--)r=a[o],r==="."?a.splice(o,1):r===".."?s++:s>0&&(r===""?(a.splice(o+1,s),s=0):(a.splice(o,2),s--));return e=a.join("/"),e===""&&(e=n?"/":"."),i?(i.path=e,ei(i)):e}ye.normalize=Jr;function Il(t,e){t===""&&(t="."),e===""&&(e=".");var i=Pi(e),n=Pi(t);if(n&&(t=n.path||"/"),i&&!i.scheme)return n&&(i.scheme=n.scheme),ei(i);if(i||e.match(wy))return e;if(n&&!n.host&&!n.path)return n.host=e,ei(n);var a=e.charAt(0)==="/"?e:Jr(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=a,ei(n)):a}ye.join=Il;ye.isAbsolute=function(t){return t.charAt(0)==="/"||ql.test(t)};function _y(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}ye.relative=_y;var Ml=function(){var t=Object.create(null);return!("__proto__"in t)}();function Pl(t){return t}function Sy(t){return $l(t)?"$"+t:t}ye.toSetString=Ml?Pl:Sy;function Ey(t){return $l(t)?t.slice(1):t}ye.fromSetString=Ml?Pl:Ey;function $l(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function ky(t,e,i){var n=ti(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||i)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:ti(t.name,e.name)}ye.compareByOriginalPositions=ky;function Dy(t,e,i){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||i)||(n=ti(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:ti(t.name,e.name)}ye.compareByGeneratedPositionsDeflated=Dy;function ti(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Ay(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=ti(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:ti(t.name,e.name)}ye.compareByGeneratedPositionsInflated=Ay;function Cy(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}ye.parseSourceMapInput=Cy;function Ty(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var n=Pi(i);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var a=n.path.lastIndexOf("/");a>=0&&(n.path=n.path.substring(0,a+1))}e=Il(ei(n),e)}return Jr(e)}ye.computeSourceURL=Ty});var Xr=g(zl=>{var Qr=ii(),Kr=Object.prototype.hasOwnProperty,jt=typeof Map<"u";function rt(){this._array=[],this._set=jt?new Map:Object.create(null)}rt.fromArray=function(e,i){for(var n=new rt,a=0,r=e.length;a<r;a++)n.add(e[a],i);return n};rt.prototype.size=function(){return jt?this._set.size:Object.getOwnPropertyNames(this._set).length};rt.prototype.add=function(e,i){var n=jt?e:Qr.toSetString(e),a=jt?this.has(e):Kr.call(this._set,n),r=this._array.length;(!a||i)&&this._array.push(e),a||(jt?this._set.set(e,r):this._set[n]=r)};rt.prototype.has=function(e){if(jt)return this._set.has(e);var i=Qr.toSetString(e);return Kr.call(this._set,i)};rt.prototype.indexOf=function(e){if(jt){var i=this._set.get(e);if(i>=0)return i}else{var n=Qr.toSetString(e);if(Kr.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};rt.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};rt.prototype.toArray=function(){return this._array.slice()};zl.ArraySet=rt});var Hl=g(Bl=>{var Ul=ii();function Oy(t,e){var i=t.generatedLine,n=e.generatedLine,a=t.generatedColumn,r=e.generatedColumn;return n>i||n==i&&r>=a||Ul.compareByGeneratedPositionsInflated(t,e)<=0}function oa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}oa.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};oa.prototype.add=function(e){Oy(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};oa.prototype.toArray=function(){return this._sorted||(this._array.sort(Ul.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Bl.MappingList=oa});var Zr=g(Vl=>{var $i=Gr(),re=ii(),ca=Xr().ArraySet,Ry=Hl().MappingList;function Ne(t){t||(t={}),this._file=re.getArg(t,"file",null),this._sourceRoot=re.getArg(t,"sourceRoot",null),this._skipValidation=re.getArg(t,"skipValidation",!1),this._sources=new ca,this._names=new ca,this._mappings=new Ry,this._sourcesContents=null}Ne.prototype._version=3;Ne.fromSourceMap=function(e){var i=e.sourceRoot,n=new Ne({file:e.file,sourceRoot:i});return e.eachMapping(function(a){var r={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(r.source=a.source,i!=null&&(r.source=re.relative(i,r.source)),r.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(r.name=a.name)),n.addMapping(r)}),e.sources.forEach(function(a){var r=a;i!==null&&(r=re.relative(i,a)),n._sources.has(r)||n._sources.add(r);var s=e.sourceContentFor(a);s!=null&&n.setSourceContent(a,s)}),n};Ne.prototype.addMapping=function(e){var i=re.getArg(e,"generated"),n=re.getArg(e,"original",null),a=re.getArg(e,"source",null),r=re.getArg(e,"name",null);this._skipValidation||this._validateMapping(i,n,a,r),a!=null&&(a=String(a),this._sources.has(a)||this._sources.add(a)),r!=null&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:a,name:r})};Ne.prototype.setSourceContent=function(e,i){var n=e;this._sourceRoot!=null&&(n=re.relative(this._sourceRoot,n)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[re.toSetString(n)]=i):this._sourcesContents&&(delete this._sourcesContents[re.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ne.prototype.applySourceMap=function(e,i,n){var a=i;if(i==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var r=this._sourceRoot;r!=null&&(a=re.relative(r,a));var s=new ca,o=new ca;this._mappings.unsortedForEach(function(c){if(c.source===a&&c.originalLine!=null){var l=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=re.join(n,c.source)),r!=null&&(c.source=re.relative(r,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!s.has(p)&&s.add(p);var m=c.name;m!=null&&!o.has(m)&&o.add(m)},this),this._sources=s,this._names=o,e.sources.forEach(function(c){var l=e.sourceContentFor(c);l!=null&&(n!=null&&(c=re.join(n,c)),r!=null&&(c=re.relative(r,c)),this.setSourceContent(c,l))},this)};Ne.prototype._validateMapping=function(e,i,n,a){if(i&&typeof i.line!="number"&&typeof i.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!n&&!a)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:i,name:a}))}};Ne.prototype._serializeMappings=function(){for(var e=0,i=1,n=0,a=0,r=0,s=0,o="",c,l,p,m,u=this._mappings.toArray(),d=0,h=u.length;d<h;d++){if(l=u[d],c="",l.generatedLine!==i)for(e=0;l.generatedLine!==i;)c+=";",i++;else if(d>0){if(!re.compareByGeneratedPositionsInflated(l,u[d-1]))continue;c+=","}c+=$i.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(m=this._sources.indexOf(l.source),c+=$i.encode(m-s),s=m,c+=$i.encode(l.originalLine-1-a),a=l.originalLine-1,c+=$i.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=$i.encode(p-r),r=p)),o+=c}return o};Ne.prototype._generateSourcesContent=function(e,i){return e.map(function(n){if(!this._sourcesContents)return null;i!=null&&(n=re.relative(i,n));var a=re.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};Ne.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Ne.prototype.toString=function(){return JSON.stringify(this.toJSON())};Vl.SourceMapGenerator=Ne});var Yl=g(Nt=>{Nt.GREATEST_LOWER_BOUND=1;Nt.LEAST_UPPER_BOUND=2;function es(t,e,i,n,a,r){var s=Math.floor((e-t)/2)+t,o=a(i,n[s],!0);return o===0?s:o>0?e-s>1?es(s,e,i,n,a,r):r==Nt.LEAST_UPPER_BOUND?e<n.length?e:-1:s:s-t>1?es(t,s,i,n,a,r):r==Nt.LEAST_UPPER_BOUND?s:t<0?-1:t}Nt.search=function(e,i,n,a){if(i.length===0)return-1;var r=es(-1,i.length,e,i,n,a||Nt.GREATEST_LOWER_BOUND);if(r<0)return-1;for(;r-1>=0&&n(i[r],i[r-1],!0)===0;)--r;return r}});var Gl=g(Wl=>{function ts(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function Ly(t,e){return Math.round(t+Math.random()*(e-t))}function is(t,e,i,n){if(i<n){var a=Ly(i,n),r=i-1;ts(t,a,n);for(var s=t[n],o=i;o<n;o++)e(t[o],s)<=0&&(r+=1,ts(t,r,o));ts(t,r+1,o);var c=r+1;is(t,e,i,c-1),is(t,e,c+1,n)}}Wl.quickSort=function(t,e){is(t,e,0,t.length-1)}});var Ql=g(la=>{var N=ii(),ns=Yl(),ni=Xr().ArraySet,Fy=Gr(),zi=Gl().quickSort;function Z(t,e){var i=t;return typeof t=="string"&&(i=N.parseSourceMapInput(t)),i.sections!=null?new Pe(i,e):new fe(i,e)}Z.fromSourceMap=function(t,e){return fe.fromSourceMap(t,e)};Z.prototype._version=3;Z.prototype.__generatedMappings=null;Object.defineProperty(Z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Z.prototype.__originalMappings=null;Object.defineProperty(Z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Z.prototype._charIsMappingSeparator=function(e,i){var n=e.charAt(i);return n=