favacli 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 622.bundle.js.LICENSE.txt */
2
- exports.id=622,exports.ids=[622],exports.modules={3622:(t,e,r)=>{const s=r(7540),n=r(1215),i=r(6123),o=r(3648),a=r(4859),u=r(9857),c=r(3190),h=r(9896),l=r(1145),p=r(8792),f=r(9266),{DOMPoint:m,DOMMatrix:d}=r(6583);e.Canvas=s,e.Context2d=i,e.CanvasRenderingContext2D=i,e.CanvasGradient=c.CanvasGradient,e.CanvasPattern=o,e.Image=n,e.ImageData=c.ImageData,e.PNGStream=l,e.PDFStream=p,e.JPEGStream=f,e.DOMMatrix=d,e.DOMPoint=m,e.registerFont=function(t,e){return s._registerFont(h.realpathSync(t),e)},e.deregisterAllFonts=function(){return s._deregisterAllFonts()},e.parseFont=a,e.createCanvas=function(t,e,r){return new s(t,e,r)},e.createImageData=function(t,e,r){return new c.ImageData(t,e,r)},e.loadImage=function(t){return new Promise(((e,r)=>{const s=new n;function i(){s.onload=null,s.onerror=null}s.onload=()=>{i(),e(s)},s.onerror=t=>{i(),r(t)},s.src=t}))},e.backends=c.Backends,e.version=u.version,e.cairoVersion=c.cairoVersion,e.jpegVersion=c.jpegVersion,e.gifVersion=c.gifVersion?c.gifVersion.replace(/[^.\d]/g,""):void 0,e.freetypeVersion=c.freetypeVersion,e.rsvgVersion=c.rsvgVersion,e.pangoVersion=c.pangoVersion},6583:(t,e,r)=>{"use strict";const s=r(9023);class n{constructor(t,e,r,s){"object"==typeof t&&null!==t&&(s=t.w,r=t.z,e=t.y,t=t.x),this.x="number"==typeof t?t:0,this.y="number"==typeof e?e:0,this.z="number"==typeof r?r:0,this.w="number"==typeof s?s:1}}const i=180/Math.PI,o=Math.PI/180;function a(t){const e=t.split("(",1)[0];switch(e){case"matrix":return function(t){let e=t.replace("matrix(","");if(e=e.split(",",7),6!==e.length)throw new Error(`Failed to parse ${t}`);return e=e.map(parseFloat),[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}(t);case"matrix3d":return function(t){let e=t.replace("matrix3d(","");if(e=e.split(",",17),16!==e.length)throw new Error(`Failed to parse ${t}`);return e.map(parseFloat)}(t);default:throw new Error(`${e} parsing not implemented`)}}class u{constructor(t){let e;if(this._is2D=!0,this._values=new Float64Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),"string"==typeof t){if(""===t)return;const r=t.split(/\)\s+/,20).map(a);if(0===r.length)return;for(t=r[0],e=1;e<r.length;e++)t=p(r[e],t)}if(e=0,t&&6===t.length)c(this,0,t[e++]),c(this,1,t[e++]),c(this,4,t[e++]),c(this,5,t[e++]),c(this,12,t[e++]),c(this,13,t[e++]);else if(t&&16===t.length)c(this,0,t[e++]),c(this,1,t[e++]),h(this,2,t[e++]),h(this,3,t[e++]),c(this,4,t[e++]),c(this,5,t[e++]),h(this,6,t[e++]),h(this,7,t[e++]),h(this,8,t[e++]),h(this,9,t[e++]),h(this,10,t[e++]),h(this,11,t[e++]),c(this,12,t[e++]),c(this,13,t[e++]),h(this,14,t[e++]),h(this,15,t[e]);else if(void 0!==t)throw new TypeError("Expected string or array.")}toString(){return this.is2D?`matrix(${this.a}, ${this.b}, ${this.c}, ${this.d}, ${this.e}, ${this.f})`:`matrix3d(${this._values.join(", ")})`}multiply(t){return l(this._values).multiplySelf(t)}multiplySelf(t){return this._values=p(t._values,this._values),t.is2D||(this._is2D=!1),this}preMultiplySelf(t){return this._values=p(this._values,t._values),t.is2D||(this._is2D=!1),this}translate(t,e,r){return l(this._values).translateSelf(t,e,r)}translateSelf(t,e,r){return"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0),this._values=p([1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1],this._values),0!==r&&(this._is2D=!1),this}scale(t,e,r,s,n,i){return l(this._values).scaleSelf(t,e,r,s,n,i)}scale3d(t,e,r,s){return l(this._values).scale3dSelf(t,e,r,s)}scale3dSelf(t,e,r,s){return this.scaleSelf(t,t,t,e,r,s)}scaleSelf(t,e,r,s,n,i){return"number"!=typeof s&&(s=0),"number"!=typeof n&&(n=0),"number"!=typeof i&&(i=0),this.translateSelf(s,n,i),"number"!=typeof t&&(t=1),"number"!=typeof e&&(e=t),"number"!=typeof r&&(r=1),this._values=p([t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1],this._values),this.translateSelf(-s,-n,-i),1===r&&0===i||(this._is2D=!1),this}rotateFromVector(t,e){return l(this._values).rotateFromVectorSelf(t,e)}rotateFromVectorSelf(t,e){"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0);const r=0===t&&0===e?0:Math.atan2(e,t)*i;return this.rotateSelf(r)}rotate(t,e,r){return l(this._values).rotateSelf(t,e,r)}rotateSelf(t,e,r){let s,n;return void 0===e&&void 0===r&&(r=t,t=e=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0),0===t&&0===e||(this._is2D=!1),t*=o,e*=o,r*=o,s=Math.cos(r),n=Math.sin(r),this._values=p([s,n,0,0,-n,s,0,0,0,0,1,0,0,0,0,1],this._values),s=Math.cos(e),n=Math.sin(e),this._values=p([s,0,-n,0,0,1,0,0,n,0,s,0,0,0,0,1],this._values),s=Math.cos(t),n=Math.sin(t),this._values=p([1,0,0,0,0,s,n,0,0,-n,s,0,0,0,0,1],this._values),this}rotateAxisAngle(t,e,r,s){return l(this._values).rotateAxisAngleSelf(t,e,r,s)}rotateAxisAngleSelf(t,e,r,s){"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0);const n=Math.sqrt(t*t+e*e+r*r);if(0===n)return this;1!==n&&(t/=n,e/=n,r/=n),s*=o;const i=Math.cos(s),a=Math.sin(s),u=1-i,c=u*t,h=u*e;return this._values=p([c*t+i,c*e+a*r,c*r-a*e,0,c*e-a*r,h*e+i,h*r+a*t,0,c*r+a*e,h*r-a*t,u*r*r+i,0,0,0,0,1],this._values),0===t&&0===e||(this._is2D=!1),this}skewX(t){return l(this._values).skewXSelf(t)}skewXSelf(t){if("number"!=typeof t)return this;const e=Math.tan(t*o);return this._values=p([1,0,0,0,e,1,0,0,0,0,1,0,0,0,0,1],this._values),this}skewY(t){return l(this._values).skewYSelf(t)}skewYSelf(t){if("number"!=typeof t)return this;const e=Math.tan(t*o);return this._values=p([1,e,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this._values),this}flipX(){return l(p([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this._values))}flipY(){return l(p([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1],this._values))}inverse(){return l(this._values).invertSelf()}invertSelf(){const t=this._values,e=t.map((t=>0));e[0]=t[5]*t[10]*t[15]-t[5]*t[11]*t[14]-t[9]*t[6]*t[15]+t[9]*t[7]*t[14]+t[13]*t[6]*t[11]-t[13]*t[7]*t[10],e[4]=-t[4]*t[10]*t[15]+t[4]*t[11]*t[14]+t[8]*t[6]*t[15]-t[8]*t[7]*t[14]-t[12]*t[6]*t[11]+t[12]*t[7]*t[10],e[8]=t[4]*t[9]*t[15]-t[4]*t[11]*t[13]-t[8]*t[5]*t[15]+t[8]*t[7]*t[13]+t[12]*t[5]*t[11]-t[12]*t[7]*t[9],e[12]=-t[4]*t[9]*t[14]+t[4]*t[10]*t[13]+t[8]*t[5]*t[14]-t[8]*t[6]*t[13]-t[12]*t[5]*t[10]+t[12]*t[6]*t[9];const r=t[0]*e[0]+t[1]*e[4]+t[2]*e[8]+t[3]*e[12];return 0===r?(this._values=t.map((t=>NaN)),this._is2D=!1,this):(e[1]=-t[1]*t[10]*t[15]+t[1]*t[11]*t[14]+t[9]*t[2]*t[15]-t[9]*t[3]*t[14]-t[13]*t[2]*t[11]+t[13]*t[3]*t[10],e[5]=t[0]*t[10]*t[15]-t[0]*t[11]*t[14]-t[8]*t[2]*t[15]+t[8]*t[3]*t[14]+t[12]*t[2]*t[11]-t[12]*t[3]*t[10],e[9]=-t[0]*t[9]*t[15]+t[0]*t[11]*t[13]+t[8]*t[1]*t[15]-t[8]*t[3]*t[13]-t[12]*t[1]*t[11]+t[12]*t[3]*t[9],e[13]=t[0]*t[9]*t[14]-t[0]*t[10]*t[13]-t[8]*t[1]*t[14]+t[8]*t[2]*t[13]+t[12]*t[1]*t[10]-t[12]*t[2]*t[9],e[2]=t[1]*t[6]*t[15]-t[1]*t[7]*t[14]-t[5]*t[2]*t[15]+t[5]*t[3]*t[14]+t[13]*t[2]*t[7]-t[13]*t[3]*t[6],e[6]=-t[0]*t[6]*t[15]+t[0]*t[7]*t[14]+t[4]*t[2]*t[15]-t[4]*t[3]*t[14]-t[12]*t[2]*t[7]+t[12]*t[3]*t[6],e[10]=t[0]*t[5]*t[15]-t[0]*t[7]*t[13]-t[4]*t[1]*t[15]+t[4]*t[3]*t[13]+t[12]*t[1]*t[7]-t[12]*t[3]*t[5],e[14]=-t[0]*t[5]*t[14]+t[0]*t[6]*t[13]+t[4]*t[1]*t[14]-t[4]*t[2]*t[13]-t[12]*t[1]*t[6]+t[12]*t[2]*t[5],e[3]=-t[1]*t[6]*t[11]+t[1]*t[7]*t[10]+t[5]*t[2]*t[11]-t[5]*t[3]*t[10]-t[9]*t[2]*t[7]+t[9]*t[3]*t[6],e[7]=t[0]*t[6]*t[11]-t[0]*t[7]*t[10]-t[4]*t[2]*t[11]+t[4]*t[3]*t[10]+t[8]*t[2]*t[7]-t[8]*t[3]*t[6],e[11]=-t[0]*t[5]*t[11]+t[0]*t[7]*t[9]+t[4]*t[1]*t[11]-t[4]*t[3]*t[9]-t[8]*t[1]*t[7]+t[8]*t[3]*t[5],e[15]=t[0]*t[5]*t[10]-t[0]*t[6]*t[9]-t[4]*t[1]*t[10]+t[4]*t[2]*t[9]+t[8]*t[1]*t[6]-t[8]*t[2]*t[5],e.forEach(((t,s)=>{e[s]=t/r})),this._values=e,this)}setMatrixValue(t){const e=new u(t);return this._values=e._values,this._is2D=e._is2D,this}transformPoint(t){const e=(t=new n(t)).x,r=t.y,s=t.z,i=t.w,o=this._values,a=o[0]*e+o[4]*r+o[8]*s+o[12]*i,u=o[1]*e+o[5]*r+o[9]*s+o[13]*i,c=o[2]*e+o[6]*r+o[10]*s+o[14]*i,h=o[3]*e+o[7]*r+o[11]*s+o[15]*i;return new n(a,u,c,h)}toFloat32Array(){return Float32Array.from(this._values)}toFloat64Array(){return this._values.slice(0)}static fromMatrix(t){if(!(t instanceof u))throw new TypeError("Expected DOMMatrix");return new u(t._values)}static fromFloat32Array(t){if(!(t instanceof Float32Array))throw new TypeError("Expected Float32Array");return new u(t)}static fromFloat64Array(t){if(!(t instanceof Float64Array))throw new TypeError("Expected Float64Array");return new u(t)}[s.inspect.custom||"inspect"](t,e){return t<0?"[DOMMatrix]":`DOMMatrix [\n a: ${this.a}\n b: ${this.b}\n c: ${this.c}\n d: ${this.d}\n e: ${this.e}\n f: ${this.f}\n m11: ${this.m11}\n m12: ${this.m12}\n m13: ${this.m13}\n m14: ${this.m14}\n m21: ${this.m21}\n m22: ${this.m22}\n m23: ${this.m23}\n m23: ${this.m23}\n m31: ${this.m31}\n m32: ${this.m32}\n m33: ${this.m33}\n m34: ${this.m34}\n m41: ${this.m41}\n m42: ${this.m42}\n m43: ${this.m43}\n m44: ${this.m44}\n is2D: ${this.is2D}\n isIdentity: ${this.isIdentity} ]`}}function c(t,e,r){if("number"!=typeof r)throw new TypeError("Expected number");return t._values[e]=r}function h(t,e,r){if("number"!=typeof r)throw new TypeError("Expected number");return 10===e||15===e?1!==r&&(t._is2D=!1):0!==r&&(t._is2D=!1),t._values[e]=r}function l(t){const e=Object.create(u.prototype);return e.constructor=u,e._is2D=!0,e._values=t,e}function p(t,e){const r=new Float64Array(16);for(let s=0;s<4;s++)for(let n=0;n<4;n++){let i=0;for(let r=0;r<4;r++)i+=t[4*s+r]*e[4*r+n];r[4*s+n]=i}return r}Object.defineProperties(u.prototype,{m11:{get(){return this._values[0]},set(t){return c(this,0,t)}},m12:{get(){return this._values[1]},set(t){return c(this,1,t)}},m13:{get(){return this._values[2]},set(t){return h(this,2,t)}},m14:{get(){return this._values[3]},set(t){return h(this,3,t)}},m21:{get(){return this._values[4]},set(t){return c(this,4,t)}},m22:{get(){return this._values[5]},set(t){return c(this,5,t)}},m23:{get(){return this._values[6]},set(t){return h(this,6,t)}},m24:{get(){return this._values[7]},set(t){return h(this,7,t)}},m31:{get(){return this._values[8]},set(t){return h(this,8,t)}},m32:{get(){return this._values[9]},set(t){return h(this,9,t)}},m33:{get(){return this._values[10]},set(t){return h(this,10,t)}},m34:{get(){return this._values[11]},set(t){return h(this,11,t)}},m41:{get(){return this._values[12]},set(t){return c(this,12,t)}},m42:{get(){return this._values[13]},set(t){return c(this,13,t)}},m43:{get(){return this._values[14]},set(t){return h(this,14,t)}},m44:{get(){return this._values[15]},set(t){return h(this,15,t)}},a:{get(){return this.m11},set(t){return this.m11=t}},b:{get(){return this.m12},set(t){return this.m12=t}},c:{get(){return this.m21},set(t){return this.m21=t}},d:{get(){return this.m22},set(t){return this.m22=t}},e:{get(){return this.m41},set(t){return this.m41=t}},f:{get(){return this.m42},set(t){return this.m42=t}},is2D:{get(){return this._is2D}},isIdentity:{get(){const t=this._values;return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]}}}),t.exports={DOMMatrix:u,DOMPoint:n}},3190:(t,e,r)=>{"use strict";const s=r(3985);t.exports=s,s.ImageData.prototype.toString=function(){return"[object ImageData]"},s.CanvasGradient.prototype.toString=function(){return"[object CanvasGradient]"}},7540:(t,e,r)=>{"use strict";const s=r(3190),n=t.exports=s.Canvas,i=r(6123),o=r(1145),a=r(8792),u=r(9266),c=["image/png","image/jpeg"],h=r(9023);n.prototype[h.inspect.custom||"inspect"]=function(){return`[Canvas ${this.width}x${this.height}]`},n.prototype.getContext=function(t,e){if("2d"==t){const t=this._context2d||(this._context2d=new i(this,e));return this.context=t,t.canvas=this,t}},n.prototype.pngStream=n.prototype.createPNGStream=function(t){return new o(this,t)},n.prototype.pdfStream=n.prototype.createPDFStream=function(t){return new a(this,t)},n.prototype.jpegStream=n.prototype.createJPEGStream=function(t){return new u(this,t)},n.prototype.toDataURL=function(t,e,r){let s,n="image/png",i={};if("function"==typeof t)s=t;else if("string"==typeof t&&c.includes(t.toLowerCase())&&(n=t.toLowerCase()),"function"==typeof e)s=e;else if("object"==typeof e?i=e:"number"==typeof e&&(i={quality:Math.max(0,Math.min(1,e))}),"function"==typeof r)s=r;else if(void 0!==r)throw new TypeError(typeof r+" is not a function");if(0===this.width||0===this.height){const t="data:,";return s?void setTimeout((()=>s(null,t))):t}if(!s)return`data:${n};base64,${this.toBuffer(n,i).toString("base64")}`;this.toBuffer(((t,e)=>{if(t)return s(t);s(null,`data:${n};base64,${e.toString("base64")}`)}),n,i)}},6123:(t,e,r)=>{"use strict";const s=r(3190),n=r(4859),{DOMMatrix:i}=r(6583);s.CanvasRenderingContext2dInit(i,n),t.exports=s.CanvasRenderingContext2d},1215:(t,e,r)=>{"use strict";const s=r(3190),n=t.exports=s.Image,i=r(9023);let o;const{GetSource:a,SetSource:u}=s;function c(t,e,r){u.call(t,e),t._originalSource=r}Object.defineProperty(n.prototype,"src",{set(t){if("string"==typeof t)if(/^\s*data:/.test(t)){const e=t.indexOf(","),r=-1!==t.lastIndexOf("base64",e),s=t.slice(e+1);c(this,Buffer.from(s,r?"base64":"utf8"),t)}else if(/^\s*https?:\/\//.test(t)){const e=t=>{if("function"!=typeof this.onerror)throw t;this.onerror(t)};o||(o=r(8885)),o.concat({url:t,headers:{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"}},((t,r,s)=>t?e(t):r.statusCode<200||r.statusCode>=300?e(new Error(`Server responded with ${r.statusCode}`)):void c(this,s)))}else c(this,t);else Buffer.isBuffer(t)&&c(this,t)},get(){return this._originalSource||a.call(this)},configurable:!0}),n.prototype[i.inspect.custom||"inspect"]=function(){return"[Image"+(this.complete?":"+this.width+"x"+this.height:"")+(this.src?" "+this.src:"")+(this.complete?" complete":"")+"]"}},9266:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){if(super(),void 0===t.streamJPEGSync)throw new Error("node-canvas was built without JPEG support.");this.options=e,this.canvas=t}_read(){this._read=n,this.canvas.streamJPEGSync(this.options,((t,e)=>{t?this.emit("error",t):e?this.push(e):this.push(null)}))}}},4859:t=>{"use strict";const e="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",r=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),s=new RegExp("(italic|oblique) +","i"),n=new RegExp("(small-caps) +","i"),i=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),o=new RegExp(`([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:${e})( *, *(?:${e}))*)`),a={};t.exports=t=>{if(a[t])return a[t];const e=o.exec(t);if(!e)return;const u={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(e[1]),unit:e[2],family:e[3].replace(/["']/g,"").replace(/ *, */g,",")};let c,h,l,p;const f=t.substring(0,e.index);switch((c=r.exec(f))&&(u.weight=c[1]),(h=s.exec(f))&&(u.style=h[1]),(l=n.exec(f))&&(u.variant=l[1]),(p=i.exec(f))&&(u.stretch=p[1]),u.unit){case"pt":u.size/=.75;break;case"pc":u.size*=16;break;case"in":u.size*=96;break;case"cm":u.size*=96/2.54;break;case"mm":u.size*=96/25.4;break;case"%":break;case"em":case"rem":u.size*=16/.75;break;case"q":u.size*=96/25.4/4}return a[t]=u}},3648:(t,e,r)=>{"use strict";const s=r(3190),{DOMMatrix:n}=r(6583);s.CanvasPatternInit(n),t.exports=s.CanvasPattern,s.CanvasPattern.prototype.toString=function(){return"[object CanvasPattern]"}},8792:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){super(),this.canvas=t,this.options=e}_read(){this._read=n,this.canvas.streamPDFSync(((t,e,r)=>{t?this.emit("error",t):r?this.push(e):this.push(null)}),this.options)}}},1145:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){if(super(),e&&e.palette instanceof Uint8ClampedArray&&e.palette.length%4!=0)throw new Error("Palette length must be a multiple of 4.");this.canvas=t,this.options=e||{}}_read(){this._read=n,this.canvas.streamPNGSync(((t,e,r)=>{t?this.emit("error",t):r?this.push(e):this.push(null)}),this.options)}}},4783:(t,e,r)=>{"use strict";const{PassThrough:s}=r(2203),n=r(3106),i=r(1269),o=t=>{const e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;const r="br"===e;if(r&&"function"!=typeof n.createBrotliDecompress)return t;const o=r?n.createBrotliDecompress():n.createUnzip(),a=new s;return i(t,a),o.on("error",(t=>{"Z_BUF_ERROR"!==t.code?a.emit("error",t):a.end()})),t.pipe(o).pipe(a),a};t.exports=o,t.exports.default=o},1269:t=>{"use strict";const e=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];t.exports=(t,r)=>{const s=new Set(Object.keys(t).concat(e));for(const e of s)e in r||(r[e]="function"==typeof t[e]?t[e].bind(t):t[e]);return r}},3985:(t,e,r)=>{t=r.nmd(t);try{process.dlopen(t,__dirname+r(6928).sep+r.p+"1f6b895ee52944cdc760af87cc0776cf.node")}catch(t){throw new Error("node-loader:\n"+t)}},3358:(t,e,r)=>{var s=r(7086);function n(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function i(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=s(n),t.exports.strict=s(i),n.proto=n((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},5127:t=>{t.exports=function(t,e){var r=[];t.on("data",(function(t){r.push(t)})),t.once("end",(function(){e&&e(null,Buffer.concat(r)),e=null})),t.once("error",(function(t){e&&e(t),e=null}))}},8885:(t,e,r)=>{t.exports=l;const s=r(5127),n=r(4783),i=r(8611),o=r(5692),a=r(3358),u=r(3480),c=r(7016),h=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;function l(t,e){if(t=Object.assign({maxRedirects:10},"string"==typeof t?{url:t}:t),e=a(e),t.url){const{hostname:e,port:r,protocol:s,auth:n,path:i}=c.parse(t.url);delete t.url,e||r||s||n?Object.assign(t,{hostname:e,port:r,protocol:s,auth:n,path:i}):t.path=i}const r={"accept-encoding":"gzip, deflate"};let s;t.headers&&Object.keys(t.headers).forEach((e=>r[e.toLowerCase()]=t.headers[e])),t.headers=r,t.body?s=t.json&&!h(t.body)?JSON.stringify(t.body):t.body:t.form&&(s="string"==typeof t.form?t.form:u.stringify(t.form),t.headers["content-type"]="application/x-www-form-urlencoded"),s&&(t.method||(t.method="POST"),h(s)||(t.headers["content-length"]=Buffer.byteLength(s)),t.json&&!t.form&&(t.headers["content-type"]="application/json")),delete t.body,delete t.form,t.json&&(t.headers.accept="application/json"),t.method&&(t.method=t.method.toUpperCase());const p=t.hostname,f=("https:"===t.protocol?o:i).request(t,(r=>{if(!1!==t.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){t.url=r.headers.location,delete t.headers.host,r.resume();const s=c.parse(t.url).hostname;return null!==s&&s!==p&&(delete t.headers.cookie,delete t.headers.authorization),"POST"===t.method&&[301,302].includes(r.statusCode)&&(t.method="GET",delete t.headers["content-length"],delete t.headers["content-type"]),0==t.maxRedirects--?e(new Error("too many redirects")):l(t,e)}const s="function"==typeof n&&"HEAD"!==t.method;e(null,s?n(r):r)}));return f.on("timeout",(()=>{f.abort(),e(new Error("Request timed out"))})),f.on("error",e),h(s)?s.on("error",e).pipe(f):f.end(s),f}l.concat=(t,e)=>l(t,((r,n)=>{if(r)return e(r);s(n,((r,s)=>{if(r)return e(r);if(t.json)try{s=JSON.parse(s.toString())}catch(r){return e(r,n,s)}e(null,n,s)}))})),["get","post","put","patch","head","delete"].forEach((t=>{l[t]=(e,r)=>("string"==typeof e&&(e={url:e}),l(Object.assign({method:t.toUpperCase()},e),r))}))},7086:t=>{t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){s[t]=e[t]})),s;function s(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var s=e.apply(this,t),n=t[t.length-1];return"function"==typeof s&&s!==n&&Object.keys(n).forEach((function(t){s[t]=n[t]})),s}}},9857:t=>{"use strict";t.exports=JSON.parse('{"name":"canvas","description":"Canvas graphics API backed by Cairo","version":"2.11.2","author":"TJ Holowaychuk <tj@learnboost.com>","main":"index.js","browser":"browser.js","contributors":["Nathan Rajlich <nathan@tootallnate.net>","Rod Vagg <r@va.gg>","Juriy Zaytsev <kangax@gmail.com>"],"keywords":["canvas","graphic","graphics","pixman","cairo","image","images","pdf"],"homepage":"https://github.com/Automattic/node-canvas","repository":"git://github.com/Automattic/node-canvas.git","scripts":{"prebenchmark":"node-gyp build","benchmark":"node benchmarks/run.js","lint":"standard examples/*.js test/server.js test/public/*.js benchmarks/run.js lib/context2d.js util/has_lib.js browser.js index.js","test":"mocha test/*.test.js","pretest-server":"node-gyp build","test-server":"node test/server.js","generate-wpt":"node ./test/wpt/generate.js","test-wpt":"mocha test/wpt/generated/*.js","install":"node-pre-gyp install --fallback-to-build --update-binary","dtslint":"dtslint types"},"binary":{"module_name":"canvas","module_path":"build/Release","host":"https://github.com/Automattic/node-canvas/releases/download/","remote_path":"v{version}","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"},"files":["binding.gyp","lib/","src/","util/","types/index.d.ts"],"types":"types/index.d.ts","dependencies":{"@mapbox/node-pre-gyp":"^1.0.0","nan":"^2.17.0","simple-get":"^3.0.3"},"devDependencies":{"@types/node":"^10.12.18","assert-rejects":"^1.0.0","dtslint":"^4.0.7","express":"^4.16.3","js-yaml":"^4.1.0","mocha":"^5.2.0","pixelmatch":"^4.0.2","standard":"^12.0.1","typescript":"^4.2.2"},"engines":{"node":">=6"},"license":"MIT"}')}};
2
+ exports.id=622,exports.ids=[622],exports.modules={3622:(t,e,r)=>{const s=r(7540),n=r(1215),i=r(6123),o=r(3648),a=r(4859),u=r(9857),c=r(3190),h=r(9896),l=r(1145),p=r(8792),f=r(9266),{DOMPoint:m,DOMMatrix:d}=r(6583);e.Canvas=s,e.Context2d=i,e.CanvasRenderingContext2D=i,e.CanvasGradient=c.CanvasGradient,e.CanvasPattern=o,e.Image=n,e.ImageData=c.ImageData,e.PNGStream=l,e.PDFStream=p,e.JPEGStream=f,e.DOMMatrix=d,e.DOMPoint=m,e.registerFont=function(t,e){return s._registerFont(h.realpathSync(t),e)},e.deregisterAllFonts=function(){return s._deregisterAllFonts()},e.parseFont=a,e.createCanvas=function(t,e,r){return new s(t,e,r)},e.createImageData=function(t,e,r){return new c.ImageData(t,e,r)},e.loadImage=function(t){return new Promise(((e,r)=>{const s=new n;function i(){s.onload=null,s.onerror=null}s.onload=()=>{i(),e(s)},s.onerror=t=>{i(),r(t)},s.src=t}))},e.backends=c.Backends,e.version=u.version,e.cairoVersion=c.cairoVersion,e.jpegVersion=c.jpegVersion,e.gifVersion=c.gifVersion?c.gifVersion.replace(/[^.\d]/g,""):void 0,e.freetypeVersion=c.freetypeVersion,e.rsvgVersion=c.rsvgVersion,e.pangoVersion=c.pangoVersion},6583:(t,e,r)=>{"use strict";const s=r(9023);class n{constructor(t,e,r,s){"object"==typeof t&&null!==t&&(s=t.w,r=t.z,e=t.y,t=t.x),this.x="number"==typeof t?t:0,this.y="number"==typeof e?e:0,this.z="number"==typeof r?r:0,this.w="number"==typeof s?s:1}}const i=180/Math.PI,o=Math.PI/180;function a(t){const e=t.split("(",1)[0];switch(e){case"matrix":return function(t){let e=t.replace("matrix(","");if(e=e.split(",",7),6!==e.length)throw new Error(`Failed to parse ${t}`);return e=e.map(parseFloat),[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}(t);case"matrix3d":return function(t){let e=t.replace("matrix3d(","");if(e=e.split(",",17),16!==e.length)throw new Error(`Failed to parse ${t}`);return e.map(parseFloat)}(t);default:throw new Error(`${e} parsing not implemented`)}}class u{constructor(t){let e;if(this._is2D=!0,this._values=new Float64Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),"string"==typeof t){if(""===t)return;const r=t.split(/\)\s+/,20).map(a);if(0===r.length)return;for(t=r[0],e=1;e<r.length;e++)t=p(r[e],t)}if(e=0,t&&6===t.length)c(this,0,t[e++]),c(this,1,t[e++]),c(this,4,t[e++]),c(this,5,t[e++]),c(this,12,t[e++]),c(this,13,t[e++]);else if(t&&16===t.length)c(this,0,t[e++]),c(this,1,t[e++]),h(this,2,t[e++]),h(this,3,t[e++]),c(this,4,t[e++]),c(this,5,t[e++]),h(this,6,t[e++]),h(this,7,t[e++]),h(this,8,t[e++]),h(this,9,t[e++]),h(this,10,t[e++]),h(this,11,t[e++]),c(this,12,t[e++]),c(this,13,t[e++]),h(this,14,t[e++]),h(this,15,t[e]);else if(void 0!==t)throw new TypeError("Expected string or array.")}toString(){return this.is2D?`matrix(${this.a}, ${this.b}, ${this.c}, ${this.d}, ${this.e}, ${this.f})`:`matrix3d(${this._values.join(", ")})`}multiply(t){return l(this._values).multiplySelf(t)}multiplySelf(t){return this._values=p(t._values,this._values),t.is2D||(this._is2D=!1),this}preMultiplySelf(t){return this._values=p(this._values,t._values),t.is2D||(this._is2D=!1),this}translate(t,e,r){return l(this._values).translateSelf(t,e,r)}translateSelf(t,e,r){return"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0),this._values=p([1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1],this._values),0!==r&&(this._is2D=!1),this}scale(t,e,r,s,n,i){return l(this._values).scaleSelf(t,e,r,s,n,i)}scale3d(t,e,r,s){return l(this._values).scale3dSelf(t,e,r,s)}scale3dSelf(t,e,r,s){return this.scaleSelf(t,t,t,e,r,s)}scaleSelf(t,e,r,s,n,i){return"number"!=typeof s&&(s=0),"number"!=typeof n&&(n=0),"number"!=typeof i&&(i=0),this.translateSelf(s,n,i),"number"!=typeof t&&(t=1),"number"!=typeof e&&(e=t),"number"!=typeof r&&(r=1),this._values=p([t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1],this._values),this.translateSelf(-s,-n,-i),1===r&&0===i||(this._is2D=!1),this}rotateFromVector(t,e){return l(this._values).rotateFromVectorSelf(t,e)}rotateFromVectorSelf(t,e){"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0);const r=0===t&&0===e?0:Math.atan2(e,t)*i;return this.rotateSelf(r)}rotate(t,e,r){return l(this._values).rotateSelf(t,e,r)}rotateSelf(t,e,r){let s,n;return void 0===e&&void 0===r&&(r=t,t=e=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0),0===t&&0===e||(this._is2D=!1),t*=o,e*=o,r*=o,s=Math.cos(r),n=Math.sin(r),this._values=p([s,n,0,0,-n,s,0,0,0,0,1,0,0,0,0,1],this._values),s=Math.cos(e),n=Math.sin(e),this._values=p([s,0,-n,0,0,1,0,0,n,0,s,0,0,0,0,1],this._values),s=Math.cos(t),n=Math.sin(t),this._values=p([1,0,0,0,0,s,n,0,0,-n,s,0,0,0,0,1],this._values),this}rotateAxisAngle(t,e,r,s){return l(this._values).rotateAxisAngleSelf(t,e,r,s)}rotateAxisAngleSelf(t,e,r,s){"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0);const n=Math.sqrt(t*t+e*e+r*r);if(0===n)return this;1!==n&&(t/=n,e/=n,r/=n),s*=o;const i=Math.cos(s),a=Math.sin(s),u=1-i,c=u*t,h=u*e;return this._values=p([c*t+i,c*e+a*r,c*r-a*e,0,c*e-a*r,h*e+i,h*r+a*t,0,c*r+a*e,h*r-a*t,u*r*r+i,0,0,0,0,1],this._values),0===t&&0===e||(this._is2D=!1),this}skewX(t){return l(this._values).skewXSelf(t)}skewXSelf(t){if("number"!=typeof t)return this;const e=Math.tan(t*o);return this._values=p([1,0,0,0,e,1,0,0,0,0,1,0,0,0,0,1],this._values),this}skewY(t){return l(this._values).skewYSelf(t)}skewYSelf(t){if("number"!=typeof t)return this;const e=Math.tan(t*o);return this._values=p([1,e,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this._values),this}flipX(){return l(p([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this._values))}flipY(){return l(p([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1],this._values))}inverse(){return l(this._values).invertSelf()}invertSelf(){const t=this._values,e=t.map((t=>0));e[0]=t[5]*t[10]*t[15]-t[5]*t[11]*t[14]-t[9]*t[6]*t[15]+t[9]*t[7]*t[14]+t[13]*t[6]*t[11]-t[13]*t[7]*t[10],e[4]=-t[4]*t[10]*t[15]+t[4]*t[11]*t[14]+t[8]*t[6]*t[15]-t[8]*t[7]*t[14]-t[12]*t[6]*t[11]+t[12]*t[7]*t[10],e[8]=t[4]*t[9]*t[15]-t[4]*t[11]*t[13]-t[8]*t[5]*t[15]+t[8]*t[7]*t[13]+t[12]*t[5]*t[11]-t[12]*t[7]*t[9],e[12]=-t[4]*t[9]*t[14]+t[4]*t[10]*t[13]+t[8]*t[5]*t[14]-t[8]*t[6]*t[13]-t[12]*t[5]*t[10]+t[12]*t[6]*t[9];const r=t[0]*e[0]+t[1]*e[4]+t[2]*e[8]+t[3]*e[12];return 0===r?(this._values=t.map((t=>NaN)),this._is2D=!1,this):(e[1]=-t[1]*t[10]*t[15]+t[1]*t[11]*t[14]+t[9]*t[2]*t[15]-t[9]*t[3]*t[14]-t[13]*t[2]*t[11]+t[13]*t[3]*t[10],e[5]=t[0]*t[10]*t[15]-t[0]*t[11]*t[14]-t[8]*t[2]*t[15]+t[8]*t[3]*t[14]+t[12]*t[2]*t[11]-t[12]*t[3]*t[10],e[9]=-t[0]*t[9]*t[15]+t[0]*t[11]*t[13]+t[8]*t[1]*t[15]-t[8]*t[3]*t[13]-t[12]*t[1]*t[11]+t[12]*t[3]*t[9],e[13]=t[0]*t[9]*t[14]-t[0]*t[10]*t[13]-t[8]*t[1]*t[14]+t[8]*t[2]*t[13]+t[12]*t[1]*t[10]-t[12]*t[2]*t[9],e[2]=t[1]*t[6]*t[15]-t[1]*t[7]*t[14]-t[5]*t[2]*t[15]+t[5]*t[3]*t[14]+t[13]*t[2]*t[7]-t[13]*t[3]*t[6],e[6]=-t[0]*t[6]*t[15]+t[0]*t[7]*t[14]+t[4]*t[2]*t[15]-t[4]*t[3]*t[14]-t[12]*t[2]*t[7]+t[12]*t[3]*t[6],e[10]=t[0]*t[5]*t[15]-t[0]*t[7]*t[13]-t[4]*t[1]*t[15]+t[4]*t[3]*t[13]+t[12]*t[1]*t[7]-t[12]*t[3]*t[5],e[14]=-t[0]*t[5]*t[14]+t[0]*t[6]*t[13]+t[4]*t[1]*t[14]-t[4]*t[2]*t[13]-t[12]*t[1]*t[6]+t[12]*t[2]*t[5],e[3]=-t[1]*t[6]*t[11]+t[1]*t[7]*t[10]+t[5]*t[2]*t[11]-t[5]*t[3]*t[10]-t[9]*t[2]*t[7]+t[9]*t[3]*t[6],e[7]=t[0]*t[6]*t[11]-t[0]*t[7]*t[10]-t[4]*t[2]*t[11]+t[4]*t[3]*t[10]+t[8]*t[2]*t[7]-t[8]*t[3]*t[6],e[11]=-t[0]*t[5]*t[11]+t[0]*t[7]*t[9]+t[4]*t[1]*t[11]-t[4]*t[3]*t[9]-t[8]*t[1]*t[7]+t[8]*t[3]*t[5],e[15]=t[0]*t[5]*t[10]-t[0]*t[6]*t[9]-t[4]*t[1]*t[10]+t[4]*t[2]*t[9]+t[8]*t[1]*t[6]-t[8]*t[2]*t[5],e.forEach(((t,s)=>{e[s]=t/r})),this._values=e,this)}setMatrixValue(t){const e=new u(t);return this._values=e._values,this._is2D=e._is2D,this}transformPoint(t){const e=(t=new n(t)).x,r=t.y,s=t.z,i=t.w,o=this._values,a=o[0]*e+o[4]*r+o[8]*s+o[12]*i,u=o[1]*e+o[5]*r+o[9]*s+o[13]*i,c=o[2]*e+o[6]*r+o[10]*s+o[14]*i,h=o[3]*e+o[7]*r+o[11]*s+o[15]*i;return new n(a,u,c,h)}toFloat32Array(){return Float32Array.from(this._values)}toFloat64Array(){return this._values.slice(0)}static fromMatrix(t){if(!(t instanceof u))throw new TypeError("Expected DOMMatrix");return new u(t._values)}static fromFloat32Array(t){if(!(t instanceof Float32Array))throw new TypeError("Expected Float32Array");return new u(t)}static fromFloat64Array(t){if(!(t instanceof Float64Array))throw new TypeError("Expected Float64Array");return new u(t)}[s.inspect.custom||"inspect"](t,e){return t<0?"[DOMMatrix]":`DOMMatrix [\n a: ${this.a}\n b: ${this.b}\n c: ${this.c}\n d: ${this.d}\n e: ${this.e}\n f: ${this.f}\n m11: ${this.m11}\n m12: ${this.m12}\n m13: ${this.m13}\n m14: ${this.m14}\n m21: ${this.m21}\n m22: ${this.m22}\n m23: ${this.m23}\n m23: ${this.m23}\n m31: ${this.m31}\n m32: ${this.m32}\n m33: ${this.m33}\n m34: ${this.m34}\n m41: ${this.m41}\n m42: ${this.m42}\n m43: ${this.m43}\n m44: ${this.m44}\n is2D: ${this.is2D}\n isIdentity: ${this.isIdentity} ]`}}function c(t,e,r){if("number"!=typeof r)throw new TypeError("Expected number");return t._values[e]=r}function h(t,e,r){if("number"!=typeof r)throw new TypeError("Expected number");return 10===e||15===e?1!==r&&(t._is2D=!1):0!==r&&(t._is2D=!1),t._values[e]=r}function l(t){const e=Object.create(u.prototype);return e.constructor=u,e._is2D=!0,e._values=t,e}function p(t,e){const r=new Float64Array(16);for(let s=0;s<4;s++)for(let n=0;n<4;n++){let i=0;for(let r=0;r<4;r++)i+=t[4*s+r]*e[4*r+n];r[4*s+n]=i}return r}Object.defineProperties(u.prototype,{m11:{get(){return this._values[0]},set(t){return c(this,0,t)}},m12:{get(){return this._values[1]},set(t){return c(this,1,t)}},m13:{get(){return this._values[2]},set(t){return h(this,2,t)}},m14:{get(){return this._values[3]},set(t){return h(this,3,t)}},m21:{get(){return this._values[4]},set(t){return c(this,4,t)}},m22:{get(){return this._values[5]},set(t){return c(this,5,t)}},m23:{get(){return this._values[6]},set(t){return h(this,6,t)}},m24:{get(){return this._values[7]},set(t){return h(this,7,t)}},m31:{get(){return this._values[8]},set(t){return h(this,8,t)}},m32:{get(){return this._values[9]},set(t){return h(this,9,t)}},m33:{get(){return this._values[10]},set(t){return h(this,10,t)}},m34:{get(){return this._values[11]},set(t){return h(this,11,t)}},m41:{get(){return this._values[12]},set(t){return c(this,12,t)}},m42:{get(){return this._values[13]},set(t){return c(this,13,t)}},m43:{get(){return this._values[14]},set(t){return h(this,14,t)}},m44:{get(){return this._values[15]},set(t){return h(this,15,t)}},a:{get(){return this.m11},set(t){return this.m11=t}},b:{get(){return this.m12},set(t){return this.m12=t}},c:{get(){return this.m21},set(t){return this.m21=t}},d:{get(){return this.m22},set(t){return this.m22=t}},e:{get(){return this.m41},set(t){return this.m41=t}},f:{get(){return this.m42},set(t){return this.m42=t}},is2D:{get(){return this._is2D}},isIdentity:{get(){const t=this._values;return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]}}}),t.exports={DOMMatrix:u,DOMPoint:n}},3190:(t,e,r)=>{"use strict";const s=r(3985);t.exports=s,s.ImageData.prototype.toString=function(){return"[object ImageData]"},s.CanvasGradient.prototype.toString=function(){return"[object CanvasGradient]"}},7540:(t,e,r)=>{"use strict";const s=r(3190),n=t.exports=s.Canvas,i=r(6123),o=r(1145),a=r(8792),u=r(9266),c=["image/png","image/jpeg"],h=r(9023);n.prototype[h.inspect.custom||"inspect"]=function(){return`[Canvas ${this.width}x${this.height}]`},n.prototype.getContext=function(t,e){if("2d"==t){const t=this._context2d||(this._context2d=new i(this,e));return this.context=t,t.canvas=this,t}},n.prototype.pngStream=n.prototype.createPNGStream=function(t){return new o(this,t)},n.prototype.pdfStream=n.prototype.createPDFStream=function(t){return new a(this,t)},n.prototype.jpegStream=n.prototype.createJPEGStream=function(t){return new u(this,t)},n.prototype.toDataURL=function(t,e,r){let s,n="image/png",i={};if("function"==typeof t)s=t;else if("string"==typeof t&&c.includes(t.toLowerCase())&&(n=t.toLowerCase()),"function"==typeof e)s=e;else if("object"==typeof e?i=e:"number"==typeof e&&(i={quality:Math.max(0,Math.min(1,e))}),"function"==typeof r)s=r;else if(void 0!==r)throw new TypeError(typeof r+" is not a function");if(0===this.width||0===this.height){const t="data:,";return s?void setTimeout((()=>s(null,t))):t}if(!s)return`data:${n};base64,${this.toBuffer(n,i).toString("base64")}`;this.toBuffer(((t,e)=>{if(t)return s(t);s(null,`data:${n};base64,${e.toString("base64")}`)}),n,i)}},6123:(t,e,r)=>{"use strict";const s=r(3190),n=r(4859),{DOMMatrix:i}=r(6583);s.CanvasRenderingContext2dInit(i,n),t.exports=s.CanvasRenderingContext2d},1215:(t,e,r)=>{"use strict";const s=r(3190),n=t.exports=s.Image,i=r(9023);let o;const{GetSource:a,SetSource:u}=s;function c(t,e,r){u.call(t,e),t._originalSource=r}Object.defineProperty(n.prototype,"src",{set(t){if("string"==typeof t)if(/^\s*data:/.test(t)){const e=t.indexOf(","),r=-1!==t.lastIndexOf("base64",e),s=t.slice(e+1);c(this,Buffer.from(s,r?"base64":"utf8"),t)}else if(/^\s*https?:\/\//.test(t)){const e=t=>{if("function"!=typeof this.onerror)throw t;this.onerror(t)};o||(o=r(8885)),o.concat({url:t,headers:{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"}},((t,r,s)=>t?e(t):r.statusCode<200||r.statusCode>=300?e(new Error(`Server responded with ${r.statusCode}`)):void c(this,s)))}else c(this,t);else Buffer.isBuffer(t)&&c(this,t)},get(){return this._originalSource||a.call(this)},configurable:!0}),n.prototype[i.inspect.custom||"inspect"]=function(){return"[Image"+(this.complete?":"+this.width+"x"+this.height:"")+(this.src?" "+this.src:"")+(this.complete?" complete":"")+"]"}},9266:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){if(super(),void 0===t.streamJPEGSync)throw new Error("node-canvas was built without JPEG support.");this.options=e,this.canvas=t}_read(){this._read=n,this.canvas.streamJPEGSync(this.options,((t,e)=>{t?this.emit("error",t):e?this.push(e):this.push(null)}))}}},4859:t=>{"use strict";const e="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",r=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),s=new RegExp("(italic|oblique) +","i"),n=new RegExp("(small-caps) +","i"),i=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),o=new RegExp(`([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:${e})( *, *(?:${e}))*)`),a={};t.exports=t=>{if(a[t])return a[t];const e=o.exec(t);if(!e)return;const u={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(e[1]),unit:e[2],family:e[3].replace(/["']/g,"").replace(/ *, */g,",")};let c,h,l,p;const f=t.substring(0,e.index);switch((c=r.exec(f))&&(u.weight=c[1]),(h=s.exec(f))&&(u.style=h[1]),(l=n.exec(f))&&(u.variant=l[1]),(p=i.exec(f))&&(u.stretch=p[1]),u.unit){case"pt":u.size/=.75;break;case"pc":u.size*=16;break;case"in":u.size*=96;break;case"cm":u.size*=96/2.54;break;case"mm":u.size*=96/25.4;break;case"%":break;case"em":case"rem":u.size*=16/.75;break;case"q":u.size*=96/25.4/4}return a[t]=u}},3648:(t,e,r)=>{"use strict";const s=r(3190),{DOMMatrix:n}=r(6583);s.CanvasPatternInit(n),t.exports=s.CanvasPattern,s.CanvasPattern.prototype.toString=function(){return"[object CanvasPattern]"}},8792:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){super(),this.canvas=t,this.options=e}_read(){this._read=n,this.canvas.streamPDFSync(((t,e,r)=>{t?this.emit("error",t):r?this.push(e):this.push(null)}),this.options)}}},1145:(t,e,r)=>{"use strict";const{Readable:s}=r(2203);function n(){}t.exports=class extends s{constructor(t,e){if(super(),e&&e.palette instanceof Uint8ClampedArray&&e.palette.length%4!=0)throw new Error("Palette length must be a multiple of 4.");this.canvas=t,this.options=e||{}}_read(){this._read=n,this.canvas.streamPNGSync(((t,e,r)=>{t?this.emit("error",t):r?this.push(e):this.push(null)}),this.options)}}},4783:(t,e,r)=>{"use strict";const{PassThrough:s}=r(2203),n=r(3106),i=r(1269),o=t=>{const e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;const r="br"===e;if(r&&"function"!=typeof n.createBrotliDecompress)return t;const o=r?n.createBrotliDecompress():n.createUnzip(),a=new s;return i(t,a),o.on("error",(t=>{"Z_BUF_ERROR"!==t.code?a.emit("error",t):a.end()})),t.pipe(o).pipe(a),a};t.exports=o,t.exports.default=o},1269:t=>{"use strict";const e=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];t.exports=(t,r)=>{const s=new Set(Object.keys(t).concat(e));for(const e of s)e in r||(r[e]="function"==typeof t[e]?t[e].bind(t):t[e]);return r}},3985:(t,e,r)=>{t=r.nmd(t);try{process.dlopen(t,__dirname+r(6928).sep+r.p+"87bec8279bd43a4f86aa53c27736e54f.node")}catch(t){throw new Error("node-loader:\n"+t)}},3358:(t,e,r)=>{var s=r(7086);function n(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function i(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=s(n),t.exports.strict=s(i),n.proto=n((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},5127:t=>{t.exports=function(t,e){var r=[];t.on("data",(function(t){r.push(t)})),t.once("end",(function(){e&&e(null,Buffer.concat(r)),e=null})),t.once("error",(function(t){e&&e(t),e=null}))}},8885:(t,e,r)=>{t.exports=l;const s=r(5127),n=r(4783),i=r(8611),o=r(5692),a=r(3358),u=r(3480),c=r(7016),h=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;function l(t,e){if(t=Object.assign({maxRedirects:10},"string"==typeof t?{url:t}:t),e=a(e),t.url){const{hostname:e,port:r,protocol:s,auth:n,path:i}=c.parse(t.url);delete t.url,e||r||s||n?Object.assign(t,{hostname:e,port:r,protocol:s,auth:n,path:i}):t.path=i}const r={"accept-encoding":"gzip, deflate"};let s;t.headers&&Object.keys(t.headers).forEach((e=>r[e.toLowerCase()]=t.headers[e])),t.headers=r,t.body?s=t.json&&!h(t.body)?JSON.stringify(t.body):t.body:t.form&&(s="string"==typeof t.form?t.form:u.stringify(t.form),t.headers["content-type"]="application/x-www-form-urlencoded"),s&&(t.method||(t.method="POST"),h(s)||(t.headers["content-length"]=Buffer.byteLength(s)),t.json&&!t.form&&(t.headers["content-type"]="application/json")),delete t.body,delete t.form,t.json&&(t.headers.accept="application/json"),t.method&&(t.method=t.method.toUpperCase());const p=t.hostname,f=("https:"===t.protocol?o:i).request(t,(r=>{if(!1!==t.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){t.url=r.headers.location,delete t.headers.host,r.resume();const s=c.parse(t.url).hostname;return null!==s&&s!==p&&(delete t.headers.cookie,delete t.headers.authorization),"POST"===t.method&&[301,302].includes(r.statusCode)&&(t.method="GET",delete t.headers["content-length"],delete t.headers["content-type"]),0==t.maxRedirects--?e(new Error("too many redirects")):l(t,e)}const s="function"==typeof n&&"HEAD"!==t.method;e(null,s?n(r):r)}));return f.on("timeout",(()=>{f.abort(),e(new Error("Request timed out"))})),f.on("error",e),h(s)?s.on("error",e).pipe(f):f.end(s),f}l.concat=(t,e)=>l(t,((r,n)=>{if(r)return e(r);s(n,((r,s)=>{if(r)return e(r);if(t.json)try{s=JSON.parse(s.toString())}catch(r){return e(r,n,s)}e(null,n,s)}))})),["get","post","put","patch","head","delete"].forEach((t=>{l[t]=(e,r)=>("string"==typeof e&&(e={url:e}),l(Object.assign({method:t.toUpperCase()},e),r))}))},7086:t=>{t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){s[t]=e[t]})),s;function s(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var s=e.apply(this,t),n=t[t.length-1];return"function"==typeof s&&s!==n&&Object.keys(n).forEach((function(t){s[t]=n[t]})),s}}},9857:t=>{"use strict";t.exports=JSON.parse('{"name":"canvas","description":"Canvas graphics API backed by Cairo","version":"2.11.2","author":"TJ Holowaychuk <tj@learnboost.com>","main":"index.js","browser":"browser.js","contributors":["Nathan Rajlich <nathan@tootallnate.net>","Rod Vagg <r@va.gg>","Juriy Zaytsev <kangax@gmail.com>"],"keywords":["canvas","graphic","graphics","pixman","cairo","image","images","pdf"],"homepage":"https://github.com/Automattic/node-canvas","repository":"git://github.com/Automattic/node-canvas.git","scripts":{"prebenchmark":"node-gyp build","benchmark":"node benchmarks/run.js","lint":"standard examples/*.js test/server.js test/public/*.js benchmarks/run.js lib/context2d.js util/has_lib.js browser.js index.js","test":"mocha test/*.test.js","pretest-server":"node-gyp build","test-server":"node test/server.js","generate-wpt":"node ./test/wpt/generate.js","test-wpt":"mocha test/wpt/generated/*.js","install":"node-pre-gyp install --fallback-to-build --update-binary","dtslint":"dtslint types"},"binary":{"module_name":"canvas","module_path":"build/Release","host":"https://github.com/Automattic/node-canvas/releases/download/","remote_path":"v{version}","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"},"files":["binding.gyp","lib/","src/","util/","types/index.d.ts"],"types":"types/index.d.ts","dependencies":{"@mapbox/node-pre-gyp":"^1.0.0","nan":"^2.17.0","simple-get":"^3.0.3"},"devDependencies":{"@types/node":"^10.12.18","assert-rejects":"^1.0.0","dtslint":"^4.0.7","express":"^4.16.3","js-yaml":"^4.1.0","mocha":"^5.2.0","pixelmatch":"^4.0.2","standard":"^12.0.1","typescript":"^4.2.2"},"engines":{"node":">=6"},"license":"MIT"}')}};