chrome-devtools-frontend
Version:
Chrome DevTools UI
57 lines • 2.31 MB
JavaScript
/**
* Lighthouse v12.8.2 (Aug 28 2025)
*
* Automated auditing, performance metrics, and best practices for the web.
*
* @homepage https://github.com/GoogleChrome/lighthouse#readme
* @author Copyright 2025 Google LLC
* @license Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
"use strict";(()=>{var SJ=Object.create;var Pd=Object.defineProperty;var CJ=Object.getOwnPropertyDescriptor;var IJ=Object.getOwnPropertyNames;var kJ=Object.getPrototypeOf,RJ=Object.prototype.hasOwnProperty;var i=(e,t)=>Pd(e,"name",{value:t,configurable:!0});var g=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),C=(e,t)=>{for(var r in t)Pd(e,r,{get:t[r],enumerable:!0})},KM=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IJ(t))!RJ.call(e,a)&&a!==r&&Pd(e,a,{get:()=>t[a],enumerable:!(n=CJ(t,a))||n.enumerable});return e};var Kr=(e,t,r)=>(r=e!=null?SJ(kJ(e)):{},KM(t||!e||!e.__esModule?Pd(r,"default",{value:e,enumerable:!0}):r,e)),_J=e=>KM(Pd({},"__esModule",{value:!0}),e);function JM(){throw new Error("setTimeout has not been defined")}function XM(){throw new Error("clearTimeout has not been defined")}function ZM(e){if(ji===setTimeout)return setTimeout(e,0);if((ji===JM||!ji)&&setTimeout)return ji=setTimeout,setTimeout(e,0);try{return ji(e,0)}catch{try{return ji.call(null,e,0)}catch{return ji.call(this,e,0)}}}function AJ(e){if(qi===clearTimeout)return clearTimeout(e);if((qi===XM||!qi)&&clearTimeout)return qi=clearTimeout,clearTimeout(e);try{return qi(e)}catch{try{return qi.call(null,e)}catch{return qi.call(this,e)}}}function FJ(){!vu||!rc||(vu=!1,rc.length?Uo=rc.concat(Uo):ng=-1,Uo.length&&QM())}function QM(){if(!vu){var e=ZM(FJ);vu=!0;for(var t=Uo.length;t;){for(rc=Uo,Uo=[];++ng<t;)rc&&rc[ng].run();ng=-1,t=Uo.length}rc=null,vu=!1,AJ(e)}}function hn(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Uo.push(new eO(e,t)),Uo.length===1&&!vu&&ZM(QM)}function eO(e,t){this.fun=e,this.array=t}function nc(){}
function KJ(e){throw new Error("process.binding is not supported")}function JJ(){return"/"}function XJ(e){throw new Error("process.chdir is not supported")}function ZJ(){return 0}function eX(e){var t=QJ.call(yu)*.001,r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r=r-e[0],n=n-e[1],n<0&&(r--,n+=1e9)),[r,n]}function rX(){var e=new Date,t=e-tX;return t/1e3}var ji,qi,Uo,vu,rc,ng,MJ,OJ,NJ,LJ,PJ,BJ,UJ,jJ,qJ,zJ,HJ,GJ,WJ,VJ,$J,YJ,yu,QJ,tX,gn,zi=g(()=>{d();i(JM,"defaultSetTimout");i(XM,"defaultClearTimeout");ji=JM,qi=XM;typeof globalThis.setTimeout=="function"&&(ji=setTimeout);typeof globalThis.clearTimeout=="function"&&(qi=clearTimeout);i(ZM,"runTimeout");i(AJ,"runClearTimeout");Uo=[],vu=!1,ng=-1;i(FJ,"cleanUpNextTick");i(QM,"drainQueue");i(hn,"nextTick");i(eO,"Item");eO.prototype.run=function(){this.fun.apply(null,this.array)};MJ="browser",OJ="browser",NJ=!0,LJ={},PJ=[],BJ="",UJ={},jJ={},qJ={};i(nc,"noop");zJ=nc,HJ=nc,GJ=nc,WJ=nc,VJ=nc,$J=nc,YJ=nc;i(KJ,"binding");i(JJ,"cwd");i(XJ,"chdir");i(
ZJ,"umask");yu=globalThis.performance||{},QJ=yu.now||yu.mozNow||yu.msNow||yu.oNow||yu.webkitNow||function(){return new Date().getTime()};i(eX,"hrtime");tX=new Date;i(rX,"uptime");gn={nextTick:hn,title:MJ,browser:NJ,env:LJ,argv:PJ,version:BJ,versions:UJ,on:zJ,addListener:HJ,once:GJ,off:WJ,removeListener:VJ,removeAllListeners:$J,emit:YJ,binding:KJ,cwd:JJ,chdir:XJ,umask:ZJ,hrtime:eX,platform:OJ,release:jJ,config:qJ,uptime:rX}});var d=g(()=>{"use strict";zi();globalThis.process=gn});function aO(){Jb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)oo[t]=e[t],ha[e.charCodeAt(t)]=t;ha[45]=62,ha[95]=63}function aX(e){Jb||aO();var t,r,n,a,o,s,c=e.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[c-2]==="="?2:e[c-1]==="="?1:0,s=new nX(c*3/4-o),n=o>0?c-4:c;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)a=ha[e.charCodeAt(t)]<<18|ha[e.charCodeAt(t+1)]<<12|ha[e.charCodeAt(t+2)]<<6|ha[e.charCodeAt(t+3)],s[u++]=a>>16&255,s[u++]=a>>8&255,s[u++]=a&255;return o===2?(a=ha[e.charCodeAt(t)]<<2|ha[e.charCodeAt(t+1)]>>4,s[u++]=a&255):o===1&&(a=ha[e.charCodeAt(t)]<<10|ha[e.charCodeAt(t+1)]<<4|ha[e.charCodeAt(t+2)]>>2,s[u++]=a>>8&255,s[u++]=a&255),s}function oX(e){return oo[e>>18&63]+oo[e>>12&63]+oo[e>>6&63]+oo[e&63]}function iX(e,t,r){for(var n,a=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(oX(n));return a.join("")}function tO(e){Jb||aO();for(var t,r=e.length,n=r%3,a="",o=[],s=16383,c=0,u=r-n;c<u;c+=
s)o.push(iX(e,c,c+s>u?u:c+s));return n===1?(t=e[r-1],a+=oo[t>>2],a+=oo[t<<4&63],a+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],a+=oo[t>>10],a+=oo[t>>4&63],a+=oo[t<<2&63],a+="="),o.push(a),o.join("")}function ig(e,t,r,n,a){var o,s,c=a*8-n-1,u=(1<<c)-1,l=u>>1,m=-7,p=r?a-1:0,f=r?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-m)-1,h>>=-m,m+=c;m>0;o=o*256+e[t+p],p+=f,m-=8);for(s=o&(1<<-m)-1,o>>=-m,m+=n;m>0;s=s*256+e[t+p],p+=f,m-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(h?-1:1)*s*Math.pow(2,o-n)}function oO(e,t,r,n,a,o){var s,c,u,l=o*8-a-1,m=(1<<l)-1,p=m>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,y=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,s=m):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?t+=f/u:t+=f*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=m?(c=0,s=m):s+p>=1?(c=(t*u-1)*Math.pow(2,a),s=s+p):(c=t*Math.pow(2,p-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=c&255,h+=y,c/=256,a-=8);for(s=s<<a|c,l+=
a;l>0;e[r+h]=s&255,h+=y,s/=256,l-=8);e[r+h-y]|=v*128}function ag(){return oe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function jo(e,t){if(ag()<t)throw new RangeError("Invalid typed array length");return oe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=oe.prototype):(e===null&&(e=new oe(t)),e.length=t),e}function oe(e,t,r){if(!oe.TYPED_ARRAY_SUPPORT&&!(this instanceof oe))return new oe(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Xb(this,e)}return sO(this,e,t,r)}function sO(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?dX(e,t,r,n):typeof t=="string"?lX(e,t,r):mX(e,t)}function cO(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function uX(e,t,r,n){return cO(t),t<=0?jo(e,t):r!==void 0?
typeof n=="string"?jo(e,t).fill(r,n):jo(e,t).fill(r):jo(e,t)}function Xb(e,t){if(cO(t),e=jo(e,t<0?0:Zb(t)|0),!oe.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function lX(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!oe.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=uO(t,r)|0;e=jo(e,n);var a=e.write(t,r);return a!==n&&(e=e.slice(0,a)),e}function Kb(e,t){var r=t.length<0?0:Zb(t.length)|0;e=jo(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function dX(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),oe.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=oe.prototype):e=Kb(e,t),e}function mX(e,t){if(io(t)){var r=Zb(t.length)|0;return e=jo(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof
ArrayBuffer||"length"in t)return typeof t.length!="number"||AX(t.length)?jo(e,0):Kb(e,t);if(t.type==="Buffer"&&iO(t.data))return Kb(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Zb(e){if(e>=ag())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ag().toString(16)+" bytes");return e|0}function io(e){return!!(e!=null&&e._isBuffer)}function uO(e,t){if(io(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return og(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return gO(e).length;default:if(n)return og(e).length;t=(""+t).toLowerCase(),n=!0}}function pX(e,t,r){
var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return TX(this,t,r);case"utf8":case"utf-8":return mO(this,t,r);case"ascii":return EX(this,t,r);case"latin1":case"binary":return DX(this,t,r);case"base64":return bX(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xX(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ac(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function lO(e,t,r,n,a){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0)if(a)r=0;else return-1;if(typeof t=="string"&&(t=oe.from(t,n)),io(t))return t.length===0?-1:rO(e,t,r,n,a);if(typeof t=="number")return t=t&255,oe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==
"function"?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):rO(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function rO(e,t,r,n,a){var o=1,s=e.length,c=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(h,y){return o===1?h[y]:h.readUInt16BE(y*o)}i(u,"read");var l;if(a){var m=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,m===-1?0:l-m)){if(m===-1&&(m=l),l-m+1===c)return m*o}else m!==-1&&(l-=l-m),m=-1}else for(r+c>s&&(r=s-c),l=r;l>=0;l--){for(var p=!0,f=0;f<c;f++)if(u(e,l+f)!==u(t,f)){p=!1;break}if(p)return l}return-1}function fX(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n),n>a&&(n=a)):n=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var c=parseInt(t.substr(s*2,2),16);if(isNaN(c))return s;e[r+s]=c}return s}function hX(e,t,r,n){return ug(og(t,e.length-
r),e,r,n)}function dO(e,t,r,n){return ug(RX(t),e,r,n)}function gX(e,t,r,n){return dO(e,t,r,n)}function yX(e,t,r,n){return ug(gO(t),e,r,n)}function vX(e,t,r,n){return ug(_X(t,e.length-r),e,r,n)}function bX(e,t,r){return t===0&&r===e.length?tO(e):tO(e.slice(t,r))}function mO(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var o=e[a],s=null,c=o>239?4:o>223?3:o>191?2:1;if(a+c<=r){var u,l,m,p;switch(c){case 1:o<128&&(s=o);break;case 2:u=e[a+1],(u&192)===128&&(p=(o&31)<<6|u&63,p>127&&(s=p));break;case 3:u=e[a+1],l=e[a+2],(u&192)===128&&(l&192)===128&&(p=(o&15)<<12|(u&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:u=e[a+1],l=e[a+2],m=e[a+3],(u&192)===128&&(l&192)===128&&(m&192)===128&&(p=(o&15)<<18|(u&63)<<12|(l&63)<<6|m&63,p>65535&&p<1114112&&(s=p))}}s===null?(s=65533,c=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=c}return wX(n)}function wX(e){var t=e.length;if(t<=nO)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.
apply(String,e.slice(n,n+=nO));return r}function EX(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]&127);return n}function DX(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function TX(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",o=t;o<r;++o)a+=kX(e[o]);return a}function xX(e,t,r){for(var n=e.slice(t,r),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+n[o+1]*256);return a}function Jr(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Wn(e,t,r,n,a,o){if(!io(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function sg(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-r,2);a<o;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>(n?a:1-a)*
8}function cg(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-r,4);a<o;++a)e[r+a]=t>>>(n?a:3-a)*8&255}function pO(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function fO(e,t,r,n,a){return a||pO(e,t,r,4),oO(e,t,r,n,23,4),r+4}function hO(e,t,r,n,a){return a||pO(e,t,r,8),oO(e,t,r,n,52,8),r+8}function CX(e){if(e=IX(e).replace(SX,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function IX(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kX(e){return e<16?"0"+e.toString(16):e.toString(16)}function og(e,t){t=t||1/0;for(var r,n=e.length,a=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<
0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function RX(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function _X(e,t){for(var r,n,a,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,a=r%256,o.push(a),o.push(n);return o}function gO(e){return aX(CX(e))}function ug(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function AX(e){return e!==e}function FX(e){return e!=null&&(!!e._isBuffer||yO(e)||MX(e))}function yO(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function MX(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&yO(e.slice(0,0))}var oo,ha,nX,Jb,sX,iO,cX,Jxe,nO,SX,bu=g(()=>{d();oo=[],ha=[],nX=typeof Uint8Array<
"u"?Uint8Array:Array,Jb=!1;i(aO,"init");i(aX,"toByteArray");i(oX,"tripletToBase64");i(iX,"encodeChunk");i(tO,"fromByteArray");i(ig,"read");i(oO,"write");sX={}.toString,iO=Array.isArray||function(e){return sX.call(e)=="[object Array]"};cX=50;oe.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;Jxe=ag();i(ag,"kMaxLength");i(jo,"createBuffer");i(oe,"Buffer");oe.poolSize=8192;oe._augment=function(e){return e.__proto__=oe.prototype,e};i(sO,"from");oe.from=function(e,t,r){return sO(null,e,t,r)};oe.TYPED_ARRAY_SUPPORT&&(oe.prototype.__proto__=Uint8Array.prototype,oe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&oe[Symbol.species]);i(cO,"assertSize");i(uX,"alloc");oe.alloc=function(e,t,r){return uX(null,e,t,r)};i(Xb,"allocUnsafe");oe.allocUnsafe=function(e){return Xb(null,e)};oe.allocUnsafeSlow=function(e){return Xb(null,e)};i(lX,"fromString");i(Kb,"fromArrayLike");i(dX,"fromArrayBuffer");i(mX,"fromObject");i(Zb,"checked");oe.isBuffer=FX;i(
io,"internalIsBuffer");oe.compare=i(function(t,r){if(!io(t)||!io(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,a=r.length,o=0,s=Math.min(n,a);o<s;++o)if(t[o]!==r[o]){n=t[o],a=r[o];break}return n<a?-1:a<n?1:0},"compare");oe.isEncoding=i(function(t){switch(String(t).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}},"isEncoding");oe.concat=i(function(t,r){if(!iO(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return oe.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var a=oe.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!io(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(a,o),o+=s.length}return a},"concat");i(uO,"byteLength");oe.byteLength=uO;i(pX,"slowToString");oe.prototype._isBuffer=!0;i(ac,"swap");oe.prototype.swap16=
i(function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ac(this,r,r+1);return this},"swap16");oe.prototype.swap32=i(function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ac(this,r,r+3),ac(this,r+1,r+2);return this},"swap32");oe.prototype.swap64=i(function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ac(this,r,r+7),ac(this,r+1,r+6),ac(this,r+2,r+5),ac(this,r+3,r+4);return this},"swap64");oe.prototype.toString=i(function(){var t=this.length|0;return t===0?"":arguments.length===0?mO(this,0,t):pX.apply(this,arguments)},"toString");oe.prototype.equals=i(function(t){if(!io(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:oe.compare(this,t)===0},"equals");oe.prototype.inspect=i(function(){var t="",r=cX;return this.length>0&&(t=this.toString("hex",0,r).match(
/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},"inspect");oe.prototype.compare=i(function(t,r,n,a,o){if(!io(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),r<0||n>t.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&r>=n)return 0;if(a>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,a>>>=0,o>>>=0,this===t)return 0;for(var s=o-a,c=n-r,u=Math.min(s,c),l=this.slice(a,o),m=t.slice(r,n),p=0;p<u;++p)if(l[p]!==m[p]){s=l[p],c=m[p];break}return s<c?-1:c<s?1:0},"compare");i(lO,"bidirectionalIndexOf");i(rO,"arrayIndexOf");oe.prototype.includes=i(function(t,r,n){return this.indexOf(t,r,n)!==-1},"includes");oe.prototype.indexOf=i(function(t,r,n){return lO(this,t,r,n,!0)},"indexOf");oe.prototype.lastIndexOf=i(function(t,r,n){return lO(this,t,r,n,!1)},"lastIndexOf");i(fX,"hexWrite");i(hX,"utf8Write");i(dO,"asciiWrite");i(gX,"latin1Write");i(yX,"base64Write");
i(vX,"ucs2Write");oe.prototype.write=i(function(t,r,n,a){if(r===void 0)a="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")a=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return fX(this,t,r,n);case"utf8":case"utf-8":return hX(this,t,r,n);case"ascii":return dO(this,t,r,n);case"latin1":case"binary":return gX(this,t,r,n);case"base64":return yX(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vX(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},"write");oe.prototype.toJSON=i(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"t\
oJSON");i(bX,"base64Slice");i(mO,"utf8Slice");nO=4096;i(wX,"decodeCodePointsArray");i(EX,"asciiSlice");i(DX,"latin1Slice");i(TX,"hexSlice");i(xX,"utf16leSlice");oe.prototype.slice=i(function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var a;if(oe.TYPED_ARRAY_SUPPORT)a=this.subarray(t,r),a.__proto__=oe.prototype;else{var o=r-t;a=new oe(o,void 0);for(var s=0;s<o;++s)a[s]=this[s+t]}return a},"slice");i(Jr,"checkOffset");oe.prototype.readUIntLE=i(function(t,r,n){t=t|0,r=r|0,n||Jr(t,r,this.length);for(var a=this[t],o=1,s=0;++s<r&&(o*=256);)a+=this[t+s]*o;return a},"readUIntLE");oe.prototype.readUIntBE=i(function(t,r,n){t=t|0,r=r|0,n||Jr(t,r,this.length);for(var a=this[t+--r],o=1;r>0&&(o*=256);)a+=this[t+--r]*o;return a},"readUIntBE");oe.prototype.readUInt8=i(function(t,r){return r||Jr(t,1,this.length),this[t]},"readUInt8");oe.prototype.readUInt16LE=i(function(t,r){return r||Jr(t,2,this.length),this[t]|this[t+1]<<
8},"readUInt16LE");oe.prototype.readUInt16BE=i(function(t,r){return r||Jr(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE");oe.prototype.readUInt32LE=i(function(t,r){return r||Jr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE");oe.prototype.readUInt32BE=i(function(t,r){return r||Jr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE");oe.prototype.readIntLE=i(function(t,r,n){t=t|0,r=r|0,n||Jr(t,r,this.length);for(var a=this[t],o=1,s=0;++s<r&&(o*=256);)a+=this[t+s]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a},"readIntLE");oe.prototype.readIntBE=i(function(t,r,n){t=t|0,r=r|0,n||Jr(t,r,this.length);for(var a=r,o=1,s=this[t+--a];a>0&&(o*=256);)s+=this[t+--a]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s},"readIntBE");oe.prototype.readInt8=i(function(t,r){return r||Jr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8");oe.prototype.readInt16LE=i(function(t,r){r||Jr(t,2,this.length);var n=this[t]|
this[t+1]<<8;return n&32768?n|4294901760:n},"readInt16LE");oe.prototype.readInt16BE=i(function(t,r){r||Jr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},"readInt16BE");oe.prototype.readInt32LE=i(function(t,r){return r||Jr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE");oe.prototype.readInt32BE=i(function(t,r){return r||Jr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE");oe.prototype.readFloatLE=i(function(t,r){return r||Jr(t,4,this.length),ig(this,t,!0,23,4)},"readFloatLE");oe.prototype.readFloatBE=i(function(t,r){return r||Jr(t,4,this.length),ig(this,t,!1,23,4)},"readFloatBE");oe.prototype.readDoubleLE=i(function(t,r){return r||Jr(t,8,this.length),ig(this,t,!0,52,8)},"readDoubleLE");oe.prototype.readDoubleBE=i(function(t,r){return r||Jr(t,8,this.length),ig(this,t,!1,52,8)},"readDoubleBE");i(Wn,"checkInt");oe.prototype.writeUIntLE=i(function(t,r,n,a){if(t=+t,r=r|0,n=n|0,!a){var o=Math.pow(2,8*
n)-1;Wn(this,t,r,n,o,0)}var s=1,c=0;for(this[r]=t&255;++c<n&&(s*=256);)this[r+c]=t/s&255;return r+n},"writeUIntLE");oe.prototype.writeUIntBE=i(function(t,r,n,a){if(t=+t,r=r|0,n=n|0,!a){var o=Math.pow(2,8*n)-1;Wn(this,t,r,n,o,0)}var s=n-1,c=1;for(this[r+s]=t&255;--s>=0&&(c*=256);)this[r+s]=t/c&255;return r+n},"writeUIntBE");oe.prototype.writeUInt8=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,1,255,0),oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1},"writeUInt8");i(sg,"objectWriteUInt16");oe.prototype.writeUInt16LE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):sg(this,t,r,!0),r+2},"writeUInt16LE");oe.prototype.writeUInt16BE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):sg(this,t,r,!1),r+2},"writeUInt16BE");i(cg,"objectWriteUInt32");oe.prototype.writeUInt32LE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?
(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):cg(this,t,r,!0),r+4},"writeUInt32LE");oe.prototype.writeUInt32BE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):cg(this,t,r,!1),r+4},"writeUInt32BE");oe.prototype.writeIntLE=i(function(t,r,n,a){if(t=+t,r=r|0,!a){var o=Math.pow(2,8*n-1);Wn(this,t,r,n,o-1,-o)}var s=0,c=1,u=0;for(this[r]=t&255;++s<n&&(c*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/c>>0)-u&255;return r+n},"writeIntLE");oe.prototype.writeIntBE=i(function(t,r,n,a){if(t=+t,r=r|0,!a){var o=Math.pow(2,8*n-1);Wn(this,t,r,n,o-1,-o)}var s=n-1,c=1,u=0;for(this[r+s]=t&255;--s>=0&&(c*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/c>>0)-u&255;return r+n},"writeIntBE");oe.prototype.writeInt8=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,1,127,-128),oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1},"writeInt8");oe.
prototype.writeInt16LE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):sg(this,t,r,!0),r+2},"writeInt16LE");oe.prototype.writeInt16BE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):sg(this,t,r,!1),r+2},"writeInt16BE");oe.prototype.writeInt32LE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,4,2147483647,-2147483648),oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):cg(this,t,r,!0),r+4},"writeInt32LE");oe.prototype.writeInt32BE=i(function(t,r,n){return t=+t,r=r|0,n||Wn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):cg(this,t,r,!1),r+4},"writeInt32BE");i(pO,"checkIEEE754");i(fO,"writeFloat");oe.prototype.writeFloatLE=i(function(t,r,n){return fO(this,t,r,!0,n)},"writeFloatLE");oe.prototype.writeFloatBE=
i(function(t,r,n){return fO(this,t,r,!1,n)},"writeFloatBE");i(hO,"writeDouble");oe.prototype.writeDoubleLE=i(function(t,r,n){return hO(this,t,r,!0,n)},"writeDoubleLE");oe.prototype.writeDoubleBE=i(function(t,r,n){return hO(this,t,r,!1,n)},"writeDoubleBE");oe.prototype.copy=i(function(t,r,n,a){if(n||(n=0),!a&&a!==0&&(a=this.length),r>=t.length&&(r=t.length),r||(r=0),a>0&&a<n&&(a=n),a===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-r<a-n&&(a=t.length-r+n);var o=a-n,s;if(this===t&&n<r&&r<a)for(s=o-1;s>=0;--s)t[s+r]=this[s+n];else if(o<1e3||!oe.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o},"copy");oe.prototype.fill=i(function(t,r,n,a){if(typeof t=="string"){if(typeof r=="string"?(a=r,r=0,n=this.length):
typeof n=="string"&&(a=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!oe.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var c=io(t)?t:og(new oe(t,a).toString()),u=c.length;for(s=0;s<n-r;++s)this[s+r]=c[s%u]}return this},"fill");SX=/[^+\/0-9A-Za-z-_]/g;i(CX,"base64clean");i(IX,"stringtrim");i(kX,"toHex");i(og,"utf8ToBytes");i(RX,"asciiToBytes");i(_X,"utf16leToBytes");i(gO,"base64ToBytes");i(ug,"blitBuffer");i(AX,"isnan");i(FX,"isBuffer");i(yO,"isFastBuffer");i(MX,"isSlowBuffer")});function Hi(){}function It(){It.init.call(this)}function vO(e){return e._maxListeners===void 0?It.defaultMaxListeners:e._maxListeners}function OX(e,t,r){if(t)e.call(r);else for(var n=e.length,a=Bd(e,n),o=0;o<n;++o)a[o].call(r)}function NX(e,t,r,n){if(t)e.call(r,n);else for(var a=e.length,o=Bd(e,a),s=0;s<a;++s)o[s].call(r,n)}function LX(e,t,r,n,a){if(t)e.call(r,n,a);else for(var o=e.length,s=Bd(e,o),c=0;c<o;++c)s[c].call(r,n,a)}function PX(e,t,r,n,a,o){if(t)e.call(r,n,a,o);else for(var s=e.length,c=Bd(e,s),u=0;u<s;++u)c[u].call(r,n,a,o)}function BX(e,t,r,n){if(t)e.apply(r,n);else for(var a=e.length,o=Bd(e,a),s=0;s<a;++s)o[s].apply(r,n)}function bO(e,t,r,n){var a,o,s;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]):(o=e._events=new Hi,e._eventsCount=0),!s)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(
r),!s.warned&&(a=vO(e),a&&a>0&&s.length>a)){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,UX(c)}return e}function UX(e){typeof console.warn=="function"?console.warn(e):console.log(e)}function wO(e,t,r){var n=!1;function a(){e.removeListener(t,a),n||(n=!0,r.apply(e,arguments))}return i(a,"g"),a.listener=r,a}function EO(e){var t=this._events;if(t){var r=t[e];if(typeof r=="function")return 1;if(r)return r.length}return 0}function jX(e,t){for(var r=t,n=r+1,a=e.length;n<a;r+=1,n+=1)e[r]=e[n];e.pop()}function Bd(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}function qX(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}var Qb,ga,qo=g(()=>{"use strict";d();i(Hi,"EventHandlers");Hi.prototype=Object.create(null);i(It,"EventEmitter");ga=It;It.EventEmitter=It;It.usingDomains=
!1;It.prototype.domain=void 0;It.prototype._events=void 0;It.prototype._maxListeners=void 0;It.defaultMaxListeners=10;It.init=function(){this.domain=null,It.usingDomains&&Qb.active&&!(this instanceof Qb.Domain)&&(this.domain=Qb.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Hi,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};It.prototype.setMaxListeners=i(function(t){if(typeof t!="number"||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},"setMaxListeners");i(vO,"$getMaxListeners");It.prototype.getMaxListeners=i(function(){return vO(this)},"getMaxListeners");i(OX,"emitNone");i(NX,"emitOne");i(LX,"emitTwo");i(PX,"emitThree");i(BX,"emitMany");It.prototype.emit=i(function(t){var r,n,a,o,s,c,u,l=!1,m=t==="error";if(c=this._events,c)m=m&&c.error==null;else if(!m)return!1;if(u=this.domain,m){if(r=arguments[1],u)r||(r=new Error('Uncaught, unspecified "error" event')),
r.domainEmitter=this,r.domain=u,r.domainThrown=!1,u.emit("error",r);else{if(r instanceof Error)throw r;var p=new Error('Uncaught, unspecified "error" event. ('+r+")");throw p.context=r,p}return!1}if(n=c[t],!n)return!1;var f=typeof n=="function";switch(a=arguments.length,a){case 1:OX(n,f,this);break;case 2:NX(n,f,this,arguments[1]);break;case 3:LX(n,f,this,arguments[1],arguments[2]);break;case 4:PX(n,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(a-1),s=1;s<a;s++)o[s-1]=arguments[s];BX(n,f,this,o)}return l&&u.exit(),!0},"emit");i(bO,"_addListener");i(UX,"emitWarning");It.prototype.addListener=i(function(t,r){return bO(this,t,r,!1)},"addListener");It.prototype.on=It.prototype.addListener;It.prototype.prependListener=i(function(t,r){return bO(this,t,r,!0)},"prependListener");i(wO,"_onceWrap");It.prototype.once=i(function(t,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.on(t,wO(this,t,r)),this},"once");It.prototype.
prependOnceListener=i(function(t,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(t,wO(this,t,r)),this},"prependOnceListener");It.prototype.removeListener=i(function(t,r){var n,a,o,s,c;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(a=this._events,!a)return this;if(n=a[t],!n)return this;if(n===r||n.listener&&n.listener===r)--this._eventsCount===0?this._events=new Hi:(delete a[t],a.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length;s-- >0;)if(n[s]===r||n[s].listener&&n[s].listener===r){c=n[s].listener,o=s;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount===0)return this._events=new Hi,this;delete a[t]}else jX(n,o);a.removeListener&&this.emit("removeListener",t,c||r)}return this},"removeListener");It.prototype.off=function(e,t){return this.removeListener(e,t)};It.prototype.removeAllListeners=i(function(t){
var r,n;if(n=this._events,!n)return this;if(!n.removeListener)return arguments.length===0?(this._events=new Hi,this._eventsCount=0):n[t]&&(--this._eventsCount===0?this._events=new Hi:delete n[t]),this;if(arguments.length===0){for(var a=Object.keys(n),o=0,s;o<a.length;++o)s=a[o],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=new Hi,this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r)do this.removeListener(t,r[r.length-1]);while(r[0]);return this},"removeAllListeners");It.prototype.listeners=i(function(t){var r,n,a=this._events;return a?(r=a[t],r?typeof r=="function"?n=[r.listener||r]:n=qX(r):n=[]):n=[],n},"listeners");It.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):EO.call(e,t)};It.prototype.listenerCount=EO;i(EO,"listenerCount");It.prototype.eventNames=i(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");i(
jX,"spliceOne");i(Bd,"arrayClone");i(qX,"unwrapListeners")});var TO=je((nSe,DO)=>{d();var wu=1e3,Eu=wu*60,Du=Eu*60,oc=Du*24,zX=oc*7,HX=oc*365.25;DO.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return GX(e);if(r==="number"&&isFinite(e))return t.long?VX(e):WX(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function GX(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*HX;case"weeks":case"week":case"w":return r*zX;case"days":case"day":case"d":return r*oc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Du;case"minutes":case"minute":case"mins":case"min":case"m":return r*Eu;case"seconds":case"second":case"secs":case"sec":case"s":return r*wu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:
return}}}}i(GX,"parse");function WX(e){var t=Math.abs(e);return t>=oc?Math.round(e/oc)+"d":t>=Du?Math.round(e/Du)+"h":t>=Eu?Math.round(e/Eu)+"m":t>=wu?Math.round(e/wu)+"s":e+"ms"}i(WX,"fmtShort");function VX(e){var t=Math.abs(e);return t>=oc?lg(e,t,oc,"day"):t>=Du?lg(e,t,Du,"hour"):t>=Eu?lg(e,t,Eu,"minute"):t>=wu?lg(e,t,wu,"second"):e+" ms"}i(VX,"fmtLong");function lg(e,t,r,n){var a=t>=r*1.5;return Math.round(e/r)+" "+n+(a?"s":"")}i(lg,"plural")});var SO=je((iSe,xO)=>{d();function $X(e){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=a,r.enabled=s,r.humanize=TO(),r.destroy=l,Object.keys(e).forEach(m=>{r[m]=e[m]}),r.names=[],r.skips=[],r.formatters={};function t(m){let p=0;for(let f=0;f<m.length;f++)p=(p<<5)-p+m.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}i(t,"selectColor"),r.selectColor=t;function r(m){let p,f=null,h,y;function v(...E){if(!v.enabled)return;let T=v,x=Number(new Date),S=x-(p||x);T.diff=S,T.prev=p,T.curr=x,p=x,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let I=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(W,H)=>{if(W==="%%")return"%";I++;let se=r.formatters[H];if(typeof se=="function"){let me=E[I];W=se.call(T,me),E.splice(I,1),I--}return W}),r.formatArgs.call(T,E),(T.log||r.log).apply(T,E)}return i(v,"debug"),v.namespace=m,v.useColors=r.useColors(),v.color=r.selectColor(m),v.extend=n,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?
f:(h!==r.namespaces&&(h=r.namespaces,y=r.enabled(m)),y),"get"),set:i(E=>{f=E},"set")}),typeof r.init=="function"&&r.init(v),v}i(r,"createDebug");function n(m,p){let f=r(this.namespace+(typeof p>"u"?":":p)+m);return f.log=this.log,f}i(n,"extend");function a(m){r.save(m),r.namespaces=m,r.names=[],r.skips=[];let p,f=(typeof m=="string"?m:"").split(/[\s,]+/),h=f.length;for(p=0;p<h;p++)f[p]&&(m=f[p].replace(/\*/g,".*?"),m[0]==="-"?r.skips.push(new RegExp("^"+m.slice(1)+"$")):r.names.push(new RegExp("^"+m+"$")))}i(a,"enable");function o(){let m=[...r.names.map(c),...r.skips.map(c).map(p=>"-"+p)].join(",");return r.enable(""),m}i(o,"disable");function s(m){if(m[m.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p<f;p++)if(r.skips[p].test(m))return!1;for(p=0,f=r.names.length;p<f;p++)if(r.names[p].test(m))return!0;return!1}i(s,"enabled");function c(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}i(c,"toNamespace");function u(m){return m instanceof Error?
m.stack||m.message:m}i(u,"coerce");function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i(l,"destroy"),r.enable(r.load()),r}i($X,"setup");xO.exports=$X});var CO=je((ia,dg)=>{d();ia.formatArgs=KX;ia.save=JX;ia.load=XX;ia.useColors=YX;ia.storage=ZX();ia.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ia.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#\
FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function YX(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(YX,"useColors");function KX(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+dg.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(
1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(r++,a==="%c"&&(n=r))}),e.splice(n,0,t)}i(KX,"formatArgs");ia.log=console.debug||console.log||(()=>{});function JX(e){try{e?ia.storage.setItem("debug",e):ia.storage.removeItem("debug")}catch{}}i(JX,"save");function XX(){let e;try{e=ia.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(XX,"load");function ZX(){try{return localStorage}catch{}}i(ZX,"localstorage");dg.exports=SO()(ia);var{formatters:QX}=dg.exports;QX.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});function mg(e){if(!e)throw new Error("name must be non-empty")}function eZ(e,t){for(var r=0,n=e.length,a;r<n;)a=r+n>>>1,e[a].startTime<t.startTime?r=a+1:n=a;e.splice(r,0,t)}var sn,IO,hg,gg,Ud,yg,pg,fg,kO=g(()=>{d();sn=typeof performance<"u"&&performance,IO=sn&&sn.now?function(){return sn.now()}:function(){return Date.now()};i(mg,"throwIfEmpty");i(eZ,"insertSorted");sn&&sn.mark&&sn.measure&&sn.getEntriesByName&&sn.getEntriesByType&&sn.clearMarks&&sn.clearMeasures?(hg=i(function(e){mg(e),sn.mark("start "+e)},"mark"),gg=i(function(e){mg(e),sn.mark("end "+e);var t=sn.measure(e,"start "+e,"end "+e);if(t)return t;var r=sn.getEntriesByName(e);return r[r.length-1]},"stop"),Ud=i(function(){return sn.getEntriesByType("measure")},"getEntries"),yg=i(function(){sn.clearMarks(),sn.clearMeasures()},"clear")):(pg={},fg=[],hg=i(function(e){mg(e);var t=IO();pg["$"+e]=t},"mark"),gg=i(function(e){mg(e);var t=IO(),r=pg["$"+e];if(!r)throw new Error("no known mark: "+e);var n={startTime:r,name:e,duration:t-r,
entryType:"measure"};return eZ(fg,n),n},"stop"),Ud=i(function(){return fg},"getEntries"),yg=i(function(){pg={},fg=[]},"clear"))});var Wi,Gi,Tu,xu,e0,RO,rZ,_O,Su,q,pt=g(()=>{d();zi();qo();Wi=Kr(CO());kO();Gi=gn.platform==="win32",Tu=gn.browser,xu={red:Tu?"crimson":1,yellow:Tu?"gold":3,cyan:Tu?"darkturquoise":6,green:Tu?"forestgreen":2,blue:Tu?"steelblue":4,magenta:Tu?"palevioletred":5};Wi.default.colors=[xu.cyan,xu.green,xu.blue,xu.magenta];e0=class extends It{static{i(this,"Emitter")}constructor(t){super(t)}issueStatus(t,r){(t==="status"||t==="statusEnd")&&this.emit(t,[t,...r])}issueWarning(t,r){this.emit("warning",[t,...r])}},RO={},rZ=25,Su=class e{static{i(this,"Log")}static _logToStdErr(t,r){e.loggerfn(t)(...r)}static loggerfn(t){t=`LH:${t}`;let r=RO[t];return r||(r=(0,Wi.default)(t),RO[t]=r,t.endsWith("error")?r.color=xu.red:t.endsWith("warn")&&(r.color=xu.yellow)),r}static setLevel(t){switch(_O=t,t){case"silent":Wi.default.enable("-LH:*");break;case"verbose":Wi.default.enable("LH:*");break;case"warn":Wi.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":Wi.default.enable("-LH:*, LH:*:error");break;default:
Wi.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(t,r,n){let a=!gn||gn.browser?1/0:gn.stdout.columns,o=r.method||"?????",s=a-o.length-t.length-rZ,c=r.params&&o!=="IO.read"?JSON.stringify(r.params).substr(0,s):"";e._logToStdErr(`${t}:${n||""}`,[o,c])}static isVerbose(){return _O==="verbose"}static time({msg:t,id:r,args:n=[]},a="log"){hg(r),e[a]("status",t,...n)}static timeEnd({msg:t,id:r,args:n=[]},a="verbose"){e[a]("statusEnd",t,...n),gg(r)}static log(t,...r){return e.events.issueStatus(t,r),e._logToStdErr(t,r)}static warn(t,...r){return e.events.issueWarning(t,r),e._logToStdErr(`${t}:warn`,r)}static error(t,...r){return e._logToStdErr(`${t}:error`,r)}static verbose(t,...r){return e.events.issueStatus(t,r),e._logToStdErr(`${t}:verbose`,r)}static greenify(t){return`${e.green}${t}${e.reset}`}static redify(t){return`${e.red}${t}${e.reset}`}static get green(){return"\x1B[32m"}static get red(){return"\x1B[31m"}static get yellow(){return"\x1B[33m"}static get purple(){return"\x1B[9\
5m"}static get reset(){return"\x1B[0m"}static get bold(){return"\x1B[1m"}static get dim(){return"\x1B[2m"}static get tick(){return Gi?"√":"✓"}static get cross(){return Gi?"×":"✘"}static get whiteSmallSquare(){return Gi?"·":"▫"}static get heavyHorizontal(){return Gi?"─":"━"}static get heavyVertical(){return Gi?"│ ":"┃ "}static get heavyUpAndRight(){return Gi?"└":"┗"}static get heavyVerticalAndRight(){return Gi?"├":"┣"}static get heavyDownAndHorizontal(){return Gi?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};Su.events=new e0;Su.takeTimeEntries=()=>{let e=Ud();return yg(),e};Su.getTimeEntries=()=>Ud();q=Su});var yn=g(()=>{"use strict";d();});var t0,Se,At=g(()=>{"use strict";d();yn();t0=class{static{i(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(t){}startSensitiveInstrumentation(t){}stopSensitiveInstrumentation(t){}stopInstrumentation(t){}getArtifact(t){}},Se=t0});var nZ,aZ,oZ,iZ,sZ,cZ,cn,zo=g(()=>{"use strict";d();pt();nZ=/^(chrome|https?):/,aZ=16,oZ="RunTask",iZ="ThreadControllerImpl::RunTask",sZ="ThreadControllerImpl::DoWork",cZ="TaskQueueManager::ProcessTaskFromWorkQueue",cn=class e{static{i(this,"TraceProcessor")}static get TIMESPAN_MARKER_ID(){return"__lighthouseTimespanStart__"}static createNoNavstartError(){return new Error("No navigationStart event found")}static createNoResourceSendRequestError(){return new Error("No ResourceSendRequest event found")}static createNoTracingStartedError(){return new Error("No tracingStartedInBrowser event found")}static createNoFirstContentfulPaintError(){return new Error("No FirstContentfulPaint event found")}static createNoLighthouseMarkerError(){return new Error("No Lighthouse timespan marker event found")}static _isNavigationStartOfInterest(t){return t.name!=="navigationStart"?!1:t.args.data?.documentLoaderURL===void 0?!0:t.args.data?.documentLoaderURL?nZ.test(t.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(t,r,n,a){
let o=i(p=>r[p],"lookupArrayIndexByTsIndex"),s=i(p=>a[o(p)],"lookupEventByTsIndex"),c=[],u=[],l=[];for(let p of t){let f=o(p),h=s(p);h.ph==="E"?c.push(f):h.ph==="X"||h.ph==="B"?u.push(f):l.push(f)}let m=new Map;for(let p of u){let f=a[p];if(f.ph==="X")m.set(p,f.dur);else{let h=Number.MAX_SAFE_INTEGER,y=0,v=n+t.length;for(let E=v;E<r.length;E++){let T=s(E);if(T.name===f.name&&T.pid===f.pid&&T.tid===f.tid)if(T.ph==="E"&&y===0){h=T.ts-f.ts;break}else T.ph==="E"?y--:T.ph==="B"&&y++}m.set(p,h)}}return u.sort((p,f)=>(m.get(f)||0)-(m.get(p)||0)||p-f),l.sort((p,f)=>p-f),[...c,...u,...l]}static filteredTraceSort(t,r){let n=[];for(let o=0;o<t.length;o++)r(t[o])&&n.push(o);n.sort((o,s)=>t[o].ts-t[s].ts);for(let o=0;o<n.length-1;o++){let s=t[n[o]].ts,c=[o];for(let l=o+1;l<n.length&&t[n[l]].ts===s;l++)c.push(l);if(c.length===1)continue;let u=e._sortTimestampEventGroup(c,n,o,t);n.splice(o,u.length,...u),o+=c.length-1}let a=[];for(let o=0;o<n.length;o++)a.push(t[n[o]]);return a}static assertHasToplevelEvents(t){
if(!t.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(t,r,n,a=0){let o=0;for(let f=0;f<t.length;f++)o+=t[f];o-=a;let s=r-o,c=0,u=s,l=[],m=-1,p=t.length+1;a>0&&p--;for(let f of n){let h=f*r;for(;u<h&&m<t.length-1;)s+=c,p-=c<0?-1:1,a>0&&a<t[m+1]?(c=-a,a=0):(m++,c=t[m]),u=s+Math.abs(c)*p;l.push({percentile:f,time:Math.max(0,(h-s)/p)+aZ})}return l}static getRiskToResponsiveness(t,r,n,a=[.5,.75,.9,.99,1]){let o=n-r;a.sort((c,u)=>c-u);let s=this.getMainThreadTopLevelEventDurations(t,r,n);return this._riskPercentiles(s.durations,o,a,s.clippedLength)}static getMainThreadTopLevelEventDurations(t,r=0,n=1/0){let a=[],o=0;for(let s of t){if(s.end<r||s.start>n)continue;let c=s.duration,u=s.start;u<r&&(u=r,c=s.end-r),s.end>n&&(o=c-(n-u)),a.push(c)}return a.sort((s,c)=>s-c),{durations:a,clippedLength:o}}static getMainThreadTopLevelEvents(t,r=0,n=1/0){let a=[],o;for(let s of t.mainThreadEvents){if(!this.isScheduleableTask(s)||!s.dur)continue;
let c=(s.ts-t.timeOriginEvt.ts)/1e3,u=(s.ts+s.dur-t.timeOriginEvt.ts)/1e3;c>n||u<r||(o&&c<o.end&&(o.end=c-.001),o={start:c,end:u,duration:s.dur/1e3},a.push(o))}return a}static findMainFrameIds(t){let r=t.find(s=>s.name==="TracingStartedInBrowser");if(r?.args.data?.frames){let s=r.args.data.frames.find(l=>!l.parent),c=s?.frame,u=s?.processId;if(u&&c)return{startingPid:u,frameId:c}}let n=t.find(s=>s.name==="TracingStartedInPage");if(n?.args?.data){let s=n.args.data.page;if(s)return{startingPid:n.pid,frameId:s}}let a=t.find(s=>this._isNavigationStartOfInterest(s)&&s.args.data?.isLoadingMainFrame),o=t.find(s=>s.name==="ResourceSendRequest");if(a?.args?.data&&o&&o.pid===a.pid&&o.tid===a.tid){let s=a.args.frame;if(s)return{startingPid:a.pid,frameId:s}}throw this.createNoTracingStartedError()}static findMainFramePidTids(t,r){let n=r.filter(s=>(s.name==="FrameCommittedInBrowser"||s.name==="ProcessReadyInBrowser")&&s.args?.data?.frame===t.frameId&&s?.args?.data?.processId),a=n.length?n.map(s=>s?.
args?.data?.processId):[t.startingPid],o=new Map;for(let s of new Set(a)){let c=r.filter(m=>m.cat==="__metadata"&&m.pid===s&&m.ph==="M"&&m.name==="thread_name"),u=c.find(m=>m.args.name==="CrRendererMain");u||(u=c.find(m=>m.args.name==="CrBrowserMain"));let l=u?.tid;if(!l)throw new Error("Unable to determine tid for renderer process");o.set(s,l)}return o}static isScheduleableTask(t){return t.name===oZ||t.name===iZ||t.name===sZ||t.name===cZ}static isLCPEvent(t){return t.name!=="largestContentfulPaint::Invalidate"&&t.name!=="largestContentfulPaint::Candidate"?!1:!!t.args?.frame}static isLCPCandidateEvent(t){return!!(t.name==="largestContentfulPaint::Candidate"&&t.args?.frame&&t.args.data&&t.args.data.size!==void 0)}static getFrameId(t){return t.args?.data?.frame||t.args.data?.frameID||t.args.frame}static computeValidLCPAllFrames(t,r){let n=t.filter(this.isLCPEvent).reverse(),a=new Map;for(let s of n){if(s.ts<=r.ts)break;let c=s.args.frame;a.has(c)||a.set(c,s)}let o;for(let s of a.values())
this.isLCPCandidateEvent(s)&&(!o||s.args.data.size>o.args.data.size)&&(o=s);return{lcp:o,invalidated:!!(!o&&a.size)}}static resolveRootFrames(t){let r=new Map;for(let a of t)a.parent&&r.set(a.id,a.parent);let n=new Map;for(let a of t){let o=a.id;for(;r.has(o);)o=r.get(o);if(o===void 0)throw new Error("Unexpected undefined frameId");n.set(a.id,o)}return n}static processTrace(t,r){let{timeOriginDeterminationMe