diff --git a/build/12.22120.js b/build/12.22120.js deleted file mode 100644 index 3c83872..0000000 --- a/build/12.22120.js +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -/*! For license information please see 12.22120.js.LICENSE.txt */ -exports.id=12,exports.ids=[12],exports.modules={4534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.win32=t.wsl=t.linux=t.darwin=t.darwinFast=void 0;const s=r(7147),n=r(1017),o=r(2037),i=r(2081),a=r(3150),c=r(8269),u=r(5317),l=/\r?\n/;function h(){const e=["/Contents/MacOS/Google Chrome Canary","/Contents/MacOS/Google Chrome"],t=[],r=p();r&&t.push(r),i.execSync("/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep -i 'google chrome\\( canary\\)\\?\\.app' | awk '{$1=\"\"; print $0}'").toString().split(l).forEach((r=>{e.forEach((e=>{const s=n.join(r.substring(0,r.indexOf(".app")+4).trim(),e);g(s)&&-1===t.indexOf(s)&&t.push(s)}))}));const s=a(process.env.HOME||o.homedir()),c=[{regex:new RegExp(`^${s}/Applications/.*Chrome\\.app`),weight:50},{regex:new RegExp(`^${s}/Applications/.*Chrome Canary\\.app`),weight:51},{regex:/^\/Applications\/.*Chrome.app/,weight:100},{regex:/^\/Applications\/.*Chrome Canary.app/,weight:101},{regex:/^\/Volumes\/.*Chrome.app/,weight:-2},{regex:/^\/Volumes\/.*Chrome Canary.app/,weight:-1}];return process.env.LIGHTHOUSE_CHROMIUM_PATH&&c.unshift({regex:new RegExp(a(process.env.LIGHTHOUSE_CHROMIUM_PATH)),weight:150}),process.env.CHROME_PATH&&c.unshift({regex:new RegExp(a(process.env.CHROME_PATH)),weight:151}),f(t,c)}function p(){return g(process.env.CHROME_PATH)?process.env.CHROME_PATH:g(process.env.LIGHTHOUSE_CHROMIUM_PATH)?(c.warn("ChromeLauncher","LIGHTHOUSE_CHROMIUM_PATH is deprecated, use CHROME_PATH env variable instead."),process.env.LIGHTHOUSE_CHROMIUM_PATH):void 0}function d(){const e=[],t=[`${n.sep}Google${n.sep}Chrome SxS${n.sep}Application${n.sep}chrome.exe`,`${n.sep}Google${n.sep}Chrome${n.sep}Application${n.sep}chrome.exe`],r=[process.env.LOCALAPPDATA,process.env.PROGRAMFILES,process.env["PROGRAMFILES(X86)"]].filter(Boolean),s=p();return s&&e.push(s),r.forEach((r=>t.forEach((t=>{const s=n.join(r,t);g(s)&&e.push(s)})))),e}function f(e,t){return e.map((e=>{for(const r of t)if(r.regex.test(e))return{path:e,weight:r.weight};return{path:e,weight:10}})).sort(((e,t)=>t.weight-e.weight)).map((e=>e.path))}function g(e){if(!e)return!1;try{return s.accessSync(e),!0}catch(e){return!1}}t.darwinFast=function(){const e=[process.env.CHROME_PATH,process.env.LIGHTHOUSE_CHROMIUM_PATH,"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary","/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"];for(const t of e)if(t&&g(t))return t;return h()[0]},t.darwin=h,t.linux=function(){let e=[];const t=p();if(t&&e.push(t),[n.join(o.homedir(),".local/share/applications/"),"/usr/share/applications/"].forEach((t=>{e=e.concat(function(e){const t=/(^[^ ]+).*/,r="^Exec=/.*/(google-chrome|chrome|chromium)-.*";let s=[];if(g(e)){let n;try{n=i.execSync(`grep -ER "${r}" ${e} | awk -F '=' '{print $2}'`,{stdio:"pipe"})}catch(t){n=i.execSync(`grep -Er "${r}" ${e} | awk -F '=' '{print $2}'`,{stdio:"pipe"})}n=n.toString().split(l).map((e=>e.replace(t,"$1"))),n.forEach((e=>g(e)&&s.push(e)))}return s}(t))})),["google-chrome-stable","google-chrome","chromium-browser","chromium"].forEach((t=>{try{const r=i.execFileSync("which",[t],{stdio:"pipe"}).toString().split(l)[0];g(r)&&e.push(r)}catch(e){}})),!e.length)throw new u.ChromePathNotSetError;const r=[{regex:/chrome-wrapper$/,weight:51},{regex:/google-chrome-stable$/,weight:50},{regex:/google-chrome$/,weight:49},{regex:/chromium-browser$/,weight:48},{regex:/chromium$/,weight:47}];return process.env.LIGHTHOUSE_CHROMIUM_PATH&&r.unshift({regex:new RegExp(a(process.env.LIGHTHOUSE_CHROMIUM_PATH)),weight:100}),process.env.CHROME_PATH&&r.unshift({regex:new RegExp(a(process.env.CHROME_PATH)),weight:101}),f((s=e.filter(Boolean),Array.from(new Set(s))),r);var s},t.wsl=function(){return process.env.LOCALAPPDATA=u.getLocalAppDataPath(`${process.env.PATH}`),process.env.PROGRAMFILES="/mnt/c/Program Files",process.env["PROGRAMFILES(X86)"]="/mnt/c/Program Files (x86)",d()},t.win32=d},1723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChromePath=t.killAll=t.launch=t.Launcher=void 0;const s=r(2081),n=r(7147),o=r(1808),i=r(4534),a=r(5022),c=r(1578),u=r(5317),l=r(8269),h=s.spawn,p=s.execSync,d="wsl"===u.getPlatform(),f="win32"===u.getPlatform(),g="SIGINT",m=new Set(["darwin","linux","win32","wsl"]),w=new Set,y=async()=>{await v(),process.exit(130)};async function v(){let e=[];for(const t of w)try{await t.kill(),w.delete(t)}catch(t){e.push(t)}return e}t.launch=async function(e={}){e.handleSIGINT=u.defaults(e.handleSIGINT,!0);const t=new b(e);return e.handleSIGINT&&0===w.size&&process.on(g,y),w.add(t),await t.launch(),{pid:t.pid,port:t.port,kill:async()=>(w.delete(t),0===w.size&&process.removeListener(g,y),t.kill()),process:t.chrome}},t.getChromePath=function(){const e=b.getFirstInstallation();if(!e)throw new u.ChromeNotInstalledError;return e},t.killAll=v;class b{constructor(e={},t={}){if(this.opts=e,this.tmpDirandPidFileReady=!1,this.fs=t.fs||n,this.spawn=t.spawn||h,l.setLevel(u.defaults(this.opts.logLevel,"silent")),this.startingUrl=u.defaults(this.opts.startingUrl,"about:blank"),this.chromeFlags=u.defaults(this.opts.chromeFlags,[]),this.prefs=u.defaults(this.opts.prefs,{}),this.requestedPort=u.defaults(this.opts.port,0),this.chromePath=this.opts.chromePath,this.ignoreDefaultFlags=u.defaults(this.opts.ignoreDefaultFlags,!1),this.connectionPollInterval=u.defaults(this.opts.connectionPollInterval,500),this.maxConnectionRetries=u.defaults(this.opts.maxConnectionRetries,50),this.envVars=u.defaults(e.envVars,Object.assign({},process.env)),"boolean"==typeof this.opts.userDataDir){if(this.opts.userDataDir)throw new u.InvalidUserDataDirectoryError;this.useDefaultProfile=!0,this.userDataDir=void 0}else this.useDefaultProfile=!1,this.userDataDir=this.opts.userDataDir}get flags(){const e=this.ignoreDefaultFlags?[]:c.DEFAULT_FLAGS.slice();return e.push(`--remote-debugging-port=${this.port}`),this.ignoreDefaultFlags||"linux"!==u.getPlatform()||e.push("--disable-setuid-sandbox"),this.useDefaultProfile||e.push(`--user-data-dir=${d?u.toWinDirFormat(this.userDataDir):this.userDataDir}`),e.push(...this.chromeFlags),e.push(this.startingUrl),e}static defaultFlags(){return c.DEFAULT_FLAGS.slice()}static getFirstInstallation(){return"darwin"===u.getPlatform()?i.darwinFast():i[u.getPlatform()]()[0]}static getInstallations(){return i[u.getPlatform()]()}makeTmpDir(){return u.makeTmpDir()}prepare(){const e=u.getPlatform();if(!m.has(e))throw new u.UnsupportedPlatformError;this.userDataDir=this.userDataDir||this.makeTmpDir(),this.outFile=this.fs.openSync(`${this.userDataDir}/chrome-out.log`,"a"),this.errFile=this.fs.openSync(`${this.userDataDir}/chrome-err.log`,"a"),this.setBrowserPrefs(),this.pidFile=`${this.userDataDir}/chrome.pid`,l.verbose("ChromeLauncher",`created ${this.userDataDir}`),this.tmpDirandPidFileReady=!0}setBrowserPrefs(){if(0===Object.keys(this.prefs).length)return;const e=`${this.userDataDir}/Preferences`;try{if(this.fs.existsSync(e)){const t=this.fs.readFileSync(e,"utf-8"),r=JSON.parse(t);this.fs.writeFileSync(e,JSON.stringify({...r,...this.prefs}),"utf-8")}else this.fs.writeFileSync(e,JSON.stringify({...this.prefs}),"utf-8")}catch(e){l.log("ChromeLauncher",`Failed to set browser prefs: ${e.message}`)}}async launch(){if(0!==this.requestedPort){this.port=this.requestedPort;try{return await this.isDebuggerReady()}catch(e){l.log("ChromeLauncher",`No debugging port found on port ${this.port}, launching a new Chrome.`)}}if(void 0===this.chromePath){const e=b.getFirstInstallation();if(!e)throw new u.ChromeNotInstalledError;this.chromePath=e}return this.tmpDirandPidFileReady||this.prepare(),this.pid=await this.spawnProcess(this.chromePath),Promise.resolve()}async spawnProcess(e){const t=(async()=>{if(this.chrome)return l.log("ChromeLauncher",`Chrome already running with pid ${this.chrome.pid}.`),this.chrome.pid;0===this.requestedPort&&(this.port=await a.getRandomPort()),l.verbose("ChromeLauncher",`Launching with command:\n"${e}" ${this.flags.join(" ")}`);const t=this.spawn(e,this.flags,{detached:!0,stdio:["ignore",this.outFile,this.errFile],env:this.envVars});return this.chrome=t,t.pid&&this.fs.writeFileSync(this.pidFile,t.pid.toString()),l.verbose("ChromeLauncher",`Chrome running with pid ${t.pid} on port ${this.port}.`),t.pid})(),r=await t;return await this.waitUntilReady(),r}cleanup(e){e&&(e.removeAllListeners(),e.end(),e.destroy(),e.unref())}isDebuggerReady(){return new Promise(((e,t)=>{const r=o.createConnection(this.port,"127.0.0.1");r.once("error",(e=>{this.cleanup(r),t(e)})),r.once("connect",(()=>{this.cleanup(r),e()}))}))}waitUntilReady(){const e=this;return new Promise(((t,r)=>{let s=0,n="Waiting for browser.";const o=()=>{0===s&&l.log("ChromeLauncher",n),s++,n+="..",l.log("ChromeLauncher",n),e.isDebuggerReady().then((()=>{l.log("ChromeLauncher",n+`${l.greenify(l.tick)}`),t()})).catch((t=>{if(s>e.maxConnectionRetries){l.error("ChromeLauncher",t.message);const e=this.fs.readFileSync(`${this.userDataDir}/chrome-err.log`,{encoding:"utf-8"});return l.error("ChromeLauncher",`Logging contents of ${this.userDataDir}/chrome-err.log`),l.error("ChromeLauncher",e),r(t)}u.delay(e.connectionPollInterval).then(o)}))};o()}))}kill(){return new Promise(((e,t)=>{if(this.chrome){this.chrome.on("close",(()=>{delete this.chrome,this.destroyTmp().then(e)})),l.log("ChromeLauncher",`Killing Chrome instance ${this.chrome.pid}`);try{f?p(`taskkill /pid ${this.chrome.pid} /T /F`,{stdio:"pipe"}):this.chrome.pid&&process.kill(-this.chrome.pid)}catch(e){const r=`Chrome could not be killed ${e.message}`;l.warn("ChromeLauncher",r),t(new Error(r))}}else e()}))}destroyTmp(){return new Promise((e=>{if(void 0===this.userDataDir||void 0!==this.opts.userDataDir)return e();this.outFile&&(this.fs.closeSync(this.outFile),delete this.outFile),this.errFile&&(this.fs.closeSync(this.errFile),delete this.errFile),(this.fs.rm||this.fs.rmdir)(this.userDataDir,{recursive:!0},(()=>e()))}))}}t.Launcher=b,t.default=b},1578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FLAGS=void 0,t.DEFAULT_FLAGS=["--disable-features=Translate","--disable-extensions","--disable-component-extensions-with-background-pages","--disable-background-networking","--disable-component-update","--disable-client-side-phishing-detection","--disable-sync","--metrics-recording-only","--disable-default-apps","--mute-audio","--no-default-browser-check","--no-first-run","--disable-backgrounding-occluded-windows","--disable-renderer-backgrounding","--disable-background-timer-throttling","--disable-ipc-flooding-protection","--password-store=basic","--use-mock-keychain","--force-fieldtrials=*BackgroundTracing/default/"]},8012:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1723),t)},5022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomPort=void 0;const s=r(3685);t.getRandomPort=function(){return new Promise(((e,t)=>{const r=s.createServer();r.listen(0),r.once("listening",(()=>{const{port:t}=r.address();r.close((()=>e(t)))})),r.once("error",t)}))}},5317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalAppDataPath=t.toWinDirFormat=t.makeTmpDir=t.getPlatform=t.ChromeNotInstalledError=t.UnsupportedPlatformError=t.InvalidUserDataDirectoryError=t.ChromePathNotSetError=t.LauncherError=t.delay=t.defaults=void 0;const s=r(1017),n=r(2081),o=r(7147),i=r(2818);t.defaults=function(e,t){return void 0===e?t:e},t.delay=async function(e){return new Promise((t=>setTimeout(t,e)))};class a extends Error{constructor(e="Unexpected error",t){return super(),this.message=e,this.code=t,this.stack=(new Error).stack,this}}t.LauncherError=a,t.ChromePathNotSetError=class extends a{constructor(){super(...arguments),this.message="The CHROME_PATH environment variable must be set to a Chrome/Chromium executable no older than Chrome stable.",this.code="ERR_LAUNCHER_PATH_NOT_SET"}},t.InvalidUserDataDirectoryError=class extends a{constructor(){super(...arguments),this.message="userDataDir must be false or a path.",this.code="ERR_LAUNCHER_INVALID_USER_DATA_DIRECTORY"}};class c extends a{constructor(){super(...arguments),this.message=`Platform ${u()} is not supported.`,this.code="ERR_LAUNCHER_UNSUPPORTED_PLATFORM"}}function u(){return i?"wsl":process.platform}function l(e){const t=/\/mnt\/([a-z])\/Users\/([^\/:]+)\/AppData\//.exec(e)||[];return`/mnt/${t[1]}/Users/${t[2]}/AppData/Local`}t.UnsupportedPlatformError=c,t.ChromeNotInstalledError=class extends a{constructor(){super(...arguments),this.message="No Chrome installations found.",this.code="ERR_LAUNCHER_NOT_INSTALLED"}},t.getPlatform=u,t.makeTmpDir=function(){switch(u()){case"darwin":case"linux":return n.execSync("mktemp -d -t lighthouse.XXXXXXX").toString().trim();case"wsl":process.env.TEMP=l(`${process.env.PATH}`);case"win32":return function(){const e=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp",t=Math.floor(9e7*Math.random()+1e7),r=s.join(e,"lighthouse."+t);return o.mkdirSync(r,{recursive:!0}),r}();default:throw new c}},t.toWinDirFormat=function(e=""){const t=/\/mnt\/([a-z])\//.exec(e);if(!t)return e;const r=t[1];return e.replace(`/mnt/${r}/`,`${r.toUpperCase()}:\\`).replace(/\//g,"\\")},t.getLocalAppDataPath=l},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},1595:(e,t,r)=>{"use strict";const s=r(7147);let n;e.exports=()=>(void 0===n&&(n=function(){try{return s.statSync("/.dockerenv"),!0}catch(e){return!1}}()||function(){try{return s.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return!1}}()),n)},2818:(e,t,r)=>{"use strict";const s=r(2037),n=r(7147),o=r(1595),i=()=>{if("linux"!==process.platform)return!1;if(s.release().toLowerCase().includes("microsoft"))return!o();try{return!!n.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")&&!o()}catch(e){return!1}};process.env.__IS_WSL_TEST__?e.exports=i:e.exports=i()},8269:(e,t,r)=>{"use strict";const s=r(9542),n=r(1738),o=r(2361).EventEmitter,i="win32"===process.platform,a=process.browser,c={red:a?"crimson":1,yellow:a?"gold":3,cyan:a?"darkturquoise":6,green:a?"forestgreen":2,blue:a?"steelblue":4,magenta:a?"palevioletred":5};s.colors=[c.cyan,c.green,c.blue,c.magenta];const u={};let l;class h{static _logToStdErr(e,t){h.loggerfn(e)(...t)}static loggerfn(e){let t=u[e=`LH:${e}`];return t||(t=s(e),u[e]=t,e.endsWith("error")?t.color=c.red:e.endsWith("warn")&&(t.color=c.yellow)),t}static setLevel(e){switch(l=e,e){case"silent":s.enable("-LH:*");break;case"verbose":s.enable("LH:*");break;case"error":s.enable("-LH:*, LH:*:error");break;default:s.enable("LH:*, -LH:*:verbose")}}static formatProtocol(e,t,r){const s=!process||process.browser?1/0:process.stdout.columns,n=t.method||"?????",o=s-n.length-e.length-25,i=t.params&&"IO.read"!==n?JSON.stringify(t.params).substr(0,o):"";h._logToStdErr(`${e}:${r||""}`,[n,i])}static isVerbose(){return"verbose"===l}static time({msg:e,id:t,args:r=[]},s="log"){n.mark(t),h[s]("status",e,...r)}static timeEnd({msg:e,id:t,args:r=[]},s="verbose"){h[s]("statusEnd",e,...r),n.stop(t)}static log(e,...t){return h.events.issueStatus(e,t),h._logToStdErr(e,t)}static warn(e,...t){return h.events.issueWarning(e,t),h._logToStdErr(`${e}:warn`,t)}static error(e,...t){return h._logToStdErr(`${e}:error`,t)}static verbose(e,...t){return h.events.issueStatus(e,t),h._logToStdErr(`${e}:verbose`,t)}static greenify(e){return`${h.green}${e}${h.reset}`}static redify(e){return`${h.red}${e}${h.reset}`}static get green(){return""}static get red(){return""}static get yellow(){return""}static get purple(){return""}static get reset(){return""}static get bold(){return""}static get dim(){return""}static get tick(){return i?"√":"✓"}static get cross(){return i?"×":"✘"}static get whiteSmallSquare(){return i?"·":"▫"}static get heavyHorizontal(){return i?"─":"━"}static get heavyVertical(){return i?"│ ":"┃ "}static get heavyUpAndRight(){return i?"└":"┗"}static get heavyVerticalAndRight(){return i?"├":"┣"}static get heavyDownAndHorizontal(){return i?"┬":"┳"}static get doubleLightHorizontal(){return"──"}}h.events=new class extends o{issueStatus(e,t){"status"!==e&&"statusEnd"!==e||this.emit(e,[e,...t])}issueWarning(e,t){this.emit("warning",[e,...t])}},h.takeTimeEntries=()=>{const e=n.getEntries();return n.clear(),e},h.getTimeEntries=()=>n.getEntries(),e.exports=h},4722:(e,t,r)=>{function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r(982)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var s="color: "+this.color;e.splice(1,0,s,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),e.splice(o,0,s)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=s,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())},982:(e,t,r)=>{var s;function n(e){function r(){if(r.enabled){var e=r,n=+new Date,o=n-(s||n);e.diff=o,e.prev=s,e.curr=n,s=n;for(var i=new Array(arguments.length),a=0;a{"undefined"!=typeof process&&"renderer"===process.type?e.exports=r(4722):e.exports=r(2444)},2444:(e,t,r)=>{var s=r(6224),n=r(3837);(t=e.exports=r(982)).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),s=0;s{var t=1e3,r=60*t,s=60*r,n=24*s;function o(e,t,r){if(!(e0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var i=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*s;case"minutes":case"minute":case"mins":case"min":case"m":return i*r;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return i.long?o(a=e,n,"day")||o(a,s,"hour")||o(a,r,"minute")||o(a,t,"second")||a+" ms":function(e){return e>=n?Math.round(e/n)+"d":e>=s?Math.round(e/s)+"h":e>=r?Math.round(e/r)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1738:(e,t,r)=>{"use strict";r.r(t),r.d(t,{clear:()=>i,getEntries:()=>o,mark:()=>s,stop:()=>n});var s,n,o,i,a="undefined"!=typeof performance&&performance,c=process.hrtime,u=function(){var e=c();return 1e9*e[0]+e[1]},l=u(),h=function(){return(u()-l)/1e6};function p(e){if(!e)throw new Error("name must be non-empty")}if(a&&a.mark&&a.getEntriesByName&&a.getEntriesByType&&a.clearMeasures)s=function(e){p(e),a.mark("start "+e)},n=function(e){p(e),a.mark("end "+e),a.measure(e,"start "+e,"end "+e);var t=a.getEntriesByName(e);return t[t.length-1]},o=function(){return a.getEntriesByType("measure")},i=function(){a.clearMarks(),a.clearMeasures()};else{var d={},f=[];s=function(e){p(e);var t=h();d["$"+e]=t},n=function(e){p(e);var t=h(),r=d["$"+e];if(!r)throw new Error("no known mark: "+e);var s={startTime:r,name:e,duration:t-r,entryType:"measure"};return function(e,t){for(var r,s=0,n=e.length;s>>1].startTime */ - -/** - * @license FuzzySearch.js - * Autocomplete suggestion engine using approximate string matching - * https://github.com/jeancroy/FuzzySearch - * - * Copyright (c) 2015, Jean Christophe Roy - * Licensed under The MIT License. - * http://opensource.org/licenses/MIT - */ - -/**! - * FlexSearch.js v0.7.21 (Bundle) - * Copyright 2018-2021 Nextapps GmbH - * Author: Thomas Wilkerling - * Licence: Apache-2.0 - * https://github.com/nextapps-de/flexsearch - */ diff --git a/build/22120.js.REMOVED.git-id b/build/22120.js.REMOVED.git-id deleted file mode 100644 index 6fefc34..0000000 --- a/build/22120.js.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -0455ba78622f56a72ea5dc95010b464d7705ab83 \ No newline at end of file diff --git a/build/790.22120.js b/build/790.22120.js deleted file mode 100644 index 57e7bbf..0000000 --- a/build/790.22120.js +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -"use strict";exports.id=790,exports.ids=[790],exports.modules={7790:(e,t,n)=>{n.r(t),n.d(t,{toFormData:()=>f});var r=n(7561),a=(n(9411),n(4086)),s=n(4193);n(5006);const{stat:o}=r.promises;globalThis.DOMException||(()=>{const e=(new a.MessageChannel).port1,t=new ArrayBuffer(0);try{e.postMessage(t,[t,t])}catch(e){return e.constructor}})(),Symbol.toStringTag;var i=n(9951);let d=0;const E={START_BOUNDARY:d++,HEADER_FIELD_START:d++,HEADER_FIELD:d++,HEADER_VALUE_START:d++,HEADER_VALUE:d++,HEADER_VALUE_ALMOST_DONE:d++,HEADERS_ALMOST_DONE:d++,PART_DATA_START:d++,PART_DATA:d++,END:d++};let A=1;const h=A,l=A*=2,c=e=>32|e,D=()=>{};class T{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=D,this.onHeaderField=D,this.onHeadersEnd=D,this.onHeaderValue=D,this.onPartBegin=D,this.onPartData=D,this.onPartEnd=D,this.boundaryChars={},e="\r\n--"+e;const t=new Uint8Array(e.length);for(let n=0;n{this[e+"Mark"]=t},H=e=>{delete this[e+"Mark"]},b=(e,t,n,r)=>{void 0!==t&&t===n||this[e](r&&r.subarray(t,n))},g=(n,r)=>{const a=n+"Mark";a in this&&(r?(b(n,this[a],t,e),delete this[a]):(b(n,this[a],e.length,e),this[a]=0))};for(t=0;t122)return;break;case E.HEADER_VALUE_START:if(32===_)break;R("onHeaderValue"),d=E.HEADER_VALUE;case E.HEADER_VALUE:13===_&&(g("onHeaderValue",!0),b("onHeaderEnd"),d=E.HEADER_VALUE_ALMOST_DONE);break;case E.HEADER_VALUE_ALMOST_DONE:if(10!==_)return;d=E.HEADER_FIELD_START;break;case E.HEADERS_ALMOST_DONE:if(10!==_)return;b("onHeadersEnd"),d=E.PART_DATA_START;break;case E.PART_DATA_START:d=E.PART_DATA,R("onPartData");case E.PART_DATA:if(r=i,0===i){for(t+=T;t0)a[i-1]=_;else if(r>0){const e=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);b("onPartData",0,r,e),r=0,R("onPartData"),t--}break;case E.END:break;default:throw new Error(`Unexpected state entered: ${d}`)}g("onHeaderField"),g("onHeaderValue"),g("onPartData"),this.index=i,this.state=d,this.flags=A}end(){if(this.state===E.HEADER_FIELD_START&&0===this.index||this.state===E.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==E.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}async function f(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");const n=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");const r=new T(n[1]||n[2]);let a,o,d,E,A,h;const l=[],c=new i.Ct,D=e=>{d+=R.decode(e,{stream:!0})},f=e=>{l.push(e)},_=()=>{const e=new s.Z(l,h,{type:A});c.append(E,e)},u=()=>{c.append(E,d)},R=new TextDecoder("utf-8");R.decode(),r.onPartBegin=function(){r.onPartData=D,r.onPartEnd=u,a="",o="",d="",E="",A="",h=null,l.length=0},r.onHeaderField=function(e){a+=R.decode(e,{stream:!0})},r.onHeaderValue=function(e){o+=R.decode(e,{stream:!0})},r.onHeaderEnd=function(){if(o+=R.decode(),a=a.toLowerCase(),"content-disposition"===a){const e=o.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(E=e[2]||e[3]||""),h=function(e){const t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;const n=t[2]||t[3]||"";let r=n.slice(n.lastIndexOf("\\")+1);return r=r.replace(/%22/g,'"'),r=r.replace(/&#(\d{4});/g,((e,t)=>String.fromCharCode(t))),r}(o),h&&(r.onPartData=f,r.onPartEnd=_)}else"content-type"===a&&(A=o);o="",a=""};for await(const t of e)r.write(t);return r.end(),c}}}; \ No newline at end of file