"use strict";var e=require("os"),t=require("tty"),n=require("yargs/yargs"),r=require("yargs"),o=require("fs"),i=require("path"),s=require("util"),a=require("@marp-team/marp-core"),u=require("cosmiconfig"),c=require("child_process"),l=require("assert"),p=require("events"),d=require("buffer"),f=require("stream"),D=require("url"),h=require("puppeteer-core"),m=require("globby"),b=require("tmp"),v=require("@marp-team/marpit"),g=require("chrome-launcher"),y=require("crypto"),C=require("chokidar"),w=require("net"),F=require("ws"),k=require("import-from"),E=require("querystring"),x=require("express"),S=require("serve-index"),A=require("@marp-team/marp-core/package.json");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function B(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var _=I(e),j=I(t),P=I(n),O=I(o),M=I(i),N=I(s),T=I(c),L=I(l),R=I(p),z=I(d),U=I(f),G=I(D),Z=I(h),H=I(m),$=I(y),q=I(C),W=I(w),V=I(k),Y=I(E),X=I(x),J=I(S);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function K(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}var Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ee(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var te={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const ne={};for(const e of Object.keys(te))ne[te[e]]=e;const re={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var oe=re;for(const e of Object.keys(re)){if(!("channels"in re[e]))throw new Error("missing channels property: "+e);if(!("labels"in re[e]))throw new Error("missing channel labels property: "+e);if(re[e].labels.length!==re[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=re[e];delete re[e].channels,delete re[e].labels,Object.defineProperty(re[e],"channels",{value:t}),Object.defineProperty(re[e],"labels",{value:n})}function ie(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function se(e){const t=function(){const e={},t=Object.keys(oe);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(oe[e]);for(let o=r.length,i=0;i<o;i++){const o=r[i],s=t[o];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(o))}}return t}function ae(e,t){return function(n){return t(e(n))}}function ue(e,t){const n=[t[e].parent,e];let r=oe[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=ae(oe[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}re.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,u;i===o?a=0:t===i?a=(n-r)/s:n===i?a=2+(r-t)/s:r===i&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+i)/2;return u=i===o?0:c<=.5?s/(i+o):s/(2-i-o),[a,100*u,100*c]},re.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/c,t=p(s),n=p(a),r=p(u),s===c?o=r-n:a===c?o=1/3+t-r:u===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},re.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=re.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},re.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},re.rgb.keyword=function(e){const t=ne[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(te)){const o=ie(e,te[t]);o<r&&(r=o,n=t)}return n},re.keyword.rgb=function(e){return te[e]},re.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},re.rgb.lab=function(e){const t=re.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(n-r),200*(r-o)]},re.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,s;if(0===n)return s=255*r,[s,s,s];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,u=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,u[e]=255*s;return u},re.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},re.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},re.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},re.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,0!=(1&s)&&(i=1-i);const u=n+i*(a-n);let c,l,p;switch(s){default:case 6:case 0:c=a,l=u,p=n;break;case 1:c=u,l=a,p=n;break;case 2:c=n,l=a,p=u;break;case 3:c=n,l=u,p=a;break;case 4:c=u,l=n,p=a;break;case 5:c=a,l=n,p=u}return[255*c,255*l,255*p]},re.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},re.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},re.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},re.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,s=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},re.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},re.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},re.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?re.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(s+=60),s},re.hsv.ansi16=function(e){return re.rgb.ansi16(re.hsv.rgb(e),e[2])},re.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},re.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},re.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},re.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},re.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},re.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a,u;return a=s<1?i/(1-s):0,u=s<=0?0:o===t?(n-r)/s%6:o===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},re.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},re.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},re.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let u=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},re.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},re.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},re.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},re.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},re.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},re.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},re.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},re.gray.hsl=function(e){return[0,0,e[0]]},re.gray.hsv=re.gray.hsl,re.gray.hwb=function(e){return[0,100,e[0]]},re.gray.cmyk=function(e){return[0,0,0,e[0]]},re.gray.lab=function(e){return[e[0],0,0]},re.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},re.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const ce={};Object.keys(oe).forEach(e=>{ce[e]={},Object.defineProperty(ce[e],"channels",{value:oe[e].channels}),Object.defineProperty(ce[e],"labels",{value:oe[e].labels});const t=function(e){const t=se(e),n={},r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];null!==t[e].parent&&(n[e]=ue(e,t))}return n}(e);Object.keys(t).forEach(n=>{const r=t[n];ce[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),ce[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var le=ce,pe=ee((function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},o=e=>e,i=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=le);const o=r?10:0,i={};for(const[r,s]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?i[a]=e(n,o):"object"==typeof s&&(i[a]=e(s[t],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="[39m",a.bgColor.close="[49m",s(a.color,"ansi",()=>u(t,"ansi16",o,!1)),s(a.color,"ansi256",()=>u(n,"ansi256",o,!1)),s(a.color,"ansi16m",()=>u(r,"rgb",i,!1)),s(a.bgColor,"ansi",()=>u(t,"ansi16",o,!0)),s(a.bgColor,"ansi256",()=>u(n,"ansi256",o,!0)),s(a.bgColor,"ansi16m",()=>u(r,"rgb",i,!0)),a}})})),de=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)};const{env:fe}=process;let De;function he(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function me(e,t){if(0===De)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&void 0===De)return 0;const n=De||0;if("dumb"===fe.TERM)return n;if("win32"===process.platform){const e=_.default.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in fe)||"codeship"===fe.CI_NAME?1:n;if("TEAMCITY_VERSION"in fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fe.TEAMCITY_VERSION)?1:0;if("truecolor"===fe.COLORTERM)return 3;if("TERM_PROGRAM"in fe){const e=parseInt((fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fe.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fe.TERM)||"COLORTERM"in fe?1:n}de("no-color")||de("no-colors")||de("color=false")||de("color=never")?De=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(De=1),"FORCE_COLOR"in fe&&(De="true"===fe.FORCE_COLOR?1:"false"===fe.FORCE_COLOR?0:0===fe.FORCE_COLOR.length?1:Math.min(parseInt(fe.FORCE_COLOR,10),3));var be={supportsColor:function(e){return he(me(e,e&&e.isTTY))},stdout:he(me(!0,j.default.isatty(1))),stderr:he(me(!0,j.default.isatty(2)))};var ve={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let i=0,s="";do{s+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,i="";do{const s="\r"===e[r-1];i+=e.substr(o,(s?r-1:r)-o)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o),i}};const ge=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ye=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ce=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,we=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Fe=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ke(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Fe.get(e)||e}function Ee(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let o;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(o=t.match(Ce)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(o[2].replace(we,(e,t,n)=>t?ke(t):n))}else n.push(r)}return n}function xe(e){ye.lastIndex=0;const t=[];let n;for(;null!==(n=ye.exec(e));){const e=n[1];if(n[2]){const r=Ee(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Se(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: "+e);r=t.length>0?r[e](...t):r[e]}return r}var Ae=(e,t)=>{const n=[],r=[];let o=[];if(t.replace(ge,(t,i,s,a,u,c)=>{if(i)o.push(ke(i));else if(a){const t=o.join("");o=[],r.push(0===n.length?t:Se(e,n)(t)),n.push({inverse:s,styles:xe(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Se(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)}),r.push(o.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")};const{stdout:Ie,stderr:Be}=be,{stringReplaceAll:_e,stringEncaseCRLFWithFirstIndex:je}=ve,{isArray:Pe}=Array,Oe=["ansi","ansi","ansi256","ansi16m"],Me=Object.create(null);class Ne{constructor(e){return Te(e)}}const Te=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Ie?Ie.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>$e(t.template,...e),Object.setPrototypeOf(t,Le.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Ne,t.template};function Le(e){return Te(e)}for(const[e,t]of Object.entries(pe))Me[e]={get(){const n=Ge(this,Ue(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};Me.visible={get(){const e=Ge(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Re=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of Re)Me[e]={get(){const{level:t}=this;return function(...n){const r=Ue(pe.color[Oe[t]][e](...n),pe.color.close,this._styler);return Ge(this,r,this._isEmpty)}}};for(const e of Re){Me["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=Ue(pe.bgColor[Oe[t]][e](...n),pe.bgColor.close,this._styler);return Ge(this,r,this._isEmpty)}}}}const ze=Object.defineProperties(()=>{},{...Me,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Ue=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},Ge=(e,t,n)=>{const r=(...e)=>Pe(e[0])&&Pe(e[0].raw)?Ze(r,$e(r,...e)):Ze(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,ze),r._generator=e,r._styler=t,r._isEmpty=n,r},Ze=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=_e(t,n.close,n.open),n=n.parent;const i=t.indexOf("\n");return-1!==i&&(t=je(t,o,r,i)),r+t+o};let He;const $e=(e,...t)=>{const[n]=t;if(!Pe(n)||!Pe(n.raw))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e<n.length;e++)o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===He&&(He=Ae),He(e,o.join(""))};Object.defineProperties(Le.prototype,Me);const qe=Le();qe.supportsColor=Ie,qe.stderr=Le({level:Be?Be.level:0}),qe.stderr.supportsColor=Be;var We=qe,Ve=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const Ye=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var Xe=Ye,Je=Ye;Xe.default=Je;const Ke=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g,"  "))||0===e.length)return 0;e=Ve(e);let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,t+=Xe(r)?2:1))}return t};var Qe=Ke,et=Ke;Qe.default=et;const tt=new Set(["",""]),nt=e=>`${tt.values().next().value}[${e}m`,rt=e=>`${tt.values().next().value}]8;;${e}`,ot=(e,t,n)=>{const r=[...t];let o=!1,i=!1,s=Qe(Ve(e[e.length-1]));for(const[t,a]of r.entries()){const u=Qe(a);s+u<=n?e[e.length-1]+=a:(e.push(a),s=0),tt.has(a)&&(o=!0,i=r.slice(t+1).join("").startsWith("]8;;")),o?i?""===a&&(o=!1,i=!1):"m"===a&&(o=!1):(s+=u,s===n&&t<r.length-1&&(e.push(""),s=0))}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},it=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(Qe(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},st=(e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let r,o,i="";const s=(e=>e.split(" ").map(e=>Qe(e)))(e);let a=[""];for(const[r,o]of e.split(" ").entries()){!1!==n.trim&&(a[a.length-1]=a[a.length-1].trimStart());let e=Qe(a[a.length-1]);if(0!==r&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(a.push(""),e=0),(e>0||!1===n.trim)&&(a[a.length-1]+=" ",e++)),n.hard&&s[r]>t){const n=t-e,i=1+Math.floor((s[r]-n-1)/t);Math.floor((s[r]-1)/t)<i&&a.push(""),ot(a,o,t)}else{if(e+s[r]>t&&e>0&&s[r]>0){if(!1===n.wordWrap&&e<t){ot(a,o,t);continue}a.push("")}e+s[r]>t&&!1===n.wordWrap?ot(a,o,t):a[a.length-1]+=o}}!1!==n.trim&&(a=a.map(it));const u=[...a.join("\n")];for(const[e,t]of u.entries()){if(i+=t,tt.has(t)){const{groups:t}=new RegExp("(?:\\[(?<code>\\d+)m|\\]8;;(?<uri>.*))").exec(u.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);r=39===e?void 0:e}else void 0!==t.uri&&(o=0===t.uri.length?void 0:t.uri)}const n=pe.codes.get(Number(r));"\n"===u[e+1]?(o&&(i+=rt("")),r&&n&&(i+=nt(n))):"\n"===t&&(r&&n&&(i+=nt(r)),o&&(i+=rt(o)))}return i};const at=r.terminalWidth()||80,ut=(e,t,n)=>{const r=Ve(e).length+1;var o,i;return`${e} ${(n.singleLine?t:(o=at-r,String(t).normalize().replace(/\r\n/g,"\n").split("\n").map(e=>st(e,o,i)).join("\n"))).split("\n").join("\n"+" ".repeat(r))}`};let ct=!1;function lt(e){ct=e}function pt(e,t={}){ct||console.warn(ut(We.bgCyan.black("[  INFO ]"),e,t))}function dt(e,t={}){ct||console.warn(ut(We.bgYellow.black("[  WARN ]"),e,t))}function ft(e,t={}){console.error(ut(We.bgRed.white("[ ERROR ]"),e,t))}var Dt=mt;function ht(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function mt(e,t,n){O.default.stat(e,(function(r,o){n(r,!r&&ht(o,e,t))}))}mt.sync=function(e,t){return ht(O.default.statSync(e),e,t)};var bt,vt=gt;function gt(e,t,n){O.default.stat(e,(function(e,r){n(e,!e&&yt(r,t))}))}function yt(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u;return n&c||n&u&&o===s||n&a&&r===i||n&l&&0===i}(e,t)}gt.sync=function(e,t){return yt(O.default.statSync(e),t)},bt="win32"===process.platform||Q.TESTING_WINDOWS?Dt:vt;var Ct=wt;function wt(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){wt(e,t||{},(function(e,t){e?r(e):n(t)}))}))}bt(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}wt.sync=function(e,t){try{return bt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Ft="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,kt=Ft?";":":",Et=e=>Object.assign(new Error("not found: "+e),{code:"ENOENT"}),xt=(e,t)=>{const n=t.colon||kt,r=e.match(/\//)||Ft&&e.match(/\\/)?[""]:[...Ft?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=Ft?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Ft?o.split(n):[""];return Ft&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},St=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:r,pathExt:o,pathExtExe:i}=xt(e,t),s=[],a=n=>new Promise((o,i)=>{if(n===r.length)return t.all&&s.length?o(s):i(Et(e));const a=r[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=M.default.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;o(u(p,n,0))}),u=(e,n,r)=>new Promise((c,l)=>{if(r===o.length)return c(a(n+1));const p=o[r];Ct(e+p,{pathExt:i},(o,i)=>{if(!o&&i){if(!t.all)return c(e+p);s.push(e+p)}return c(u(e,n,r+1))})});return n?a(0).then(e=>n(null,e),n):a(0)};var At=St;St.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=xt(e,t),i=[];for(let s=0;s<n.length;s++){const a=n[s],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=M.default.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<r.length;e++){const n=l+r[e];try{if(Ct.sync(n,{pathExt:o})){if(!t.all)return n;i.push(n)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Et(e)};const It=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};var Bt=It,_t=It;function jt(e,t){const n=e.options.env||process.env,r=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=At.sync(e.command,{path:n[Bt({env:n})],pathExt:t?M.default.delimiter:void 0})}catch(e){}finally{i&&process.chdir(r)}return s&&(s=M.default.resolve(o?e.options.cwd:"",s)),s}Bt.default=_t;var Pt=function(e){return jt(e)||jt(e,!0)};const Ot=/([()\][%!^"`<>&|;, *?])/g;var Mt={command:function(e){return e=e.replace(Ot,"^$1")},argument:function(e,t){return e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Ot,"^$1"),t&&(e=e.replace(Ot,"^$1")),e}},Nt=/^#!(.*)/;var Tt=function(e){const t=Buffer.alloc(150);let n;try{n=O.default.openSync(e,"r"),O.default.readSync(n,t,0,150,0),O.default.closeSync(n)}catch(e){}return((e="")=>{const t=e.match(Nt);if(!t)return null;const[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return"env"===o?r:r?`${o} ${r}`:o})(t.toString())};const Lt="win32"===process.platform,Rt=/\.(?:com|exe)$/i,zt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ut(e){if(!Lt)return e;const t=function(e){e.file=Pt(e);const t=e.file&&Tt(e.file);return t?(e.args.unshift(e.file),e.command=t,Pt(e)):e.file}(e),n=!Rt.test(t);if(e.options.forceShell||n){const n=zt.test(t);e.command=M.default.normalize(e.command),e.command=Mt.command(e.command),e.args=e.args.map(e=>Mt.argument(e,n));const r=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${r}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Gt=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const r={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?r:Ut(r)};const Zt="win32"===process.platform;function Ht(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function $t(e,t){return Zt&&1===e&&!t.file?Ht(t.original,"spawn"):null}var qt={hookChildProcess:function(e,t){if(!Zt)return;const n=e.emit;e.emit=function(r,o){if("exit"===r){const r=$t(o,t);if(r)return n.call(e,"error",r)}return n.apply(e,arguments)}},verifyENOENT:$t,verifyENOENTSync:function(e,t){return Zt&&1===e&&!t.file?Ht(t.original,"spawnSync"):null},notFoundError:Ht};function Wt(e,t,n){const r=Gt(e,t,n),o=T.default.spawn(r.command,r.args,r.options);return qt.hookChildProcess(o,r),o}var Vt=Wt,Yt=Wt,Xt=function(e,t,n){const r=Gt(e,t,n),o=T.default.spawnSync(r.command,r.args,r.options);return o.error=o.error||qt.verifyENOENTSync(o.status,r),o},Jt=Gt,Kt=qt;Vt.spawn=Yt,Vt.sync=Xt,Vt._parse=Jt,Vt._enoent=Kt;const Qt=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};var en=Qt,tn=Qt;en.default=tn;var nn=ee((function(e){const t=e=>{let t;e={cwd:process.cwd(),path:process.env[en()],execPath:process.execPath,...e};let n=M.default.resolve(e.cwd);const r=[];for(;t!==n;)r.push(M.default.join(n,"node_modules/.bin")),t=n,n=M.default.resolve(n,"..");const o=M.default.resolve(e.cwd,e.execPath,"..");return r.push(o),r.concat(e.path).join(M.default.delimiter)};e.exports=t,e.exports.default=t,e.exports.env=t=>{const n={...(t={env:process.env,...t}).env},r=en({env:n});return t.path=n[r],n[r]=e.exports(t),n}}));const rn=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};var on=rn,sn=rn;on.default=sn;const an=new WeakMap,un=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const o=e.displayName||e.name||"<anonymous>",i=function(...s){if(an.set(i,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return n};return on(i,e),an.set(i,r),i};var cn=un,ln=un;cn.default=ln,cn.callCount=e=>{if(!an.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return an.get(e)};var pn=ee((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;t.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]})),dn=ee((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;t.getRealtimeSignals=function(){const e=o-r+1;return Array.from({length:e},n)};const n=function(e,t){return{name:"SIGRT"+(t+1),number:r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},r=34,o=64;t.SIGRTMAX=o})),fn=ee((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;t.getSignals=function(){const e=(0,dn.getRealtimeSignals)();return[...pn.SIGNALS,...e].map(n)};const n=function({name:e,number:t,description:n,action:r,forced:o=!1,standard:i}){const{signals:{[e]:s}}=_.default.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}}})),Dn=ee((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;const n=function(e,{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}){return{...e,[t]:{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}}},r=(0,fn.getSignals)().reduce(n,{});t.signalsByName=r;const o=function(e,t){const n=i(e,t);if(void 0===n)return{};const{name:r,description:o,supported:s,action:a,forced:u,standard:c}=n;return{[e]:{name:r,number:e,description:o,supported:s,action:a,forced:u,standard:c}}},i=function(e,t){const n=t.find(({name:t})=>_.default.constants.signals[t]===e);return void 0!==n?n:t.find(t=>t.number===e)},s=function(){const e=(0,fn.getSignals)(),t=dn.SIGRTMAX+1,n=Array.from({length:t},(t,n)=>o(n,e));return Object.assign({},...n)}();t.signalsByNumber=s}));const{signalsByName:hn}=Dn;var mn=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:s,timedOut:a,isCanceled:u,killed:c,parsed:{options:{timeout:l}}})=>{i=null===i?void 0:i;const p=void 0===(o=null===o?void 0:o)?void 0:hn[o].description,d=`Command ${(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:a,timeout:l,errorCode:r&&r.code,signal:o,signalDescription:p,exitCode:i,isCanceled:u})}: ${s}`,f="[object Error]"===Object.prototype.toString.call(r),D=f?`${d}\n${r.message}`:d,h=[D,t,e].filter(Boolean).join("\n");return f?(r.originalMessage=r.message,r.message=h):r=new Error(h),r.shortMessage=D,r.command=s,r.exitCode=i,r.signal=o,r.signalDescription=p,r.stdout=e,r.stderr=t,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=Boolean(a),r.isCanceled=u,r.killed=c&&!a,r};const bn=["stdin","stdout","stderr"],vn=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return bn.map(t=>e[t]);if((e=>bn.some(t=>void 0!==e[t]))(e))throw new Error("It's not possible to provide `stdio` in combination with one of "+bn.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const n=Math.max(t.length,bn.length);return Array.from({length:n},(e,n)=>t[n])};var gn=vn;gn.node=e=>{const t=vn(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var yn,Cn=ee((function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),wn=/^win/i.test(process.platform),Fn=R.default;"function"!=typeof Fn&&(Fn=Fn.EventEmitter),process.__signal_exit_emitter__?yn=process.__signal_exit_emitter__:((yn=process.__signal_exit_emitter__=new Fn).count=0,yn.emitted={}),yn.infinite||(yn.setMaxListeners(1/0),yn.infinite=!0);var kn=function(e,t){L.default.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Bn&&_n();var n="exit";t&&t.alwaysLast&&(n="afterexit");return yn.on(n,e),function(){yn.removeListener(n,e),0===yn.listeners("exit").length&&0===yn.listeners("afterexit").length&&xn()}},En=xn;function xn(){Bn&&(Bn=!1,Cn.forEach((function(e){try{process.removeListener(e,An[e])}catch(e){}})),process.emit=On,process.reallyExit=jn,yn.count-=1)}function Sn(e,t,n){yn.emitted[e]||(yn.emitted[e]=!0,yn.emit(e,t,n))}var An={};Cn.forEach((function(e){An[e]=function(){process.listeners(e).length===yn.count&&(xn(),Sn("exit",null,e),Sn("afterexit",null,e),wn&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}}));var In=_n,Bn=!1;function _n(){Bn||(Bn=!0,yn.count+=1,Cn=Cn.filter((function(e){try{return process.on(e,An[e]),!0}catch(e){return!1}})),process.emit=Mn,process.reallyExit=Pn)}var jn=process.reallyExit;function Pn(e){process.exitCode=e||0,Sn("exit",process.exitCode,null),Sn("afterexit",process.exitCode,null),jn.call(process,process.exitCode)}var On=process.emit;function Mn(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var n=On.apply(this,arguments);return Sn("exit",process.exitCode,null),Sn("afterexit",process.exitCode,null),n}return On.apply(this,arguments)}kn.unload=En,kn.signals=function(){return Cn},kn.load=In;const Nn=(e,t,n,r)=>{if(!Tn(t,n,r))return;const o=Rn(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},Tn=(e,{forceKillAfterTimeout:t},n)=>Ln(e)&&!1!==t&&n,Ln=e=>e===_.default.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Rn=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};var zn={spawnedKill:(e,t="SIGTERM",n={})=>{const r=e(t);return Nn(e,t,n,r),r},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);let o;const i=new Promise((r,i)=>{o=setTimeout(()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,i)},t)}),s=r.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},setExitHandler:async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const o=kn(()=>{e.kill()});return r.finally(()=>{o()})}};const Un=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Un.writable=e=>Un(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Un.readable=e=>Un(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Un.duplex=e=>Un.writable(e)&&Un.readable(e),Un.transform=e=>Un.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState;var Gn=Un,Zn=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),o=e[e.length-1];return"function"==typeof r&&r!==o&&Object.keys(o).forEach((function(e){r[e]=o[e]})),r}};var Hn=Zn(qn),$n=Zn(Wn);function qn(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Wn(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}qn.proto=qn((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return qn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Wn(this)},configurable:!0})})),Hn.strict=$n;var Vn=function(){},Yn=function(e,t,n){if("function"==typeof t)return Yn(e,null,t);t||(t={}),n=Hn(n||Vn);var r=e._writableState,o=e._readableState,i=t.readable||!1!==t.readable&&e.readable,s=t.writable||!1!==t.writable&&e.writable,a=!1,u=function(){e.writable||c()},c=function(){s=!1,i||n.call(e)},l=function(){i=!1,s||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},d=function(t){n.call(e,t)},f=function(){process.nextTick(D)},D=function(){if(!a)return(!i||o&&o.ended&&!o.destroyed)&&(!s||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},h=function(){e.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?s&&!r&&(e.on("end",u),e.on("close",u)):(e.on("complete",c),e.on("abort",f),e.req?h():e.on("request",h)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",l),e.on("finish",c),!1!==t.error&&e.on("error",d),e.on("close",f),function(){a=!0,e.removeListener("complete",c),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("exit",p),e.removeListener("end",l),e.removeListener("error",d),e.removeListener("close",f)}},Xn=Yn,Jn=function(){},Kn=/^v?\.0/.test(process.version),Qn=function(e){return"function"==typeof e},er=function(e,t,n,r){r=Hn(r);var o=!1;e.on("close",(function(){o=!0})),Xn(e,{readable:t,writable:n},(function(e){if(e)return r(e);o=!0,r()}));var i=!1;return function(t){if(!o&&!i)return i=!0,function(e){return!!Kn&&!!O.default&&(e instanceof(O.default.ReadStream||Jn)||e instanceof(O.default.WriteStream||Jn))&&Qn(e.close)}(e)?e.close(Jn):function(e){return e.setHeader&&Qn(e.abort)}(e)?e.abort():Qn(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},tr=function(e){e()},nr=function(e,t){return e.pipe(t)},rr=function(){var e,t=Array.prototype.slice.call(arguments),n=Qn(t[t.length-1]||Jn)&&t.pop()||Jn;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(o,i){var s=i<t.length-1;return er(o,s,i>0,(function(t){e||(e=t),t&&r.forEach(tr),s||(r.forEach(tr),n(e))}))}));return t.reduce(nr)};const{PassThrough:or}=U.default;const{constants:ir}=z.default;class sr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function ar(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:n}=t;let r;return await new Promise((o,i)=>{const s=e=>{e&&r.getBufferedLength()<=ir.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),i(e)};r=rr(e,(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const r="buffer"===n;let o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);const i=new or({objectMode:o});n&&i.setEncoding(n);let s=0;const a=[];return i.on("data",e=>{a.push(e),o?s=a.length:s+=e.length}),i.getBufferedValue=()=>t?a:r?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i})(t),e=>{e?s(e):o()}),r.on("data",()=>{r.getBufferedLength()>n&&s(new sr)})}),r.getBufferedValue()}var ur=ar,cr=ar,lr=sr;ur.default=cr,ur.buffer=(e,t)=>ar(e,{...t,encoding:"buffer"}),ur.array=(e,t)=>ar(e,{...t,array:!0}),ur.MaxBufferError=lr;const{PassThrough:pr}=U.default;const dr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},fr=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?ur(e,{encoding:t,maxBuffer:r}):ur.buffer(e,{maxBuffer:r})};var Dr={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(Gn(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=function(){var e=[],t=new pr({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(r){return Array.isArray(r)?(r.forEach(n),this):(e.push(r),r.once("end",o.bind(null,r)),r.once("error",t.emit.bind(t,"error")),r.pipe(t,{end:!1}),this)}function r(){return 0==e.length}function o(n){!(e=e.filter((function(e){return e!==n}))).length&&t.readable&&t.end()}}();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},s)=>{const a=fr(e,{encoding:r,buffer:o,maxBuffer:i}),u=fr(t,{encoding:r,buffer:o,maxBuffer:i}),c=fr(n,{encoding:r,buffer:o,maxBuffer:2*i});try{return await Promise.all([s,a,u,c])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},dr(e,a),dr(t,u),dr(n,c)])}},validateInputSync:({input:e})=>{if(Gn(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const hr=(async()=>{})().constructor.prototype,mr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(hr,e)]);var br={mergePromise:(e,t)=>{for(const[n,r]of mr){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}return e},getSpawnedPromise:e=>new Promise((t,n)=>{e.on("exit",(e,n)=>{t({exitCode:e,signal:n})}),e.on("error",e=>{n(e)}),e.stdin&&e.stdin.on("error",e=>{n(e)})})};const vr=/ +/g,gr=(e,t,n)=>{if(0===n)return[t];const r=e[e.length-1];return r.endsWith("\\")?[...e.slice(0,-1),`${r.slice(0,-1)} ${t}`]:[...e,t]};var yr={joinCommand:(e,t=[])=>Array.isArray(t)?[e,...t].join(" "):e,parseCommand:e=>e.trim().split(vr).reduce(gr,[])};const{spawnedKill:Cr,spawnedCancel:wr,setupTimeout:Fr,setExitHandler:kr}=zn,{handleInput:Er,getSpawnedResult:xr,makeAllStream:Sr,validateInputSync:Ar}=Dr,{mergePromise:Ir,getSpawnedPromise:Br}=br,{joinCommand:_r,parseCommand:jr}=yr,Pr=(e,t,n={})=>{const r=Vt._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...process.env,...e}:e;return n?nn.env({env:i,cwd:r,execPath:o}):i})(n),n.stdio=gn(n),"win32"===process.platform&&"cmd"===M.default.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Or=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?(e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e})(t):t:void 0===n?void 0:"",Mr=(e,t,n)=>{const r=Pr(e,t,n),o=_r(e,t);let i;try{i=T.default.spawn(r.file,r.args,r.options)}catch(e){const t=new T.default.ChildProcess,n=Promise.reject(mn({error:e,stdout:"",stderr:"",all:"",command:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Ir(t,n)}const s=Br(i),a=Fr(i,r.options,s),u=kr(i,r.options,a),c={isCanceled:!1};i.kill=Cr.bind(null,i.kill.bind(i)),i.cancel=wr.bind(null,i,c);const l=cn(async()=>{const[{error:e,exitCode:t,signal:n,timedOut:s},a,l,p]=await xr(i,r.options,u),d=Or(r.options,a),f=Or(r.options,l),D=Or(r.options,p);if(e||0!==t||null!==n){const a=mn({error:e,exitCode:t,signal:n,stdout:d,stderr:f,all:D,command:o,parsed:r,timedOut:s,isCanceled:c.isCanceled,killed:i.killed});if(!r.options.reject)return a;throw a}return{command:o,exitCode:0,stdout:d,stderr:f,all:D,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Vt._enoent.hookChildProcess(i,r.parsed),Er(i,r.options.input),i.all=Sr(i,r.options),Ir(i,l)};var Nr=Mr;Nr.sync=(e,t,n)=>{const r=Pr(e,t,n),o=_r(e,t);let i;Ar(r.options);try{i=T.default.spawnSync(r.file,r.args,r.options)}catch(e){throw mn({error:e,stdout:"",stderr:"",all:"",command:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const s=Or(r.options,i.stdout,i.error),a=Or(r.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=mn({stdout:s,stderr:a,error:i.error,signal:i.signal,exitCode:i.status,command:o,parsed:r,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!r.options.reject)return e;throw e}return{command:o,exitCode:0,stdout:s,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Nr.command=(e,t)=>{const[n,...r]=jr(e);return Mr(n,r,t)},Nr.commandSync=(e,t)=>{const[n,...r]=jr(e);return Mr.sync(n,r,t)},Nr.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const r=gn.node(n),{nodePath:o=process.execPath,nodeOptions:i=process.execArgv}=n;return Mr(o,[...i,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:r,shell:!1})};var Tr={4:"zh_CHS",1025:"ar_SA",1026:"bg_BG",1027:"ca_ES",1028:"zh_TW",1029:"cs_CZ",1030:"da_DK",1031:"de_DE",1032:"el_GR",1033:"en_US",1034:"es_ES",1035:"fi_FI",1036:"fr_FR",1037:"he_IL",1038:"hu_HU",1039:"is_IS",1040:"it_IT",1041:"ja_JP",1042:"ko_KR",1043:"nl_NL",1044:"nb_NO",1045:"pl_PL",1046:"pt_BR",1047:"rm_CH",1048:"ro_RO",1049:"ru_RU",1050:"hr_HR",1051:"sk_SK",1052:"sq_AL",1053:"sv_SE",1054:"th_TH",1055:"tr_TR",1056:"ur_PK",1057:"id_ID",1058:"uk_UA",1059:"be_BY",1060:"sl_SI",1061:"et_EE",1062:"lv_LV",1063:"lt_LT",1064:"tg_TJ",1065:"fa_IR",1066:"vi_VN",1067:"hy_AM",1069:"eu_ES",1070:"wen_DE",1071:"mk_MK",1074:"tn_ZA",1076:"xh_ZA",1077:"zu_ZA",1078:"af_ZA",1079:"ka_GE",1080:"fo_FO",1081:"hi_IN",1082:"mt_MT",1083:"se_NO",1086:"ms_MY",1087:"kk_KZ",1088:"ky_KG",1089:"sw_KE",1090:"tk_TM",1092:"tt_RU",1093:"bn_IN",1094:"pa_IN",1095:"gu_IN",1096:"or_IN",1097:"ta_IN",1098:"te_IN",1099:"kn_IN",1100:"ml_IN",1101:"as_IN",1102:"mr_IN",1103:"sa_IN",1104:"mn_MN",1105:"bo_CN",1106:"cy_GB",1107:"kh_KH",1108:"lo_LA",1109:"my_MM",1110:"gl_ES",1111:"kok_IN",1114:"syr_SY",1115:"si_LK",1118:"am_ET",1121:"ne_NP",1122:"fy_NL",1123:"ps_AF",1124:"fil_PH",1125:"div_MV",1128:"ha_NG",1130:"yo_NG",1131:"quz_BO",1132:"ns_ZA",1133:"ba_RU",1134:"lb_LU",1135:"kl_GL",1144:"ii_CN",1146:"arn_CL",1148:"moh_CA",1150:"br_FR",1152:"ug_CN",1153:"mi_NZ",1154:"oc_FR",1155:"co_FR",1156:"gsw_FR",1157:"sah_RU",1158:"qut_GT",1159:"rw_RW",1160:"wo_SN",1164:"gbz_AF",2049:"ar_IQ",2052:"zh_CN",2055:"de_CH",2057:"en_GB",2058:"es_MX",2060:"fr_BE",2064:"it_CH",2067:"nl_BE",2068:"nn_NO",2070:"pt_PT",2077:"sv_FI",2080:"ur_IN",2092:"az_AZ",2094:"dsb_DE",2107:"se_SE",2108:"ga_IE",2110:"ms_BN",2115:"uz_UZ",2128:"mn_CN",2129:"bo_BT",2141:"iu_CA",2143:"tmz_DZ",2155:"quz_EC",3073:"ar_EG",3076:"zh_HK",3079:"de_AT",3081:"en_AU",3082:"es_ES",3084:"fr_CA",3098:"sr_SP",3131:"se_FI",3179:"quz_PE",4097:"ar_LY",4100:"zh_SG",4103:"de_LU",4105:"en_CA",4106:"es_GT",4108:"fr_CH",4122:"hr_BA",4155:"smj_NO",5121:"ar_DZ",5124:"zh_MO",5127:"de_LI",5129:"en_NZ",5130:"es_CR",5132:"fr_LU",5179:"smj_SE",6145:"ar_MA",6153:"en_IE",6154:"es_PA",6156:"fr_MC",6203:"sma_NO",7169:"ar_TN",7177:"en_ZA",7178:"es_DO",7194:"sr_BA",7227:"sma_SE",8193:"ar_OM",8201:"en_JA",8202:"es_VE",8218:"bs_BA",8251:"sms_FI",9217:"ar_YE",9225:"en_CB",9226:"es_CO",9275:"smn_FI",10241:"ar_SY",10249:"en_BZ",10250:"es_PE",11265:"ar_JO",11273:"en_TT",11274:"es_AR",12289:"ar_LB",12297:"en_ZW",12298:"es_EC",13313:"ar_KW",13321:"en_PH",13322:"es_CL",14337:"ar_AE",14346:"es_UR",15361:"ar_BH",15370:"es_PY",16385:"ar_QA",16394:"es_BO",17417:"en_MY",17418:"es_SV",18441:"en_IN",18442:"es_HN",19466:"es_NI",20490:"es_PR",21514:"es_US",31748:"zh_CHT"};const Lr=(e=>{if("object"!=typeof e||null===e)throw new TypeError("Expected an object");const t={};for(const[n,r]of Object.entries(e))t[r]=n;for(const n of Object.getOwnPropertySymbols(e)){t[e[n]]=n}return t})(Tr);new Proxy(Lr,{get(e,t){const n=e[t];if(n)return Number(n)}});var Rr=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return Tr[e]};const zr=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch;var Ur=zr,Gr=zr;Ur.default=Gr;var Zr=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e},Hr=ee((function(e,t){var n=Q&&Q.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},r=Q&&Q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(Zr);function i(e,t="maxAge"){let r,i,s;const a=()=>n(this,void 0,void 0,(function*(){if(void 0!==r)return;const a=a=>n(this,void 0,void 0,(function*(){s=o.default();const n=a[1][t]-Date.now();return n<=0?(e.delete(a[0]),void s.resolve()):(r=a[0],i=setTimeout(()=>{e.delete(a[0]),s&&s.resolve()},n),"function"==typeof i.unref&&i.unref(),s.promise)}));try{for(const t of e)yield a(t)}catch(e){}r=void 0})),u=e.set.bind(e);return e.set=(t,n)=>{e.has(t)&&e.delete(t);const o=u(t,n);return r&&r===t&&(r=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==s&&(s.reject(void 0),s=void 0)),a(),o},a(),e}t.default=i,e.exports=i,e.exports.default=i}));const $r=new WeakMap,qr=(...e)=>{if(0===e.length)return"__defaultKey";if(1===e.length){const[t]=e;if(!("object"==typeof t&&null!==t))return t}return JSON.stringify(e)};var Wr=(e,{cacheKey:t=qr,cache:n=new Map,cachePromiseRejection:r=!0,maxAge:o}={})=>{"number"==typeof o&&Hr(n);const i=function(...i){const s=t(...i);if(n.has(s))return n.get(s).data;const a=e.apply(this,i);return n.set(s,{data:a,maxAge:o?Date.now()+o:1/0}),Ur(a)&&!1===r&&a.catch(()=>n.delete(s)),a};try{on(i,e)}catch(e){}return $r.set(i,n),i};Wr.clear=e=>{const t=$r.get(e);t&&"function"==typeof t.clear&&t.clear()};const Vr={spawn:!0};async function Yr(e,t){return(await Nr(e,t)).stdout}function Xr(e,t){return Nr.sync(e,t).stdout}function Jr(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function Kr(e){return Jr(e.split("\n").reduce((e,t)=>{const[n,r]=t.split("=");return e[n]=r.replace(/^"|"$/g,""),e},{}))}function Qr(e){return e&&e.replace(/[.:].*/,"")}async function eo(){return Yr("locale",["-a"])}function to(e,t=""){return t.includes(e)?e:"en-US"}function no(){return to(Xr("defaults",["read","-globalDomain","AppleLocale"]),Xr("locale",["-a"]))}function ro(e){return e.replace(/_/,"-")}var oo=Wr(async(e=Vr)=>{let t;try{const n=Jr();t=n||!1===e.spawn?Qr(n):"win32"===process.platform?await async function(){const e=await Yr("wmic",["os","get","locale"]),t=parseInt(e.replace("Locale",""),16);return Rr(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([Yr("defaults",["read","-globalDomain","AppleLocale"]),eo()]);return to(e[0],e[1])}():await async function(){return Qr(Kr(await Yr("locale")))}()}catch(e){}return ro(t||"en-US")},{cachePromiseRejection:!1}),io=Wr((e=Vr)=>{let t;try{const n=Jr();t=n||!1===e.spawn?Qr(n):"win32"===process.platform?function(){const e=Xr("wmic",["os","get","locale"]),t=parseInt(e.replace("Locale",""),16);return Rr(t)}():"darwin"===process.platform?no():Qr(Kr(Xr("locale")))}catch(e){}return ro(t||"en-US")});oo.sync=io;const so=Symbol();function ao(e){const{marpit:t}=e;e.core.ruler.push("marp_cli_info",e=>{var n;if(e.inlineMode)return;const{themeSet:r,lastGlobalDirectives:o}=t,i=o||{},s=i.theme||(r.default||{}).name,a={theme:s,description:i.marpCLIDescription,image:i.marpCLIImage,title:i.marpCLITitle,url:i.marpCLIURL,size:{height:r.getThemeProp(s,"heightPixel"),width:r.getThemeProp(s,"widthPixel")},length:0};for(const t of e.tokens)1===(null===(n=t.meta)||void 0===n?void 0:n.marpitSlideElement)&&(a.length+=1);t[so]=a})}function uo({marpit:e}){Object.assign(e.customDirectives.global,{description:e=>"string"==typeof e?{marpCLIDescription:e}:{},image:e=>"string"==typeof e?{marpCLIImage:e}:{},title:e=>"string"==typeof e?{marpCLITitle:e}:{},url:e=>{try{e&&new D.URL(e)}catch(t){return dt("Specified canonical URL is ignored since invalid URL: "+e),{}}return{marpCLIURL:e}}})}class CLIError extends Error{constructor(e,t=1){super(),this.name="CLIError",this.message=e,this.errorCode=t}toString(){return this.message}}var co;function lo(e,t=exports.b.GENERAL_ERROR){throw new CLIError(e,t)}(co=exports.b||(exports.b={}))[co.GENERAL_ERROR=1]="GENERAL_ERROR",co[co.NOT_FOUND_CHROMIUM=2]="NOT_FOUND_CHROMIUM",co[co.LISTEN_PORT_IS_ALREADY_USED=3]="LISTEN_PORT_IS_ALREADY_USED";const{stdin:po}=process;var fo=async()=>{let e="";if(po.isTTY)return e;po.setEncoding("utf8");for await(const t of po)e+=t;return e};fo.buffer=async()=>{const e=[];let t=0;if(po.isTTY)return Buffer.concat([]);for await(const n of po)e.push(n),t+=n.length;return Buffer.concat(e,t)};const{promisify:Do}=N.default;var ho=e=>{if(e)if("object"==typeof e)e={mode:511,fs:O.default,...e};else if("number"==typeof e)e={mode:e,fs:O.default};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:O.default}}else e={mode:511,fs:O.default};return e.mkdir=e.mkdir||e.fs.mkdir||O.default.mkdir,e.mkdirAsync=Do(e.mkdir),e.stat=e.stat||e.fs.stat||O.default.stat,e.statAsync=Do(e.stat),e.statSync=e.statSync||e.fs.statSync||O.default.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||O.default.mkdirSync,e};const mo=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:bo,parse:vo}=M.default;var go=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=bo(e),"win32"===mo){const t=/[*|"<>?:]/,{root:n}=vo(e);if(t.test(e.substr(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};const{dirname:yo}=M.default,Co=(e,t,n)=>n===t?Promise.resolve():e.statAsync(t).then(e=>e.isDirectory()?n:void 0,n=>"ENOENT"===n.code?Co(e,yo(t),t):void 0),wo=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(n){return"ENOENT"===n.code?wo(e,yo(t),t):void 0}};var Fo={findMade:Co,findMadeSync:wo};const{dirname:ko}=M.default,Eo=(e,t,n)=>{t.recursive=!1;const r=ko(e);return r===e?t.mkdirAsync(e,t).catch(e=>{if("EISDIR"!==e.code)throw e}):t.mkdirAsync(e,t).then(()=>n||e,o=>{if("ENOENT"===o.code)return Eo(r,t).then(n=>Eo(e,t,n));if("EEXIST"!==o.code&&"EROFS"!==o.code)throw o;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;throw o},()=>{throw o})})},xo=(e,t,n)=>{const r=ko(e);if(t.recursive=!1,r===e)try{return t.mkdirSync(e,t)}catch(e){if("EISDIR"!==e.code)throw e;return}try{return t.mkdirSync(e,t),n||e}catch(o){if("ENOENT"===o.code)return xo(e,t,xo(r,t,n));if("EEXIST"!==o.code&&"EROFS"!==o.code)throw o;try{if(!t.statSync(e).isDirectory())throw o}catch(e){throw o}}};var So={mkdirpManual:Eo,mkdirpManualSync:xo};const{dirname:Ao}=M.default,{findMade:Io,findMadeSync:Bo}=Fo,{mkdirpManual:_o,mkdirpManualSync:jo}=So;var Po={mkdirpNative:(e,t)=>{t.recursive=!0;return Ao(e)===e?t.mkdirAsync(e,t):Io(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if("ENOENT"===n.code)return _o(e,t);throw n}))},mkdirpNativeSync:(e,t)=>{t.recursive=!0;if(Ao(e)===e)return t.mkdirSync(e,t);const n=Bo(t,e);try{return t.mkdirSync(e,t),n}catch(n){if("ENOENT"===n.code)return jo(e,t);throw n}}};const Oo=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),Mo=+Oo[0]>10||10==+Oo[0]&&+Oo[1]>=12;var No={useNative:Mo?e=>e.mkdir===O.default.mkdir:()=>!1,useNativeSync:Mo?e=>e.mkdirSync===O.default.mkdirSync:()=>!1};const{mkdirpNative:To,mkdirpNativeSync:Lo}=Po,{mkdirpManual:Ro,mkdirpManualSync:zo}=So,{useNative:Uo,useNativeSync:Go}=No,Zo=(e,t)=>(e=go(e),t=ho(t),Uo(t)?To(e,t):Ro(e,t));Zo.sync=(e,t)=>(e=go(e),t=ho(t),Go(t)?Lo(e,t):zo(e,t)),Zo.native=(e,t)=>To(go(e),ho(t)),Zo.manual=(e,t)=>Ro(go(e),ho(t)),Zo.nativeSync=(e,t)=>Lo(go(e),ho(t)),Zo.manualSync=(e,t)=>zo(go(e),ho(t));var Ho=Zo;const $o=s.promisify(O.default.stat),qo=s.promisify(O.default.readFile),Wo=s.promisify(b.tmpName),Vo=s.promisify(O.default.unlink),Yo=s.promisify(O.default.writeFile),Xo=["md","mdown","markdown","markdn"];var Jo;!function(e){e[e.File=0]="File",e[e.StandardIO=1]="StandardIO",e[e.Null=2]="Null"}(Jo||(Jo={}));class Ko{constructor(e){this.type=Jo.File,this.path=e}get absolutePath(){return M.default.resolve(this.path)}get absoluteFileScheme(){return D.pathToFileURL?D.pathToFileURL(this.absolutePath).toString():((e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);let n=e;return(t={resolve:!0,...t}).resolve&&(n=M.default.resolve(e)),n=n.replace(/\\/g,"/"),"/"!==n[0]&&(n="/"+n),encodeURI("file://"+n).replace(/[?#]/g,encodeURIComponent)})(this.absolutePath)}convert(e,t){switch(e){case void 0:return Ko.initialize(this.convertName(t),e=>e.type=this.type);case!1:return Ko.initialize(this.path,e=>e.type=Jo.Null);case"-":return Ko.initialize("-",e=>e.type=Jo.StandardIO)}return this.inputDir?Ko.initialize(this.convertName(Object.assign(Object.assign({},t),{basePath:M.default.join(e,this.relativePath(this.inputDir))}))):Ko.initialize(this.convertName(Object.assign(Object.assign({},t),{extension:void 0,basePath:e})))}load(){return K(this,void 0,void 0,(function*(){return this.buffer=this.buffer||(yield qo(this.path)),this.buffer}))}relativePath(e=process.cwd()){return M.default.relative(e,this.absolutePath)}save(){return K(this,void 0,void 0,(function*(){switch(this.type){case Jo.File:yield this.saveToFile();break;case Jo.StandardIO:process.stdout.write(this.buffer)}}))}saveTmpFile(e={}){return K(this,void 0,void 0,(function*(){let t=yield Wo({postfix:e.extension});return e.home&&(t=M.default.join(_.default.homedir(),M.default.basename(t))),yield this.saveToFile(t),{cleanup:()=>K(this,void 0,void 0,(function*(){try{yield this.cleanup(t)}catch(e){}})),path:t}}))}cleanup(e){return Vo(e)}convertName(e={}){const{basePath:t,extension:n,page:r}=Object.assign({basePath:this.path},e);let o=t;if(void 0!==n&&(o=M.default.join(M.default.dirname(t),`${M.default.basename(t,M.default.extname(t))}.${n}`)),void 0!==r){const e=M.default.extname(o),t=r.toString().padStart(3,"0");o=M.default.join(M.default.dirname(o),`${M.default.basename(o,e)}.${t}${e}`)}return o}saveToFile(e=this.path){return K(this,void 0,void 0,(function*(){yield Ho(M.default.dirname(M.default.resolve(e))),yield Yo(e,this.buffer)}))}static findPath(e,...t){return K(this,void 0,void 0,(function*(){const n=new Set,r=[],o=[];for(const e of t){try{const t=yield $o(e);if(t.isFile()){n.add(M.default.resolve(e));continue}if(t.isDirectory()){o.push(M.default.resolve(e));continue}}catch(e){}r.push(e.split(M.default.sep).join("/"))}const i=Object.assign({absolute:!0,ignore:["**/node_modules"]},e);(yield H.default(r,i)).forEach(e=>n.add(e));for(const e of o)(yield H.default(".",Object.assign({cwd:e},i))).forEach(e=>n.add(e));return[...n.values()].map(e=>M.default.normalize(e))}))}static find(...e){return K(this,void 0,void 0,(function*(){return(yield this.findPath({expandDirectories:{extensions:[],files:Xo.map(e=>"*."+e)}},...e)).map(e=>new Ko(e))}))}static findDir(e){return K(this,void 0,void 0,(function*(){const t=yield this.find(e);return t.forEach(t=>t.inputDir=M.default.resolve(e)),t}))}static stdin(){return K(this,void 0,void 0,(function*(){if(this.stdinBuffer=this.stdinBuffer||(yield fo.buffer()),0!==this.stdinBuffer.length)return this.initialize("-",e=>{e.buffer=this.stdinBuffer,e.type=Jo.StandardIO})}))}static initialize(e,t){const n=new this(e);return null==t||t(n),n}}var Qo=Object.prototype.hasOwnProperty;function ei(e,t){return Array.isArray(e)?function(e,t){for(var n,r="",o="",i=Array.isArray(t),s=0;s<e.length;s++)(n=ei(e[s]))&&(i&&t[s]&&(n=oi(n)),r=r+o+n,o=" ");return r}(e,t):e&&"object"==typeof e?function(e){var t="",n="";for(var r in e)r&&e[r]&&Qo.call(e,r)&&(t=t+n+r,n=" ");return t}(e):e||""}function ti(e){if(!e)return"";if("object"==typeof e){var t="";for(var n in e)Qo.call(e,n)&&(t=t+n+":"+e[n]+";");return t}return e+""}function ni(e,t,n,r){if(!1===t||null==t||!t&&("class"===e||"style"===e))return"";if(!0===t)return" "+(r?e:e+'="'+e+'"');var o=typeof t;return"object"!==o&&"function"!==o||"function"!=typeof t.toJSON||(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||-1===t.indexOf('"'))?(n&&(t=oi(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"&#39;")+"'"}var ri=/["&<>]/;function oi(e){var t=""+e,n=ri.exec(t);if(!n)return e;var r,o,i,s="";for(r=n.index,o=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==r&&(s+=t.substring(o,r)),o=r+1,s+=i}return o!==r?s+t.substring(o,r):s}var ii={merge:function e(t,n){if(1===arguments.length){for(var r=t[0],o=1;o<t.length;o++)r=e(r,t[o]);return r}for(var i in n)if("class"===i){var s=t[i]||[];t[i]=(Array.isArray(s)?s:[s]).concat(n[i]||[])}else if("style"===i){s=(s=ti(t[i]))&&";"!==s[s.length-1]?s+";":s;var a=ti(n[i]);a=a&&";"!==a[a.length-1]?a+";":a,t[i]=s+a}else t[i]=n[i];return t},classes:ei,style:ti,attr:ni,attrs:function(e,t){var n="";for(var r in e)if(Qo.call(e,r)){var o=e[r];if("class"===r){o=ei(o),n=ni(r,o,!1,t)+n;continue}"style"===r&&(o=ti(o)),n+=ni(r,o,!1,t)}return n},escape:oi,rethrow:function e(t,n,r,o){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&n||o))throw t.message+=" on line "+r,t;try{o=o||O.default.readFileSync(n,"utf8")}catch(n){e(t,null,r)}var i=3,s=o.split("\n"),a=Math.max(r-i,0),u=Math.min(s.length,r+i);i=s.slice(a,u).map((function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e})).join("\n");throw t.path=n,t.message=(n||"Pug")+":"+r+"\n"+i+"\n\n"+t.message,t}};function si(e){var t,n,r="";try{var o={},i=e||{};(function(e,n,o,i,s,a,u,c,l,p){r=(r+="<!DOCTYPE html>")+"<html"+ii.attr("lang",u,!0,!0)+">",r+="<head>",n&&(r=r+"<base"+ii.attr("href",n,!0,!0)+">"),c&&(r=(r=(r+="<title>")+ii.escape(null==(t=c)?"":t)+"</title>")+'<meta property="og:title"'+ii.attr("content",c,!0,!0)+">",a&&(r=r+'<meta property="og:image:alt"'+ii.attr("content",c,!0,!0)+">")),i&&(r=(r=r+'<meta name="description"'+ii.attr("content",i,!0,!0)+">")+'<meta property="og:description"'+ii.attr("content",i,!0,!0)+">"),l&&(r=(r=r+'<link rel="canonical"'+ii.attr("href",l,!0,!0)+">")+'<meta property="og:url"'+ii.attr("content",l,!0,!0)+">"),a&&(r=r+'<meta property="og:image"'+ii.attr("content",a,!0,!0)+">"),r+='<meta charset="UTF-8">',r+='<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0">',r+='<meta name="apple-mobile-web-app-capable" content="yes">',r+='<meta http-equiv="X-UA-Compatible" content="ie=edge">',r=(r+='<meta property="og:type" content="website">')+'<meta name="twitter:card"'+ii.attr("content",c&&a?"summary_large_image":"summary",!0,!0)+">",r=(r+='<style media="screen">')+(null==(t=e.css)?"":t)+"</style>",r=(r+="<style>")+(null==(t=o)?"":t)+"</style></head>",r+="<body>",r+=null==(t=s)?"":t,p&&(r=(r+="<script>")+(null==(t=p)?"":t)+"<\/script>"),r+="</body></html>"}).call(this,"bare"in i?i.bare:"undefined"!=typeof bare?bare:void 0,"base"in i?i.base:"undefined"!=typeof base?base:void 0,"css"in i?i.css:"undefined"!=typeof css?css:void 0,"description"in i?i.description:"undefined"!=typeof description?description:void 0,"html"in i?i.html:"undefined"!=typeof html?html:void 0,"image"in i?i.image:"undefined"!=typeof image?image:void 0,"lang"in i?i.lang:"undefined"!=typeof lang?lang:void 0,"title"in i?i.title:"undefined"!=typeof title?title:void 0,"url"in i?i.url:"undefined"!=typeof url?url:void 0,"watchJs"in i?i.watchJs:"undefined"!=typeof watchJs?watchJs:void 0)}catch(e){ii.rethrow(e,n,undefined,o[void 0])}return r}function ai(e){var t,n,r="";try{var o={},i=e||{};(function(e,n,o,i,s,a,u,c,l,p,d){r=(r+="<!DOCTYPE html>")+"<html"+ii.attr("lang",c,!0,!0)+">",r+="<head>",e&&(r=r+"<base"+ii.attr("href",e,!0,!0)+">"),l&&(r=(r=(r+="<title>")+ii.escape(null==(t=l)?"":t)+"</title>")+'<meta property="og:title"'+ii.attr("content",l,!0,!0)+">",u&&(r=r+'<meta property="og:image:alt"'+ii.attr("content",l,!0,!0)+">")),s&&(r=(r=r+'<meta name="description"'+ii.attr("content",s,!0,!0)+">")+'<meta property="og:description"'+ii.attr("content",s,!0,!0)+">"),p&&(r=(r=r+'<link rel="canonical"'+ii.attr("href",p,!0,!0)+">")+'<meta property="og:url"'+ii.attr("content",p,!0,!0)+">"),u&&(r=r+'<meta property="og:image"'+ii.attr("content",u,!0,!0)+">"),r+='<meta charset="UTF-8">',r+='<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0">',r+='<meta name="apple-mobile-web-app-capable" content="yes">',r+='<meta http-equiv="X-UA-Compatible" content="ie=edge">',r=(r+='<meta property="og:type" content="website">')+'<meta name="twitter:card"'+ii.attr("content",l&&u?"summary_large_image":"summary",!0,!0)+">",r=(r+="<style>")+(null==(t=n.css)?"":t)+"</style>",r=(r+="<style>")+(null==(t=i)?"":t)+"</style></head>",r+="<body>",n.progress&&(r+='<div class="bespoke-progress-parent">',r+='<div class="bespoke-progress-bar"></div></div>'),n.osc&&(r+='<div class="bespoke-marp-osc">',r+='<button data-bespoke-marp-osc="prev" tabindex="-1" title="Previous slide">',r+="Previous slide</button>",r+='<span data-bespoke-marp-osc="page"></span>',r+='<button data-bespoke-marp-osc="next" tabindex="-1" title="Next slide">',r+="Next slide</button>",r+='<button data-bespoke-marp-osc="fullscreen" tabindex="-1" title="Toggle fullscreen (f)">',r+="Toggle fullscreen</button>",r+='<button data-bespoke-marp-osc="presenter" tabindex="-1" title="Open presenter view (p)">',r+="Open presenter view</button></div>"),r+=null==(t=a)?"":t,o&&o.length>0&&function(){var e=o;if("number"==typeof e.length)for(var n=0,i=e.length;n<i;n++){(s=e[n])&&s.length>0&&(r=r+'<div class="bespoke-marp-note"'+ii.attr("data-index",n,!0,!0)+' tabindex="0">',function(){var e=s;if("number"==typeof e.length)for(var n=0,o=e.length;n<o;n++){var i=e[n];r=(r+="<p>")+ii.escape(null==(t=i)?"":t)+"</p>"}else{o=0;for(var n in e){o++;i=e[n];r=(r+="<p>")+ii.escape(null==(t=i)?"":t)+"</p>"}}}.call(this),r+="</div>")}else{i=0;for(var n in e){var s;i++,(s=e[n])&&s.length>0&&(r=r+'<div class="bespoke-marp-note"'+ii.attr("data-index",n,!0,!0)+' tabindex="0">',function(){var e=s;if("number"==typeof e.length)for(var n=0,o=e.length;n<o;n++){var i=e[n];r=(r+="<p>")+ii.escape(null==(t=i)?"":t)+"</p>"}else{o=0;for(var n in e){o++;i=e[n];r=(r+="<p>")+ii.escape(null==(t=i)?"":t)+"</p>"}}}.call(this),r+="</div>")}}}.call(this),r=(r+="<script>")+(null==(t=n.js)?"":t)+"<\/script>",d&&(r=(r+="<script>")+(null==(t=d)?"":t)+"<\/script>"),r+="</body></html>"}).call(this,"base"in i?i.base:"undefined"!=typeof base?base:void 0,"bespoke"in i?i.bespoke:"undefined"!=typeof bespoke?bespoke:void 0,"comments"in i?i.comments:"undefined"!=typeof comments?comments:void 0,"css"in i?i.css:"undefined"!=typeof css?css:void 0,"description"in i?i.description:"undefined"!=typeof description?description:void 0,"html"in i?i.html:"undefined"!=typeof html?html:void 0,"image"in i?i.image:"undefined"!=typeof image?image:void 0,"lang"in i?i.lang:"undefined"!=typeof lang?lang:void 0,"title"in i?i.title:"undefined"!=typeof title?title:void 0,"url"in i?i.url:"undefined"!=typeof url?url:void 0,"watchJs"in i?i.watchJs:"undefined"!=typeof watchJs?watchJs:void 0)}catch(e){ii.rethrow(e,n,undefined,o[void 0])}return r}const ui=s.promisify(O.default.readFile);function ci(e){return K(this,void 0,void 0,(function*(){return(yield ui(M.default.resolve(__dirname,e))).toString()}))}function li(e){return K(this,void 0,void 0,(function*(){if(void 0===e)return!1;const t=yield ci("watch.js");return`window.__marpCliWatchWS=${JSON.stringify(e)};${t}`}))}var pi={bare:e=>K(void 0,void 0,void 0,(function*(){const t=e.renderer({container:[],inlineSVG:!0,slideContainer:[]});return{rendered:t,result:si(Object.assign(Object.assign(Object.assign({},e),t),{bare:{css:"body,html{background:#000;height:100%;margin:0;overflow:auto;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;-ms-scroll-snap-type:mandatory;scroll-snap-type:mandatory;-ms-scroll-snap-points-y:repeat(100%);scroll-snap-points-y:repeat(100%)}body>svg{display:block;height:100%;scroll-snap-align:center center;width:100%}"},watchJs:yield li(e.notifyWS)}))}})),bespoke:e=>K(void 0,void 0,void 0,(function*(){var t;const n=e.renderer({container:new v.Element("div",{id:"p"}),inlineSVG:!0,slideContainer:[]});return{rendered:n,result:ai(Object.assign(Object.assign(Object.assign({},e),n),{bespoke:{css:'.bespoke-marp-note,.bespoke-marp-osc,.bespoke-progress-parent{display:none;transition:none}@media screen{body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:0;color:inherit;cursor:pointer;font-size:inherit;opacity:.8;outline:none;padding:0;transition:opacity .2s linear;-webkit-tap-highlight-color:transparent}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button:disabled,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button:disabled,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button:disabled{cursor:not-allowed;opacity:.15!important}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button:hover,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button:hover,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button:hover{opacity:1}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button:hover:active,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button:hover:active,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button:hover:active{opacity:.6}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button:hover:not(:disabled),body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button:hover:not(:disabled),body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button:hover:not(:disabled){transition:none}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev],body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button.bespoke-marp-presenter-info-page-prev{background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI1IiBkPSJNNjggOTBMMjggNTBsNDAtNDAiLz48L3N2Zz4=") no-repeat 50%;background-size:contain;overflow:hidden;text-indent:100%;white-space:nowrap}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button.bespoke-marp-presenter-info-page-next{background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI1IiBkPSJNMzIgOTBsNDAtNDAtNDAtNDAiLz48L3N2Zz4=") no-repeat 50%;background-size:contain;overflow:hidden;text-indent:100%;white-space:nowrap}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=fullscreen],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=fullscreen]{background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmF7ZmlsbDpub25lO3N0cm9rZTojZmZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6NXB4fTwvc3R5bGU+PC9kZWZzPjxyZWN0IGNsYXNzPSJhIiB4PSIxMCIgeT0iMjAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI2MCIgcng9IjUuNjciLz48cGF0aCBjbGFzcz0iYSIgZD0iTTQwIDcwSDIwVjUwbTIwIDBMMjAgNzBtNDAtNDBoMjB2MjBtLTIwIDBsMjAtMjAiLz48L3N2Zz4=") no-repeat 50%;background-size:contain;overflow:hidden;text-indent:100%;white-space:nowrap}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button.exit[data-bespoke-marp-osc=fullscreen],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button.exit[data-bespoke-marp-osc=fullscreen]{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmF7ZmlsbDpub25lO3N0cm9rZTojZmZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6NXB4fTwvc3R5bGU+PC9kZWZzPjxyZWN0IGNsYXNzPSJhIiB4PSIxMCIgeT0iMjAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI2MCIgcng9IjUuNjciLz48cGF0aCBjbGFzcz0iYSIgZD0iTTIwIDUwaDIwdjIwbS0yMCAwbDIwLTIwbTQwIDBINjBWMzBtMjAgMEw2MCA1MCIvPjwvc3ZnPg==")}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=presenter],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=presenter]{background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmF7ZmlsbDpub25lO3N0cm9rZTojZmZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS13aWR0aDo1cHh9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImEiIGQ9Ik0yMCA2MGgtNWE1IDUgMCAwMS01LTVWMjBhNSA1IDAgMDE1LTVoNjBhNSA1IDAgMDE1IDV2NU0zMCA4NWg2MCIvPjxyZWN0IHg9IjMwIiB5PSIzNSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjQwIiByeD0iNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIi8+PHJlY3QgY2xhc3M9ImEiIHg9IjMwIiB5PSIzNSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjQwIiByeD0iNSIvPjxwYXRoIGNsYXNzPSJhIiBkPSJNNDAgNTBoNDBNNDAgNjBoMzAiLz48L3N2Zz4=") no-repeat 50%;background-size:contain;overflow:hidden;text-indent:100%;white-space:nowrap}body,html{height:100%;margin:0}body{background:#000;overflow:hidden}svg.bespoke-marp-slide{content-visibility:hidden;z-index:-1;pointer-events:none;opacity:0}svg.bespoke-marp-slide.bespoke-marp-active{content-visibility:visible;z-index:0;pointer-events:auto;opacity:1}svg.bespoke-marp-slide.bespoke-marp-active.bespoke-marp-active-ready *{-webkit-animation-name:__bespoke_marp__!important;animation-name:__bespoke_marp__!important}@supports not (content-visibility:hidden){svg.bespoke-marp-slide[data-bespoke-marp-load=hideable]{display:none}svg.bespoke-marp-slide[data-bespoke-marp-load=hideable].bespoke-marp-active{display:block}}[data-bespoke-marp-fragment=inactive]{visibility:hidden}body[data-bespoke-view=""] .bespoke-marp-parent,body[data-bespoke-view=next] .bespoke-marp-parent{bottom:0;left:0;position:absolute;right:0;top:0}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc{background:rgba(0,0,0,.65);border-radius:7px;bottom:50px;color:#fff;display:block;font-family:Helvetica,Arial,sans-serif;font-size:16px;left:50%;line-height:0;opacity:1;padding:12px;position:absolute;touch-action:manipulation;transform:translateX(-50%);transition:opacity .2s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;z-index:1;will-change:transform}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>*,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>*{margin-left:6px}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>:first-child,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>:first-child{margin-left:0}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>span,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>span{opacity:.8}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>span[data-bespoke-marp-osc=page],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>span[data-bespoke-marp-osc=page]{display:inline-block;min-width:140px;text-align:center}body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=fullscreen],body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=presenter],body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=fullscreen],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=presenter],body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev]{height:32px;line-height:32px;width:32px}body[data-bespoke-view=""] .bespoke-marp-parent.bespoke-marp-inactive,body[data-bespoke-view=next] .bespoke-marp-parent.bespoke-marp-inactive{cursor:none}body[data-bespoke-view=""] .bespoke-marp-parent.bespoke-marp-inactive>.bespoke-marp-osc,body[data-bespoke-view=next] .bespoke-marp-parent.bespoke-marp-inactive>.bespoke-marp-osc{opacity:0;pointer-events:none}body[data-bespoke-view=""] svg.bespoke-marp-slide,body[data-bespoke-view=next] svg.bespoke-marp-slide{height:100%;left:0;position:absolute;top:0;width:100%}body[data-bespoke-view=""] .bespoke-progress-parent{background:#222;display:flex;height:5px;width:100%}body[data-bespoke-view=""] .bespoke-progress-parent+.bespoke-marp-parent{top:5px}body[data-bespoke-view=""] .bespoke-progress-parent .bespoke-progress-bar{flex:0 0 0;background:#0288d1;transition:flex-basis .2s cubic-bezier(0,1,1,1)}body[data-bespoke-view=next]{background:transparent}body[data-bespoke-view=presenter]{background:#161616}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container{font-family:Helvetica,Arial,sans-serif;height:100%;left:0;position:absolute;top:0;width:100%;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:minmax(140px,1fr) 2fr 3em;grid-template-areas:"current next" "current note" "info    note"}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-parent{grid-area:current;position:relative;overflow:hidden}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-parent svg.bespoke-marp-slide{height:calc(100% - 40px);left:20px;position:absolute;pointer-events:none;top:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:calc(100% - 40px)}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-parent svg.bespoke-marp-slide.bespoke-marp-active{filter:drop-shadow(0 3px 10px rgba(0,0,0,.5))}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-next-container{background:#222;cursor:pointer;display:none;grid-area:next;overflow:hidden;position:relative}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-next-container.active{display:block}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-next-container iframe.bespoke-marp-presenter-next{background:transparent;border:0;display:block;filter:drop-shadow(0 3px 10px rgba(0,0,0,.5));height:calc(100% - 40px);left:20px;position:absolute;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;top:20px;width:calc(100% - 40px)}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container{background:#222;color:#eee;grid-area:note}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note{margin:20px;width:calc(100% - 40px);height:calc(100% - 40px);box-sizing:border-box;font-size:1.1em;overflow:auto;padding-right:3px;white-space:pre-wrap;word-wrap:break-word;scrollbar-width:thin;scrollbar-color:hsla(0,0%,93.3%,.5) transparent}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note::-webkit-scrollbar{width:6px}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note::-webkit-scrollbar-track{background:transparent}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note::-webkit-scrollbar-thumb{background:hsla(0,0%,93.3%,.5);border-radius:6px}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note:empty{pointer-events:none}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note.active{display:block}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note p:first-child{margin-top:0}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container .bespoke-marp-note p:last-child{margin-bottom:0}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container{align-items:center;box-sizing:border-box;color:#eee;display:flex;flex-wrap:nowrap;grid-area:info;justify-content:center;padding:0 10px}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-page,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-time,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-timer{display:block;box-sizing:border-box;padding:0 10px;white-space:nowrap;width:100%}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button{height:1.5em;line-height:1.5em;width:1.5em}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-page{order:2;text-align:center}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-page .bespoke-marp-presenter-info-page-text{display:inline-block;min-width:120px;text-align:center}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-time{color:#999;order:1;text-align:left}body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container .bespoke-marp-presenter-info-timer{color:#999;order:3;text-align:right}}@media print{.bespoke-marp-presenter-info-container,.bespoke-marp-presenter-next-container,.bespoke-marp-presenter-note-container{display:none}}',js:yield ci("bespoke.js"),osc:null===(t=e.osc)||void 0===t||t,progress:e.progress},watchJs:yield li(e.notifyWS)}))}}))};const di=s.promisify(c.execFile);let fi,Di,hi=!1;function mi(){if(void 0===fi)if(require("is-wsl")){fi=1;try{o.readFileSync("/proc/sys/kernel/osrelease").toString().includes("WSL2")&&(fi=2)}catch(e){}}else fi=0;return fi}const bi=e=>K(void 0,void 0,void 0,(function*(){return(yield di("wslpath",["-m",e])).stdout.trim()})),vi=e=>K(void 0,void 0,void 0,(function*(){if(mi()){if(void 0===Di){const e=(yield di("cmd.exe",["/c","SET","TMP"])).stdout.trim();e.startsWith("TMP=")&&(Di=e.slice(4))}if(void 0!==Di)return M.default.win32.resolve(Di,e)}return M.default.resolve(_.default.tmpdir(),e)})),gi=()=>{const e=new Set(["--export-tagged-pdf"]);if((process.env.IS_DOCKER||mi())&&e.add("--no-sandbox"),(process.env.IS_DOCKER||process.env.CI)&&e.add("--disable-features=VizDisplayCompositor"),!1===hi){if(process.env.IS_DOCKER)hi="/usr/bin/chromium-browser";else try{[hi]=g.Launcher.getInstallations()}catch(e){e instanceof Error&&dt(e.message)}hi||lo("You have to install Google Chrome or Chromium to convert slide deck with current options.",exports.b.NOT_FOUND_CHROMIUM)}return{executablePath:hi,args:[...e],pipe:!mi(),ignoreDefaultArgs:process.env.CHROME_ENABLE_EXTENSIONS?["--disable-extensions"]:void 0}};var yi=ee((function(e,t){!function(t){function n(e,t){t|=0;for(var n=Math.max(e.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=e[t+o];return r}var r=function(e){var t=n(arguments,1);return function(){var r=n(arguments);return e.apply(null,t.concat(r))}},o=function(e){return function(){var t=n(arguments),r=t.pop();e.call(this,t,r)}};function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var s="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function u(e){setTimeout(e,0)}function c(e){return function(t){var r=n(arguments,1);e((function(){t.apply(null,r)}))}}var l=c(s?setImmediate:a?process.nextTick:u);function p(e){return o((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}i(r)&&"function"==typeof r.then?r.then((function(e){d(n,null,e)}),(function(e){d(n,e.message?e:new Error(e))})):n(null,r)}))}function d(e,t,n){try{e(t,n)}catch(e){l(f,e)}}function f(e){throw e}var D="function"==typeof Symbol;function h(e){return D&&"AsyncFunction"===e[Symbol.toStringTag]}function m(e){return h(e)?p(e):e}function b(e){return function(t){var r=n(arguments,1),i=o((function(n,r){var o=this;return e(t,(function(e,t){m(e).apply(o,n.concat(t))}),r)}));return r.length?i.apply(this,r):i}}var v="object"==typeof Q&&Q&&Q.Object===Object&&Q,g="object"==typeof self&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),C=y.Symbol,w=Object.prototype,F=w.hasOwnProperty,k=w.toString,E=C?C.toStringTag:void 0;function x(e){var t=F.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=k.call(e);return r&&(t?e[E]=n:delete e[E]),o}var S=Object.prototype.toString;function A(e){return S.call(e)}var I="[object Null]",B="[object Undefined]",_=C?C.toStringTag:void 0;function j(e){return null==e?void 0===e?B:I:_&&_ in Object(e)?x(e):A(e)}var P="[object AsyncFunction]",O="[object Function]",M="[object GeneratorFunction]",N="[object Proxy]";function T(e){if(!i(e))return!1;var t=j(e);return t==O||t==M||t==P||t==N}var L=9007199254740991;function R(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function z(e){return null!=e&&R(e.length)&&!T(e)}var U={};function G(){}function Z(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var H="function"==typeof Symbol&&Symbol.iterator,$=function(e){return H&&e[H]&&e[H]()};function q(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function W(e){return null!=e&&"object"==typeof e}var V="[object Arguments]";function Y(e){return W(e)&&j(e)==V}var X=Object.prototype,J=X.hasOwnProperty,K=X.propertyIsEnumerable,ee=Y(function(){return arguments}())?Y:function(e){return W(e)&&J.call(e,"callee")&&!K.call(e,"callee")},te=Array.isArray;function ne(){return!1}var re="object"==typeof t&&t&&!t.nodeType&&t,oe=re&&e&&!e.nodeType&&e,ie=oe&&oe.exports===re?y.Buffer:void 0,se=(ie?ie.isBuffer:void 0)||ne,ae=9007199254740991,ue=/^(?:0|[1-9]\d*)$/;function ce(e,t){var n=typeof e;return!!(t=null==t?ae:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}var le="[object Arguments]",pe="[object Array]",de="[object Boolean]",fe="[object Date]",De="[object Error]",he="[object Function]",me="[object Map]",be="[object Number]",ve="[object Object]",ge="[object RegExp]",ye="[object Set]",Ce="[object String]",we="[object WeakMap]",Fe="[object ArrayBuffer]",ke="[object DataView]",Ee="[object Float64Array]",xe="[object Int8Array]",Se="[object Int16Array]",Ae="[object Int32Array]",Ie="[object Uint8Array]",Be="[object Uint8ClampedArray]",_e="[object Uint16Array]",je="[object Uint32Array]",Pe={};function Oe(e){return W(e)&&R(e.length)&&!!Pe[j(e)]}function Me(e){return function(t){return e(t)}}Pe["[object Float32Array]"]=Pe[Ee]=Pe[xe]=Pe[Se]=Pe[Ae]=Pe[Ie]=Pe[Be]=Pe[_e]=Pe[je]=!0,Pe[le]=Pe[pe]=Pe[Fe]=Pe[de]=Pe[ke]=Pe[fe]=Pe[De]=Pe[he]=Pe[me]=Pe[be]=Pe[ve]=Pe[ge]=Pe[ye]=Pe[Ce]=Pe[we]=!1;var Ne="object"==typeof t&&t&&!t.nodeType&&t,Te=Ne&&e&&!e.nodeType&&e,Le=Te&&Te.exports===Ne&&v.process,Re=function(){try{var e=Te&&Te.require&&Te.require("util").types;return e||Le&&Le.binding&&Le.binding("util")}catch(e){}}(),ze=Re&&Re.isTypedArray,Ue=ze?Me(ze):Oe,Ge=Object.prototype.hasOwnProperty;function Ze(e,t){var n=te(e),r=!n&&ee(e),o=!n&&!r&&se(e),i=!n&&!r&&!o&&Ue(e),s=n||r||o||i,a=s?q(e.length,String):[],u=a.length;for(var c in e)!t&&!Ge.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ce(c,u))||a.push(c);return a}var He=Object.prototype;function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||He)}function qe(e,t){return function(n){return e(t(n))}}var We=qe(Object.keys,Object),Ve=Object.prototype.hasOwnProperty;function Ye(e){if(!$e(e))return We(e);var t=[];for(var n in Object(e))Ve.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Xe(e){return z(e)?Ze(e):Ye(e)}function Je(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}function Ke(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}function Qe(e){var t=Xe(e),n=-1,r=t.length;return function(){var o=t[++n];return n<r?{value:e[o],key:o}:null}}function et(e){if(z(e))return Je(e);var t=$(e);return t?Ke(t):Qe(e)}function tt(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function nt(e){return function(t,n,r){if(r=Z(r||G),e<=0||!t)return r(null);var o=et(t),i=!1,s=0,a=!1;function u(e,t){if(s-=1,e)i=!0,r(e);else{if(t===U||i&&s<=0)return i=!0,r(null);a||c()}}function c(){for(a=!0;s<e&&!i;){var t=o();if(null===t)return i=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,tt(u))}a=!1}c()}}function rt(e,t,n,r){nt(t)(e,m(n),r)}function ot(e,t){return function(n,r,o){return e(n,t,r,o)}}function it(e,t,n){n=Z(n||G);var r=0,o=0,i=e.length;function s(e,t){e?n(e):++o!==i&&t!==U||n(null)}for(0===i&&n(null);r<i;r++)t(e[r],r,tt(s))}var st=ot(rt,1/0),at=function(e,t,n){(z(e)?it:st)(e,m(t),n)};function ut(e){return function(t,n,r){return e(at,t,m(n),r)}}function ct(e,t,n,r){r=r||G,t=t||[];var o=[],i=0,s=m(n);e(t,(function(e,t,n){var r=i++;s(e,(function(e,t){o[r]=t,n(e)}))}),(function(e){r(e,o)}))}var lt=ut(ct),pt=b(lt);function dt(e){return function(t,n,r,o){return e(nt(n),t,m(r),o)}}var ft=dt(ct),Dt=ot(ft,1),ht=b(Dt);function mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}var vt=bt();function gt(e,t){return e&&vt(e,t,Xe)}function yt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ct(e){return e!=e}function wt(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function Ft(e,t,n){return t==t?wt(e,t,n):yt(e,Ct,n)}var kt=function(e,t,r){"function"==typeof t&&(r=t,t=null),r=Z(r||G);var o=Xe(e).length;if(!o)return r(null);t||(t=o);var i={},s=0,a=!1,u=Object.create(null),c=[],l=[],p={};function d(e,t){c.push((function(){b(e,t)}))}function f(){if(0===c.length&&0===s)return r(null,i);for(;c.length&&s<t;)c.shift()()}function D(e,t){var n=u[e];n||(n=u[e]=[]),n.push(t)}function h(e){mt(u[e]||[],(function(e){e()})),f()}function b(e,t){if(!a){var o=tt((function(t,o){if(s--,arguments.length>2&&(o=n(arguments,1)),t){var c={};gt(i,(function(e,t){c[t]=e})),c[e]=o,a=!0,u=Object.create(null),r(t,c)}else i[e]=o,h(e)}));s++;var c=m(t[t.length-1]);t.length>1?c(i,o):c(o)}}function v(){for(var e=0;l.length;)e++,mt(g(l.pop()),(function(e){0==--p[e]&&l.push(e)}));if(e!==o)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function g(t){var n=[];return gt(e,(function(e,r){te(e)&&Ft(e,t,0)>=0&&n.push(r)})),n}gt(e,(function(t,n){if(!te(t))return d(n,[t]),void l.push(n);var r=t.slice(0,t.length-1),o=r.length;if(0===o)return d(n,t),void l.push(n);p[n]=o,mt(r,(function(i){if(!e[i])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+i+"` in "+r.join(", "));D(i,(function(){0==--o&&d(n,t)}))}))})),v(),f()};function Et(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var xt="[object Symbol]";function St(e){return"symbol"==typeof e||W(e)&&j(e)==xt}var At=1/0,It=C?C.prototype:void 0,Bt=It?It.toString:void 0;function _t(e){if("string"==typeof e)return e;if(te(e))return Et(e,_t)+"";if(St(e))return Bt?Bt.call(e):"";var t=e+"";return"0"==t&&1/e==-At?"-0":t}function jt(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Pt(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:jt(e,t,n)}function Ot(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function Nt(e){return e.split("")}var Tt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Lt(e){return Tt.test(e)}var Rt="\\ud800-\\udfff",zt="["+Rt+"]",Ut="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Gt="\\ud83c[\\udffb-\\udfff]",Zt="[^"+Rt+"]",Ht="(?:\\ud83c[\\udde6-\\uddff]){2}",$t="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="(?:"+Ut+"|"+Gt+")?",Wt="[\\ufe0e\\ufe0f]?",Vt="(?:\\u200d(?:"+[Zt,Ht,$t].join("|")+")"+Wt+qt+")*",Yt=Wt+qt+Vt,Xt="(?:"+[Zt+Ut+"?",Ut,Ht,$t,zt].join("|")+")",Jt=RegExp(Gt+"(?="+Gt+")|"+Xt+Yt,"g");function Kt(e){return e.match(Jt)||[]}function Qt(e){return Lt(e)?Kt(e):Nt(e)}function en(e){return null==e?"":_t(e)}var tn=/^\s+|\s+$/g;function nn(e,t,n){if((e=en(e))&&(n||void 0===t))return e.replace(tn,"");if(!e||!(t=_t(t)))return e;var r=Qt(e),o=Qt(t);return Pt(r,Mt(r,o),Ot(r,o)+1).join("")}var rn=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,on=/,/,sn=/(=.+)?(\s*)$/,an=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function un(e){return e=(e=(e=(e=e.toString().replace(an,"")).match(rn)[2].replace(" ",""))?e.split(on):[]).map((function(e){return nn(e.replace(sn,""))}))}function cn(e,t){var n={};gt(e,(function(e,t){var r,o=h(e),i=!o&&1===e.length||o&&0===e.length;if(te(e))r=e.slice(0,-1),e=e[e.length-1],n[t]=r.concat(r.length>0?s:e);else if(i)n[t]=e;else{if(r=un(e),0===e.length&&!o&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");o||r.pop(),n[t]=r.concat(s)}function s(t,n){var o=Et(r,(function(e){return t[e]}));o.push(n),m(e).apply(null,o)}})),kt(n,t)}function ln(){this.head=this.tail=null,this.length=0}function pn(e,t){e.length=1,e.head=e.tail=t}function dn(e,t,n){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var r=m(e),o=0,i=[],s=!1;function a(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,te(e)||(e=[e]),0===e.length&&p.idle())return l((function(){p.drain()}));for(var r=0,o=e.length;r<o;r++){var i={data:e[r],callback:n||G};t?p._tasks.unshift(i):p._tasks.push(i)}s||(s=!0,l((function(){s=!1,p.process()})))}function u(e){return function(t){o-=1;for(var n=0,r=e.length;n<r;n++){var s=e[n],a=Ft(i,s,0);0===a?i.shift():a>0&&i.splice(a,1),s.callback.apply(s,arguments),null!=t&&p.error(t,s.data)}o<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var c=!1,p={_tasks:new ln,concurrency:t,payload:n,saturated:G,unsaturated:G,buffer:t/4,empty:G,drain:G,error:G,started:!1,paused:!1,push:function(e,t){a(e,!1,t)},kill:function(){p.drain=G,p._tasks.empty()},unshift:function(e,t){a(e,!0,t)},remove:function(e){p._tasks.remove(e)},process:function(){if(!c){for(c=!0;!p.paused&&o<p.concurrency&&p._tasks.length;){var e=[],t=[],n=p._tasks.length;p.payload&&(n=Math.min(n,p.payload));for(var s=0;s<n;s++){var a=p._tasks.shift();e.push(a),i.push(a),t.push(a.data)}o+=1,0===p._tasks.length&&p.empty(),o===p.concurrency&&p.saturated();var l=tt(u(e));r(t,l)}c=!1}},length:function(){return p._tasks.length},running:function(){return o},workersList:function(){return i},idle:function(){return p._tasks.length+o===0},pause:function(){p.paused=!0},resume:function(){!1!==p.paused&&(p.paused=!1,l(p.process))}};return p}function fn(e,t){return dn(e,1,t)}ln.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},ln.prototype.empty=function(){for(;this.head;)this.shift();return this},ln.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},ln.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},ln.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):pn(this,e)},ln.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):pn(this,e)},ln.prototype.shift=function(){return this.head&&this.removeLink(this.head)},ln.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},ln.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,n=0;n<this.length;n++)e[n]=t.data,t=t.next;return e},ln.prototype.remove=function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this};var Dn=ot(rt,1);function hn(e,t,n,r){r=Z(r||G);var o=m(n);Dn(e,(function(e,n,r){o(t,e,(function(e,n){t=n,r(e)}))}),(function(e){r(e,t)}))}function mn(){var e=Et(arguments,m);return function(){var t=n(arguments),r=this,o=t[t.length-1];"function"==typeof o?t.pop():o=G,hn(e,t,(function(e,t,o){t.apply(r,e.concat((function(e){var t=n(arguments,1);o(e,t)})))}),(function(e,t){o.apply(r,[e].concat(t))}))}}var bn=function(){return mn.apply(null,n(arguments).reverse())},vn=Array.prototype.concat,gn=function(e,t,r,o){o=o||G;var i=m(r);ft(e,t,(function(e,t){i(e,(function(e){return e?t(e):t(null,n(arguments,1))}))}),(function(e,t){for(var n=[],r=0;r<t.length;r++)t[r]&&(n=vn.apply(n,t[r]));return o(e,n)}))},yn=ot(gn,1/0),Cn=ot(gn,1),wn=function(){var e=n(arguments),t=[null].concat(e);return function(){return arguments[arguments.length-1].apply(this,t)}};function Fn(e){return e}function kn(e,t){return function(n,r,o,i){i=i||G;var s,a=!1;n(r,(function(n,r,i){o(n,(function(r,o){r?i(r):e(o)&&!s?(a=!0,s=t(!0,n),i(null,U)):i()}))}),(function(e){e?i(e):i(null,a?s:t(!1))}))}}function En(e,t){return t}var xn=ut(kn(Fn,En)),Sn=dt(kn(Fn,En)),An=ot(Sn,1);function In(e){return function(t){var r=n(arguments,1);r.push((function(t){var r=n(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&mt(r,(function(t){console[e](t)})))})),m(t).apply(null,r)}}var Bn=In("dir");function _n(e,t,r){r=tt(r||G);var o=m(e),i=m(t);function s(e){if(e)return r(e);var t=n(arguments,1);t.push(a),i.apply(this,t)}function a(e,t){return e?r(e):t?void o(s):r(null)}a(null,!0)}function jn(e,t,r){r=tt(r||G);var o=m(e),i=function(e){if(e)return r(e);var s=n(arguments,1);if(t.apply(this,s))return o(i);r.apply(null,[null].concat(s))};o(i)}function Pn(e,t,n){jn(e,(function(){return!t.apply(this,arguments)}),n)}function On(e,t,n){n=tt(n||G);var r=m(t),o=m(e);function i(e){if(e)return n(e);o(s)}function s(e,t){return e?n(e):t?void r(i):n(null)}o(s)}function Mn(e){return function(t,n,r){return e(t,r)}}function Nn(e,t,n){at(e,Mn(m(t)),n)}function Tn(e,t,n,r){nt(t)(e,Mn(m(n)),r)}var Ln=ot(Tn,1);function Rn(e){return h(e)?e:o((function(t,n){var r=!0;t.push((function(){var e=arguments;r?l((function(){n.apply(null,e)})):n.apply(null,e)})),e.apply(this,t),r=!1}))}function zn(e){return!e}var Un=ut(kn(zn,zn)),Gn=dt(kn(zn,zn)),Zn=ot(Gn,1);function Hn(e){return function(t){return null==t?void 0:t[e]}}function $n(e,t,n,r){var o=new Array(t.length);e(t,(function(e,t,r){n(e,(function(e,n){o[t]=!!n,r(e)}))}),(function(e){if(e)return r(e);for(var n=[],i=0;i<t.length;i++)o[i]&&n.push(t[i]);r(null,n)}))}function qn(e,t,n,r){var o=[];e(t,(function(e,t,r){n(e,(function(n,i){n?r(n):(i&&o.push({index:t,value:e}),r())}))}),(function(e){e?r(e):r(null,Et(o.sort((function(e,t){return e.index-t.index})),Hn("value")))}))}function Wn(e,t,n,r){(z(t)?$n:qn)(e,t,m(n),r||G)}var Vn=ut(Wn),Yn=dt(Wn),Xn=ot(Yn,1);function Jn(e,t){var n=tt(t||G),r=m(Rn(e));function o(e){if(e)return n(e);r(o)}o()}var Kn=function(e,t,n,r){r=r||G;var o=m(n);ft(e,t,(function(e,t){o(e,(function(n,r){return n?t(n):t(null,{key:r,val:e})}))}),(function(e,t){for(var n={},o=Object.prototype.hasOwnProperty,i=0;i<t.length;i++)if(t[i]){var s=t[i].key,a=t[i].val;o.call(n,s)?n[s].push(a):n[s]=[a]}return r(e,n)}))},Qn=ot(Kn,1/0),er=ot(Kn,1),tr=In("log");function nr(e,t,n,r){r=Z(r||G);var o={},i=m(n);rt(e,t,(function(e,t,n){i(e,t,(function(e,r){if(e)return n(e);o[t]=r,n()}))}),(function(e){r(e,o)}))}var rr=ot(nr,1/0),or=ot(nr,1);function ir(e,t){return t in e}function sr(e,t){var r=Object.create(null),i=Object.create(null);t=t||Fn;var s=m(e),a=o((function(e,o){var a=t.apply(null,e);ir(r,a)?l((function(){o.apply(null,r[a])})):ir(i,a)?i[a].push(o):(i[a]=[o],s.apply(null,e.concat((function(){var e=n(arguments);r[a]=e;var t=i[a];delete i[a];for(var o=0,s=t.length;o<s;o++)t[o].apply(null,e)}))))}));return a.memo=r,a.unmemoized=e,a}var ar=c(a?process.nextTick:s?setImmediate:u);function ur(e,t,r){r=r||G;var o=z(t)?[]:{};e(t,(function(e,t,r){m(e)((function(e,i){arguments.length>2&&(i=n(arguments,1)),o[t]=i,r(e)}))}),(function(e){r(e,o)}))}function cr(e,t){ur(at,e,t)}function lr(e,t,n){ur(nt(t),e,n)}var pr=function(e,t){var n=m(e);return dn((function(e,t){n(e[0],t)}),t,1)},dr=function(e,t){var n=pr(e,t);return n.push=function(e,t,r){if(null==r&&(r=G),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,te(e)||(e=[e]),0===e.length)return l((function(){n.drain()}));t=t||0;for(var o=n._tasks.head;o&&t>=o.priority;)o=o.next;for(var i=0,s=e.length;i<s;i++){var a={data:e[i],priority:t,callback:r};o?n._tasks.insertBefore(o,a):n._tasks.push(a)}l(n.process)},delete n.unshift,n};function fr(e,t){if(t=Z(t||G),!te(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)m(e[n])(t)}function Dr(e,t,r,o){hn(n(e).reverse(),t,r,o)}function hr(e){var t=m(e);return o((function(e,r){return e.push((function(e,t){var o;e?r(null,{error:e}):(o=arguments.length<=2?t:n(arguments,1),r(null,{value:o}))})),t.apply(this,e)}))}function mr(e){var t;return te(e)?t=Et(e,hr):(t={},gt(e,(function(e,n){t[n]=hr.call(this,e)}))),t}function br(e,t,n,r){Wn(e,t,(function(e,t){n(e,(function(e,n){t(e,!n)}))}),r)}var vr=ut(br),gr=dt(br),yr=ot(gr,1);function Cr(e){return function(){return e}}function wr(e,t,n){var r=5,o=0,i={times:r,intervalFunc:Cr(o)};function s(e,t){if("object"==typeof t)e.times=+t.times||r,e.intervalFunc="function"==typeof t.interval?t.interval:Cr(+t.interval||o),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||r}}if(arguments.length<3&&"function"==typeof e?(n=t||G,t=e):(s(i,e),n=n||G),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var a=m(t),u=1;function c(){a((function(e){e&&u++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(e))?setTimeout(c,i.intervalFunc(u)):n.apply(null,arguments)}))}c()}var Fr=function(e,t){t||(t=e,e=null);var n=m(t);return o((function(t,r){function o(e){n.apply(null,t.concat(e))}e?wr(e,o,r):wr(o,r)}))};function kr(e,t){ur(Dn,e,t)}var Er=ut(kn(Boolean,Fn)),xr=dt(kn(Boolean,Fn)),Sr=ot(xr,1);function Ar(e,t,n){var r=m(t);function o(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}lt(e,(function(e,t){r(e,(function(n,r){if(n)return t(n);t(null,{value:e,criteria:r})}))}),(function(e,t){if(e)return n(e);n(null,Et(t.sort(o),Hn("value")))}))}function Ir(e,t,n){var r=m(e);return o((function(o,i){var s,a=!1;function u(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,i(r)}o.push((function(){a||(i.apply(null,arguments),clearTimeout(s))})),s=setTimeout(u,t),r.apply(null,o)}))}var Br=Math.ceil,_r=Math.max;function jr(e,t,n,r){for(var o=-1,i=_r(Br((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++o]=e,e+=n;return s}function Pr(e,t,n,r){var o=m(n);ft(jr(0,e,1),t,o,r)}var Or=ot(Pr,1/0),Mr=ot(Pr,1);function Nr(e,t,n,r){arguments.length<=3&&(r=n,n=t,t=te(e)?[]:{}),r=Z(r||G);var o=m(n);at(e,(function(e,n,r){o(t,e,n,r)}),(function(e){r(e,t)}))}function Tr(e,t){var r,o=null;t=t||G,Ln(e,(function(e,t){m(e)((function(e,i){r=arguments.length>2?n(arguments,1):i,o=e,t(!e)}))}),(function(){t(o,r)}))}function Lr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Rr(e,t,r){r=tt(r||G);var o=m(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return o(i);var s=n(arguments,1);r.apply(null,[null].concat(s))};o(i)}function zr(e,t,n){Rr((function(){return!e.apply(this,arguments)}),t,n)}var Ur=function(e,t){if(t=Z(t||G),!te(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function o(t){var n=m(e[r++]);t.push(tt(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);o(n(arguments,1))}o([])},Gr={apply:r,applyEach:pt,applyEachSeries:ht,asyncify:p,auto:kt,autoInject:cn,cargo:fn,compose:bn,concat:yn,concatLimit:gn,concatSeries:Cn,constant:wn,detect:xn,detectLimit:Sn,detectSeries:An,dir:Bn,doDuring:_n,doUntil:Pn,doWhilst:jn,during:On,each:Nn,eachLimit:Tn,eachOf:at,eachOfLimit:rt,eachOfSeries:Dn,eachSeries:Ln,ensureAsync:Rn,every:Un,everyLimit:Gn,everySeries:Zn,filter:Vn,filterLimit:Yn,filterSeries:Xn,forever:Jn,groupBy:Qn,groupByLimit:Kn,groupBySeries:er,log:tr,map:lt,mapLimit:ft,mapSeries:Dt,mapValues:rr,mapValuesLimit:nr,mapValuesSeries:or,memoize:sr,nextTick:ar,parallel:cr,parallelLimit:lr,priorityQueue:dr,queue:pr,race:fr,reduce:hn,reduceRight:Dr,reflect:hr,reflectAll:mr,reject:vr,rejectLimit:gr,rejectSeries:yr,retry:wr,retryable:Fr,seq:mn,series:kr,setImmediate:l,some:Er,someLimit:xr,someSeries:Sr,sortBy:Ar,timeout:Ir,times:Or,timesLimit:Pr,timesSeries:Mr,transform:Nr,tryEach:Tr,unmemoize:Lr,until:zr,waterfall:Ur,whilst:Rr,all:Un,allLimit:Gn,allSeries:Zn,any:Er,anyLimit:xr,anySeries:Sr,find:xn,findLimit:Sn,findSeries:An,forEach:Nn,forEachSeries:Ln,forEachLimit:Tn,forEachOf:at,forEachOfSeries:Dn,forEachOfLimit:rt,inject:hn,foldl:hn,foldr:Dr,select:Vn,selectLimit:Yn,selectSeries:Xn,wrapSync:p};t.default=Gr,t.apply=r,t.applyEach=pt,t.applyEachSeries=ht,t.asyncify=p,t.auto=kt,t.autoInject=cn,t.cargo=fn,t.compose=bn,t.concat=yn,t.concatLimit=gn,t.concatSeries=Cn,t.constant=wn,t.detect=xn,t.detectLimit=Sn,t.detectSeries=An,t.dir=Bn,t.doDuring=_n,t.doUntil=Pn,t.doWhilst=jn,t.during=On,t.each=Nn,t.eachLimit=Tn,t.eachOf=at,t.eachOfLimit=rt,t.eachOfSeries=Dn,t.eachSeries=Ln,t.ensureAsync=Rn,t.every=Un,t.everyLimit=Gn,t.everySeries=Zn,t.filter=Vn,t.filterLimit=Yn,t.filterSeries=Xn,t.forever=Jn,t.groupBy=Qn,t.groupByLimit=Kn,t.groupBySeries=er,t.log=tr,t.map=lt,t.mapLimit=ft,t.mapSeries=Dt,t.mapValues=rr,t.mapValuesLimit=nr,t.mapValuesSeries=or,t.memoize=sr,t.nextTick=ar,t.parallel=cr,t.parallelLimit=lr,t.priorityQueue=dr,t.queue=pr,t.race=fr,t.reduce=hn,t.reduceRight=Dr,t.reflect=hr,t.reflectAll=mr,t.reject=vr,t.rejectLimit=gr,t.rejectSeries=yr,t.retry=wr,t.retryable=Fr,t.seq=mn,t.series=kr,t.setImmediate=l,t.some=Er,t.someLimit=xr,t.someSeries=Sr,t.sortBy=Ar,t.timeout=Ir,t.times=Or,t.timesLimit=Pr,t.timesSeries=Mr,t.transform=Nr,t.tryEach=Tr,t.unmemoize=Lr,t.until=zr,t.waterfall=Ur,t.whilst=Rr,t.all=Un,t.allLimit=Gn,t.allSeries=Zn,t.any=Er,t.anyLimit=xr,t.anySeries=Sr,t.find=xn,t.findLimit=Sn,t.findSeries=An,t.forEach=Nn,t.forEachSeries=Ln,t.forEachLimit=Tn,t.forEachOf=at,t.forEachOfSeries=Dn,t.forEachOfLimit=rt,t.inject=hn,t.foldl=hn,t.foldr=Dr,t.select=Vn,t.selectLimit=Yn,t.selectSeries=Xn,t.wrapSync=p,Object.defineProperty(t,"__esModule",{value:!0})}(t)})),Ci=1e3,wi=60*Ci,Fi=60*wi,ki=24*Fi,Ei=7*ki,xi=365.25*ki,Si=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*xi;case"weeks":case"week":case"w":return n*Ei;case"days":case"day":case"d":return n*ki;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Fi;case"minutes":case"minute":case"mins":case"min":case"m":return n*wi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ci;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=ki)return Ai(e,t,ki,"day");if(t>=Fi)return Ai(e,t,Fi,"hour");if(t>=wi)return Ai(e,t,wi,"minute");if(t>=Ci)return Ai(e,t,Ci,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=ki)return Math.round(e/ki)+"d";if(t>=Fi)return Math.round(e/Fi)+"h";if(t>=wi)return Math.round(e/wi)+"m";if(t>=Ci)return Math.round(e/Ci)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ai(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var Ii=function(e){function t(e){for(var t=0,r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){var i;function s(){if(s.enabled){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=s,a=Number(new Date),u=a-(i||a);o.diff=u,o.prev=i,o.curr=a,i=a,t[0]=n.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,r){if("%%"===e)return e;c++;var i=n.formatters[r];if("function"==typeof i){var s=t[c];e=i.call(o,s),t.splice(c,1),c--}return e})),n.formatArgs.call(o,t);var l=o.log||n.log;l.apply(o,t)}}return s.namespace=e,s.enabled=n.enabled(e),s.useColors=n.useColors(),s.color=t(e),s.destroy=r,s.extend=o,"function"==typeof n.init&&n.init(s),n.instances.push(s),s}function r(){var e=n.instances.indexOf(this);return-1!==e&&(n.instances.splice(e,1),!0)}function o(e,t){return n(this.namespace+(void 0===t?":":t)+e)}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){n.enable("")},n.enable=function(e){var t;n.save(e),n.names=[],n.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(t=0;t<o;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));for(t=0;t<n.instances.length;t++){var i=n.instances[t];i.enabled=n.enabled(i.namespace)}},n.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=Si,Object.keys(e).forEach((function(t){n[t]=e[t]})),n.instances=[],n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n},Bi=ee((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":n(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=Ii(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),_i=ee((function(e,t){t.init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(N.default.format.apply(N.default,arguments)+"\n")},t.formatArgs=function(n){var r=this.namespace;if(this.useColors){var o=this.color,i="[3"+(o<8?o:"8;5;"+o),s="  ".concat(i,";1m").concat(r," [0m");n[0]=s+n[0].split("\n").join("\n"+s),n.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):j.default.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{be&&(be.stderr||be).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=Ii(t);var n=e.exports.formatters;n.o=function(e){return this.inspectOpts.colors=this.useColors,N.default.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,N.default.inspect(e,this.inspectOpts)}})),ji=ee((function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=Bi:e.exports=_i})),Pi=parseInt("0777",8),Oi=Mi.mkdirp=Mi.mkdirP=Mi;function Mi(e,t,n,r){"function"==typeof t?(n=t,t={}):t&&"object"==typeof t||(t={mode:t});var o=t.mode,i=t.fs||O.default;void 0===o&&(o=Pi),r||(r=null);var s=n||function(){};e=M.default.resolve(e),i.mkdir(e,o,(function(n){if(!n)return s(null,r=r||e);switch(n.code){case"ENOENT":if(M.default.dirname(e)===e)return s(n);Mi(M.default.dirname(e),t,(function(n,r){n?s(n,r):Mi(e,t,s,r)}));break;default:i.stat(e,(function(e,t){e||!t.isDirectory()?s(n,r):s(null,r)}))}}))}Mi.sync=function e(t,n,r){n&&"object"==typeof n||(n={mode:n});var o=n.mode,i=n.fs||O.default;void 0===o&&(o=Pi),r||(r=null),t=M.default.resolve(t);try{i.mkdirSync(t,o),r=r||t}catch(o){switch(o.code){case"ENOENT":r=e(M.default.dirname(t),n,r),e(t,n,r);break;default:var s;try{s=i.statSync(t)}catch(e){throw o}if(!s.isDirectory())throw o}}return r};var Ni=ee((function(e,t){var n=Oi.mkdirp,r=ji("portfinder:testPort"),o=ji("portfinder:getPort"),i=ji("portfinder:defaultHosts"),s={testPort:function(e,n){function o(){r("done w/ testPort(): OK",e.host,"port",e.port),e.server.removeListener("error",i),e.server.close(),n(null,e.port)}function i(i){if(r("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",i.code),e.server.removeListener("listening",o),"EADDRINUSE"!=i.code&&"EACCES"!=i.code)return n(i);var a=t.nextPort(e.port);if(a>t.highestPort)return n(new Error("No open ports available"));s.testPort({port:a,host:e.host,server:e.server},n)}n||(n=e,e={}),e.server=e.server||W.default.createServer((function(){})),r("entered testPort(): trying",e.host,"port",e.port),e.server.once("error",i),e.server.once("listening",o),e.host?e.server.listen(e.port,e.host):e.server.listen(e.port)}};t.basePort=8e3,t.highestPort=65535,t.basePath="/tmp/portfinder",t.getPort=function(e,n){if(n||(n=e,e={}),e.port=Number(e.port)||Number(t.basePort),e.host=e.host||null,e.stopPort=Number(e.stopPort)||Number(t.highestPort),!e.startPort){if(e.startPort=Number(e.port),e.startPort<0)throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.");if(e.stopPort<e.startPort)throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}if(e.host){for(var r,i=0;i<t._defaultHosts.length;i++)if(t._defaultHosts[i]===e.host){r=!0;break}r||t._defaultHosts.push(e.host)}var a,u=[];return yi.eachSeries(t._defaultHosts,(function(t,n){return o("in eachSeries() iteration callback: host is",t),s.testPort({host:t,port:e.port},(function(e,r){return e?(o("in eachSeries() iteration callback testPort() callback","with an err:",e.code),a=t,n(e)):(o("in eachSeries() iteration callback testPort() callback","with a success for port",r),u.push(r),n())}))}),(function(r){if(r){if(o("in eachSeries() result callback: err is",r),"EADDRNOTAVAIL"===r.code||"EINVAL"===r.code){if(e.host===a){var i="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return n(Error(i))}var s=t._defaultHosts.indexOf(a);return t._defaultHosts.splice(s,1),t.getPort(e,n)}return n(r)}if(u.sort((function(e,t){return e-t})),o("in eachSeries() result callback: openPorts is",u),u[0]===u[u.length-1]){if(u[0]<=e.stopPort)return n(null,u[0]);i="No open ports found in between "+e.startPort+" and "+e.stopPort;return n(Error(i))}return t.getPort({port:u.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},n)}))},t.getPortPromise=function(e){if("function"!=typeof Promise)throw Error("Native promise support is not available in this version of node.Please install a polyfill and assign Promise to global.Promise before calling this method");return e||(e={}),new Promise((function(n,r){t.getPort(e,(function(e,t){if(e)return r(e);n(t)}))}))},t.getPorts=function(e,n,r){r||(r=n,n={});var o=null;yi.timesSeries(e,(function(e,r){o&&(n.port=t.nextPort(o)),t.getPort(n,(function(e,t){e?r(e):(o=t,r(null,t))}))}),r)},t.getSocket=function(e,r){function o(){O.default.stat(e.path,(function(n){n?"ENOENT"==n.code?r(null,e.path):r(n):(e.path=t.nextSocket(e.path),t.getSocket(e,r))}))}return r||(r=e,e={}),e.mod=e.mod||parseInt(755,8),e.path=e.path||t.basePath+".sock",e.exists?o():(i=M.default.dirname(e.path),void O.default.stat(i,(function(t,s){if(t||!s.isDirectory())return function(t){n(t,e.mod,(function(t){if(t)return r(t);e.exists=!0,o()}))}(i);e.exists=!0,o()})));var i},t.nextPort=function(e){return e+1},t.nextSocket=function(e){var t=M.default.dirname(e),n=M.default.basename(e,".sock").match(/^([a-zA-z]+)(\d*)$/i),r=parseInt(n[2]),o=n[1];return isNaN(r)&&(r=0),r+=1,M.default.join(t,o+r+".sock")},t._defaultHosts=function(){var e={};try{e=_.default.networkInterfaces()}catch(e){if("uv_interface_addresses"!==e.syscall)throw e}for(var t=Object.keys(e),n=["0.0.0.0"],r=0;r<t.length;r++)for(var o=e[t[r]],s=0;s<o.length;s++){var a=o[s];n.push(a.address)}return n.push(null),i("exports._defaultHosts is: %o",n),n}()}));class Ti{constructor(e,t){this.converter=t.converter,this.events=t.events,this.finder=t.finder,this.mode=t.mode,this.chokidar=q.default.watch(e,{disableGlobbing:!0,ignoreInitial:!0}).on("change",e=>this.convert(e)).on("add",e=>this.convert(e)).on("unlink",e=>this.delete(e)),this.converter.options.themeSet.onThemeUpdated=e=>this.convert(e),Ri.start()}convert(e){return K(this,void 0,void 0,(function*(){const t=M.default.resolve(e),n=(yield this.finder()).filter(e=>M.default.resolve(e.path)===t),r=(yield this.converter.options.themeSet.findPath()).find(e=>M.default.resolve(e)===t),o=e=>{e.type===Jo.File&&Ri.sendTo(e.absolutePath,"reload")};try{this.mode===Ti.WatchMode.Convert?yield this.converter.convertFiles(n,{onConverted:e=>{this.events.onConverted(e),o(e.file)}}):this.mode===Ti.WatchMode.Notify&&n.forEach(o)}catch(e){this.events.onError(e)}void 0!==r&&this.converter.options.themeSet.load(t)}))}delete(e){const t=M.default.resolve(e),{themeSet:n}=this.converter.options;n.unobserve(t),n.themes.delete(t)}static watch(e,t){return new Ti(e,t)}}class Li{constructor(){this.listeners=new Map}port(){return K(this,void 0,void 0,(function*(){return void 0===this.portNumber&&(this.portNumber=yield Ni.getPortPromise({port:37717})),this.portNumber}))}register(e){return K(this,void 0,void 0,(function*(){const t=Li.sha256(e);return this.listeners.has(t)||this.listeners.set(t,new Set),`ws://localhost:${yield this.port()}/${t}`}))}sendTo(e,t){if(!this.wss)return!1;const n=this.listeners.get(Li.sha256(e));return!!n&&(n.forEach(e=>e.send(t)),!0)}start(e={}){return K(this,void 0,void 0,(function*(){this.wss=new F.Server(Object.assign(Object.assign({},e),{port:yield this.port()})),this.wss.on("connection",(e,t)=>{if(t.url){const[,n]=t.url.split("/"),r=this.listeners.get(n);if(void 0!==r)return this.listeners.set(n,r.add(e)),e.on("close",()=>this.listeners.get(n).delete(e)),void e.send("ready")}e.close()})}))}stop(){void 0!==this.wss&&(this.wss.close(),this.wss=void 0)}static sha256(e){const t=$.default.createHash("sha256");return t.update(e),t.digest("hex").toString()}}const Ri=new Li;var zi,Ui=Ti.watch;!function(e){let t;!function(e){e[e.Convert=0]="Convert",e[e.Notify=1]="Notify"}(t=e.WatchMode||(e.WatchMode={}))}(Ti||(Ti={})),function(e){e.html="html",e.pdf="pdf",e.png="png",e.pptx="pptx",e.jpeg="jpg"}(zi||(zi={}));const Gi={[zi.html]:"text/html",[zi.pdf]:"application/pdf",[zi.png]:"image/png",[zi.pptx]:"application/vnd.openxmlformats-officedocument.presentationml.presentation",[zi.jpeg]:"image/jpeg"};class Zi{constructor(e){this.options=e}get template(){const e=pi[this.options.template];return e||lo(`Template "${this.options.template}" is not found.`),e}convert(e,t){return K(this,void 0,void 0,(function*(){const{lang:n,globalDirectives:r,type:o}=this.options,i=e=>!!e&&e.type===Jo.File;let s="";for(const e of Object.keys(r))void 0!==r[e]&&(s+=`\n\x3c!-- ${e}: ${JSON.stringify(r[e])} --\x3e`);return yield this.template(Object.assign(Object.assign({},this.options.templateOption||{}),{lang:n,base:i(t)&&o!==zi.html?yield(e=>K(this,void 0,void 0,(function*(){return mi()?"file:"+(yield bi(e.absolutePath)):e.absoluteFileScheme})))(t):void 0,notifyWS:i(t)&&this.options.watch&&o===zi.html?yield Ri.register(t.absolutePath):void 0,renderer:n=>{const r=this.generateEngine(n),o=r.render(`${e}${s}`),a=r[so];return i(t)&&this.options.themeSet.observe(t.absolutePath,null==a?void 0:a.theme),Object.assign(Object.assign({},o),a)}}))}))}convertFile(e,t={}){return K(this,void 0,void 0,(function*(){const n=yield(()=>K(this,void 0,void 0,(function*(){try{return lt(!!t.onlyScanning),yield this.convert((yield e.load()).toString(),e)}finally{lt(!1)}})))();if(!t.onlyScanning){const r=[];switch(this.options.type){case zi.pdf:r.push(yield this.convertFileToPDF(n,e));break;case zi.png:case zi.jpeg:r.push(...yield this.convertFileToImage(n,e,{pages:this.options.pages,quality:this.options.jpegQuality,type:this.options.type}));break;case zi.pptx:r.push(yield this.convertFileToPPTX(n,e));break;default:r.push(this.convertFileToHTML(n,e))}for(const o of r)yield o.save(),t.onConverted&&t.onConverted({file:e,newFile:o,template:n});return{file:e,template:n,newFile:r[0]}}return{file:e,template:n}}))}convertFiles(e,t={}){return K(this,void 0,void 0,(function*(){const{inputDir:n,output:r}=this.options;!n&&r&&"-"!==r&&e.length>1&&lo("Output path cannot specify with processing multiple files.");for(const n of e)yield this.convertFile(n,t)}))}convertFileToHTML(e,t){const n=t.convert(this.options.output,{extension:"html"});return n.buffer=Buffer.from(e.result),n}convertFileToPDF(e,t){return K(this,void 0,void 0,(function*(){const n=new Ko(t.absolutePath);n.buffer=Buffer.from(e.result);const r=t.convert(this.options.output,{extension:"pdf"});return r.buffer=yield this.usePuppeteer(n,(e,t)=>K(this,void 0,void 0,(function*(){return yield e.goto(t,{waitUntil:["domcontentloaded","networkidle0"]}),yield e.pdf({printBackground:!0,preferCSSPageSize:!0})}))),r}))}convertFileToImage(e,t,n){return K(this,void 0,void 0,(function*(){const r=new Ko(t.absolutePath);r.buffer=Buffer.from(e.result);const o=[];return yield this.usePuppeteer(r,(r,i)=>K(this,void 0,void 0,(function*(){yield r.setViewport(e.rendered.size),yield r.goto(i,{waitUntil:["domcontentloaded","networkidle0"]}),yield r.emulateMediaType("print");const s=t=>K(this,void 0,void 0,(function*(){return yield r.evaluate(`window.scrollTo(0,${((t||1)-1)*e.rendered.size.height})`),n.type===zi.jpeg?yield r.screenshot({quality:n.quality,type:"jpeg"}):yield r.screenshot({type:"png"})}));if(n.pages)for(let r=1;r<=e.rendered.length;r+=1){const e=t.convert(this.options.output,{page:r,extension:n.type});e.buffer=yield s(r),o.push(e)}else{const e=t.convert(this.options.output,{extension:n.type});e.buffer=yield s(),o.push(e)}}))),o}))}convertFileToPPTX(e,t){return K(this,void 0,void 0,(function*(){const n=yield this.convertFileToImage(e,t,{pages:!0,type:zi.png}),r=new((yield Promise.resolve().then((function(){return B(require("pptxgenjs"))}))).default),o=`${e.rendered.size.width}x${e.rendered.size.height}`;r.author="Created by Marp",r.company="Created by Marp",r.defineLayout({name:o,width:e.rendered.size.width/96,height:e.rendered.size.height/96}),r.layout=o,e.rendered.title&&(r.title=e.rendered.title),e.rendered.description&&(r.subject=e.rendered.description),n.forEach((t,n)=>{const o=r.addSlide();o.background={data:"data:image/png;base64,"+t.buffer.toString("base64")};const i=e.rendered.comments[n].join("\n\n");i&&o.addNotes(i)});const i=t.convert(this.options.output,{extension:"pptx"});return i.buffer=yield r.write("nodebuffer"),i}))}generateEngine(e){const{html:t,options:n}=this.options,{prototype:r}=this.options.engine,o=Object.assign(Object.assign(Object.assign({},n),e),{html:t}),i=r&&Object.prototype.hasOwnProperty.call(r,"constructor")?new this.options.engine(o):this.options.engine(o);return"function"!=typeof i.render&&lo("Specified engine has not implemented render() method."),void 0!==t&&i.markdown.set({html:t}),i.use(uo).use(ao),this.options.themeSet.registerTo(i),i}usePuppeteer(e,t){return K(this,void 0,void 0,(function*(){const n=yield(()=>{if(this.options.allowLocalFiles)return dt(`Insecure local file accessing is enabled for conversion from ${e.relativePath()}.`),e.saveTmpFile({home:"linux"===process.platform,extension:".html"})})(),r=yield(()=>K(this,void 0,void 0,(function*(){return n?mi()?"file:"+(yield bi(n.path)):"file://"+n.path:"data:text/html;base64,"+e.buffer.toString("base64")})))();try{const e=yield Zi.runBrowser(),o=yield e.newPage(),{missingFileSet:i,failedFileSet:s}=this.trackFailedLocalFileAccess(o);try{return yield t(o,r)}finally{i.size>0&&dt(`${i.size>1?"Some of t":"T"}he local file${i.size>1?"s are":" is"} missing and will be ignored. Make sure the file path${i.size>1?"s are":" is"} correct.`),s.size>0&&dt(`Marp CLI has detected accessing to local file${s.size>1?"s":""}. ${s.size>1?"They are":"That is"} blocked by security reason. Instead we recommend using assets uploaded to online. (Or you can use ${We.yellow("--allow-local-files")} option if you are understood of security risk)`),yield o.close()}}finally{n&&(yield n.cleanup())}}))}trackFailedLocalFileAccess(e){const t=new Set,n=new Set;return e.on("requestfailed",e=>{var r;try{const o=new D.URL(e.url());"file:"===o.protocol&&("net::ERR_FILE_NOT_FOUND"===(null===(r=e.failure())||void 0===r?void 0:r.errorText)?t.add(o.href):n.add(o.href))}catch(e){}}),{missingFileSet:t,failedFileSet:n}}static closeBrowser(){return K(this,void 0,void 0,(function*(){Zi.browser&&(yield Zi.browser.close())}))}static runBrowser(){return K(this,void 0,void 0,(function*(){return Zi.browser||(Zi.browser=yield Z.default.launch(Object.assign(Object.assign({},gi()),{userDataDir:yield vi("marp-cli-conversion")})),Zi.browser.once("disconnected",()=>{Zi.browser=void 0})),Zi.browser}))}}var Hi=e=>new Promise(t=>{O.default.access(e,e=>{t(!e)})});Hi.sync=e=>{try{return O.default.accessSync(e),!0}catch(e){return!1}};const $i=(e,...t)=>new Promise(n=>{n(e(...t))});var qi=$i,Wi=$i;qi.default=Wi;const Vi=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let n=0;const r=()=>{n--,t.length>0&&t.shift()()},o=(e,t,...o)=>{n++;const i=qi(e,...o);t(i),i.then(r,r)},i=(r,...i)=>new Promise(s=>((r,i,...s)=>{n<e?o(r,i,...s):t.push(o.bind(null,r,i,...s))})(r,s,...i));return Object.defineProperties(i,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),i};var Yi=Vi,Xi=Vi;Yi.default=Xi;class Ji extends Error{constructor(e){super(),this.value=e}}const Ki=(e,t)=>Promise.resolve(e).then(t),Qi=e=>Promise.all(e).then(e=>!0===e[1]&&Promise.reject(new Ji(e[0])));var es=(e,t)=>((e,t,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);const r=Yi(n.concurrency),o=[...e].map(e=>[e,r(Ki,e,t)]),i=Yi(n.preserveOrder?1:1/0);return Promise.all(o.map(e=>i(Qi,e))).then(()=>{}).catch(e=>e instanceof Ji?e.value:Promise.reject(e))})(e,e=>Hi(M.default.resolve(t.cwd,e)),t=Object.assign({cwd:process.cwd()},t));es.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const n of e)if(Hi.sync(M.default.resolve(t.cwd,n)))return n};var ts=(e,t={})=>{const n=M.default.resolve(t.cwd||""),{root:r}=M.default.parse(n),o=[].concat(e);return new Promise(e=>{!function t(n){es(o,{cwd:n}).then(o=>{o?e(M.default.join(n,o)):n===r?e(null):t(M.default.dirname(n))})}(n)})};ts.sync=(e,t={})=>{let n=M.default.resolve(t.cwd||"");const{root:r}=M.default.parse(n),o=[].concat(e);for(;;){const e=es.sync(o,{cwd:n});if(e)return M.default.join(n,e);if(n===r)return null;n=M.default.dirname(n)}};var ns=async({cwd:e}={})=>ts("package.json",{cwd:e});ns.sync=({cwd:e}={})=>ts.sync("package.json",{cwd:e});class rs{constructor(e){this.klass=e}static resolve(e,t){return K(this,void 0,void 0,(function*(){const n=new rs(rs.resolveModule(e,t));return yield n.resolvePackage(),n}))}static resolveModule(e,t){let n;return(Array.isArray(e)?e:[e]).some(e=>("string"==typeof e?(n=t&&V.default.silent(M.default.dirname(M.default.resolve(t)),e)||V.default.silent(process.cwd(),e),(null==n?void 0:n.__esModule)&&(n=n.default)):n=e,n)),n||lo("The specified engine has not resolved."),n}resolvePackage(){return K(this,void 0,void 0,(function*(){const e=this.findClassPath(this.klass);if(!e)return;const t=yield ns({cwd:M.default.dirname(e)});t&&(this.package=require(t))}))}findClassPath(e){for(const t in require.cache){const n=require.cache[t].exports;if(n===e||(null==n?void 0:n.__esModule)&&Object.values(n).includes(e))return t}}}var os=rs.resolve;const is=s.promisify(O.default.lstat),ss=s.promisify(O.default.readFile);class as{constructor(e,t){this.filename=e,this.overrideName=!0===t.overrideName?this.genUniqName():t.overrideName,this.name=this.overrideName}get buffer(){return this.readBuffer}get css(){const e=this.buffer.toString();return this.overrideName?`${e}\n/* @theme ${this.overrideName} */`:e}load(){return K(this,void 0,void 0,(function*(){this.readBuffer=yield ss(this.filename)}))}genUniqName(){const e=()=>Math.random().toString(36).slice(2);return`${e()}${e()}${e()}${e()}`}static initialize(e,t={}){return K(this,void 0,void 0,(function*(){const n=new as(e,t);return yield n.load(),n}))}}class us{constructor(e){this.themes=new Map,this.onThemeUpdated=()=>{},this.observedMarkdowns=new Map,this.fn=e.fn,this.fnForWatch=e.fnForWatch}findPath(){return K(this,void 0,void 0,(function*(){return yield us.findPath(this.fn)}))}load(e){return K(this,void 0,void 0,(function*(){const t=M.default.resolve(e);let n=this.themes.get(t);n?yield n.load():(n=yield as.initialize(t),this.add(n)),void 0!==n.name&&this.notify(n.name)}))}observe(e,t){this.observedMarkdowns.set(e,t)}registerTo(e){for(const t of this.themes.values())try{const n=e.themeSet.add(t.css);t.name=n.name}catch(e){dt(`Cannot register theme CSS: ${M.default.relative(process.cwd(),t.filename)} (${e.message})`)}}unobserve(e){this.observedMarkdowns.delete(e)}add(e){this.themes.set(e.filename,e)}notify(e){this.observedMarkdowns.forEach((t,n)=>{t===e&&this.onThemeUpdated(n)})}static initialize(e,t=[]){return K(this,void 0,void 0,(function*(){const n=[...e,...t.map(e=>e.filename)],r=yield us.findPath(n),o=new Set(r.map(e=>M.default.resolve(e)));for(const e of n)if(!m.hasMagic(e.split(M.default.sep).join("/")))try{const t=yield is(e);(t.isFile()||t.isDirectory()||t.isSymbolicLink())&&o.add(M.default.resolve(e))}catch(e){}const i=new us({fn:n,fnForWatch:[...o]});for(const e of r)yield i.load(e);return t.forEach(e=>i.add(e)),i}))}static findPath(e){return K(this,void 0,void 0,(function*(){return Ko.findPath({expandDirectories:{extensions:[],files:["*.css"]}},...e)}))}}const cs=s.promisify(O.default.lstat);class ls{constructor(){this.args={},this.conf={}}static fromArguments(e){return K(this,void 0,void 0,(function*(){const t=new ls;return t.args=e,!1!==e.configFile&&(yield t.loadConf(e.configFile)),t.engine=yield t.args.engine?os(t.args.engine):t.conf.engine?os(t.conf.engine,t.confPath):os(["@marp-team/marp-core",a.Marp]),t}))}converterOption(){var e,t,n,r,o,i,s,a,u,c,l,p;return K(this,void 0,void 0,(function*(){const d=yield this.inputDir(),f=null!==(t=null!==(e=this.args.server)&&void 0!==e?e:this.conf.server)&&void 0!==t&&t,D=(()=>!f&&(void 0!==this.args.output?this.args.output:void 0!==this.conf.output?"-"===this.conf.output||!1===this.conf.output?this.conf.output:M.default.resolve(M.default.dirname(this.confPath),this.conf.output):void 0))(),h=this.args.template||this.conf.template||"bespoke",m=(()=>{var e,t,n,r;if("bespoke"===h){const o=this.conf.bespoke||{};return{osc:null!==(t=null===(e=this.args.bespoke)||void 0===e?void 0:e.osc)&&void 0!==t?t:o.osc,progress:null!==(r=null===(n=this.args.bespoke)||void 0===n?void 0:n.progress)&&void 0!==r?r:o.progress}}return{}})(),b=yield this.loadTheme(),v=b instanceof as?[b]:[],g=this.args.themeSet||(this.conf.themeSet?(Array.isArray(this.conf.themeSet)?this.conf.themeSet:[this.conf.themeSet]).map(e=>M.default.resolve(M.default.dirname(this.confPath),e)):[]),y=yield us.initialize((d?[d]:[]).concat(g),v);y.themes.size<=v.length&&g.length>0&&dt("Not found additional theme CSS files.");const C=(()=>{if(this.args.pdf||this.conf.pdf)return zi.pdf;if(this.args.pptx||this.conf.pptx)return zi.pptx;const e=this.args.images||this.conf.images||this.args.image||this.conf.image;if("png"===e)return zi.png;if("jpeg"===e)return zi.jpeg;const t=(D||"").toLowerCase();return t.endsWith(".pdf")?zi.pdf:t.endsWith(".png")?zi.png:t.endsWith(".pptx")?zi.pptx:t.endsWith(".jpg")||t.endsWith(".jpeg")?zi.jpeg:zi.html})(),w=(()=>{var e,t;const n=null!==(t=null!==(e=this.args.preview)&&void 0!==e?e:this.conf.preview)&&void 0!==t&&t;return n&&process.env.IS_DOCKER?(dt("Preview window cannot show in an official docker image. Preview option was ignored."),!1):n})();return{inputDir:d,output:D,preview:w,server:f,template:h,templateOption:m,themeSet:y,type:C,allowLocalFiles:null!==(r=null!==(n=this.args.allowLocalFiles)&&void 0!==n?n:this.conf.allowLocalFiles)&&void 0!==r&&r,engine:this.engine.klass,globalDirectives:{description:null!==(o=this.args.description)&&void 0!==o?o:this.conf.description,image:null!==(i=this.args.ogImage)&&void 0!==i?i:this.conf.ogImage,theme:b instanceof as?b.name:b,title:null!==(s=this.args.title)&&void 0!==s?s:this.conf.title,url:null!==(a=this.args.url)&&void 0!==a?a:this.conf.url},html:null!==(u=this.args.html)&&void 0!==u?u:this.conf.html,jpegQuality:null!==(l=null!==(c=this.args.jpegQuality)&&void 0!==c?c:this.conf.jpegQuality)&&void 0!==l?l:85,lang:this.conf.lang||(yield oo()).replace(/@/g,"-"),options:this.conf.options||{},pages:!(!this.args.images&&!this.conf.images),watch:(null!==(p=this.args.watch)&&void 0!==p?p:this.conf.watch)||w||f||!1}}))}get files(){return this.args.server||this.conf.server?[]:this.args._||[]}inputDir(){return K(this,void 0,void 0,(function*(){const e=(()=>this.args.inputDir?M.default.resolve(this.args.inputDir):this.conf.inputDir?M.default.resolve(M.default.dirname(this.confPath),this.conf.inputDir):(this.args.server||this.conf.server)&&Array.isArray(this.args._)&&(this.args._.length>1&&lo("Server mode have to specify just one directory."),1===this.args._.length)?M.default.resolve(this.args._[0]):void 0)();if(void 0===e)return;let t;try{t=yield cs(e)}catch(t){if("ENOENT"!==t.code)throw t;lo(`Input directory "${e}" is not found.`)}return t.isDirectory()||lo(`"${e}" is not directory.`),e}))}loadConf(e){return K(this,void 0,void 0,(function*(){const t=u.cosmiconfig(ls.moduleName);try{const n=yield void 0===e?t.search():t.load(e);n&&(this.confPath=n.filepath,this.conf=n.config)}catch(t){lo(["Could not find or parse configuration file.","Error"!==t.name&&`(${t.name})`,void 0!==e&&`[${e}]`].filter(e=>e).join(" "))}}))}loadTheme(){return K(this,void 0,void 0,(function*(){const e=(()=>this.args.theme?{advice:{use:"--theme-set",insteadOf:"--theme"},name:this.args.theme,path:M.default.resolve(this.args.theme)}:this.conf.theme?{advice:{use:"themeSet",insteadOf:"theme"},name:this.conf.theme,path:M.default.resolve(M.default.dirname(this.confPath),this.conf.theme)}:void 0)();if(e){try{return yield as.initialize(e.path,{overrideName:!0})}catch(t){if("EISDIR"===t.code&&(pt(`Please use ${We.yellow(e.advice.use)} option instead of ${e.advice.insteadOf} to make theme CSS available from directory.`),lo(`Directory cannot pass to theme option. (${e.path})`)),"ENOENT"!==t.code)throw t}return e.name}}))}}ls.moduleName="marp";var ps=ls.fromArguments;let ds={},fs=(e=21)=>{let t=(e=>{let t=ds[e];return t||(t=Buffer.allocUnsafe(e),e<=255&&(ds[e]=t)),$.default.randomFillSync(t)})(e),n="";for(;e--;)n+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[63&t[e]];return n};var Ds="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AgMAAAC2uDcZAAAADFBMVEUAAAABiNJnueQBZp1z8GXRAAAAA3RSTlMA/f4BYYQ1AAAFJUlEQVR42u3cuXGeMQyEYZrjwKFLcCluQv24Hlfp4L++kySwCyDwbkzyHekZXYla0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRNw/fNcrh3cv275fAPdv2n5fAv9mf+y3L4b69kb72SnV03spPrvy2H/5DrRnZy3chOrlu/2nslO7duZefWrezcuvmbfK9kp9bN7NS6mZ1at/9s75XszLqdnVm3szPrjl/peiU7se5gJ9Yd7MS65zf5XsnOq3vYeXUPO6/u+gOuV7LT6i52Wt3FTqv7/m7vleysuo+dVfexs+o+dlbdx06qO9lJdSc7qe5kJ9Wd7Jy6l51T97Jz6l52Tt3LTqm72Sl1Nzul7man1N3sjLqfnVH3szPqfnZG3c9OqAPshDrATqgD7IQ6wI7XEXa8jrDjdYQdryPscB1ih+sQO1yH2OE6xI7WMXa0jrGjdYwdrWPsYB1kB+sgO1gH2cE6yI7VUXasjrJjdZQdq6PsUB1mh+owO1SH2aE6zI7UcXakjrMjdZwdqePsQJ3ADtQJ7ECdwA7UCez+OoPdX2ew++sMdn+dwe6uU9jddQq7u05hd9cp7N46h91b57B76xx2b53D7qyT2J11EruzTmJ31knsvjqL3VdnsfvqLHZfncXuqtPYXXUau6tOY3fVaeyeOo/dU+exe+o8dk+dx+6oE9kddSK7o05kd9SJ7PY6k91eZ7Lb60x2e53Jbq5T2c11Kru5TmU316ns1jqX3VrnslvrXHZrncturJPZjXUyu7FOZjfWyey2OpvdVmez2+psdludzW6q09lNdTq7qU5nN9Xp7JY6n91S57Nb6nx2S53PbqgHsBvqAeyGegC7oR7Avl6PYF+vR7Cv1yPY1+sR7Mv1EPblgyHsy/UQ9uV6CPtqPYZ99WQM+2o9hn21HsO+WA9iXzwaxL5YD2JfrAexr9Wj2NfORrGv1aPY1+pR7Ev1MPalw2HsS/Uw9qXPqul/zn6RP/Y49pXTcewr9Tj2lXrYV/tKPZB94Xgg+0I9kH2hHsg+r0eyz89Hss/rkezzeiT7tB7KPr0Qyj6th7JP66Hss3os++xGLPusHss+q8eyT+rB7JMrweyTejD7pB7MPq5Hs4/vRLOP69Hs43o0+7Aezj68FM4+rIezD+vh7KN6PPvoVjz7qB7PPqrHsw/qCeyDawnsg3oC+6CewH5fz2C/v5fBfl/PYL+vZ7Df1lPYby+msN/WU9hv6ynsd/Uc9rubOex39Rz2u3oO+009if3mahL7TT2J/aaexH5dz2K/vpvFfl3PYr+uZ7Ff1tPYLy+nsV/W09gv62nsV/U89qvbeexX9Tz2q3oe+0U9kf3ieiL7RT2R/aKeyH6uZ7Kf72eyn+uZ7Od6Jvupnsp+eiCV/VRPZT/VU9mP9Vz24wu57Md6Lvuxnst+qCezH55IZj/Uk9kP9WT2fT2bff9GNvu+ns2+r2ez7+rp7LtH0tl39XT2XT2dfVvPZ9++ks++reezb+v57Jt6AfvmmQL2Tb2AfVMvYP/UK9g/71Swf+oV7J96Bfu7XsL+fqiE/V0vYX/XS9hf9Rr210s17K96DfurXsP+rBexP58qYn/Wi9if9SL2R72K/fFWFfujXsX+qFext17J3nole+uV7K1Xsrdeyd56JXvrleytV7K3XsneeiV765XsrVeyt17J3nole+uV7K1Xsmuapmmapmmapmmapmmapmmapmmapmmapmmapmmapmma9p/uH/kiUlWp8dyDAAAAAElFTkSuQmCC";class hs extends p.EventEmitter{}class ms extends hs{constructor(e={}){super(),this.options={height:e.height||360,width:e.width||640}}get puppeteer(){return this.puppeteerInternal}open(e){return K(this,void 0,void 0,(function*(){this.emit("opening",e);const t=(yield this.createWindow())||(yield this.launch());return t.on("close",()=>this.emit("close",t)),yield t.load(e),this.emit("open",t,e),t}))}exit(){return K(this,void 0,void 0,(function*(){this.puppeteer&&(yield this.puppeteer.close(),this.emit("exit"),this.puppeteerInternal=void 0)}))}createWindowObject(e){const t=new p.EventEmitter;return e.on("close",()=>K(this,void 0,void 0,(function*(){return t.emit("close")}))),Object.assign(t,{page:e,close:()=>K(this,void 0,void 0,(function*(){try{return yield e.close()}catch(e){if(!e.message.includes("Target closed."))throw e}})),load:t=>K(this,void 0,void 0,(function*(){yield e.goto(t,{timeout:0,waitUntil:"domcontentloaded"}),yield e.target().createCDPSession().then(e=>{e.send("Page.resetNavigationHistory").catch(()=>{})})}))})}createWindow(){return K(this,void 0,void 0,(function*(){try{return this.createWindowObject(yield new Promise((e,t)=>{const n=this.puppeteer;if(!n)return t(!1);const r=fs(),o=t=>{new URL(t.url()).searchParams.get("__marp_cli_id")===r&&(n.removeListener("targetcreated",o),e(t.page()))};n.on("targetcreated",o),(()=>{K(this,void 0,void 0,(function*(){for(const e of yield n.pages()){yield e.evaluate(`window.open('about:blank?__marp_cli_id=${r}', '', 'width=${this.options.width},height=${this.options.height}')`);break}}))})()}))}catch(e){if(!e)return!1;throw e}}))}launch(){return K(this,void 0,void 0,(function*(){const e=gi();this.puppeteerInternal=yield Z.default.launch(Object.assign(Object.assign({},e),{args:[...e.args,`--app=data:text/html,<title>${encodeURIComponent("Marp CLI")}</title>`,`--window-size=${this.options.width},${this.options.height}`],defaultViewport:null,headless:!1,userDataDir:yield vi("marp-cli-preview")})),this.puppeteerInternal.target().createCDPSession().then(e=>{e.send("Browser.setDockTile",{image:Ds.slice(22)}).catch(()=>{})});const t=()=>K(this,void 0,void 0,(function*(){var e;0===((yield null===(e=this.puppeteer)||void 0===e?void 0:e.pages())||[]).length&&(yield this.exit())}));this.puppeteerInternal.on("targetcreated",e=>{e.page().then(e=>null==e?void 0:e.on("close",t))});const[n]=yield this.puppeteerInternal.pages();return n.on("close",t),this.emit("launch"),this.createWindowObject(n)}))}}function bs(e,t){if(e.type===Jo.File){const t=e.absolutePath.replace(/\\/g,"/");return encodeURI(`file://${t.startsWith("/")?"":"/"}${t}`)}if(e.buffer)return`data:${Gi[t]};base64,${e.buffer.toString("base64")}`;lo("Processing file is not convertible to URI for preview.")}function vs(e){var t,n,r="";try{var o={},i=e||{};(function(e,n,o,i,s,a){r+="<!DOCTYPE html>",r+="<html>",r+="<head>",r+='<meta charset="UTF-8">',r+='<meta name="google" content="notranslate">',r+='<meta name="viewport" content="width=device-width initial-scale=1.0">',r=(r+='<meta http-equiv="X-UA-Compatible" content="ie=edge">')+'<link rel="icon" type="image/png"'+ii.attr("href",o,!0,!0)+">",r=(r+="<style>")+(null==(t=a)?"":t)+"</style></head>",r+="<body>",r=(r+="<h1>")+ii.escape(null==(t=e)?"":t)+"</h1>",r+='<label id="show-all-container">',r+='<input class="toggle" id="show-all" type="checkbox">',r+="",r+="\n",r+="Show all files and directories</label>",r+='<ul id="index">',function(){var e=i;if("number"==typeof e.length)for(var o=0,s=e.length;o<s;o++){var a=e[o];r=(r=(r=r+"<li"+ii.attr("class",ii.classes([{convertible:a.convertible,directory:a.directory,nodeModules:a.nodeModules}],[!0]),!1,!0)+">")+'<a class="link file"'+ii.attr("href",n(a.name)+(a.directory?"/":""),!0,!0)+">")+ii.escape(null==(t=a.name)?"":t)+"</a>",a.convertible&&(r=r+'<a class="link pdf"'+ii.attr("href",n(a.name)+"?pdf",!0,!0)+">",r=(r+="PDF</a>")+'<a class="link pptx"'+ii.attr("href",n(a.name)+"?pptx",!0,!0)+">",r+="PPTX</a>"),r+="</li>"}else{s=0;for(var o in e){s++;a=e[o];r=(r=(r=r+"<li"+ii.attr("class",ii.classes([{convertible:a.convertible,directory:a.directory,nodeModules:a.nodeModules}],[!0]),!1,!0)+">")+'<a class="link file"'+ii.attr("href",n(a.name)+(a.directory?"/":""),!0,!0)+">")+ii.escape(null==(t=a.name)?"":t)+"</a>",a.convertible&&(r=r+'<a class="link pdf"'+ii.attr("href",n(a.name)+"?pdf",!0,!0)+">",r=(r+="PDF</a>")+'<a class="link pptx"'+ii.attr("href",n(a.name)+"?pptx",!0,!0)+">",r+="PPTX</a>"),r+="</li>"}}}.call(this),r+="</ul>",r=(r+="<script>")+(null==(t=s)?"":t)+"<\/script></body></html>"}).call(this,"directory"in i?i.directory:"undefined"!=typeof directory?directory:void 0,"encodeURIComponent"in i?i.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"favicon"in i?i.favicon:"undefined"!=typeof favicon?favicon:void 0,"files"in i?i.files:"undefined"!=typeof files?files:void 0,"script"in i?i.script:"undefined"!=typeof script?script:void 0,"style"in i?i.style:"undefined"!=typeof style?style:void 0)}catch(e){ii.rethrow(e,n,undefined,o[void 0])}return r}const gs=s.promisify(O.default.stat),ys=s.promisify(O.default.readFile);class Cs extends hs{constructor(e,t={}){super(),e.options.inputDir||lo("Converter have to specify an input directory."),this.converter=e,this.directoryIndex=t.directoryIndex||[],this.inputDir=e.options.inputDir,this.options=t,this.port=Number.parseInt(process.env.PORT,10)||8080}start(){return K(this,void 0,void 0,(function*(){return this.setup(),new Promise((e,t)=>{this.httpServer=this.server.listen(this.port),this.httpServer.on("listening",e),this.httpServer.on("error",e=>(()=>K(this,void 0,void 0,(function*(){yield this.stop(),"EADDRINUSE"===e.code?t(new CLIError(`Listen port ${this.port} is already used in the other process. Try again after closing the relevant process, or specify another port number through PORT env.`,exports.b.LISTEN_PORT_IS_ALREADY_USED)):t(e)})))())})}))}stop(){return K(this,void 0,void 0,(function*(){if(this.httpServer){try{yield s.promisify(this.httpServer.close.bind(this.httpServer))()}catch(e){if(e instanceof Error&&"ERR_SERVER_NOT_RUNNING"!==e.code)throw e}this.httpServer=void 0}}))}convertMarkdown(e,t={}){return K(this,void 0,void 0,(function*(){this.converter.options.output=!1,this.converter.options.pages=!1,this.converter.options.type=(()=>{const e=Object.keys(t);return e.includes("pdf")?zi.pdf:e.includes("pptx")?zi.pptx:e.includes("png")?zi.png:e.includes("jpg")||e.includes("jpeg")?zi.jpeg:zi.html})();const n=yield this.converter.convertFile(new Ko(e));return this.emit("converted",n),n}))}loadScript(){return K(this,void 0,void 0,(function*(){return void 0===Cs.script&&(Cs.script=(yield ys(M.default.resolve(__dirname,"./server/server-index.js"))).toString()),Cs.script}))}preprocess(e,t){var n;return K(this,void 0,void 0,(function*(){const{pathname:r,query:o}=G.default.parse(e.url);if(!r)return;const i=Y.default.parse(o||""),s=e=>K(this,void 0,void 0,(function*(){try{const n=yield this.convertMarkdown(e,i);if(!n.newFile)throw new Error("Converter must return a converted file to serve.");const{type:r}=this.converter.options;r===zi.pptx&&t.attachment(M.default.basename(e,M.default.extname(e))+".pptx"),t.type(Gi[r]).end(n.newFile.buffer)}catch(e){this.emit("error",e),t.status(503).end(e.toString())}})),a=yield this.validateMarkdown(r);if(a.valid)yield s(a.path);else if(null===(n=a.stats)||void 0===n?void 0:n.isDirectory())for(const e of this.directoryIndex){const t=yield this.validateMarkdown(M.default.join(M.default.relative(this.inputDir,a.path),e));if(t.valid){yield s(t.path);break}}}))}setup(){this.server=X.default(),this.server.get("*",(e,t,n)=>this.preprocess(e,t).then(()=>{t.finished||n()})).use(X.default.static(this.inputDir)).use(J.default(this.inputDir,{template:this.template.bind(this)}))}template(e,t){const{directory:n,path:r,fileList:o}=e,i=[];(()=>{K(this,void 0,void 0,(function*(){const e=yield this.loadScript();for(const e of o){const{name:t,stat:n}=e,r=null==n?void 0:n.isDirectory(),o=".."===t&&r,s="node_modules"===t&&r,a=!o&&(yield this.validateMarkdown(t,n)).valid;i.push({convertible:a,directory:r,name:t,nodeModules:s,parent:o,stat:n})}t(null,vs({directory:n,favicon:Ds,files:i,path:r,script:e,style:'body{background:#fff;color:#444;font-family:Helvetica,Arial,sans-serif;font-size:15px}h1{font-size:26px}ul#index{list-style:none;margin:1em 2em;max-width:720px;padding:0}ul#index li{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNzAgMzBMNTMuNTQgMTMuNTRDNTEuNTkgMTEuNTkgNTAgMTIuMjUgNTAgMTV2MjBhNSA1IDAgMDA1IDVoMjBhNSA1IDAgMDE1IDV2NDBhNSA1IDAgMDEtNSA1SDI1YTUgNSAwIDAxLTUtNVYxNWE1IDUgMCAwMTUtNWgxNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNjY2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iNSIvPjwvc3ZnPg==");background-size:24px 24px;background-repeat:no-repeat;background-position:0;display:flex;height:30px;margin:5px 0 0;opacity:.5;padding:0 0 0 calc(24px + .5em)}ul#index li.convertible{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+Lmx7ZmlsbDpub25lO3N0cm9rZTojMDI4OGQxO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6NXB4fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJsIiBkPSJNMzYuNzEgNzYuNzlsNTMuNTctNTMuNTh2NTMuNThIMzYuNzF6Ii8+PHBhdGggY2xhc3M9ImwiIGQ9Ik0xMCA3Ni43OWw1My41Ny01My41OHY1My41OEgxMHoiLz48L3N2Zz4=");opacity:1}ul#index li.directory{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNODIgMzBINTdhMTMuOTEgMTMuOTEgMCAwMS04LjU0LTMuNTRsLTIuOTItMi45MkExMy45MSAxMy45MSAwIDAwMzcgMjBIMTdhNSA1IDAgMDAtNSA1djUwYzAgMi43NS41NSAyLjgyIDEuMjEuMTVsNy41OC0zMC4zQTYuNzQgNi43NCAwIDAxMjcgNDBoNjBhMy43MyAzLjczIDAgMDEzLjc5IDQuODVsLTcuNTggMzAuM0E2Ljc0IDYuNzQgMCAwMTc3IDgwSDIyIiBmaWxsPSJub25lIiBzdHJva2U9IiM2NjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI1Ii8+PC9zdmc+")}ul#index li.directory:not(.nodeModules){opacity:1}ul#index li a.link{border-radius:5px;box-sizing:border-box;color:#02669d;display:block;height:30px;line-height:20px;padding:5px 10px;text-decoration:none}ul#index li a.link:focus,ul#index li a.link:hover{background:#f8f8f8;text-decoration:underline}ul#index li a.link:hover:active{background:#f0f0f0}ul#index li a.link.file{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}ul#index li a.link.pdf,ul#index li a.link.pptx{flex:0 1 auto;font-size:14px;margin:0 0 0 .5em}ul#index li a.link.pdf{color:#ee1d1f}ul#index li a.link.pptx{color:#b7472a}ul#index:not(.show-all) li.nodeModules,ul#index:not(.show-all) li:not(.convertible):not(.directory){display:none}#show-all-container{cursor:pointer;display:block;font-size:.85em;margin:1em 2em;max-width:720px;text-align:right}input.toggle[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#666;border-radius:16px;cursor:pointer;display:inline-block;height:16px;margin:0;outline:0;position:relative;transition:background-color .2s ease-out;vertical-align:middle;width:32px}input.toggle[type=checkbox]:before{border-radius:20px;border:1px solid transparent;bottom:-2px;box-sizing:border-box;content:"";display:block;left:-2px;opacity:.75;position:absolute;right:-2px;top:-2px;transition:border-color .2s ease-out}input.toggle[type=checkbox]:after{background:#fff;border-radius:12px;content:"";display:inline-block;height:12px;left:2px;margin:0 auto 0 0;position:absolute;top:2px;transition:left .2s ease-out;width:12px}input.toggle[type=checkbox]:focus:before{border-color:#555}input.toggle[type=checkbox]:checked{background-color:#6c6}input.toggle[type=checkbox]:checked:focus:before{border-color:#6c6}input.toggle[type=checkbox]:checked:after{left:calc(100% - 14px)}input.toggle[type=checkbox]:hover:active{background-color:#555;transition:none}input.toggle[type=checkbox]:hover:active:checked{background-color:#5b5}'}))}))})()}validateMarkdown(e,t){return K(this,void 0,void 0,(function*(){const n=M.default.extname(e).slice(1);let r=Xo.includes(n);const o=M.default.resolve(this.inputDir),i=M.default.join(o,decodeURIComponent(e));if(!i.startsWith(o))return{valid:!1,path:i};let s;try{s=t||(yield gs(i)),r=r&&!!(null==s?void 0:s.isFile())}catch(e){r=!1}return{valid:r,stats:s,path:i}}))}}function ws(e){return K(this,void 0,void 0,(function*(){let t="";const{engine:n}=e;return n.klass===a.Marp?(t="@marp-team/marp-core v"+A.version,n.package&&n.package.version!==A.version&&(t="user-installed @marp-team/marp-core v"+n.package.version)):t=n.package&&n.package.name&&n.package.version?`customized engine in ${n.package.name} v${n.package.version}`:"customized engine",console.log("@marp-team/marp-cli v0.21.1"+(t?` (w/ ${t})`:"")),0}))}var Fs;!function(e){e.Basic="Basic Options:",e.Converter="Converter Options:",e.Template="Template Options:",e.Meta="Meta Options:",e.Marp="Marp / Marpit Options:"}(Fs||(Fs={}));const ks=[],Es="\nUsage:\n  marp [options] <files...>\n  marp [options] -I <dir>\n".trim(),xs=(e,{stdin:t,throwErrorAlways:n})=>K(void 0,void 0,void 0,(function*(){let r,o;try{const n=P.default(e).usage(Es).help(!1).version(!1).options({version:{alias:"v",describe:"Show versions",group:Fs.Basic,type:"boolean"},help:{alias:"h",describe:"Show help",group:Fs.Basic,type:"boolean"},output:{alias:"o",describe:"Output file path (or directory when input-dir is passed)",group:Fs.Basic,type:"string"},"input-dir":{alias:"I",describe:"The base directory to find markdown and theme CSS",group:Fs.Basic,type:"string"},"config-file":{alias:["config","c"],describe:"Specify path to a configuration file",group:Fs.Basic,type:"string"},"no-config-file":{alias:["no-config"],type:"boolean",describe:"Prevent looking up for a configuration file",group:Fs.Basic},watch:{alias:"w",describe:"Watch input markdowns for changes",group:Fs.Basic,type:"boolean"},server:{alias:"s",describe:"Enable server mode",group:Fs.Basic,type:"boolean"},preview:{alias:"p",describe:"Open preview window (EXPERIMENTAL)",hidden:!!process.env.IS_DOCKER,group:Fs.Basic,type:"boolean"},stdin:{default:t,describe:"Read Markdown from stdin",hidden:!0,group:Fs.Basic,type:"boolean"},pdf:{conflicts:["image","images","pptx"],describe:"Convert slide deck into PDF",group:Fs.Converter,type:"boolean"},pptx:{conflicts:["pdf","image","images"],describe:"Convert slide deck into PowerPoint document",group:Fs.Converter,type:"boolean"},image:{conflicts:["pdf","images","pptx"],describe:"Convert the first slide page into an image file",group:Fs.Converter,choices:["png","jpeg"],coerce:e=>"jpg"===e?"jpeg":e,type:"string"},images:{conflicts:["pdf","image","pptx"],describe:"Convert slide deck into multiple image files",group:Fs.Converter,choices:["png","jpeg"],coerce:e=>"jpg"===e?"jpeg":e,type:"string"},"jpeg-quality":{defaultDescription:"85",describe:"Setting JPEG image quality",group:Fs.Converter,type:"number"},"allow-local-files":{describe:"Allow to access local files from Markdown while converting PDF and image (NOT SECURE)",group:Fs.Converter,type:"boolean"},template:{describe:"Choose template",defaultDescription:"bespoke",group:Fs.Template,choices:Object.keys(pi),type:"string"},"bespoke.osc":{describe:"[Bespoke] Use on-screen controller",defaultDescription:"true",group:Fs.Template,type:"boolean"},"bespoke.progress":{describe:"[Bespoke] Use progress bar",defaultDescription:"false",group:Fs.Template,type:"boolean"},title:{describe:"Define title of the slide deck",group:Fs.Meta,type:"string"},description:{describe:"Define description of the slide deck",group:Fs.Meta,type:"string"},url:{describe:"Define canonical URL",group:Fs.Meta,type:"string"},"og-image":{describe:"Define Open Graph image URL",group:Fs.Meta,type:"string"},engine:{describe:"Select Marpit based engine by module name or path",group:Fs.Marp,type:"string"},html:{describe:"Enable or disable HTML tag",group:Fs.Marp,type:"boolean"},theme:{describe:"Override theme by name or CSS file",group:Fs.Marp,type:"string"},"theme-set":{array:!0,describe:"Path to additional theme CSS files",group:Fs.Marp,type:"string"}}),i=n.argv;if(i.help)return n.showHelp(),0;const s=yield ps(i);if(i.version)return yield ws(s);const a=new Zi(yield s.converterOption()),u=a.options,c=()=>K(void 0,void 0,void 0,(function*(){if(u.inputDir)return s.files.length>0?(ft("Cannot pass files together with input directory."),[]):Ko.findDir(u.inputDir);return[i.stdin?yield Ko.stdin():void 0,...yield Ko.find(...s.files)].filter(e=>e)})),l=yield c(),{length:p}=l;if(0===p)return s.files.length>0&&dt("Not found processable Markdown file(s).\n"),n.showHelp(),s.files.length>0?1:0;const d=[],f=e=>{const{file:t,newFile:n}=e;if(!n)return;const r=(e,t)=>e.type===Jo.StandardIO?t:e.relativePath();d.push(n),pt(`${r(t,"<stdin>")} ${n.type===Jo.Null?"processed.":"=> "+r(n,"<stdout>")}`,{singleLine:!0})};try{u.server?yield a.convertFiles(l,{onlyScanning:!0}):(pt(`Converting ${p} markdown${p>1?"s":""}...`),yield a.convertFiles(l,{onConverted:f}))}catch(e){lo(`Failed converting Markdown. (${e.message})`,e.errorCode)}return u.watch?yield new Promise((e,t)=>K(void 0,void 0,void 0,(function*(){o=Ui([...u.inputDir?[u.inputDir]:s.files,...u.themeSet.fnForWatch],{converter:a,finder:c,events:{onConverted:f,onError:e=>ft(`Failed converting Markdown. (${e.message})`)},mode:u.server?Ti.WatchMode.Notify:Ti.WatchMode.Convert});const t=new ms;if(t.on("exit",()=>e(0)),t.on("opening",e=>{const t=`[Preview] (EXPERIMENTAL) Opening ${e.substr(0,50)}...`;pt(We.cyan(t))}),u.server){r=new Cs(a,{directoryIndex:["index.md","PITCHME.md"]}),r.on("converted",f),r.on("error",e=>ft(e.toString())),yield r.start();const e="http://localhost:"+r.port,n=`[Server mode] Start server listened at ${e}/ ...`;pt(We.green(n)),u.preview&&(yield t.open(e))}else if(pt(We.green("[Watch mode] Start watching...")),u.preview)for(const e of d)u.type!==zi.pptx&&(yield t.open(bs(e,u.type)));let n;for(;n=ks.shift();)n({stop:()=>e(0)})})).catch(t)):0}catch(e){if(n||!(e instanceof CLIError))throw e;return ft(e.message),e.errorCode}finally{Ri.stop(),yield Promise.all([Zi.closeBrowser(),null==r?void 0:r.stop(),null==o?void 0:o.chokidar.close()])}}));exports.C=CLIError,exports.a=(e=[])=>K(void 0,void 0,void 0,(function*(){return xs(e,{stdin:!1,throwErrorAlways:!0})})),exports.c=(e=[])=>xs(e,{stdin:!0,throwErrorAlways:!1}),exports.m=xs,exports.w=()=>new Promise(e=>{ks.push(e)});