tmcsplit 0.0.12 → 0.0.14
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.
- package/dist/libtmcsplit/libtmcsplit.js +1 -1
- package/dist/tmcsplit/tmcsplit.js +1 -2
- package/eslint.config.mjs +4 -3
- package/libtmcsplit +1 -4
- package/package.json +8 -5
- package/tmcsplit +149 -60
- package/webpack.config.cjs +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={47(e,t,r){r.a(e,async(e,t)=>{try{const e=
|
|
1
|
+
(()=>{"use strict";var e={47(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(r.bind(r,35)),o=(e._basename,e._dirname,e._ls,e._msg_error,e._msg_info,e._mv,e._require),n=await o("split-file");n._split_file,n._split_file_by_size,t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const c=t[o]={exports:{}};return e[o](c,c.exports,r),c.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,c,i)=>{let s;i&&((s=[]).d=-1);const a=new Set,l=r.exports;let u,p,f;const d=new Promise((e,t)=>{f=t,p=e});d[t]=l,d[e]=e=>(s&&e(s),a.forEach(e),d.catch(e=>{})),r.exports=d,c(r=>{let c;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const c=[];c.d=0,r.then(e=>{i[t]=e,n(c)},e=>{i[o]=e,n(c)});const i={};return i[e]=e=>e(c),i}}const c={};return c[e]=e=>{},c[t]=r,c}))(r);const i=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{c=()=>t(i),c.r=0;const r=e=>e!==s&&!a.has(e)&&(a.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:i()},e=>(e?f(d[o]=e):p(l),n(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}const c=Object.create(null);r.r(c);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(c,i),c}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],c=t[o++];r.o(e,n)?0===c&&o++:0===c?Object.defineProperty(e,n,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,n,{enumerable:!0,get:c})}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".libtmcsplit.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="tmcsplit:";r.l=(o,n,c,i)=>{if(e[o])return void e[o].push(n);let s,a;if(void 0!==c){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+c){s=r;break}}}s||(a=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+c),s.src=o),e[o]=[n];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);const n=e[o];if(delete e[o],s.parentNode?.removeChild(s),n?.forEach(e=>e(r)),t)return t(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const c=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=c);const i=r.p+r.u(t),s=new Error,a=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",s.name="ChunkLoadError",s.type=e,s.request=r,s.event=o,n[1](s)}};r.l(i,a,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,i]=o;var s,a,l=0;if(n.some(t=>0!==e[t])){for(s in c)r.o(c,s)&&(r.m[s]=c[s]);i&&i(r)}for(t&&t(o);l<n.length;l++)a=n[l],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunktmcsplit=self.webpackChunktmcsplit||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(47)})();
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
(()=>{var e={47(e,t,n){"use strict";n.a(e,async(e,r)=>{try{n.d(t,{_split:()=>g});const i=(await n.e(35).then(n.bind(n,35))).default,o=i._basename,a=i._dirname,s=i._ls,u=i._msg_error,f=i._msg_info,c=i._mv,l=i._require,h=await l("split-file"),d=h._split_file,p=h._split_file_by_size;async function y(e,t){let n,r,i,u,f;u=[];const l=`${o(e)}.sf-part`,h=a(e),d=s(h);for(n of d)n.startsWith(l)&&(f=n.replace(l,""),i=`${t}${f}`,r=[`${e}.sf-part${f}`,i],c.apply(null,r),u.push(i));return u}async function g(e,t,n,r){let i,o;return"number"!=typeof n&&(i="Chunks amount must be a number.",u(i,1)),i=`Splitting '${e}' into '${n}' of size '${r}' into files with prefix '${t}':`,f(i),r=Number(r),n>0?await d(e,n):r>0&&await p(e,r),o=y(e,t),o}r()}catch(m){r(m)}},1)},526(e,t){"use strict";t.toByteArray=function(e){var t,n,o=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),a=o[0],s=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),f=0,c=s>0?a-4:a;for(n=0;n<c;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,f=r-i;s<f;s+=a)o.push(u(e,s,s+a>f?f:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287(e,t,n){"use strict";const r=n(526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return f(e,t,n)}function f(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||V(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(f(e,o)===f(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===u)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;r<u;r++)if(f(e,o+r)!==f(t,r)){n=!1;break}if(n)return o}return-1}function v(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(V(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return Y(G(t,e.length-n),e,n,r)}function E(e,t,n,r){return Y(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return Y(K(t),e,n,r)}function R(e,t,n,r){return Y(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}(r)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return f(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},u.allocUnsafe=function(e){return l(e)},u.allocUnsafeSlow=function(e){return l(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),f=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(f[e]!==c[e]){o=f[e],a=c[e];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function k(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Z[e[r]];return i}function C(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function P(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function F(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return t=+t,n>>>=0,o||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return t=+t,n>>>=0,o||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),u.prototype.readBigInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=X(function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=X(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=X(function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=X(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const j={};function D(e,t,n){j[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}D("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),D("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),D("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=$(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=$(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},368(e,t,n){const r=n(70),i=r._argv_get,o=r._argv_url_get,a=r._child_process_spawn_get,s=a(),u=a("async"),f=(0,r._process_exit_get)(),c=(0,r._process_cwd_get)(),l=c,h=r._yargv_get,d=n(314),p=d._basename,y=d._dirname,g=(d._file_append,d._file_exists,d._path_join),m=d._stat;function w(e,t){let n;return void 0===t||""==t?n=`${e}: {_msg}`:"string"!=typeof t&&""==t||(n=`[${t}] ${e}: {_msg}`),n}function b(e){let t;"n"==quiet&&(_template=w("WARNING",app_name),t=_template.replaceAll("{_msg}",e),console.warn(t))}function v(e){let t;"undefined"!=typeof quiet&&""!=quiet||(quiet="y"),"n"==quiet&&(t=w("INFO",app_name).replaceAll("{_msg}",e),console.log(t))}function _(e,t){let n,r;"undefined"==typeof app_name||app_name,t=String(t),n=w("ERROR",app_name),r=n.replaceAll("{_msg}",e),"1"===t?(console.error(r),f(1)):"0"===t&&console.warn(r)}function E(e,t){let n;return void 0===t&&(t=e,e=0),n=t-e,n<0?(_msg="Second argument 'end' is greater than first argument 'start', returning empty list.",b(_msg),[]):Array(n).keys().map(t=>t+e)}function S(e){return new Promise(t=>setTimeout(t,e))}e.exports={_argv_get:i,_argv_url_get:o,_app_name_get:function(){let e;return e=p("/index.js"),e},_basename:d._basename,_cat:d._cat,_cmdline_check:function(e){let t,n,r;return"undefined"==typeof window&&(t=i(),n=t[1],void 0===n&&(n=t.$0),r=p(n),r==e)},_dirname:y,_echo:function(e){console.log(e)},_error_display:function(e){let t;"object"==typeof error?(t="error"in e&&null!=e.error&&"message"in e.error?e.error.message:"shortMessage"in e?e.shortMessage:e,console.error(e)):(t=e,console.error(e)),_(t,0)},_ext_rm:d._ext_rm,_dir_exists:d._dir_exists,_file_append:d._file_append,_file_exists:d._file_exists,_file_read:d._file_read,_file_write:d._file_write,_fs_worker_new:d._fs_worker_new,_fs_worker_start:d._fs_worker_start,_get_date_human:function(){const e=new Date;return`${e.getFullYear()}-${e.getMonth()}-${e.getDay()}T${e.getHours()}:${e.getMinutes()}+0000`},_globals:function(){app_name="",quiet="y"},_homedir_get:function(){let e;return"undefined"==typeof window&&void 0!==n.g&&(n.g.global,n.g),"undefined"!=typeof window&&(e="/home/user"),e},_json_display:d._json_display,_json_read:d._json_read,_lib_get:async function(){let e;return new Set,"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e="/usr/lib"),e},_ls:d._ls,_mkdir:d._mkdir,_mktemp:d._mktemp,_msg_info:v,_msg_error:_,_msg_warning:b,_msg_info_obj:function(e,t){let n;n=`${e}: '${t}'`,v(n)},_mv:d._mv,_path_join:g,_printf:function(e){"undefined"==typeof window&&(_stdout=process.stdout),"undefined"!=typeof window&&(_stdout=n(310)),_stdout.write(e)},_process_exit:f,_process_cwd:c,_pwd:l,_range:E,_rm:d._rm,_run:async function(e,t,n,r,i,o){let a,f,c;void 0!==t&&""!=t&&t!=[]||(f="No command given in input.",_(f,1));const l=t[0],h=t.slice(1,t.length);if(void 0!==e&&""!=e||(e="sync"),void 0!==n&&""!=n||(n=""),void 0!==r&&""!=r||(r="0"),void 0!==i&&""!=i||(i="spawn"),void 0!==o&&""!=o||(o=""),f=`Running '${l}' with arguments '${h}'.`,v(f),c="","async"==e){const e=function(e){c+=e.toString()},t=function(e){let t,n;return 0!=e?(n=`Process exited with code '${e}'`,_(n,1)):(n="Process exited normally.",v(n)),t=c.split("\n"),t},n=u(l,h);return n.stdout.on("data",e),n.on("close",t),a=c.split("\n"),v(a.length),a}if("sync"==e){if("spawn"==i)return a=s(l,h,{encoding:"utf-8"}).stdout.split("\n"),a;if("native"==i){if(0<r){_msg_timeout=`Timeout of length '${r}' ms reached for task '${n}'.`,_time_over=!1;try{if(new Promise((e,t)=>{setTimeout(()=>{},r,"hurr")}),""!=o){if(c=await Promise.race([S(r),l[o].apply(l,h)]),void 0===c)throw _msg_timeout}else c=await l.apply(l,h)}catch(e){_time_over=!0}return _time_over?void b(_msg_timeout):c}c=await l[o].apply(l,h)}}},_seq:function(e,t){let n,r;if(r=[],t<e)return _msg="Second argument 'end' is greater than first argument 'start', returning empty list.",b(_msg),r;for(n of(void 0===t&&(t=e,e=1),E(e,t+1)))r.push(n);return r},_sleep:S,_stat:m,_yargv_get:h}},314(e,t,n){const r=n(70),i=r._os_tmpdir_get,o=(0,r._process_exit_get)(),a=n(449),s=a.readdirSync,u=a.existsSync,f=a.appendFileSync,c=a.readFileSync,l=a.writeFileSync,h=(a.isDir,a.fsWorkerNew),d=a.fsWorkerStart,p=a.mkdtempSync,y=a.statSync,g=JSON.parse,m=JSON.stringify,w=n(843),b=w.basename,v=w.dirname,_=w.join,E=w.parse;function S(e,t){return void 0!==t&&t!={}&&""!=t||(t={encoding:"utf8",flag:"r"}),c(e,t)}function R(e){let t;return t=_.apply(null,e),t}e.exports={_basename:function(e){let t;return t=b(e),t},_cat:S,_dirname:function(e){let t;return t=v(e),t},_ext_rm:function(e){let t,n,r;return t=E(e).dir,n=E(e).name,r=[t,n],R(r)},_dir_exists:fs_module.isDir,_file_append:function(e,t,n){const r=[e,t];void 0!==n&&n!={}&&""!=n&&r.push(n),f.apply(null,r)},_file_exists:function(e){let t,n;return n=!1,t=u(e),t&&(n=!0),n},_file_read:S,_file_write:function(e,t,n){l(e,t)},_fs_worker_new:h,_fs_worker_start:d,_json_display:m,_json_read:function(e){let t,n;return t=S(e),n=g(t),n},_ls:function(e){return s.apply(null,[e])},_mkdir:a.mkdirSync,_mktemp:async function(e,t){const n=typeof t;if(void 0!==e&&""!=e||(e=`${i()}/tmp.`),"undefined"!=n&&""!=t&&"true"!=t||(t=!0),"false"==t&&(t=!1),t)try{return p(e)}catch(e){throw e}else _msg="It only supports creating temporary directories.",console.error(_msg),o(1)},_mv:a.renameSync,_path_join:R,_rm:a.rmSync,_stat:y}},70(e,t,n){function r(e){let t,n,r,i,o,a,s,u,f;void 0===e&&(s="Getting all values.",_msg_info("Getting all values."),e=""),t=[],a=window.location,u=a.search.substring(1),r=u.split("&");for(let a=0;a<r.length;a++)n=r[a],o=n.split("="),i=o[0],i!=e&&""!=e||(f=o[1],t.push(f));return t}e.exports={_argv_get:function(e){let t;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(t=r()),t},_argv_url_get:r,_child_process_spawn_get:function(e){let t;return void 0!==e&&""!=e||(e="sync"),"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(t=function(e,t,n){return n}),t},_os_tmpdir_get:function(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(){return"/tmp"}),e},_process_exit_get:function(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(e){return e}),e},_process_cwd_get:function(){let e;return e="undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"==typeof n?process.cwd:function(){return"."},e},_yargv_get:function(e){let t;const r={},i={};void 0!==e&&e!={}&&""!=e||(e={booleans:[],string:!0});const o=e.booleans;if("undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g){const a=n(Object(function(){const e=new Error("Cannot find module 'yargs'");throw e.code="MODULE_NOT_FOUND",e}()));_yargs_helpers_module=n(Object(function(){const e=new Error("Cannot find module 'yargs/helpers'");throw e.code="MODULE_NOT_FOUND",e}()));const s=_yargs_helpers_module.hideBin;if("string"in e&&e.string&&(r._={type:"string",string:!0},i["parse-numbers"]=!1,i["parse-positional-numbers"]=!1),o.length>0)for(t of o)r[t]={demand:!1,default:!1,type:"boolean"};return 0<o.length||e.string?a(s(process.argv)).parserConfiguration(i).options(r).string("_").parse():a(s(process.argv))}}}},449(e,t,n){function r(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(){let e;try{e=n(10)}catch(e){console.log(e);const t="Error importing the '@themartiancompany/opfs' module as 'opfs'. If you got this error while bundling a webpack for a project depending on this module double check its 'webpack.config.js' file or whether the 'opfs' module is listed in developer dependencies and install them.I'm sorry for this inconvenience but Node packagement system does not currently distinguish 'development' from 'build' dependencies.";throw console.error(t),e}return e}()),e}const i=r();i.isDirSync=function(e){return!(void 0).statSync(e).isFile()},i.isDir=i.isDirSync,e.exports=i,e.exports.getModule=function(e){let t;if(""==_module_name||"undefined"==typeof _module_name)t=r();else if("opfs"==_module_name)t=_opfs_module_auto_detect();else{if("fs"!=_module_name){const e="Unknown file system module "+`'${_module_name}'.`.const;throw _error={msg:e},console.error(e),_error}t=n(Object(function(){const e=new Error("Cannot find module 'node:fs'");throw e.code="MODULE_NOT_FOUND",e}())),t.fsWorkerStart=function(e){let t;return t=e.fsWorkerStart,void 0===t&&(t=function(){}),t}(t)}return t}},7(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,f;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,f=c,console&&console.warn&&console.warn(f)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var f=u.length,c=p(u,f);for(n=0;n<f;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return f(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return f(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},251(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,f=u>>1,c=-7,l=n?i-1:0,h=n?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=f}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;e[n+d]=255&a,d+=p,a/=256,f-=8);e[n+d-p]|=128*y}},698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},10(e,t,n){"use strict";n.a(e,async(e,r)=>{try{n.r(t),n.d(t,{ABORT_ERROR:()=>i.ABORT_ERROR,CURRENT_DIR:()=>i.CURRENT_DIR,NOT_FOUND_ERROR:()=>i.NOT_FOUND_ERROR,ROOT_DIR:()=>i.ROOT_DIR,TIMEOUT_ERROR:()=>i.TIMEOUT_ERROR,TMP_DIR:()=>i.TMP_DIR,appendFile:()=>i.appendFile,appendFileSync:()=>i.appendFileSync,assertAbsolutePath:()=>i.assertAbsolutePath,assertFileUrl:()=>i.assertFileUrl,connectSyncAgent:()=>i.connectSyncAgent,copy:()=>i.copy,copySync:()=>i.copySync,createFile:()=>i.createFile,createFileSync:()=>i.createFileSync,deleteTemp:()=>i.deleteTemp,deleteTempSync:()=>i.deleteTempSync,downloadFile:()=>i.downloadFile,emptyDir:()=>i.emptyDir,emptyDirSync:()=>i.emptyDirSync,exists:()=>i.exists,existsSync:()=>i.existsSync,generateTempPath:()=>i.generateTempPath,getFileDataByHandle:()=>i.getFileDataByHandle,getSyncMessenger:()=>i.getSyncMessenger,isDirectoryHandle:()=>i.isDirectoryHandle,isFileHandle:()=>i.isFileHandle,isFileHandleLike:()=>i.isFileHandleLike,isOPFSSupported:()=>i.isOPFSSupported,isTempPath:()=>i.isTempPath,mkTemp:()=>i.mkTemp,mkTempSync:()=>i.mkTempSync,mkdir:()=>i.mkdir,mkdirSync:()=>i.mkdirSync,move:()=>i.move,moveSync:()=>i.moveSync,pruneTemp:()=>i.pruneTemp,pruneTempSync:()=>i.pruneTempSync,readBlobFile:()=>i.readBlobFile,readBlobFileSync:()=>i.readBlobFileSync,readDir:()=>i.readDir,readDirSync:()=>i.readDirSync,readFile:()=>i.readFile,readFileSync:()=>i.readFileSync,readJsonFile:()=>i.readJsonFile,readJsonFileSync:()=>i.readJsonFileSync,readTextFile:()=>i.readTextFile,readTextFileSync:()=>i.readTextFileSync,remove:()=>i.remove,removeSync:()=>i.removeSync,setSyncMessenger:()=>i.setSyncMessenger,startSyncAgent:()=>i.startSyncAgent,stat:()=>i.stat,statSync:()=>i.statSync,toFileSystemHandleLike:()=>i.toFileSystemHandleLike,unzip:()=>i.unzip,unzipFromUrl:()=>i.unzipFromUrl,unzipSync:()=>i.unzipSync,uploadFile:()=>i.uploadFile,writeFile:()=>i.writeFile,writeFileSync:()=>i.writeFileSync,zip:()=>i.zip,zipFromUrl:()=>i.zipFromUrl,zipSync:()=>i.zipSync});var i=n(516);const o=await Promise.resolve().then(n.bind(n,516));await i;const a=await n.e(866).then(n.t.bind(n,866,23)),s=(await n.e(949).then(n.bind(n,949))).file,u=o.mkTemp,f=o.mkTempSync,c=function(e,t){return s(e).createReader()};function l(e,t){return s(e).createWriter()}const h=l;function d(e){return void 0===e&&(e="fs-worker.js"),new a(e)}const p=d;async function y(e,t,n){return void 0===e&&(e="fs-worker.js"),"number"!=typeof t&&(t=10485760),"number"!=typeof n&&(n=10485760),(0,o.connectSyncAgent)({worker:d(e),bufferLength:t,opTimeout:n})}const g=y;function m(e){return o.readDirSync.apply(null,[e]).unwrap()}const w=m;function b(e){return o.moveSync.apply(null,e).unwrap()}const v=b;function _(e){return o.removeSync.apply(null,e).unwrap()}const E=_;function S(e,t){const n=`chmod '${t}' on '${e}'.`;console.log(n)}const R=S,A=S;async function T(e,t){console.log(e)}const O=T,k=O;async function x(e){return void 0!==e&&""!=e&&e!={}||(e=await Promise.resolve().then(n.bind(n,516))),function(t){return e.copySync.apply(null,[t]).unwrap()}}const L=await x(o),C=o.copy,B=L,M=o.copy,U=o.cpSync,P=i;n.d(t,["chmod",0,R,"chmodSync",0,A,"chown",0,O,"chownSync",0,k,"copyFile",0,C,"copyFileSync",0,B,"cp",0,M,"cpSync",0,U,"createReadStream",0,c,"createWriteStream",0,h,"default",0,P,"fsWorkerNew",0,p,"fsWorkerStart",0,g,"mkdtemp",0,u,"mkdtempSync",0,f,"readdirSync",0,w,"renameSync",0,v,"rmSync",0,E]),r()}catch(F){r(F)}},1)},48(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,o,a,s,u;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var f=("number"!=typeof u&&(u=0),u+1>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(e,'" ').concat(f," ").concat(i," ").concat(r(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},382(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(412),o=n(708);n(698)(f,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var u=a[s];f.prototype[u]||(f.prototype[u]=o.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||process.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},600(e,t,n){"use strict";e.exports=i;var r=n(610);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(698)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},412(e,t,n){"use strict";var r;e.exports=R,R.ReadableState=S,n(7).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},a=n(345),s=n(287).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=n(838);i=f&&f.debuglog?f.debuglog("stream"):function(){};var c,l,h,d=n(726),p=n(896),y=n(291).getHighWaterMark,g=n(48).F,m=g.ERR_INVALID_ARG_TYPE,w=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(698)(R,a);var _=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(e,t,i){r=r||n(382),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(c||(c=n(141).I),this.decoder=new c(e.encoding),this.encoding=e.encoding)}function R(e){if(r=r||n(382),!(this instanceof R))return new R(e);var t=this instanceof r;this._readableState=new S(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function A(e,t,n,r,o){i("readableAddChunk",t);var a,f=e._readableState;if(null===t)f.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?x(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}(e,f);else if(o||(a=function(e,t){var n,r;return r=t,s.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t)),n}(f,t)),a)_(e,a);else if(f.objectMode||t&&t.length>0)if("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)f.endEmitted?_(e,new v):T(e,f,t,!0);else if(f.ended)_(e,new w);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||0!==t.length?T(e,f,t,!1):C(e,f)):T(e,f,t,!1)}else r||(f.reading=!1,C(e,f));return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),C(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=p.destroy,R.prototype._undestroy=p.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},R.prototype.unshift=function(e){return A(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){c||(c=n(141).I);var t=new c(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(L,e))}function L(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function C(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function U(e){i("readable nexttick read 0"),e.read(0)}function P(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(j,t,e))}function j(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}R.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},R.prototype._read=function(e){_(this,new b("_read()"))},R.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?p:s;function s(){i("onend"),e.end()}r.endEmitted?process.nextTick(a):n.once("end",a),e.on("unpipe",function t(o,a){i("onunpipe"),o===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",p),n.removeListener("data",c),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())});var u=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",u);var f=!1;function c(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==D(r.pipes,e))&&!f&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function l(t){i("onerror",t),p(),e.removeListener("error",l),0===o(e,"error")&&_(e,t)}function h(){e.removeListener("finish",d),p()}function d(){i("onfinish"),e.removeListener("close",h),p()}function p(){i("unpipe"),n.unpipe(e)}return n.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",l),e.once("close",h),e.once("finish",d),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},R.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?x(this):r.reading||process.nextTick(U,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),n},R.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(P,e,t))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(955)),l(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=I,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===h&&(h=n(157)),h(R,e,t)})},610(e,t,n){"use strict";e.exports=c;var r=n(48).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(382);function f(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(698)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},708(e,t,n){"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=R,R.WritableState=S;var o,a={deprecate:n(643)},s=n(345),u=n(287).Buffer,f=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(896),l=n(291).getHighWaterMark,h=n(48).F,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,w=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,v=h.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;function E(){}function S(e,t,o){i=i||n(382),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(L,e,t),e._writableState.errorEmitted=!0,_(e,r)):(i(r),e._writableState.errorEmitted=!0,_(e,r),L(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?process.nextTick(T,e,n,o,i):T(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function R(e){var t=this instanceof(i=i||n(382));if(!t&&!o.call(R,this))return new R(e);this._writableState=new S(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),L(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,A(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,c=n.encoding,l=n.callback;if(A(e,t,!1,t.objectMode?1:f.length,f,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),L(e,t)})}function L(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(698)(R,s),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===R&&e&&e._writableState instanceof S}})):o=function(e){return e instanceof this},R.prototype.pipe=function(){_(this,new g)},R.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,a=!i.objectMode&&(r=e,u.isBuffer(r)||r instanceof f);return a&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=E),i.ending?function(e,t){var n=new b;_(e,n),process.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i;return null===n?i=new w:"string"==typeof n||t.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(_(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,o);return f}(this,i,a,e,t,n)),o},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},R.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,n){n(new p("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=c.destroy,R.prototype._undestroy=c.undestroy,R.prototype._destroy=function(e,t){t(e)}},955(e,t,n){"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(238),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var n=e[h].read();null!==n&&(e[c]=null,e[a]=null,e[s]=null,t(d(n,!1)))}}function y(e){process.nextTick(p,e)}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(r={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[u]?n(e[u]):t(d(void 0,!0))})});var n,r=this[c];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[f]?n(d(void 0,!0)):t[l](n,r)},r)}}(r,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));n=new Promise(this[l])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),i(r,"return",function(){var e=this;return new Promise(function(t,n){e[h].destroy(null,function(e){e?n(e):t(d(void 0,!0))})})}),r),g);e.exports=function(e){var t,n=Object.create(m,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,f,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var r=n[h].read();r?(n[c]=null,n[a]=null,n[s]=null,e(d(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[f]=!0}),e.on("readable",y.bind(null,n)),n}},726(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=n(287).Buffer,f=n(340).inspect,c=f&&f.custom||"inspect";function l(e,t,n){u.prototype.copy.call(e,t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return f(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},896(e){"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(n,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(n,o),i(e)):process.nextTick(n,o)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},238(e,t,n){"use strict";var r=n(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},f=t._writableState&&t._writableState.finished,c=function(){s=!1,f=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},d=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!f?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},y=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",c),!1!==n.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},157(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},758(e,t,n){"use strict";var r,i=n(48).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var c,l=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map(function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",function(){s=!0}),void 0===r&&(r=n(238)),r(e,{readable:t,writable:i},function(e){if(e)return o(e);s=!0,o()});var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),l(c))})});return t.reduce(f)}},291(e,t,n){"use strict";var r=n(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},345(e,t,n){e.exports=n(7).EventEmitter},861(e,t,n){var r=n(287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},310(e,t,n){e.exports=i;var r=n(7).EventEmitter;function i(){r.call(this)}n(698)(i,r),i.Readable=n(412),i.Writable=n(708),i.Duplex=n(382),i.Transform=n(610),i.PassThrough=n(600),i.finished=n(238),i.pipeline=n(758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",f),e.removeListener("error",f),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",f),e.on("error",f),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},141(e,t,n){"use strict";var r=n(861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},643(e,t,n){function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},340(){},838(){},516(e,t,n){"use strict";n.r(t),n.d(t,{ABORT_ERROR:()=>T,CURRENT_DIR:()=>Ve,NOT_FOUND_ERROR:()=>Ye,ROOT_DIR:()=>Je,TIMEOUT_ERROR:()=>O,TMP_DIR:()=>Ze,appendFile:()=>At,appendFileSync:()=>bn,assertAbsolutePath:()=>Xe,assertFileUrl:()=>Qe,connectSyncAgent:()=>an,copy:()=>Tt,copySync:()=>vn,createFile:()=>yt,createFileSync:()=>cn,deleteTemp:()=>Ut,deleteTempSync:()=>Sn,downloadFile:()=>Et,emptyDir:()=>Ot,emptyDirSync:()=>_n,exists:()=>kt,existsSync:()=>En,generateTempPath:()=>ut,getFileDataByHandle:()=>pt,getSyncMessenger:()=>sn,isDirectoryHandle:()=>ht,isFileHandle:()=>lt,isFileHandleLike:()=>dt,isOPFSSupported:()=>Wt,isTempPath:()=>ft,mkTemp:()=>Mt,mkTempSync:()=>Rn,mkdir:()=>gt,mkdirSync:()=>ln,move:()=>xt,moveSync:()=>hn,pruneTemp:()=>Pt,pruneTempSync:()=>An,readBlobFile:()=>Lt,readBlobFileSync:()=>Tn,readDir:()=>mt,readDirSync:()=>dn,readFile:()=>wt,readFileSync:()=>pn,readJsonFile:()=>Ct,readJsonFileSync:()=>On,readTextFile:()=>Bt,readTextFileSync:()=>kn,remove:()=>bt,removeSync:()=>yn,setSyncMessenger:()=>un,startSyncAgent:()=>on,stat:()=>vt,statSync:()=>gn,toFileSystemHandleLike:()=>ct,unzip:()=>It,unzipFromUrl:()=>Nt,unzipSync:()=>xn,uploadFile:()=>jt,writeFile:()=>_t,writeFileSync:()=>wn,zip:()=>$t,zipFromUrl:()=>zt,zipSync:()=>Ln});function r(e,t){if(!e)throw new Error("Invariant failed")}function i(e){if("string"!=typeof e)throw new TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function o(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function a(e){return 47===e}function s(e){return e=function(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function u(e){e instanceof URL&&(e=s(e)),function(e){i(e),e.length}(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(a(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return-1===t?a(e.charCodeAt(0))?"/":".":o(e.slice(0,t),a)}function f(e,t=""){e instanceof URL&&(e=s(e)),function(e,t){if(i(e),0===e.length)return e;if("string"!=typeof t)throw new TypeError(`Suffix must be a string, received "${JSON.stringify(t)}"`)}(e,t);const n=function(e,t,n=0){let r=!1,i=e.length;for(let o=e.length-1;o>=n;--o)if(t(e.charCodeAt(o))){if(r){n=o+1;break}}else r||(r=!0,i=o+1);return e.slice(n,i)}(e,a),r=o(n,a);return t?function(e,t){if(t.length>=e.length)return e;const n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}(r,t):r}function c(e,...t){if(void 0===e)return".";e instanceof URL&&(e=s(e)),(t=e?[e,...t]:t).forEach(e=>i(e));const n=t.filter(e=>e.length>0).join("/");return""===n?".":function(e){e instanceof URL&&(e=s(e)),function(e){i(e),e.length}(e);const t=a(e.charCodeAt(0)),n=a(e.charCodeAt(e.length-1));return e=function(e,t,n,r){let i,o="",a=0,s=-1,u=0;for(let f=0;f<=e.length;++f){if(f<e.length)i=e.charCodeAt(f);else{if(r(i))break;i=47}if(r(i)){if(s===f-1||1===u);else if(s!==f-1&&2===u){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(n)),s=f,u=0;continue}if(2===o.length||1===o.length){o="",a=0,s=f,u=0;continue}}t&&(o.length>0?o+=`${n}..`:o="..",a=2)}else o.length>0?o+=n+e.slice(s+1,f):o=e.slice(s+1,f),a=f-s-1;s=f,u=0}else 46===i&&-1!==u?++u:u=-1}return o}(e,!t,"/",a),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?`/${e}`:e}(n)}function l(e){e instanceof URL&&(e=s(e)),i(e);let t=-1,n=0,r=-1,o=!0,u=0;for(let i=e.length-1;i>=0;--i){const s=e.charCodeAt(i);if(a(s)){if(!o){n=i+1;break}}else-1===r&&(o=!1,r=i+1),46===s?-1===t?t=i:1!==u&&(u=1):-1!==t&&(u=-1)}return-1===t||-1===r||0===u||1===u&&t===r-1&&t===n+1?"":e.slice(t,r)}const h=Symbol("Option kind"),d=Symbol("Result kind"),p=Promise.resolve(!0),y=Promise.resolve(!1);function g(e){const t=Object.freeze({[Symbol.toStringTag]:"Option",[h]:"Some",*[Symbol.iterator](){yield e},toString:()=>`Some(${e})`,isSome:()=>!0,isNone:()=>!1,isSomeAnd:t=>t(e),isSomeAndAsync:t=>Promise.resolve(t(e)),isNoneOr:t=>t(e),isNoneOrAsync:t=>Promise.resolve(t(e)),expect:t=>e,unwrap:()=>e,unwrapOr:t=>e,unwrapOrElse:t=>e,unwrapOrElseAsync:t=>Promise.resolve(e),okOr:t=>b(e),okOrElse:t=>b(e),transpose:()=>(S(e),e.isOk()?b(g(e.unwrap())):v(e.unwrapErr())),filter:n=>n(e)?t:m,flatten:()=>(E(e),e),map:t=>g(t(e)),mapOr:(t,n)=>n(e),mapOrElse:(t,n)=>n(e),zip:t=>(E(t),t.isSome()?g([e,t.unwrap()]):m),zipWith:(t,n)=>(E(t),t.isSome()?g(n(e,t.unwrap())):m),unzip(){const t=e;if(!Array.isArray(t)||2!==t.length)throw new TypeError("Option::unzip() requires a 2-element tuple, received "+(Array.isArray(t)?`array with ${t.length} elements`:typeof t));const[n,r]=t;return[g(n),g(r)]},reduce:(n,r)=>(E(n),n.isSome()?g(r(e,n.unwrap())):t),and:e=>(E(e),e),andThen:t=>t(e),andThenAsync:t=>Promise.resolve(t(e)),or:e=>t,orElse:e=>t,orElseAsync:e=>Promise.resolve(t),xor:e=>(E(e),e.isSome()?m:t),inspect:n=>(n(e),t),eq:t=>(E(t),t.isSome()&&t.unwrap()===e)});return t}const m=Object.freeze({[Symbol.toStringTag]:"Option",[h]:"None",*[Symbol.iterator](){},toString:()=>"None",isSome:()=>!1,isNone:()=>!0,isSomeAnd:e=>!1,isSomeAndAsync:e=>y,isNoneOr:e=>!0,isNoneOrAsync:e=>p,expect(e){throw new TypeError(e)},unwrap(){throw new TypeError("Option::unwrap() called on a `None` value")},unwrapOr:e=>e,unwrapOrElse:e=>e(),unwrapOrElseAsync:e=>Promise.resolve(e()),okOr:e=>v(e),okOrElse:e=>v(e()),transpose:()=>b(m),filter:e=>m,flatten:()=>m,map:e=>m,mapOr:(e,t)=>e,mapOrElse:(e,t)=>e(),zip:e=>m,zipWith:(e,t)=>m,unzip:()=>[m,m],reduce:(e,t)=>(E(e),e),and:e=>m,andThen:e=>m,andThenAsync:e=>w,or:e=>(E(e),e),orElse:e=>e(),orElseAsync:e=>Promise.resolve(e()),xor:e=>(E(e),e.isSome()?e:m),inspect:e=>m,eq:e=>(E(e),e===m)}),w=Promise.resolve(m);function b(e){const t=Object.freeze({[Symbol.toStringTag]:"Result",[d]:"Ok",*[Symbol.iterator](){yield e},toString:()=>`Ok(${e})`,isOk:()=>!0,isErr:()=>!1,isOkAnd:t=>t(e),isOkAndAsync:t=>Promise.resolve(t(e)),isErrAnd:e=>!1,isErrAndAsync:e=>y,expect:t=>e,unwrap:()=>e,unwrapOr:t=>e,unwrapOrElse:t=>e,unwrapOrElseAsync:t=>Promise.resolve(e),expectErr(t){throw new TypeError(`${t}: ${e}`)},unwrapErr(){throw new TypeError("Result::unwrapErr() called on an `Ok` value")},intoOk:()=>e,intoErr(){throw new TypeError("Result::intoErr() called on an `Ok` value")},ok:()=>g(e),err:()=>m,transpose:()=>(E(e),e.isSome()?g(b(e.unwrap())):m),map:t=>b(t(e)),mapErr:e=>t,mapOr:(t,n)=>n(e),mapOrElse:(t,n)=>n(e),flatten:()=>(S(e),e),and:e=>(S(e),e),or:e=>t,andThen:t=>t(e),andThenAsync:t=>Promise.resolve(t(e)),orElse:e=>t,orElseAsync:e=>Promise.resolve(t),inspect:n=>(n(e),t),inspectErr:e=>t,eq:t=>(S(t),t.isOk()&&t.unwrap()===e),asOk:()=>t,asErr(){throw new TypeError("Result::asErr() called on an `Ok` value")},andTryAsync(t){try{const n=t(e);return Promise.resolve(n).then(b,v)}catch(e){return Promise.resolve(v(e))}},orTryAsync:e=>Promise.resolve(t)});return t}function v(e){const t=Object.freeze({[Symbol.toStringTag]:"Result",[d]:"Err",*[Symbol.iterator](){},toString:()=>`Err(${e})`,isOk:()=>!1,isErr:()=>!0,isOkAnd:e=>!1,isOkAndAsync:e=>y,isErrAnd:t=>t(e),isErrAndAsync:t=>Promise.resolve(t(e)),expect(t){throw new TypeError(`${t}: ${e}`)},unwrap(){throw new TypeError("Result::unwrap() called on an `Err` value")},unwrapOr:e=>e,unwrapOrElse:t=>t(e),unwrapOrElseAsync:t=>Promise.resolve(t(e)),expectErr:t=>e,unwrapErr:()=>e,intoOk(){throw new TypeError("Result::intoOk() called on an `Err` value")},intoErr:()=>e,ok:()=>m,err:()=>g(e),transpose:()=>g(t),map:e=>t,mapErr:t=>v(t(e)),mapOr:(e,t)=>e,mapOrElse:(t,n)=>t(e),flatten:()=>t,and:e=>t,or:e=>(S(e),e),andThen:e=>t,andThenAsync:e=>Promise.resolve(t),orElse:t=>t(e),orElseAsync:t=>Promise.resolve(t(e)),inspect:e=>t,inspectErr:n=>(n(e),t),eq:t=>(S(t),t.isErr()&&t.unwrapErr()===e),asOk(){throw new TypeError("Result::asOk() called on an `Err` value")},asErr:()=>t,andTryAsync:e=>Promise.resolve(t),orTryAsync(t){try{const n=t(e);return Promise.resolve(n).then(b,v)}catch(e){return Promise.resolve(v(e))}}});return t}function _(e){try{return null===e?"null":void 0===e?"undefined":"object"==typeof e?Object.prototype.toString.call(e):String(e)}catch{return"[unable to stringify]"}}function E(e){if(!function(e){return null!=e&&"object"==typeof e&&h in e}(e))throw new TypeError(`Expected an Option, but received: ${_(e)}`)}function S(e){if(!function(e){return null!=e&&"object"==typeof e&&d in e}(e))throw new TypeError(`Expected a Result, but received: ${_(e)}`)}const R=b(!1),A=b(),T="AbortError",O="TimeoutError";var k=class extends Error{name="FetchError";status;constructor(e,t){super(e),this.status=t}};function x(e,t){const n=function(e){if(e instanceof URL)return e;try{return new URL(e,"undefined"!=typeof location?location.href:void 0)}catch{throw new TypeError(`Invalid URL: ${e}`)}}(e),r=t??{},{retries:i,delay:o,when:a,onRetry:s}=function(e){const{responseType:t,timeout:n,retry:r=0,onProgress:i,onChunk:o}=e;if(null!=t){const e=["text","arraybuffer","blob","json","bytes","stream"];if(!e.includes(t))throw new TypeError(`responseType must be one of ${e.join(", ")} but received ${t}`)}if(null!=n){if("number"!=typeof n)throw new TypeError("timeout must be a number but received "+typeof n);if(n<=0)throw new Error(`timeout must be a number greater than 0 but received ${n}`)}if(null!=i&&"function"!=typeof i)throw new TypeError("onProgress callback must be a function but received "+typeof i);if(null!=o&&"function"!=typeof o)throw new TypeError("onChunk callback must be a function but received "+typeof o);let a,s,u=0,f=0;if("number"==typeof r?u=r:r&&"object"==typeof r&&(u=r.retries??0,f=r.delay??0,a=r.when,s=r.onRetry),!Number.isInteger(u))throw new TypeError(`Retry count must be an integer but received ${u}`);if(u<0)throw new Error(`Retry count must be non-negative but received ${u}`);if("number"==typeof f){if(f<0)throw new Error(`Retry delay must be a non-negative number but received ${f}`)}else if("function"!=typeof f)throw new TypeError("Retry delay must be a number or a function but received "+typeof f);if(null!=a&&!Array.isArray(a)&&"function"!=typeof a)throw new TypeError("Retry when condition must be an array of status codes or a function but received "+typeof a);if(null!=s&&"function"!=typeof s)throw new TypeError("Retry onRetry callback must be a function but received "+typeof s);return{retries:u,delay:f,when:a,onRetry:s}}(r),{abortable:u=!1,responseType:f,timeout:c,onProgress:l,onChunk:h,...d}=r,p=d.signal;let y;u&&(y=new AbortController);const g=(e,t)=>"AbortError"!==e.name&&(a?Array.isArray(a)?e instanceof k&&a.includes(e.status):a(e,t):!(e instanceof k)),m=e=>"function"==typeof o?o(e):o,w=()=>{const e=[];p&&e.push(p),y&&e.push(y.signal),"number"==typeof c&&e.push(function(e){if("function"==typeof AbortSignal.timeout)return AbortSignal.timeout(e);const t=new AbortController,n=function(){const e="The operation timed out.";try{return new DOMException(e,O)}catch{const t=new Error(e);return t.name=O,t}}(),r=setTimeout(()=>{t.abort(n)},e);return"function"==typeof r?.unref&&r.unref(),t.signal}(c)),e.length>0&&(d.signal=1===e.length?e[0]:function(e){if("function"==typeof AbortSignal.any)return AbortSignal.any(e);const t=new AbortController;for(const n of e)if(n.aborted)return t.abort(n.reason),t.signal;const n=e=>{t.abort(e.target.reason)};for(const t of e)t.addEventListener("abort",n);return t.signal.addEventListener("abort",()=>{for(const t of e)t.removeEventListener("abort",n)}),t.signal}(e))},_=async()=>{w();try{const e=await fetch(n,d);return e.ok?await E(e):(e.body?.cancel().catch(()=>{}),v(new k(e.statusText,e.status)))}catch(e){return v(e instanceof Error?e:C(e))}},E=async e=>{switch(e.body&&(l||h)&&(async e=>{let t,n=0;if(l){const n=e.headers.get("content-length");if(null==n)try{l(v(new Error("No content-length in response headers")))}catch{}else t=Number.parseInt(n,10)}const r=e.clone().body;try{for await(const e of r){if(h)try{h(e)}catch{}if(l&&null!=t){n+=e.byteLength;try{l(b({totalByteLength:t,completedByteLength:n}))}catch{}}}}catch{}})(e),f){case"json":if(null==e.body)return b(null);try{return b(await e.json())}catch{return v(new Error("Response is invalid json while responseType is json"))}case"text":return b(await e.text());case"bytes":return"function"==typeof e.bytes?b(await e.bytes()):b(new Uint8Array(await e.arrayBuffer()));case"arraybuffer":return b(await e.arrayBuffer());case"blob":return b(await e.blob());case"stream":return b(e.body);default:return b(e)}},S=(async()=>{let e,t=0;do{if(t>0){if(y?.signal.aborted)return v(y.signal.reason);const n=m(t);if(n>0&&(await L(n),y?.signal.aborted))return v(y.signal.reason);try{s?.(e,t)}catch{}}const n=await _();if(n.isOk())return n;e=n.unwrapErr(),t++}while(t<=i&&g(e,t));return v(e)})();return u&&y?{abort(e){e instanceof Error?y.abort(e):null!=e?y.abort(C(e)):y.abort()},get aborted(){return y.signal.aborted},get result(){return S}}:S}function L(e){return new Promise(t=>setTimeout(t,e))}function C(e){const t=new Error("string"==typeof e?e:String(e));return t.name=T,t.cause=e,t}var B={},M=Uint8Array,U=Uint16Array,P=Int32Array,F=new M([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I=new M([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),N=new M([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),j=function(e,t){for(var n=new U(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new P(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},D=j(F,2),$=D.b,z=D.r;$[28]=258,z[258]=28;for(var W=j(I,0),q=W.b,H=W.r,G=new U(32768),K=0;K<32768;++K){var Y=(43690&K)>>1|(21845&K)<<1;Y=(61680&(Y=(52428&Y)>>2|(13107&Y)<<2))>>4|(3855&Y)<<4,G[K]=((65280&Y)>>8|(255&Y)<<8)>>1}var J=function(e,t,n){for(var r=e.length,i=0,o=new U(t);i<r;++i)e[i]&&++o[e[i]-1];var a,s=new U(t);for(i=1;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new U(1<<t);var u=15-t;for(i=0;i<r;++i)if(e[i])for(var f=i<<4|e[i],c=t-e[i],l=s[e[i]-1]++<<c,h=l|(1<<c)-1;l<=h;++l)a[G[l]>>u]=f}else for(a=new U(r),i=0;i<r;++i)e[i]&&(a[i]=G[s[e[i]-1]++]>>15-e[i]);return a},V=new M(288);for(K=0;K<144;++K)V[K]=8;for(K=144;K<256;++K)V[K]=9;for(K=256;K<280;++K)V[K]=7;for(K=280;K<288;++K)V[K]=8;var Z=new M(32);for(K=0;K<32;++K)Z[K]=5;var X=J(V,9,0),Q=J(V,9,1),ee=J(Z,5,0),te=J(Z,5,1),ne=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},re=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},ie=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},oe=function(e){return(e+7)/8|0},ae=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new M(e.subarray(t,n))},se=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ue=function(e,t,n){var r=new Error(t||se[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,ue),!n)throw r;return r},fe=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new M(0);var a=!n,s=a||2!=t.i,u=t.i;a&&(n=new M(3*i));var f=function(e){var t=n.length;if(e>t){var r=new M(Math.max(2*t,e));r.set(n),n=r}},c=t.f||0,l=t.p||0,h=t.b||0,d=t.l,p=t.d,y=t.m,g=t.n,m=8*i;do{if(!d){c=re(e,l,1);var w=re(e,l+1,3);if(l+=3,!w){var b=e[(L=oe(l)+4)-4]|e[L-3]<<8,v=L+b;if(v>i){u&&ue(0);break}s&&f(h+b),n.set(e.subarray(L,v),h),t.b=h+=b,t.p=l=8*v,t.f=c;continue}if(1==w)d=Q,p=te,y=9,g=5;else if(2==w){var _=re(e,l,31)+257,E=re(e,l+10,15)+4,S=_+re(e,l+5,31)+1;l+=14;for(var R=new M(S),A=new M(19),T=0;T<E;++T)A[N[T]]=re(e,l+3*T,7);l+=3*E;var O=ne(A),k=(1<<O)-1,x=J(A,O,1);for(T=0;T<S;){var L,C=x[re(e,l,k)];if(l+=15&C,(L=C>>4)<16)R[T++]=L;else{var B=0,U=0;for(16==L?(U=3+re(e,l,3),l+=2,B=R[T-1]):17==L?(U=3+re(e,l,7),l+=3):18==L&&(U=11+re(e,l,127),l+=7);U--;)R[T++]=B}}var P=R.subarray(0,_),j=R.subarray(_);y=ne(P),g=ne(j),d=J(P,y,1),p=J(j,g,1)}else ue(1);if(l>m){u&&ue(0);break}}s&&f(h+131072);for(var D=(1<<y)-1,z=(1<<g)-1,W=l;;W=l){var H=(B=d[ie(e,l)&D])>>4;if((l+=15&B)>m){u&&ue(0);break}if(B||ue(2),H<256)n[h++]=H;else{if(256==H){W=l,d=null;break}var G=H-254;if(H>264){var K=F[T=H-257];G=re(e,l,(1<<K)-1)+$[T],l+=K}var Y=p[ie(e,l)&z],V=Y>>4;if(Y||ue(3),l+=15&Y,j=q[V],V>3&&(K=I[V],j+=ie(e,l)&(1<<K)-1,l+=K),l>m){u&&ue(0);break}s&&f(h+131072);var Z=h+G;if(h<j){var X=o-j,ee=Math.min(j,Z);for(X+h<0&&ue(3);h<ee;++h)n[h]=r[X+h]}for(;h<Z;++h)n[h]=n[h-j]}}t.l=d,t.p=W,t.b=h,t.f=c,d&&(c=1,t.m=y,t.d=p,t.n=g)}while(!c);return h!=n.length&&a?ae(n,0,h):n.subarray(0,h)},ce=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},le=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},he=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:be,l:0};if(1==i){var a=new M(n[0].s+1);return a[n[0].s]=1,{t:a,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],u=n[1],f=0,c=1,l=2;for(n[0]={s:-1,f:s.f+u.f,l:s,r:u};c!=i-1;)s=n[n[f].f<n[l].f?f++:l++],u=n[f!=c&&n[f].f<n[l].f?f++:l++],n[c++]={s:-1,f:s.f+u.f,l:s,r:u};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var d=new U(h+1),p=de(n[c-1],d,0);if(p>t){r=0;var y=0,g=p-t,m=1<<g;for(o.sort(function(e,t){return d[t.s]-d[e.s]||e.f-t.f});r<i;++r){var w=o[r].s;if(!(d[w]>t))break;y+=m-(1<<p-d[w]),d[w]=t}for(y>>=g;y>0;){var b=o[r].s;d[b]<t?y-=1<<t-d[b]++-1:++r}for(;r>=0&&y;--r){var v=o[r].s;d[v]==t&&(--d[v],++y)}p=t}return{t:new M(d),l:p}},de=function(e,t,n){return-1==e.s?Math.max(de(e.l,t,n+1),de(e.r,t,n+1)):t[e.s]=n},pe=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new U(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return{c:n.subarray(0,r),n:t}},ye=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},ge=function(e,t,n){var r=n.length,i=oe(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},me=function(e,t,n,r,i,o,a,s,u,f,c){ce(t,c++,n),++i[256];for(var l=he(i,15),h=l.t,d=l.l,p=he(o,15),y=p.t,g=p.l,m=pe(h),w=m.c,b=m.n,v=pe(y),_=v.c,E=v.n,S=new U(19),R=0;R<w.length;++R)++S[31&w[R]];for(R=0;R<_.length;++R)++S[31&_[R]];for(var A=he(S,7),T=A.t,O=A.l,k=19;k>4&&!T[N[k-1]];--k);var x,L,C,B,M=f+5<<3,P=ye(i,V)+ye(o,Z)+a,j=ye(i,h)+ye(o,y)+a+14+3*k+ye(S,T)+2*S[16]+3*S[17]+7*S[18];if(u>=0&&M<=P&&M<=j)return ge(t,c,e.subarray(u,u+f));if(ce(t,c,1+(j<P)),c+=2,j<P){x=J(h,d,0),L=h,C=J(y,g,0),B=y;var D=J(T,O,0);for(ce(t,c,b-257),ce(t,c+5,E-1),ce(t,c+10,k-4),c+=14,R=0;R<k;++R)ce(t,c+3*R,T[N[R]]);c+=3*k;for(var $=[w,_],z=0;z<2;++z){var W=$[z];for(R=0;R<W.length;++R){var q=31&W[R];ce(t,c,D[q]),c+=T[q],q>15&&(ce(t,c,W[R]>>5&127),c+=W[R]>>12)}}}else x=X,L=V,C=ee,B=Z;for(R=0;R<s;++R){var H=r[R];if(H>255){le(t,c,x[257+(q=H>>18&31)]),c+=L[q+257],q>7&&(ce(t,c,H>>23&31),c+=F[q]);var G=31&H;le(t,c,C[G]),c+=B[G],G>3&&(le(t,c,H>>5&8191),c+=I[G])}else le(t,c,x[H]),c+=L[H]}return le(t,c,x[256]),c+L[256]},we=new P([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),be=new M(0),ve=function(e,t,n,r,i,o){var a=o.z||e.length,s=new M(r+a+5*(1+Math.ceil(a/7e3))+i),u=s.subarray(r,s.length-i),f=o.l,c=7&(o.r||0);if(t){c&&(u[0]=o.r>>3);for(var l=we[t-1],h=l>>13,d=8191&l,p=(1<<n)-1,y=o.p||new U(32768),g=o.h||new U(p+1),m=Math.ceil(n/3),w=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<w)&p},v=new P(25e3),_=new U(288),E=new U(32),S=0,R=0,A=o.i||0,T=0,O=o.w||0,k=0;A+2<a;++A){var x=b(A),L=32767&A,C=g[x];if(y[L]=C,g[x]=L,O<=A){var B=a-A;if((S>7e3||T>24576)&&(B>423||!f)){c=me(e,u,0,v,_,E,R,T,k,A-k,c),T=S=R=0,k=A;for(var N=0;N<286;++N)_[N]=0;for(N=0;N<30;++N)E[N]=0}var j=2,D=0,$=d,W=L-C&32767;if(B>2&&x==b(A-W))for(var q=Math.min(h,B)-1,G=Math.min(32767,A),K=Math.min(258,B);W<=G&&--$&&L!=C;){if(e[A+j]==e[A+j-W]){for(var Y=0;Y<K&&e[A+Y]==e[A+Y-W];++Y);if(Y>j){if(j=Y,D=W,Y>q)break;var J=Math.min(W,Y-2),V=0;for(N=0;N<J;++N){var Z=A-W+N&32767,X=Z-y[Z]&32767;X>V&&(V=X,C=Z)}}}W+=(L=C)-(C=y[L])&32767}if(D){v[T++]=268435456|z[j]<<18|H[D];var Q=31&z[j],ee=31&H[D];R+=F[Q]+I[ee],++_[257+Q],++E[ee],O=A+j,++S}else v[T++]=e[A],++_[e[A]]}}for(A=Math.max(A,O);A<a;++A)v[T++]=e[A],++_[e[A]];c=me(e,u,f,v,_,E,R,T,k,A-k,c),f||(o.r=7&c|u[c/8|0]<<3,c-=7,o.h=g,o.p=y,o.i=A,o.w=O)}else{for(A=o.w||0;A<a+f;A+=65535){var te=A+65535;te>=a&&(u[c/8|0]=f,te=a),c=ge(u,c+1,e.subarray(A,te))}o.i=a}return ae(s,0,r+oe(c)+i)},_e=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Ee=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new M(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return ve(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},Se=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Re=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<r.length;++a){var s=r[a],u=o[a];if("function"==typeof s){t+=";"+u+"=";var f=s.toString();if(s.prototype)if(-1!=f.indexOf("[native code]")){var c=f.indexOf(" ",8)+1;t+=f.slice(c,f.indexOf("(",c))}else for(var l in t+=f,s.prototype)t+=";"+u+".prototype."+l+"="+s.prototype[l].toString();else t+=f}else n[u]=s}return t},Ae=[],Te=function(){return[M,U,P,F,I,N,$,q,Q,te,G,se,J,ne,re,ie,oe,ae,ue,fe,Fe,ke,xe]},Oe=function(){return[M,U,P,F,I,N,z,H,X,V,ee,Z,G,we,be,J,ce,le,he,de,pe,ye,ge,me,oe,ae,ve,Ee,Pe,ke]},ke=function(e){return postMessage(e,[e.buffer])},xe=function(e){return e&&{out:e.size&&new M(e.size),dictionary:e.dictionary}},Le=function(e,t,n,r,i,o){var a=function(e,t,n,r){if(!Ae[n]){for(var i="",o={},a=e.length-1,s=0;s<a;++s)i=Re(e[s],i,o);Ae[n]={c:Re(e[a],i,o),e:o}}var u=Se({},Ae[n].e);return function(e,t,n,r,i){var o=new Worker(B[t]||(B[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],i(r,null)}else i(null,t)},o.postMessage(n,r),o}(Ae[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,u,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(u),r)}(n,r,i,function(e,t){a.terminate(),o(e,t)});return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},Ce=function(e,t){return e[t]|e[t+1]<<8},Be=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Me=function(e,t){return Be(e,t)+4294967296*Be(e,t+4)},Ue=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Pe(e,t){return Ee(e,t||{},0,0)}function Fe(e,t){return fe(e,{i:2},t&&t.out,t&&t.dictionary)}var Ie=function(e,t,n,r){for(var i in e){var o=e[i],a=t+i,s=r;Array.isArray(o)&&(s=Se(r,o[1]),o=o[0]),ArrayBuffer.isView(o)?n[a]=[o,s]:(n[a+="/"]=[new M(0),s],Ie(o,a,n,r))}},Ne="undefined"!=typeof TextEncoder&&new TextEncoder,je="undefined"!=typeof TextDecoder&&new TextDecoder;try{je.decode(be,{stream:!0})}catch(e){}function De(e,t){if(t){for(var n=new M(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(Ne)return Ne.encode(e);var i=e.length,o=new M(e.length+(e.length>>1)),a=0,s=function(e){o[a++]=e};for(r=0;r<i;++r){if(a+5>o.length){var u=new M(a+8+(i-r<<1));u.set(o),o=u}var f=e.charCodeAt(r);f<128||t?s(f):f<2048?(s(192|f>>6),s(128|63&f)):f>55295&&f<57344?(s(240|(f=65536+(1047552&f)|1023&e.charCodeAt(++r))>>18),s(128|f>>12&63),s(128|f>>6&63),s(128|63&f)):(s(224|f>>12),s(128|f>>6&63),s(128|63&f))}return ae(o,0,a)}function $e(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(je)return je.decode(e);var i=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:ae(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}}(e),o=i.s;return(n=i.r).length&&ue(8),o}var ze=function(e,t,n,r,i,o,a){var s=4294967295==i,u=4294967295==o,f=4294967295==a,c=t+n;if(r&&s+u+f){for(;t+4<c;t+=4+Ce(e,t+2))if(1==Ce(e,t))return[s?Me(e,t+4+8*u):i,u?Me(e,t+4):o,f?Me(e,t+4+8*(u+s)):a,1];r<2&&ue(13)}return[i,o,a,0]},We=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&ue(9),t+=r+4}return t},qe=function(e,t,n,r,i,o,a,s){var u=r.length,f=n.extra,c=s&&s.length,l=We(f);Ue(e,t,null!=a?33639248:67324752),t+=4,null!=a&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),d=h.getFullYear()-1980;if((d<0||d>119)&&ue(10),Ue(e,t,d<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=o&&(Ue(e,t,n.crc),Ue(e,t+4,o<0?-o-2:o),Ue(e,t+8,n.size)),Ue(e,t+12,u),Ue(e,t+14,l),t+=16,null!=a&&(Ue(e,t,c),Ue(e,t+6,n.attrs),Ue(e,t+10,a),t+=14),e.set(r,t),t+=u,l)for(var p in f){var y=f[p],g=y.length;Ue(e,t,+p),Ue(e,t+2,g),e.set(y,t+4),t+=4+g}return c&&(e.set(s,t),t+=c),t};function He(e,t,n){n||(n=t,t={}),"function"!=typeof n&&ue(7);var r={};Ie(e,"",r,t);var i=Object.keys(r),o=i.length,a=0,s=0,u=o,f=new Array(o),c=[],l=function(){for(var e=0;e<c.length;++e)c[e]()},h=function(e,t){Ge(function(){n(e,t)})};Ge(function(){h=n});var d=function(){var e=new M(s+22),t=a,n=s-a;s=0;for(var r=0;r<u;++r){var i=f[r];try{var o=i.c.length;qe(e,s,i,i.f,i.u,o);var c=30+i.f.length+We(i.extra),l=s+c;e.set(i.c,l),qe(e,a,i,i.f,i.u,o,s,i.m),a+=16+c+(i.m?i.m.length:0),s=l+o}catch(e){return h(e,null)}}(function(e,t,n,r,i){Ue(e,t,101010256),Ue(e,t+8,n),Ue(e,t+10,n),Ue(e,t+12,r),Ue(e,t+16,i)})(e,a,f.length,n,t),h(null,e)};o||d();for(var p=function(e){var t=i[e],n=r[t],u=n[0],p=n[1],y=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=_e[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),g=u.length;y.p(u);var m=De(t),w=m.length,b=p.comment,v=b&&De(b),_=v&&v.length,E=We(p.extra),S=0==p.level?0:8,R=function(n,r){if(n)l(),h(n,null);else{var i=r.length;f[e]=Se(p,{size:g,crc:y.d(),c:r,f:m,m:v,u:w!=t.length||v&&b.length!=_,compression:S}),a+=30+w+E+i,s+=76+2*(w+E)+(_||0)+i,--o||d()}};if(w>65535&&R(ue(11,0,1),null),S)if(g<16e4)try{R(null,Pe(u,p))}catch(e){R(e,null)}else c.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&ue(7),Le(e,t,[Oe],function(e){return ke(Pe(e.data[0],e.data[1]))},0,n)}(u,p,R));else R(null,u)},y=0;y<u;++y)p(y);return l}var Ge="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};class Ke{resolve;reject;promise;constructor(){if("function"==typeof Promise.withResolvers){const{promise:e,resolve:t,reject:n}=Promise.withResolvers();this.promise=e,this.resolve=t,this.reject=n}else this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ye="NotFoundError",Je="/",Ve=".",Ze="/tmp";function Xe(e){r("string"==typeof e),r(e[0]===Je)}function Qe(e){r("string"==typeof e)}let et;function tt(e){return e===Je}async function nt(e,t,n){try{return b(await e.getDirectoryHandle(t,n))}catch(n){const r=n,i=new Error(`${r.name}: ${r.message} When get child directory '${t}' from directory '${e.name||Je}'.`);return i.name=r.name,v(i)}}async function rt(e,t){let n=await async function(){return et??=await navigator.storage.getDirectory(),et}();if(tt(e))return b(n);let r=e.slice(1);for(;r;){let e="";const i=r.indexOf("/");if(-1===i)e=r,r="";else if(e=r.slice(0,i),r=r.slice(i+1),0===i)continue;const o=await nt(n,e,t);if(o.isErr())return o;n=o.unwrap()}return b(n)}async function it(e,t){const n=t?.create??!1,r=u(e),i=f(e);return(await rt(r,{create:n})).andThenAsync(e=>async function(e,t,n){try{return b(await e.getFileHandle(t,n))}catch(n){const r=n,i=new Error(`${r.name}: ${r.message} When get child file '${t}' from directory '${e.name||Je}'.`);return i.name=r.name,v(i)}}(e,i,{create:n}))}function ot(e){return e.name===Ye}async function at(e){const t=(await Promise.all(e)).find(e=>e.isErr());return t??A}function st(){const e=new Error;return e.name=T,e}function ut(e){const{isDirectory:t=!1,basename:n="tmp",extname:r=""}=e??{},i=t?"":r;return c(Ze,`${n?`${n}-`:""}${crypto.randomUUID()}${i}`)}function ft(e){return e.startsWith(`${Ze}/`)}async function ct(e){const{name:t,kind:n}=e;if(lt(e)){const r=await e.getFile(),{size:i,lastModified:o,type:a}=r;return{name:t,kind:n,type:a,size:i,lastModified:o}}return{name:t,kind:n}}function lt(e){return"file"===e.kind}function ht(e){return"directory"===e.kind}function dt(e){return"file"===e.kind}async function pt(e){const t=await e.getFile(),n=await t.arrayBuffer();return new Uint8Array(n)}async function yt(e){return Xe(e),(await it(e,{create:!0})).and(A)}async function gt(e){return Xe(e),(await rt(e,{create:!0})).and(A)}async function mt(e,t){async function*n(r,i){const o=r.entries();for await(const[a,s]of o){const o=i===e?a:c(i,a);yield{path:o,handle:s},ht(s)&&t?.recursive&&(yield*n(await r.getDirectoryHandle(a),o))}}return Xe(e),(await rt(e)).andThen(t=>b(n(t,e)))}async function wt(e,t){return Xe(e),(await it(e)).andThenAsync(async e=>{const n=await e.getFile();switch(t?.encoding){case"blob":return b(n);case"utf8":return b(await n.text());default:return b(await n.arrayBuffer())}})}async function bt(e){Xe(e);const t=u(e),n=f(e),r=await rt(t);return(await r.andThenAsync(async e=>{try{tt(t)&&tt(n)?await e.remove({recursive:!0}):await e.removeEntry(n,{recursive:!0})}catch(e){return v(e)}return A})).orElse(e=>ot(e)?A:v(e))}async function vt(e){Xe(e);const t=u(e),n=f(e),r=await rt(t);return n?r.andThenAsync(async t=>{for await(const[e,r]of t.entries())if(e===n)return b(r);const r=new Error(`${Ye}: '${n}' does not exist. Full path is '${e}'.`);return r.name=Ye,v(r)}):r}async function _t(e,t,n){Xe(e);const{append:r=!1,create:i=!0}=n??{};return(await it(e,{create:i})).andThenAsync(async e=>{const n=await e.createWritable({keepExistingData:r}),i={type:"write",data:t};if(r){const{size:t}=await e.getFile();i.position=t}return await n.write(i),await n.close(),A})}function Et(e,t,n){let r,i;Qe(e),i=!1,"string"==typeof t?Xe(t):(n=t,t=ut({extname:l(e)}),i=!0),r=!1;const o=x(e,{redirect:"follow",...n,abortable:!0}),a=(async()=>(await o.response).andThenAsync(async e=>{const n=await e.blob();return r?v(st()):(await _t(t,n)).and(b(e))}))();return{abort(e){r=!0,o.abort(e)},get aborted(){return r},get response(){return i?a.then(e=>e.map(e=>({tempFilePath:t,rawResponse:e}))):a}}}async function St(e,t){const n=u(t);return(await rt(n,{create:!0})).andThenAsync(async n=>{const r=f(t);try{return await e.move(n,r),A}catch(e){return v(e)}})}async function Rt(e,t,n,r=!0){return Xe(t),(await vt(e)).andThenAsync(async i=>{let o;o=!1;const a=await vt(t);if(a.isErr()){if(!ot(a.unwrapErr()))return a.asErr()}else{o=!0;const e=a.unwrap();if(!(lt(i)&<(e)||ht(i)&&ht(e)))return v(new Error("Both 'srcPath' and 'destPath' must both be a file or directory."))}return lt(i)?r||!o?await n(i,t):A:(await mt(e,{recursive:!0})).andThenAsync(async e=>{const i=[gt(t)];for await(const{path:a,handle:s}of e){const e=c(t,a);let u=!1;if(o){const t=await kt(e);if(t.isErr()){i.push(Promise.resolve(t.asErr()));continue}u=t.unwrap()}const f=lt(s)?r||!u?n(s,e):Promise.resolve(A):gt(e);i.push(f)}return at(i)})})}function At(e,t){return _t(e,t,{append:!0})}async function Tt(e,t,n){const{overwrite:r=!0}=n??{};return Rt(e,t,async(e,t)=>await _t(t,await e.getFile()),r)}async function Ot(e){const t=await mt(e);if(t.isErr())return ot(t.unwrapErr())?gt(e):t.asErr();const n=[];for await(const{path:r}of t.unwrap())n.push(bt(c(e,r)));return at(n)}async function kt(e,t){const{isDirectory:n=!1,isFile:i=!1}=t??{};r(!(n&&i));const o=await vt(e);return o.andThen(e=>b(!(n&<(e)||i&&ht(e)))).orElse(e=>ot(e)?R:o.asErr())}async function xt(e,t,n){const{overwrite:r=!0}=n??{};return(await Rt(e,t,St,r)).andThenAsync(()=>bt(e))}function Lt(e){return wt(e,{encoding:"blob"})}async function Ct(e){return(await Bt(e)).andThenAsync(async e=>{try{return b(JSON.parse(e))}catch(e){return v(e)}})}function Bt(e){return wt(e,{encoding:"utf8"})}async function Mt(e){const{isDirectory:t=!1}=e??{},n=ut(e);return(await(t?gt:yt)(n)).and(b(n))}function Ut(){return bt(Ze)}async function Pt(e){return r(e instanceof Date),(await mt(Ze,{recursive:!0})).andThenAsync(async t=>{try{for await(const{handle:n}of t)lt(n)&&(await n.getFile()).lastModified<=e.getTime()&&await n.remove()}catch(e){return v(e)}return A})}async function Ft(e,t){const n=new Uint8Array(e),r=new Ke;return function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&ue(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},a=function(e,t){Ge(function(){n(e,t)})};Ge(function(){a=n});for(var s=e.length-22;101010256!=Be(e,s);--s)if(!s||e.length-s>65558)return a(ue(13,0,1),null),i;var u=Ce(e,s+8);if(u){var f=u,c=Be(e,s+16),l=117853008==Be(e,s-20);if(l){var h=Be(e,s-12);(l=101075792==Be(e,h))&&(f=u=Be(e,h+32),c=Be(e,h+48))}for(var d=t&&t.filter,p=function(t){var n=function(e,t,n){var r=Ce(e,t+28),i=Ce(e,t+30),o=$e(e.subarray(t+46,t+46+r),!(2048&Ce(e,t+8))),a=t+46+r,s=ze(e,a,i,n,Be(e,t+20),Be(e,t+24),Be(e,t+42)),u=s[0],f=s[1],c=s[2];return[Ce(e,t+10),u,f,o,a+i+Ce(e,t+32),c]}(e,c,l),s=n[0],f=n[1],h=n[2],p=n[3],y=n[4],g=n[5],m=function(e,t){return t+30+Ce(e,t+26)+Ce(e,t+28)}(e,g);c=y;var w=function(e,t){e?(i(),a(e,null)):(t&&(o[p]=t),--u||a(null,o))};if(!d||d({name:p,size:f,originalSize:h,compression:s}))if(s)if(8==s){var b=e.subarray(m,m+f);if(h<524288||f>.8*h)try{w(null,Fe(b,{out:new M(h)}))}catch(e){w(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&ue(7),Le(e,t,[Te],function(e){return ke(Fe(e.data[0],xe(e.data[1])))},1,n)}(b,{size:h},w))}else w(ue(14,"unknown compression type "+s,1),null);else w(null,ae(e,m,m+f));else w(null,null)},y=0;y<f;++y)p()}else a(null,{})}(n,async(e,n)=>{if(e)return void r.resolve(v(e));const i=[];for(const e in n)"/"!==e.at(-1)&&i.push(_t(c(t,e),n[e]));r.resolve(at(i))}),await r.promise}async function It(e,t){return Xe(t),(await wt(e)).andThenAsync(e=>Ft(e,t))}async function Nt(e,t,n){return Qe(e),Xe(t),(await x(e,{redirect:"follow",...n,responseType:"arraybuffer",abortable:!1})).andThenAsync(e=>Ft(e,t))}function jt(e,t,n){let r,i;Qe(t),r=!1;const o=(async()=>(await Lt(e)).andThenAsync(async o=>{if(r)return v(st());const{filename:a=f(e),...s}=n??{},u=new FormData;return u.append(a,o,a),i=x(t,{method:"POST",...s,abortable:!0,body:u}),i.response}))();return{abort(e){r=!0,i?.abort(e)},get aborted(){return r},get response(){return o}}}async function Dt(e,t){const n=new Ke;return He(e,{consume:!0},async(e,r)=>{if(e)n.resolve(v(e));else if(t){const e=await _t(t,r);n.resolve(e)}else n.resolve(b(r))}),await n.promise}async function $t(e,t,n){return"string"==typeof t?Xe(t):(n=t,t=void 0),(await vt(e)).andThenAsync(async r=>{const i=f(e),o={};if(lt(r)){const e=await pt(r);o[i]=e}else{const t=await mt(e,{recursive:!0});if(t.isErr())return t.asErr();const r=n?.preserveRoot??!0;for await(const{path:e,handle:n}of t.unwrap())if(lt(n)){const t=r?c(i,e):e,a=await pt(n);o[t]=a}}return Dt(o,t)})}async function zt(e,t,n){return Qe(e),"string"==typeof t?Xe(t):(n=t,t=void 0),(await x(e,{redirect:"follow",...n,responseType:"arraybuffer",abortable:!1})).andThenAsync(n=>{const r={};return r[f(e)]=new Uint8Array(n),Dt(r,t)})}function Wt(){return"function"==typeof navigator?.storage?.getDirectory}function qt(e){return e?{name:e.name,message:e.message}:e}async function Ht(e){const t=await e.arrayBuffer();return{name:e.name,type:e.type,lastModified:e.lastModified,size:t.byteLength,data:t}}let Gt=1e3;var Kt=(e=>(e[e.createFile=0]="createFile",e[e.mkdir=1]="mkdir",e[e.move=2]="move",e[e.readDir=3]="readDir",e[e.remove=4]="remove",e[e.stat=5]="stat",e[e.writeFile=6]="writeFile",e[e.appendFile=7]="appendFile",e[e.copy=8]="copy",e[e.emptyDir=9]="emptyDir",e[e.exists=10]="exists",e[e.deleteTemp=11]="deleteTemp",e[e.mkTemp=12]="mkTemp",e[e.pruneTemp=13]="pruneTemp",e[e.readBlobFile=14]="readBlobFile",e[e.unzip=15]="unzip",e[e.zip=16]="zip",e))(Kt||{});let Yt,Jt;function Vt(e){const t=JSON.stringify(e);return(Yt??=new TextEncoder,Yt).encode(t)}function Zt(e){const t=Xt(e);return JSON.parse(t)}function Xt(e){return(Jt??=new TextDecoder,Jt).decode(e)}class Qt{i32a;u8a;headerLength=16;maxDataLength;constructor(e){this.i32a=new Int32Array(e),this.u8a=new Uint8Array(e),this.maxDataLength=e.byteLength-this.headerLength}}async function en(e,t){const{i32a:n,u8a:r,headerLength:i,maxDataLength:o}=e;for(;1!==Atomics.load(n,1););const a=n[2],s=r.slice(i,i+a);let u=await t(s);const f=u.byteLength;if(f>o){const e=`Response is too large: ${f} > ${o}. Consider grow the size of SharedArrayBuffer.`;if(u=Vt([{name:"RangeError",message:e}]),u.byteLength>o)throw Atomics.store(n,1,0),new RangeError(e)}n[2]=u.byteLength,r.set(u,i),Atomics.store(n,1,0),Atomics.store(n,0,0)}const tn={[Kt.createFile]:yt,[Kt.mkdir]:gt,[Kt.move]:xt,[Kt.readDir]:mt,[Kt.remove]:bt,[Kt.stat]:vt,[Kt.writeFile]:_t,[Kt.appendFile]:At,[Kt.copy]:Tt,[Kt.emptyDir]:Ot,[Kt.exists]:kt,[Kt.deleteTemp]:Ut,[Kt.mkTemp]:Mt,[Kt.pruneTemp]:Pt,[Kt.readBlobFile]:Lt,[Kt.unzip]:It,[Kt.zip]:$t};let nn,rn;function on(){if("undefined"!=typeof window)throw new Error("Only can use in worker");if(nn)throw new Error("Worker messenger already started");addEventListener("message",e=>{const t=e.data;if(!(t instanceof SharedArrayBuffer))throw new TypeError("Only can post SharedArrayBuffer to Worker");nn=new Qt(t),postMessage(!0),async function(){for(;;)try{await en(nn,async e=>{const[t,...n]=Zt(e);let r;t===Kt.writeFile||t===Kt.appendFile?Array.isArray(n[1])&&(n[1]=new Uint8Array(n[1])):t===Kt.pruneTemp&&(n[0]=new Date(n[0]));const i=tn[t];try{const e=await i(...n);if(e.isErr())r=Vt([qt(e.unwrapErr())]);else{let n;if(t===Kt.readBlobFile){const t=e.unwrap(),r=await Ht(t);n={...r,data:[...new Uint8Array(r.data)]}}else if(t===Kt.readDir){const t=e.unwrap(),r=[];for await(const{path:e,handle:n}of t){const t=await ct(n);r.push({path:e,handle:t})}n=r}else if(t===Kt.stat){const t=e.unwrap();n=await ct(t)}else if(t===Kt.zip){const t=e.unwrap();n=t instanceof Uint8Array?[...t]:t}else n=e.unwrap();r=Vt([null,n])}}catch(e){r=Vt([qt(e)])}return r})}catch(e){console.error(e instanceof Error?e.stack:e)}}()})}function an(e){if("undefined"==typeof window)throw new Error("Only can use in main thread");if(rn)throw new Error("Main messenger already started");return new Promise(t=>{const{worker:n,bufferLength:i=1048576,opTimeout:o=1e3}=e;r(n instanceof Worker||n instanceof URL||"string"==typeof n&&n),r(i>16&&i%4==0),r(Number.isInteger(o)&&o>0),Gt=o;const a=n instanceof Worker?n:new Worker(n),s=new SharedArrayBuffer(i);a.addEventListener("message",e=>{e.data&&(rn=new Qt(s),t())}),a.postMessage(s)})}function sn(){return rn}function un(e){r(null!=e),rn=e}function fn(e,...t){if(!rn)return v(new Error("Worker not initialized. Come back later."));const n=Vt([e,...t]);try{const e=Zt(function(e,t){const{i32a:n,u8a:r,headerLength:i,maxDataLength:o}=e,a=t.byteLength;if(a>o)throw new RangeError(`Request is too large: ${a} > ${o}. Consider grow the size of SharedArrayBuffer.`);Atomics.store(n,0,1),n[2]=a,r.set(t,i),Atomics.store(n,1,1),function(e){const t=Date.now();for(;!e();)if(Date.now()-t>Gt){const e=new Error("Operating Timeout");throw e.name=O,e}}(()=>0===Atomics.load(n,0));const s=n[2];return r.slice(i,i+s)}(rn,n)),t=e[0],r=t?v(function(e){const t=new Error(e.message);return t.name=e.name,t}(t)):b(e[1]??void 0);return r}catch(e){return v(e)}}function cn(e){return fn(Kt.createFile,e)}function ln(e){return fn(Kt.mkdir,e)}function hn(e,t,n){return fn(Kt.move,e,t,n)}function dn(e,t){return fn(Kt.readDir,e,t)}function pn(e,t){return fn(Kt.readBlobFile,e).map(e=>{const n=new Uint8Array(e.data);switch(e.data=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),t?.encoding){case"blob":return e;case"utf8":return Xt(new Uint8Array(e.data));default:return e.data}})}function yn(e){return fn(Kt.remove,e)}function gn(e){return fn(Kt.stat,e)}function mn(e){return e instanceof ArrayBuffer?[...new Uint8Array(e)]:ArrayBuffer.isView(e)?[...new Uint8Array(e.buffer)]:e}function wn(e,t,n){return fn(Kt.writeFile,e,mn(t),n)}function bn(e,t){return fn(Kt.appendFile,e,mn(t))}function vn(e,t,n){return fn(Kt.copy,e,t,n)}function _n(e){return fn(Kt.emptyDir,e)}function En(e,t){return fn(Kt.exists,e,t)}function Sn(){return fn(Kt.deleteTemp)}function Rn(e){return fn(Kt.mkTemp,e)}function An(e){return fn(Kt.pruneTemp,e)}function Tn(e){return pn(e,{encoding:"blob"})}function On(e){return kn(e).andThen(e=>{try{return b(JSON.parse(e))}catch(e){return v(e)}})}function kn(e){return pn(e,{encoding:"utf8"})}function xn(e,t){return fn(Kt.unzip,e,t)}function Ln(e,t,n){return fn(Kt.zip,e,t,n).map(e=>e?new Uint8Array(e):e)}},843(e,t,n){"use strict";n.d(t,{basename:()=>g,dirname:()=>w,join:()=>_,parse:()=>E});const r=function(){const e=globalThis,t=e.Deno?.build?.os;return"string"==typeof t?"windows"===t:e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}();function i(e){if("string"!=typeof e)throw new TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function o(e,t){if(t.length>=e.length)return e;const n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function a(e,t,n=0){let r=!1,i=e.length;for(let o=e.length-1;o>=n;--o)if(t(e.charCodeAt(o))){if(r){n=o+1;break}}else r||(r=!0,i=o+1);return e.slice(n,i)}function s(e,t){if(i(e),0===e.length)return e;if("string"!=typeof t)throw new TypeError(`Suffix must be a string, received "${JSON.stringify(t)}"`)}function u(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function f(e){return e=u(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function c(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function l(e){return 47===e}function h(e){return 47===e}function d(e){return 47===e||92===e}function p(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){e=u(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return""!==e.hostname&&(t=`\\\\${e.hostname}${t}`),t}function g(e,t=""){return r?function(e,t=""){e instanceof URL&&(e=y(e)),s(e,t);let n=0;e.length>=2&&p(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2);const r=c(a(e,d,n),d);return t?o(r,t):r}(e,t):function(e,t=""){e instanceof URL&&(e=f(e)),s(e,t);const n=c(a(e,l),l);return t?o(n,t):n}(e,t)}function m(e){if(i(e),0===e.length)return"."}function w(e){return r?function(e){e instanceof URL&&(e=y(e)),m(e);const t=e.length;let n=-1,r=-1,i=!0,o=0;const a=e.charCodeAt(0);if(t>1)if(d(a)){if(n=o=1,d(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!d(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&d(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!d(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=o=r+1)}}}}else p(a)&&58===e.charCodeAt(1)&&(n=o=2,t>2&&d(e.charCodeAt(2))&&(n=o=3));else if(d(a))return e;for(let n=t-1;n>=o;--n)if(d(e.charCodeAt(n))){if(!i){r=n;break}}else i=!1;if(-1===r){if(-1===n)return".";r=n}return c(e.slice(0,r),h)}(e):function(e){e instanceof URL&&(e=f(e)),m(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(l(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return-1===t?l(e.charCodeAt(0))?"/":".":c(e.slice(0,t),l)}(e)}function b(e){if(i(e),0===e.length)return"."}function v(e,t,n,r){let i,o="",a=0,s=-1,u=0;for(let f=0;f<=e.length;++f){if(f<e.length)i=e.charCodeAt(f);else{if(r(i))break;i=47}if(r(i)){if(s===f-1||1===u);else if(s!==f-1&&2===u){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(n)),s=f,u=0;continue}if(2===o.length||1===o.length){o="",a=0,s=f,u=0;continue}}t&&(o.length>0?o+=`${n}..`:o="..",a=2)}else o.length>0?o+=n+e.slice(s+1,f):o=e.slice(s+1,f),a=f-s-1;s=f,u=0}else 46===i&&-1!==u?++u:u=-1}return o}function _(e,...t){return r?function(e,...t){if(e instanceof URL&&(e=y(e)),(t=e?[e,...t]:t).forEach(e=>i(e)),t=t.filter(e=>e.length>0),0===t.length)return".";let n=!0,r=0;const o=t[0];if(d(o.charCodeAt(0))){++r;const e=o.length;e>1&&d(o.charCodeAt(1))&&(++r,e>2&&(d(o.charCodeAt(2))?++r:n=!1))}let a=t.join("\\");if(n){for(;r<a.length&&d(a.charCodeAt(r));++r);r>=2&&(a=`\\${a.slice(r)}`)}return function(e){e instanceof URL&&(e=y(e)),b(e);const t=e.length;let n,r=0,i=!1;const o=e.charCodeAt(0);if(t>1)if(d(o))if(i=!0,d(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!d(e.charCodeAt(i));++i);if(i<t&&i!==o){const a=e.slice(o,i);for(o=i;i<t&&d(e.charCodeAt(i));++i);if(i<t&&i!==o){for(o=i;i<t&&!d(e.charCodeAt(i));++i);if(i===t)return`\\\\${a}\\${e.slice(o)}\\`;i!==o&&(n=`\\\\${a}\\${e.slice(o,i)}`,r=i)}}}else r=1;else p(o)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),r=2,t>2&&d(e.charCodeAt(2))&&(i=!0,r=3));else if(d(o))return"\\";let a;return a=r<t?v(e.slice(r),!i,"\\",d):"",0!==a.length||i||(a="."),a.length>0&&d(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?i?a.length>0?`\\${a}`:"\\":a:i?a.length>0?`${n}\\${a}`:`${n}\\`:n+a}(a)}(e,...t):function(e,...t){if(void 0===e)return".";e instanceof URL&&(e=f(e)),(t=e?[e,...t]:t).forEach(e=>i(e));const n=t.filter(e=>e.length>0).join("/");return""===n?".":function(e){e instanceof URL&&(e=f(e)),b(e);const t=l(e.charCodeAt(0)),n=l(e.charCodeAt(e.length-1));return 0!==(e=v(e,!t,"/",l)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?`/${e}`:e}(n)}(e,...t)}function E(e){return r?function(e){i(e);const t={root:"",dir:"",base:"",ext:"",name:""},n=e.length;if(0===n)return t;let r=0,o=e.charCodeAt(0);if(n>1){if(d(o)){if(r=1,d(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!d(e.charCodeAt(t));++t);if(t<n&&t!==i){for(i=t;t<n&&d(e.charCodeAt(t));++t);if(t<n&&t!==i){for(i=t;t<n&&!d(e.charCodeAt(t));++t);t===n?r=t:t!==i&&(r=t+1)}}}}else if(p(o)&&58===e.charCodeAt(1)){if(r=2,!(n>2))return t.root=t.dir=e,t;if(d(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t.base="\\",t;r=3}}}else if(d(o))return t.root=t.dir=e,t.base="\\",t;r>0&&(t.root=e.slice(0,r));let a=-1,s=r,u=-1,f=!0,c=e.length-1,l=0;for(;c>=r;--c)if(o=e.charCodeAt(c),d(o)){if(!f){s=c+1;break}}else-1===u&&(f=!1,u=c+1),46===o?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=e.slice(s,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u),t.ext=e.slice(a,u)),t.base=t.base||"\\",t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t}(e):function(e){i(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=l(e.charCodeAt(0));let r;n?(t.root="/",r=1):r=0;let o=-1,a=0,s=-1,u=!0,f=e.length-1,h=0;for(;f>=r;--f){const t=e.charCodeAt(f);if(l(t)){if(!u){a=f+1;break}}else-1===s&&(u=!1,s=f+1),46===t?-1===o?o=f:1!==h&&(h=1):-1!==o&&(h=-1)}return-1===o||-1===s||0===h||1===h&&o===s-1&&o===a+1?(-1!==s&&(t.base=t.name=0===a&&n?e.slice(1,s):e.slice(a,s)),t.base=t.base||"/"):(0===a&&n?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),a>0?t.dir=c(e.slice(0,a-1),l):n&&(t.dir="/"),t}(e)}}};const t={};function n(r){const i=t[r];if(void 0!==i)return i.exports;const o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}n.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),r=Symbol("webpack error"),i=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};n.a=(n,o,a)=>{let s;a&&((s=[]).d=-1);const u=new Set,f=n.exports;let c,l,h;const d=new Promise((e,t)=>{h=t,l=e});d[t]=f,d[e]=e=>(s&&e(s),u.forEach(e),d.catch(e=>{})),n.exports=d,o(n=>{let o;c=(n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){const o=[];o.d=0,n.then(e=>{a[t]=e,i(o)},e=>{a[r]=e,i(o)});const a={};return a[e]=e=>e(o),a}}const o={};return o[e]=e=>{},o[t]=n,o}))(n);const a=()=>c.map(e=>{if(e[r])throw e[r];return e[t]}),f=new Promise(t=>{o=()=>t(a),o.r=0;const n=e=>e!==s&&!u.has(e)&&(u.add(e),e&&!e.d&&(o.r++,e.push(o)));c.forEach(t=>t[e](n))});return o.r?f:a()},e=>(e?h(d[r]=e):l(f),i(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"==typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"==typeof r.then)return r}const o=Object.create(null);n.r(o);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&r;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];n.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>e+".tmcsplit.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="tmcsplit:";n.l=(r,i,o,a)=>{if(e[r])return void e[r].push(i);let s,u;if(void 0!==o){const e=document.getElementsByTagName("script");for(var f=0;f<e.length;f++){const n=e[f];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+o){s=n;break}}}s||(u=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];const c=(t,n)=>{s.onerror=s.onload=null,clearTimeout(l);const i=e[r];if(delete e[r],s.parentNode?.removeChild(s),i?.forEach(e=>e(n)),t)return t(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),u&&document.head.appendChild(s)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{const e={792:0};n.f.j=(t,r)=>{let i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{const o=new Promise((n,r)=>i=e[t]=[n,r]);r.push(i[2]=o);const a=n.p+n.u(t),s=new Error,u=r=>{if(n.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",s.name="ChunkLoadError",s.type=e,s.request=n,s.event=r,i[1](s)}};n.l(a,u,"chunk-"+t,t)}};const t=(t,r)=>{let[i,o,a]=r;var s,u,f=0;if(i.some(t=>0!==e[t])){for(s in o)n.o(o,s)&&(n.m[s]=o[s]);a&&a(n)}for(t&&t(r);f<i.length;f++)u=i[f],n.o(e,u)&&e[u]&&e[u][0](),e[u]=0},r=self.webpackChunktmcsplit=self.webpackChunktmcsplit||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();const r=n(368),i=r._argv_url_get,o=r._cmdline_check,a=r._msg_info,s=r._msg_error,u=r._yargv_get,f=n(47)._split;function c(e){let t;const n=["Output pieces of FILE to PREFIXaa, PREFIXab, ...","default size is 1000 lines, and default PREFIX is 'x'.","","Usage:",""," tmcsplit"," <in-file>"," <out-txt-prefix>",""," arguments:"," <in-file> An input file."," <out-file-prefix> Prefix for the output"," file(s).",""," options:",""," -a, --suffix-length=N Generate suffixes of"," length N.",` Default: '${suffix_length}'`," --additional-suffix=SUFFIX append an additional SUFFIX"," to file names."," -b, --bytes=SIZE Put SIZE bytes per output"," file."," -C, --line-bytes=SIZE Put at most SIZE bytes of"," records per output file."," -d Use numeric suffixes"," starting at 0, not"," alphabetic."," --numeric-suffixes[=FROM] Same as -d, but allow"," setting the start value."," -l, --lines=NUMBER Put NUMBER lines/records"," per output file."," -n, --number=CHUNKS Generate CHUNKS output"," files; see explanation"," below"," -t, --separator=SEP Use SEP instead of newline"," as the record separator;"," '\0' (zero) specifies the"," NUL character.",""," -h --help This message."," -v --verbose Enable verbose output.","","The SIZE argument is an integer and optional","unit (example: 10K is 10*1024).","Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024)","or KB,MB,... (powers of 1000).","Binary prefixes can be used, too: KiB=K, MiB=M, and so on.","","CHUNKS may be:"," N split into N files based on size of input"," K/N output Kth of N to standard output"," l/N split into N files without splitting lines/records"," l/K/N output Kth of N to standard output without"," splitting lines/records"];for(t of n)console.log(t);process.exit(e)}app_name="tmcsplit",app_opts=[],runtime_environment="",numeric_suffix="",suffix_length="",chunks_amount="",size_max="",input_file="",output_prefix="",quiet="",verbose="",""==suffix_length&&(suffix_length="base64"),""==output_prefix&&(output_prefix=input_file+"."),1==o("tmcsplit")?function(){const e=u();quiet="y",runtime_environment="node",function(e){(e.help||e.h)&&(quiet="n",c(0))}(e),function(e){e._.length<1&&(s("Input file argument required.",0),c(1))}(e),input_file=e._[0],e._.length<2&&(output_prefix=`${input_file}.`),"a"in e&&(suffix_length=e.a),"suffix-length"in e&&(suffix_length=e["suffix-length"]),"d"in e&&(numeric_suffix=!0),"suffix-length"in e&&(suffix_length=e["suffix-length"]),chunks_amount=e["chunks-amount"]||e.n,size_max=e["size-max"]||e.b,verbose=e.verbose||e.v,verbose&&(quiet="n")}():function(){const e=i();runtime_environment="browser",input_file=e.input_file[0],output_prefix=i.output_prefix[0],chunks_amount=i.chunks_amount[0],quiet=i.quiet,0===quiet.length&&(quiet="n")}(),function(){let e;const t=[`${app_name} configuration:`,` Runtime environment: ${runtime_environment}`,` Suffix length: ${suffix_length}`,` Maximum chunk size: ${size_max} bytes`,` Amount of chunks: ${chunks_amount}`,` In file: ${input_file}`,` Out files prefix: ${output_prefix}`];for(e of t)a(e)}(),app_opts=[input_file,output_prefix,chunks_amount,size_max],f.apply(null,app_opts)})();
|
|
1
|
+
(()=>{"use strict";var e={446(e,t,n){n.a(e,async(e,t)=>{try{const o=await n.e(35).then(n.bind(n,35)),i=o._argv_url_get,r=o._cmdline_check,s=o._echo,u=o._exit,a=o._get,f=o._global_get,l=o._msg_info,c=o._msg_error,p=o._override_set,h=(o._require,o._set),m=o._yargv_get,d=(await n.e(47).then(n.bind(n,47)))._split;function b(){p("app","name","tmcsplit"),p("app","opts",[]),p("runtime","environment",""),p("numeric","suffix",""),p("suffix","length",""),p("chunks","amount",""),p("size","max",""),p("input","file",""),p("output","prefix","");const e=f();e.quiet="",e.verbose=""}function g(){const e=a("input","file");p("suffix","length","base64"),p("output","prefix",e)}function _(){let e;const t=[`${app_name} configuration:`,` Runtime environment: ${runtime_environment}`,` Suffix length: ${suffix_length}`,` Maximum chunk size: ${size_max} bytes`,` Amount of chunks: ${chunks_amount}`,` In file: ${input_file}`,` Out files prefix: ${output_prefix}`];for(e of t)l(e)}function x(e){let t;const n=["Output pieces of FILE to PREFIXaa, PREFIXab, ...","default size is 1000 lines, and default PREFIX is 'x'.","","Usage:",""," tmcsplit"," <in-file>"," <out-txt-prefix>",""," arguments:"," <in-file> An input file."," <out-file-prefix> Prefix for the output"," file(s).",""," options:",""," -a, --suffix-length=N Generate suffixes of"," length N.",` Default: '${suffix_length}'`," --additional-suffix=SUFFIX append an additional SUFFIX"," to file names."," -b, --bytes=SIZE Put SIZE bytes per output"," file."," -C, --line-bytes=SIZE Put at most SIZE bytes of"," records per output file."," -d Use numeric suffixes"," starting at 0, not"," alphabetic."," --numeric-suffixes[=FROM] Same as -d, but allow"," setting the start value."," -l, --lines=NUMBER Put NUMBER lines/records"," per output file."," -n, --number=CHUNKS Generate CHUNKS output"," files; see explanation"," below"," -t, --separator=SEP Use SEP instead of newline"," as the record separator;"," '\0' (zero) specifies the"," NUL character.",""," -h --help This message."," -v --verbose Enable verbose output.","","The SIZE argument is an integer and optional","unit (example: 10K is 10*1024).","Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024)","or KB,MB,... (powers of 1000).","Binary prefixes can be used, too: KiB=K, MiB=M, and so on.","","CHUNKS may be:"," N split into N files based on size of input"," K/N output Kth of N to standard output"," l/N split into N files without splitting lines/records"," l/K/N output Kth of N to standard output without"," splitting lines/records"];for(t of n)s(t);u(e)}function y(e){(e.help||e.h)&&(quiet="n",x(0))}function v(e){e._.length<1&&(c("Input file argument required.",0),x(1))}async function w(){const e=await m();quiet="y",h("runtime","environment","node"),y(e),v(e),h("input","file",e._[0]),e._.length<2&&h("output","prefix",a("input","file")),"a"in e&&h("suffix","length",e.a),"suffix-length"in e&&h("suffix","length",e["suffix-length"]),"suffix-length"in e&&h("suffix","length",e["suffix-length"]),"d"in e&&h("numeric","suffix",!0),h("chunks","amount",e["chunks-amount"]||e.n),h("chunks","amount",e["size-max"]||e.b);const t=f();t.verbose=e.verbose||e.v,t.verbose&&(t.quiet="n")}function E(){const e=i();runtime_environment="browser",input_file=e.input_file[0],output_prefix=i.output_prefix[0],chunks_amount=i.chunks_amount[0],quiet=i.quiet,0===quiet.length&&(quiet="n")}b(),g(),r("tmcsplit")?await w():E(),_(),app_opts=[input_file,output_prefix,chunks_amount,size_max],d.apply(null,app_opts),t()}catch(S){t(S)}},1)}};const t={};function n(o){const i=t[o];if(void 0!==i)return i.exports;const r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),i=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};n.a=(n,r,s)=>{let u;s&&((u=[]).d=-1);const a=new Set,f=n.exports;let l,c,p;const h=new Promise((e,t)=>{p=t,c=e});h[t]=f,h[e]=e=>(u&&e(u),a.forEach(e),h.catch(e=>{})),n.exports=h,r(n=>{let r;l=(n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){const r=[];r.d=0,n.then(e=>{s[t]=e,i(r)},e=>{s[o]=e,i(r)});const s={};return s[e]=e=>e(r),s}}const r={};return r[e]=e=>{},r[t]=n,r}))(n);const s=()=>l.map(e=>{if(e[o])throw e[o];return e[t]}),f=new Promise(t=>{r=()=>t(s),r.r=0;const n=e=>e!==u&&!a.has(e)&&(a.add(e),e&&!e.d&&(r.r++,e.push(r)));l.forEach(t=>t[e](n))});return r.r?f:s()},e=>(e?p(h[o]=e):c(f),i(u))),u?.d<0&&(u.d=0)}})(),(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}const r=Object.create(null);n.r(r);const s={};t=t||[null,e({}),e([]),e(e)];for(var u=2&i&&o;("object"==typeof u||"function"==typeof u)&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,n.d(r,s),r}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var i=t[o++],r=t[o++];n.o(e,i)?0===r&&o++:0===r?Object.defineProperty(e,i,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,i,{enumerable:!0,get:r})}else for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,o)=>(n.f[o](e,t),t),[])),n.u=e=>e+".tmcsplit.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="tmcsplit:";n.l=(o,i,r,s)=>{if(e[o])return void e[o].push(i);let u,a;if(void 0!==r){const e=document.getElementsByTagName("script");for(var f=0;f<e.length;f++){const n=e[f];if(n.getAttribute("src")==o||n.getAttribute("data-webpack")==t+r){u=n;break}}}u||(a=!0,u=document.createElement("script"),u.charset="utf-8",n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",t+r),u.src=o),e[o]=[i];const l=(t,n)=>{u.onerror=u.onload=null,clearTimeout(c);const i=e[o];if(delete e[o],u.parentNode?.removeChild(u),i?.forEach(e=>e(n)),t)return t(n)},c=setTimeout(l.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=l.bind(null,u.onerror),u.onload=l.bind(null,u.onload),a&&document.head.appendChild(u)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{const e={792:0};n.f.j=(t,o)=>{let i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)o.push(i[2]);else{const r=new Promise((n,o)=>i=e[t]=[n,o]);o.push(i[2]=r);const s=n.p+n.u(t),u=new Error,a=o=>{if(n.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",u.name="ChunkLoadError",u.type=e,u.request=n,u.event=o,i[1](u)}};n.l(s,a,"chunk-"+t,t)}};const t=(t,o)=>{let[i,r,s]=o;var u,a,f=0;if(i.some(t=>0!==e[t])){for(u in r)n.o(r,u)&&(n.m[u]=r[u]);s&&s(n)}for(t&&t(o);f<i.length;f++)a=i[f],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunktmcsplit=self.webpackChunktmcsplit||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),n(446)})();
|
package/eslint.config.mjs
CHANGED
|
@@ -38,6 +38,9 @@ const
|
|
|
38
38
|
"node_modules/**",
|
|
39
39
|
"eslint.config.js",
|
|
40
40
|
"fs-worker.js",
|
|
41
|
+
"**/*.fs-worker.js",
|
|
42
|
+
`**/*.${_project}.js`,
|
|
43
|
+
`**/*.lib${_project}.js`,
|
|
41
44
|
"man/**"
|
|
42
45
|
];
|
|
43
46
|
export default defineConfig([
|
|
@@ -71,9 +74,7 @@ export default defineConfig([
|
|
|
71
74
|
"prefer-const":
|
|
72
75
|
"error" },
|
|
73
76
|
files:
|
|
74
|
-
[ "**/*.js",
|
|
75
|
-
`**/${_project}*`,
|
|
76
|
-
`**/lib${_project}`,
|
|
77
|
+
[ "**/*.{cjs,js}",
|
|
77
78
|
],
|
|
78
79
|
languageOptions:
|
|
79
80
|
{ sourceType:
|
package/libtmcsplit
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name":
|
|
3
3
|
"tmcsplit",
|
|
4
4
|
"version":
|
|
5
|
-
"0.0.
|
|
5
|
+
"0.0.14",
|
|
6
6
|
"description":
|
|
7
7
|
"Basic Javascript implementation of GNU Split.",
|
|
8
8
|
"funding": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"package.json",
|
|
23
23
|
"tmcsplit",
|
|
24
24
|
"fs-worker.webpack.config.cjs",
|
|
25
|
-
"index.html",
|
|
26
25
|
"serve.json",
|
|
27
26
|
"libtmcsplit",
|
|
28
27
|
"libtmcsplit.webpack.config.cjs",
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"crash-js-webpack":
|
|
60
|
-
"^0.0.
|
|
59
|
+
"^0.0.58",
|
|
61
60
|
"eslint":
|
|
62
61
|
"^10.0.3",
|
|
63
62
|
"globals":
|
|
@@ -73,9 +72,13 @@
|
|
|
73
72
|
},
|
|
74
73
|
"dependencies": {
|
|
75
74
|
"libcrash-js":
|
|
76
|
-
"npm:crash-js@^
|
|
75
|
+
"npm:crash-js@^10001.1000000000000001.1000000000000001",
|
|
77
76
|
"split-file":
|
|
78
|
-
"npm:@themartiancompany/split-file@2.3.
|
|
77
|
+
"npm:@themartiancompany/split-file@2.3.18"
|
|
78
|
+
},
|
|
79
|
+
"overrides": {
|
|
80
|
+
"split":
|
|
81
|
+
"./libtmcsplit"
|
|
79
82
|
},
|
|
80
83
|
"type":
|
|
81
84
|
"module",
|
package/tmcsplit
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
|
|
38
38
|
const
|
|
39
39
|
_libcrash =
|
|
40
|
-
|
|
41
|
-
'
|
|
40
|
+
await import(
|
|
41
|
+
'libcrash-js');
|
|
42
42
|
/* global
|
|
43
43
|
_argv_url_get */
|
|
44
44
|
const
|
|
@@ -49,6 +49,26 @@ _argv_url_get =
|
|
|
49
49
|
const
|
|
50
50
|
_cmdline_check =
|
|
51
51
|
_libcrash._cmdline_check;
|
|
52
|
+
/* global
|
|
53
|
+
_echo */
|
|
54
|
+
const
|
|
55
|
+
_echo =
|
|
56
|
+
_libcrash._echo;
|
|
57
|
+
/* global
|
|
58
|
+
_exit */
|
|
59
|
+
const
|
|
60
|
+
_exit =
|
|
61
|
+
_libcrash._exit;
|
|
62
|
+
/* global
|
|
63
|
+
_get */
|
|
64
|
+
const
|
|
65
|
+
_get =
|
|
66
|
+
_libcrash._get;
|
|
67
|
+
/* global
|
|
68
|
+
_global_get */
|
|
69
|
+
const
|
|
70
|
+
_global_get =
|
|
71
|
+
_libcrash._global_get;
|
|
52
72
|
/* global
|
|
53
73
|
_msg_info */
|
|
54
74
|
const
|
|
@@ -59,6 +79,21 @@ const
|
|
|
59
79
|
const
|
|
60
80
|
_msg_error =
|
|
61
81
|
_libcrash._msg_error;
|
|
82
|
+
/* global
|
|
83
|
+
_override_set */
|
|
84
|
+
const
|
|
85
|
+
_override_set =
|
|
86
|
+
_libcrash._override_set;
|
|
87
|
+
/* global
|
|
88
|
+
_require */
|
|
89
|
+
const
|
|
90
|
+
_require =
|
|
91
|
+
_libcrash._require;
|
|
92
|
+
/* global
|
|
93
|
+
_set */
|
|
94
|
+
const
|
|
95
|
+
_set =
|
|
96
|
+
_libcrash._set;
|
|
62
97
|
/* global
|
|
63
98
|
_yargv_get */
|
|
64
99
|
const
|
|
@@ -66,7 +101,7 @@ _yargv_get =
|
|
|
66
101
|
_libcrash._yargv_get;
|
|
67
102
|
const
|
|
68
103
|
_split_module =
|
|
69
|
-
|
|
104
|
+
await import(
|
|
70
105
|
"./libtmcsplit");
|
|
71
106
|
/* global
|
|
72
107
|
_tmcsplit */
|
|
@@ -79,72 +114,100 @@ function
|
|
|
79
114
|
/* global
|
|
80
115
|
app_name:
|
|
81
116
|
writable */
|
|
82
|
-
|
|
83
|
-
"
|
|
117
|
+
_override_set(
|
|
118
|
+
"app",
|
|
119
|
+
"name",
|
|
120
|
+
"tmcsplit");
|
|
84
121
|
/* global
|
|
85
122
|
app_opts:
|
|
86
123
|
writable */
|
|
87
|
-
|
|
88
|
-
|
|
124
|
+
_override_set(
|
|
125
|
+
"app",
|
|
126
|
+
"opts",
|
|
127
|
+
[]);
|
|
89
128
|
/* global
|
|
90
129
|
runtime_environment:
|
|
91
130
|
writable */
|
|
92
|
-
|
|
93
|
-
""
|
|
131
|
+
_override_set(
|
|
132
|
+
"runtime",
|
|
133
|
+
"environment",
|
|
134
|
+
"");
|
|
94
135
|
/* global
|
|
95
136
|
numeric_suffix:
|
|
96
137
|
writable */
|
|
97
|
-
|
|
98
|
-
""
|
|
138
|
+
_override_set(
|
|
139
|
+
"numeric",
|
|
140
|
+
"suffix",
|
|
141
|
+
"");
|
|
99
142
|
/* global
|
|
100
143
|
suffix_length:
|
|
101
144
|
writable */
|
|
102
|
-
|
|
103
|
-
""
|
|
145
|
+
_override_set(
|
|
146
|
+
"suffix",
|
|
147
|
+
"length",
|
|
148
|
+
"");
|
|
104
149
|
/* global
|
|
105
150
|
chunks_amount:
|
|
106
151
|
writable */
|
|
107
|
-
|
|
108
|
-
""
|
|
152
|
+
_override_set(
|
|
153
|
+
"chunks",
|
|
154
|
+
"amount",
|
|
155
|
+
"");
|
|
109
156
|
// string_length =
|
|
110
157
|
// "";
|
|
111
158
|
/* global
|
|
112
159
|
size_max:
|
|
113
160
|
writable */
|
|
114
|
-
|
|
115
|
-
""
|
|
161
|
+
_override_set(
|
|
162
|
+
"size",
|
|
163
|
+
"max",
|
|
164
|
+
"");
|
|
116
165
|
/* global
|
|
117
166
|
input_file:
|
|
118
167
|
writable */
|
|
119
|
-
|
|
120
|
-
""
|
|
168
|
+
_override_set(
|
|
169
|
+
"input",
|
|
170
|
+
"file",
|
|
171
|
+
"");
|
|
121
172
|
/* global
|
|
122
173
|
output_prefix:
|
|
123
174
|
writable */
|
|
124
|
-
|
|
125
|
-
""
|
|
175
|
+
_override_set(
|
|
176
|
+
"output",
|
|
177
|
+
"prefix",
|
|
178
|
+
"");
|
|
126
179
|
/* global
|
|
127
180
|
quiet:
|
|
128
181
|
writable */
|
|
129
|
-
|
|
182
|
+
const
|
|
183
|
+
_global =
|
|
184
|
+
_global_get();
|
|
185
|
+
_global[
|
|
186
|
+
"quiet"] =
|
|
130
187
|
"";
|
|
131
188
|
/* global
|
|
132
189
|
verbose:
|
|
133
190
|
writable */
|
|
134
|
-
|
|
191
|
+
_global[
|
|
192
|
+
"verbose"] =
|
|
135
193
|
"";
|
|
136
194
|
}
|
|
137
195
|
|
|
138
196
|
function
|
|
139
197
|
_overrides_set() {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
198
|
+
const
|
|
199
|
+
_input_file =
|
|
200
|
+
_get(
|
|
201
|
+
"input",
|
|
202
|
+
"file");
|
|
203
|
+
_override_set(
|
|
204
|
+
"suffix",
|
|
205
|
+
"length",
|
|
206
|
+
"base64");
|
|
207
|
+
_override_set(
|
|
208
|
+
"output",
|
|
209
|
+
"prefix",
|
|
210
|
+
_input_file);
|
|
148
211
|
}
|
|
149
212
|
|
|
150
213
|
function
|
|
@@ -231,10 +294,10 @@ function
|
|
|
231
294
|
" splitting lines/records",
|
|
232
295
|
];
|
|
233
296
|
for ( _line of _text ) {
|
|
234
|
-
|
|
297
|
+
_echo(
|
|
235
298
|
_line);
|
|
236
299
|
}
|
|
237
|
-
|
|
300
|
+
_exit(
|
|
238
301
|
_exit_code);
|
|
239
302
|
}
|
|
240
303
|
|
|
@@ -271,64 +334,90 @@ function
|
|
|
271
334
|
}
|
|
272
335
|
}
|
|
273
336
|
|
|
274
|
-
function
|
|
337
|
+
async function
|
|
275
338
|
_cmdline_parse() {
|
|
276
339
|
const
|
|
277
340
|
_argv =
|
|
278
|
-
_yargv_get();
|
|
341
|
+
await _yargv_get();
|
|
279
342
|
quiet =
|
|
280
343
|
"y";
|
|
281
|
-
|
|
282
|
-
"
|
|
344
|
+
_set(
|
|
345
|
+
"runtime",
|
|
346
|
+
"environment",
|
|
347
|
+
"node");
|
|
283
348
|
_cmdline_parse_help(
|
|
284
349
|
_argv);
|
|
285
350
|
_input_args_check(
|
|
286
351
|
_argv);
|
|
287
|
-
|
|
352
|
+
_set(
|
|
353
|
+
"input",
|
|
354
|
+
"file",
|
|
288
355
|
_argv[
|
|
289
356
|
"_"][
|
|
290
|
-
0];
|
|
357
|
+
0]);
|
|
291
358
|
if ( _argv[
|
|
292
359
|
"_"].length < 2 ) {
|
|
293
|
-
|
|
294
|
-
|
|
360
|
+
_set(
|
|
361
|
+
"output",
|
|
362
|
+
"prefix",
|
|
363
|
+
_get(
|
|
364
|
+
"input",
|
|
365
|
+
"file"));
|
|
295
366
|
}
|
|
296
367
|
if ( "a" in _argv ) {
|
|
297
|
-
|
|
368
|
+
_set(
|
|
369
|
+
"suffix",
|
|
370
|
+
"length",
|
|
298
371
|
_argv[
|
|
299
|
-
"a"];
|
|
372
|
+
"a"]);
|
|
300
373
|
}
|
|
301
374
|
if ( "suffix-length" in _argv ) {
|
|
302
|
-
|
|
375
|
+
_set(
|
|
376
|
+
"suffix",
|
|
377
|
+
"length",
|
|
303
378
|
_argv[
|
|
304
|
-
"suffix-length"];
|
|
305
|
-
}
|
|
306
|
-
if ( "d" in _argv ) {
|
|
307
|
-
numeric_suffix =
|
|
308
|
-
true;
|
|
379
|
+
"suffix-length"]);
|
|
309
380
|
}
|
|
310
381
|
if ( "suffix-length" in _argv ) {
|
|
311
|
-
|
|
382
|
+
_set(
|
|
383
|
+
"suffix",
|
|
384
|
+
"length",
|
|
312
385
|
_argv[
|
|
313
|
-
"suffix-length"];
|
|
386
|
+
"suffix-length"]);
|
|
314
387
|
}
|
|
315
|
-
|
|
388
|
+
if ( "d" in _argv ) {
|
|
389
|
+
_set(
|
|
390
|
+
"numeric",
|
|
391
|
+
"suffix",
|
|
392
|
+
true);
|
|
393
|
+
}
|
|
394
|
+
_set(
|
|
395
|
+
"chunks",
|
|
396
|
+
"amount",
|
|
316
397
|
_argv[
|
|
317
398
|
"chunks-amount"] ||
|
|
318
399
|
_argv[
|
|
319
|
-
"n"];
|
|
320
|
-
|
|
400
|
+
"n"]);
|
|
401
|
+
_set(
|
|
402
|
+
"chunks",
|
|
403
|
+
"amount",
|
|
321
404
|
_argv[
|
|
322
405
|
"size-max"] ||
|
|
323
406
|
_argv[
|
|
324
|
-
"b"];
|
|
325
|
-
|
|
407
|
+
"b"]);
|
|
408
|
+
const
|
|
409
|
+
_global =
|
|
410
|
+
_global_get();
|
|
411
|
+
_global[
|
|
412
|
+
"verbose"] =
|
|
326
413
|
_argv[
|
|
327
414
|
"verbose"] ||
|
|
328
415
|
_argv[
|
|
329
416
|
"v"];
|
|
330
|
-
if (
|
|
331
|
-
|
|
417
|
+
if ( _global[
|
|
418
|
+
"verbose"] ) {
|
|
419
|
+
_global[
|
|
420
|
+
"quiet"] =
|
|
332
421
|
"n";
|
|
333
422
|
}
|
|
334
423
|
}
|
|
@@ -364,8 +453,8 @@ function
|
|
|
364
453
|
_global_variables();
|
|
365
454
|
_overrides_set();
|
|
366
455
|
if ( _cmdline_check(
|
|
367
|
-
"tmcsplit")
|
|
368
|
-
_cmdline_parse();
|
|
456
|
+
"tmcsplit") ) {
|
|
457
|
+
await _cmdline_parse();
|
|
369
458
|
}
|
|
370
459
|
else {
|
|
371
460
|
_url_parse();
|