chrome-devtools-frontend
Version:
Chrome DevTools UI
57 lines • 2.2 MB
JavaScript
/**
* Lighthouse v13.4.0 (Jun 09 2026)
*
* Automated auditing, performance metrics, and best practices for the web.
*
* @homepage https://github.com/GoogleChrome/lighthouse#readme
* @author Copyright 2026 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 dV=Object.create;var Ul=Object.defineProperty;var mV=Object.getOwnPropertyDescriptor;var pV=Object.getOwnPropertyNames;var fV=Object.getPrototypeOf,hV=Object.prototype.hasOwnProperty;var i=(e,t)=>Ul(e,"name",{value:t,configurable:!0});var g=(e,t)=>()=>(e&&(t=e(e=0)),t);var ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var n in t)Ul(e,n,{get:t[n],enumerable:!0})},N_=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pV(t))!hV.call(e,a)&&a!==n&&Ul(e,a,{get:()=>t[a],enumerable:!(r=mV(t,a))||r.enumerable});return e};var Cn=(e,t,n)=>(n=e!=null?dV(fV(e)):{},N_(t||!e||!e.__esModule?Ul(n,"default",{value:e,enumerable:!0}):n,e)),gV=e=>N_(Ul({},"__esModule",{value:!0}),e);function M_(){throw new Error("setTimeout has not been defined")}function O_(){throw new Error("clearTimeout has not been defined")}function P_(e){if(fo===setTimeout)return setTimeout(e,0);if((fo===M_||!fo)&&setTimeout)return fo=setTimeout,setTimeout(e,0);try{return fo(e,0)}catch{try{return fo.call(null,e,0)}catch{return fo.call(this,e,0)}}}function yV(e){if(ho===clearTimeout)return clearTimeout(e);if((ho===O_||!ho)&&clearTimeout)return ho=clearTimeout,clearTimeout(e);try{return ho(e)}catch{try{return ho.call(null,e)}catch{return ho.call(this,e)}}}function vV(){!Ns||!Ci||(Ns=!1,Ci.length?ka=Ci.concat(ka):Dp=-1,ka.length&&L_())}function L_(){if(!Ns){var e=P_(vV);Ns=!0;for(var t=ka.length;t;){for(Ci=ka,ka=[];++Dp<t;)Ci&&Ci[Dp].run();Dp=-1,t=ka.length}Ci=null,Ns=!1,yV(e)}}function kn(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ka.push(new F_(e,t)),ka.length===1&&!Ns&&P_(L_)}function F_(e,t){this.fun=e,this.array=t}function ki(){}
function PV(e){throw new Error("process.binding is not supported")}function LV(){return"/"}function FV(e){throw new Error("process.chdir is not supported")}function UV(){return 0}function jV(e){var t=BV.call(Ds)*.001,n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n=n-e[0],r=r-e[1],r<0&&(n--,r+=1e9)),[n,r]}function qV(){var e=new Date,t=e-HV;return t/1e3}var fo,ho,ka,Ns,Ci,Dp,bV,wV,EV,TV,xV,SV,CV,kV,RV,IV,AV,_V,DV,NV,MV,OV,Ds,BV,HV,Rn,go=g(()=>{d();i(M_,"defaultSetTimout");i(O_,"defaultClearTimeout");fo=M_,ho=O_;typeof globalThis.setTimeout=="function"&&(fo=setTimeout);typeof globalThis.clearTimeout=="function"&&(ho=clearTimeout);i(P_,"runTimeout");i(yV,"runClearTimeout");ka=[],Ns=!1,Dp=-1;i(vV,"cleanUpNextTick");i(L_,"drainQueue");i(kn,"nextTick");i(F_,"Item");F_.prototype.run=function(){this.fun.apply(null,this.array)};bV="browser",wV="browser",EV=!0,TV={},xV=[],SV="",CV={},kV={},RV={};i(ki,"noop");IV=ki,AV=ki,_V=ki,DV=ki,NV=ki,MV=ki,OV=ki;i(PV,"binding");i(LV,"cwd");i(FV,"chdir");i(
UV,"umask");Ds=globalThis.performance||{},BV=Ds.now||Ds.mozNow||Ds.msNow||Ds.oNow||Ds.webkitNow||function(){return new Date().getTime()};i(jV,"hrtime");HV=new Date;i(qV,"uptime");Rn={nextTick:kn,title:bV,browser:EV,env:TV,argv:xV,version:SV,versions:CV,on:IV,addListener:AV,once:_V,off:DV,removeListener:NV,removeAllListeners:MV,emit:OV,binding:PV,cwd:LV,chdir:FV,umask:UV,hrtime:jV,platform:wV,release:kV,config:RV,uptime:qV}});var d=g(()=>{"use strict";go();globalThis.process=Rn});function H_(){d0=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Xr[t]=e[t],hr[e.charCodeAt(t)]=t;hr[45]=62,hr[95]=63}function GV(e){d0||H_();var t,n,r,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 zV(c*3/4-o),r=o>0?c-4:c;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)a=hr[e.charCodeAt(t)]<<18|hr[e.charCodeAt(t+1)]<<12|hr[e.charCodeAt(t+2)]<<6|hr[e.charCodeAt(t+3)],s[l++]=a>>16&255,s[l++]=a>>8&255,s[l++]=a&255;return o===2?(a=hr[e.charCodeAt(t)]<<2|hr[e.charCodeAt(t+1)]>>4,s[l++]=a&255):o===1&&(a=hr[e.charCodeAt(t)]<<10|hr[e.charCodeAt(t+1)]<<4|hr[e.charCodeAt(t+2)]>>2,s[l++]=a>>8&255,s[l++]=a&255),s}function WV(e){return Xr[e>>18&63]+Xr[e>>12&63]+Xr[e>>6&63]+Xr[e&63]}function VV(e,t,n){for(var r,a=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(WV(r));return a.join("")}function U_(e){d0||H_();for(var t,n=e.length,r=n%3,a="",o=[],s=16383,c=0,l=n-r;c<l;c+=
s)o.push(VV(e,c,c+s>l?l:c+s));return r===1?(t=e[n-1],a+=Xr[t>>2],a+=Xr[t<<4&63],a+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],a+=Xr[t>>10],a+=Xr[t>>4&63],a+=Xr[t<<2&63],a+="="),o.push(a),o.join("")}function Op(e,t,n,r,a){var o,s,c=a*8-r-1,l=(1<<c)-1,u=l>>1,m=-7,p=n?a-1:0,f=n?-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+=r;m>0;s=s*256+e[t+p],p+=f,m-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-u}return(h?-1:1)*s*Math.pow(2,o-r)}function q_(e,t,n,r,a,o){var s,c,l,u=o*8-a-1,m=(1<<u)-1,p=m>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,y=r?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*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+p>=1?t+=f/l:t+=f*Math.pow(2,1-p),t*l>=2&&(s++,l/=2),s+p>=m?(c=0,s=m):s+p>=1?(c=(t*l-1)*Math.pow(2,a),s=s+p):(c=t*Math.pow(2,p-1)*Math.pow(2,a),s=0));a>=8;e[n+h]=c&255,h+=y,c/=256,a-=8);for(s=s<<a|c,u+=
a;u>0;e[n+h]=s&255,h+=y,s/=256,u-=8);e[n+h-y]|=v*128}function Np(){return q.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ra(e,t){if(Np()<t)throw new RangeError("Invalid typed array length");return q.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=q.prototype):(e===null&&(e=new q(t)),e.length=t),e}function q(e,t,n){if(!q.TYPED_ARRAY_SUPPORT&&!(this instanceof q))return new q(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return m0(this,e)}return G_(this,e,t,n)}function G_(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?XV(e,t,n,r):typeof t=="string"?JV(e,t,n):ZV(e,t)}function W_(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 YV(e,t,n,r){return W_(t),t<=0?Ra(e,t):n!==void 0?typeof r==
"string"?Ra(e,t).fill(n,r):Ra(e,t).fill(n):Ra(e,t)}function m0(e,t){if(W_(t),e=Ra(e,t<0?0:p0(t)|0),!q.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function JV(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!q.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=V_(t,n)|0;e=Ra(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function u0(e,t){var n=t.length<0?0:p0(t.length)|0;e=Ra(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function XV(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),q.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=q.prototype):e=u0(e,t),e}function ZV(e,t){if(Zr(t)){var n=p0(t.length)|0;return e=Ra(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||
"length"in t)return typeof t.length!="number"||y$(t.length)?Ra(e,0):u0(e,t);if(t.type==="Buffer"&&z_(t.data))return u0(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p0(e){if(e>=Np())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Np().toString(16)+" bytes");return e|0}function Zr(e){return!!(e!=null&&e._isBuffer)}function V_(e,t){if(Zr(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 n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Mp(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Q_(e).length;default:if(r)return Mp(e).length;t=(""+t).toLowerCase(),r=!0}}function QV(e,t,n){var r=!1;
if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return l$(this,t,n);case"utf8":case"utf-8":return Y_(this,t,n);case"ascii":return s$(this,t,n);case"latin1":case"binary":return c$(this,t,n);case"base64":return o$(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u$(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ri(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function $_(e,t,n,r,a){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof t=="string"&&(t=q.from(t,r)),Zr(t))return t.length===0?-1:B_(e,t,n,r,a);if(typeof t=="number")return t=t&255,q.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?
a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):B_(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function B_(e,t,n,r,a){var o=1,s=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(h,y){return o===1?h[y]:h.readUInt16BE(y*o)}i(l,"read");var u;if(a){var m=-1;for(u=n;u<s;u++)if(l(e,u)===l(t,m===-1?0:u-m)){if(m===-1&&(m=u),u-m+1===c)return m*o}else m!==-1&&(u-=u-m),m=-1}else for(n+c>s&&(n=s-c),u=n;u>=0;u--){for(var p=!0,f=0;f<c;f++)if(l(e,u+f)!==l(t,f)){p=!1;break}if(p)return u}return-1}function e$(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var c=parseInt(t.substr(s*2,2),16);if(isNaN(c))return s;e[n+s]=c}return s}function t$(e,t,n,r){return Fp(Mp(t,e.length-n),e,
n,r)}function K_(e,t,n,r){return Fp(h$(t),e,n,r)}function n$(e,t,n,r){return K_(e,t,n,r)}function r$(e,t,n,r){return Fp(Q_(t),e,n,r)}function a$(e,t,n,r){return Fp(g$(t,e.length-n),e,n,r)}function o$(e,t,n){return t===0&&n===e.length?U_(e):U_(e.slice(t,n))}function Y_(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o=e[a],s=null,c=o>239?4:o>223?3:o>191?2:1;if(a+c<=n){var l,u,m,p;switch(c){case 1:o<128&&(s=o);break;case 2:l=e[a+1],(l&192)===128&&(p=(o&31)<<6|l&63,p>127&&(s=p));break;case 3:l=e[a+1],u=e[a+2],(l&192)===128&&(u&192)===128&&(p=(o&15)<<12|(l&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:l=e[a+1],u=e[a+2],m=e[a+3],(l&192)===128&&(u&192)===128&&(m&192)===128&&(p=(o&15)<<18|(l&63)<<12|(u&63)<<6|m&63,p>65535&&p<1114112&&(s=p))}}s===null?(s=65533,c=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|s&1023),r.push(s),a+=c}return i$(r)}function i$(e){var t=e.length;if(t<=j_)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.
apply(String,e.slice(r,r+=j_));return n}function s$(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function c$(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function l$(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=f$(e[o]);return a}function u$(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+r[o+1]*256);return a}function ln(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 Kn(e,t,n,r,a,o){if(!Zr(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(n+r>e.length)throw new RangeError("Index out of range")}function Pp(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a<o;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>(r?a:1-a)*
8}function Lp(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a<o;++a)e[n+a]=t>>>(r?a:3-a)*8&255}function J_(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function X_(e,t,n,r,a){return a||J_(e,t,n,4),q_(e,t,n,r,23,4),n+4}function Z_(e,t,n,r,a){return a||J_(e,t,n,8),q_(e,t,n,r,52,8),n+8}function m$(e){if(e=p$(e).replace(d$,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function p$(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f$(e){return e<16?"0"+e.toString(16):e.toString(16)}function Mp(e,t){t=t||1/0;for(var n,r=e.length,a=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=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,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function h$(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function g$(e,t){for(var n,r,a,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function Q_(e){return GV(m$(e))}function Fp(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function y$(e){return e!==e}function v$(e){return e!=null&&(!!e._isBuffer||eD(e)||b$(e))}function eD(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function b$(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&eD(e.slice(0,0))}var Xr,hr,zV,d0,$V,z_,KV,Zbe,j_,d$,Bl=g(()=>{d();Xr=[],hr=[],zV=typeof Uint8Array<
"u"?Uint8Array:Array,d0=!1;i(H_,"init");i(GV,"toByteArray");i(WV,"tripletToBase64");i(VV,"encodeChunk");i(U_,"fromByteArray");i(Op,"read");i(q_,"write");$V={}.toString,z_=Array.isArray||function(e){return $V.call(e)=="[object Array]"};KV=50;q.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;Zbe=Np();i(Np,"kMaxLength");i(Ra,"createBuffer");i(q,"Buffer");q.poolSize=8192;q._augment=function(e){return e.__proto__=q.prototype,e};i(G_,"from");q.from=function(e,t,n){return G_(null,e,t,n)};q.TYPED_ARRAY_SUPPORT&&(q.prototype.__proto__=Uint8Array.prototype,q.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&q[Symbol.species]);i(W_,"assertSize");i(YV,"alloc");q.alloc=function(e,t,n){return YV(null,e,t,n)};i(m0,"allocUnsafe");q.allocUnsafe=function(e){return m0(null,e)};q.allocUnsafeSlow=function(e){return m0(null,e)};i(JV,"fromString");i(u0,"fromArrayLike");i(XV,"fromArrayBuffer");i(ZV,"fromObject");i(p0,"checked");q.isBuffer=v$;i(Zr,"internalIs\
Buffer");q.compare=i(function(t,n){if(!Zr(t)||!Zr(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,a=n.length,o=0,s=Math.min(r,a);o<s;++o)if(t[o]!==n[o]){r=t[o],a=n[o];break}return r<a?-1:a<r?1:0},"compare");q.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");q.concat=i(function(t,n){if(!z_(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return q.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var a=q.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!Zr(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(a,o),o+=s.length}return a},"concat");i(V_,"byteLength");q.byteLength=V_;i(QV,"slowToString");q.prototype._isBuffer=!0;i(Ri,"swap");q.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 n=0;n<t;n+=2)Ri(this,n,n+1);return this},"swap16");q.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 n=0;n<t;n+=4)Ri(this,n,n+3),Ri(this,n+1,n+2);return this},"swap32");q.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 n=0;n<t;n+=8)Ri(this,n,n+7),Ri(this,n+1,n+6),Ri(this,n+2,n+5),Ri(this,n+3,n+4);return this},"swap64");q.prototype.toString=i(function(){var t=this.length|0;return t===0?"":arguments.length===0?Y_(this,0,t):QV.apply(this,arguments)},"toString");q.prototype.equals=i(function(t){if(!Zr(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:q.compare(this,t)===0},"equals");q.prototype.inspect=i(function(){var t="",n=KV;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>
n&&(t+=" ... ")),"<Buffer "+t+">"},"inspect");q.prototype.compare=i(function(t,n,r,a,o){if(!Zr(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),n<0||r>t.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===t)return 0;for(var s=o-a,c=r-n,l=Math.min(s,c),u=this.slice(a,o),m=t.slice(n,r),p=0;p<l;++p)if(u[p]!==m[p]){s=u[p],c=m[p];break}return s<c?-1:c<s?1:0},"compare");i($_,"bidirectionalIndexOf");i(B_,"arrayIndexOf");q.prototype.includes=i(function(t,n,r){return this.indexOf(t,n,r)!==-1},"includes");q.prototype.indexOf=i(function(t,n,r){return $_(this,t,n,r,!0)},"indexOf");q.prototype.lastIndexOf=i(function(t,n,r){return $_(this,t,n,r,!1)},"lastIndexOf");i(e$,"hexWrite");i(t$,"utf8Write");i(K_,"asciiWrite");i(n$,"latin1Write");i(r$,"base64Write");i(a$,"ucs2Write");q.prototype.write=
i(function(t,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return e$(this,t,n,r);case"utf8":case"utf-8":return t$(this,t,n,r);case"ascii":return K_(this,t,n,r);case"latin1":case"binary":return n$(this,t,n,r);case"base64":return r$(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a$(this,t,n,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},"write");q.prototype.toJSON=i(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");i(o$,"base64Slice");i(Y_,"utf8\
Slice");j_=4096;i(i$,"decodeCodePointsArray");i(s$,"asciiSlice");i(c$,"latin1Slice");i(l$,"hexSlice");i(u$,"utf16leSlice");q.prototype.slice=i(function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var a;if(q.TYPED_ARRAY_SUPPORT)a=this.subarray(t,n),a.__proto__=q.prototype;else{var o=n-t;a=new q(o,void 0);for(var s=0;s<o;++s)a[s]=this[s+t]}return a},"slice");i(ln,"checkOffset");q.prototype.readUIntLE=i(function(t,n,r){t=t|0,n=n|0,r||ln(t,n,this.length);for(var a=this[t],o=1,s=0;++s<n&&(o*=256);)a+=this[t+s]*o;return a},"readUIntLE");q.prototype.readUIntBE=i(function(t,n,r){t=t|0,n=n|0,r||ln(t,n,this.length);for(var a=this[t+--n],o=1;n>0&&(o*=256);)a+=this[t+--n]*o;return a},"readUIntBE");q.prototype.readUInt8=i(function(t,n){return n||ln(t,1,this.length),this[t]},"readUInt8");q.prototype.readUInt16LE=i(function(t,n){return n||ln(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE");q.prototype.readUInt16BE=
i(function(t,n){return n||ln(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE");q.prototype.readUInt32LE=i(function(t,n){return n||ln(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE");q.prototype.readUInt32BE=i(function(t,n){return n||ln(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE");q.prototype.readIntLE=i(function(t,n,r){t=t|0,n=n|0,r||ln(t,n,this.length);for(var a=this[t],o=1,s=0;++s<n&&(o*=256);)a+=this[t+s]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a},"readIntLE");q.prototype.readIntBE=i(function(t,n,r){t=t|0,n=n|0,r||ln(t,n,this.length);for(var a=n,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*n)),s},"readIntBE");q.prototype.readInt8=i(function(t,n){return n||ln(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8");q.prototype.readInt16LE=i(function(t,n){n||ln(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},"rea\
dInt16LE");q.prototype.readInt16BE=i(function(t,n){n||ln(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},"readInt16BE");q.prototype.readInt32LE=i(function(t,n){return n||ln(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE");q.prototype.readInt32BE=i(function(t,n){return n||ln(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE");q.prototype.readFloatLE=i(function(t,n){return n||ln(t,4,this.length),Op(this,t,!0,23,4)},"readFloatLE");q.prototype.readFloatBE=i(function(t,n){return n||ln(t,4,this.length),Op(this,t,!1,23,4)},"readFloatBE");q.prototype.readDoubleLE=i(function(t,n){return n||ln(t,8,this.length),Op(this,t,!0,52,8)},"readDoubleLE");q.prototype.readDoubleBE=i(function(t,n){return n||ln(t,8,this.length),Op(this,t,!1,52,8)},"readDoubleBE");i(Kn,"checkInt");q.prototype.writeUIntLE=i(function(t,n,r,a){if(t=+t,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;Kn(this,t,n,r,o,0)}var s=1,c=0;for(this[n]=t&255;++c<
r&&(s*=256);)this[n+c]=t/s&255;return n+r},"writeUIntLE");q.prototype.writeUIntBE=i(function(t,n,r,a){if(t=+t,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;Kn(this,t,n,r,o,0)}var s=r-1,c=1;for(this[n+s]=t&255;--s>=0&&(c*=256);)this[n+s]=t/c&255;return n+r},"writeUIntBE");q.prototype.writeUInt8=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,1,255,0),q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1},"writeUInt8");i(Pp,"objectWriteUInt16");q.prototype.writeUInt16LE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,2,65535,0),q.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Pp(this,t,n,!0),n+2},"writeUInt16LE");q.prototype.writeUInt16BE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,2,65535,0),q.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Pp(this,t,n,!1),n+2},"writeUInt16BE");i(Lp,"objectWriteUInt32");q.prototype.writeUInt32LE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,4,4294967295,0),q.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,
this[n]=t&255):Lp(this,t,n,!0),n+4},"writeUInt32LE");q.prototype.writeUInt32BE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,4,4294967295,0),q.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Lp(this,t,n,!1),n+4},"writeUInt32BE");q.prototype.writeIntLE=i(function(t,n,r,a){if(t=+t,n=n|0,!a){var o=Math.pow(2,8*r-1);Kn(this,t,n,r,o-1,-o)}var s=0,c=1,l=0;for(this[n]=t&255;++s<r&&(c*=256);)t<0&&l===0&&this[n+s-1]!==0&&(l=1),this[n+s]=(t/c>>0)-l&255;return n+r},"writeIntLE");q.prototype.writeIntBE=i(function(t,n,r,a){if(t=+t,n=n|0,!a){var o=Math.pow(2,8*r-1);Kn(this,t,n,r,o-1,-o)}var s=r-1,c=1,l=0;for(this[n+s]=t&255;--s>=0&&(c*=256);)t<0&&l===0&&this[n+s+1]!==0&&(l=1),this[n+s]=(t/c>>0)-l&255;return n+r},"writeIntBE");q.prototype.writeInt8=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,1,127,-128),q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},"writeInt8");q.prototype.writeInt16LE=i(function(t,n,r){return t=+t,n=n|0,
r||Kn(this,t,n,2,32767,-32768),q.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Pp(this,t,n,!0),n+2},"writeInt16LE");q.prototype.writeInt16BE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,2,32767,-32768),q.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Pp(this,t,n,!1),n+2},"writeInt16BE");q.prototype.writeInt32LE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,4,2147483647,-2147483648),q.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):Lp(this,t,n,!0),n+4},"writeInt32LE");q.prototype.writeInt32BE=i(function(t,n,r){return t=+t,n=n|0,r||Kn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),q.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Lp(this,t,n,!1),n+4},"writeInt32BE");i(J_,"checkIEEE754");i(X_,"writeFloat");q.prototype.writeFloatLE=i(function(t,n,r){return X_(this,t,n,!0,r)},"writeFloatLE");q.prototype.writeFloatBE=i(function(t,n,r){return X_(this,t,n,!1,r)},"writeFloatBE");i(Z_,"w\
riteDouble");q.prototype.writeDoubleLE=i(function(t,n,r){return Z_(this,t,n,!0,r)},"writeDoubleLE");q.prototype.writeDoubleBE=i(function(t,n,r){return Z_(this,t,n,!1,r)},"writeDoubleBE");q.prototype.copy=i(function(t,n,r,a){if(r||(r=0),!a&&a!==0&&(a=this.length),n>=t.length&&(n=t.length),n||(n=0),a>0&&a<r&&(a=r),a===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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-n<a-r&&(a=t.length-n+r);var o=a-r,s;if(this===t&&r<n&&n<a)for(s=o-1;s>=0;--s)t[s+n]=this[s+r];else if(o<1e3||!q.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+n]=this[s+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),n);return o},"copy");q.prototype.fill=i(function(t,n,r,a){if(typeof t=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=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"&&!q.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var s;if(typeof t=="number")for(s=n;s<r;++s)this[s]=t;else{var c=Zr(t)?t:Mp(new q(t,a).toString()),l=c.length;for(s=0;s<r-n;++s)this[s+n]=c[s%l]}return this},"fill");d$=/[^+\/0-9A-Za-z-_]/g;i(m$,"base64clean");i(p$,"stringtrim");i(f$,"toHex");i(Mp,"utf8ToBytes");i(h$,"asciiToBytes");i(g$,"utf16leToBytes");i(Q_,"base64ToBytes");i(Fp,"blitBuffer");i(y$,"isnan");i(v$,"isBuffer");i(eD,"isFastBuffer");i(b$,"isSlowBuffer")});function yo(){}function Ye(){Ye.init.call(this)}function tD(e){return e._maxListeners===void 0?Ye.defaultMaxListeners:e._maxListeners}function w$(e,t,n){if(t)e.call(n);else for(var r=e.length,a=jl(e,r),o=0;o<r;++o)a[o].call(n)}function E$(e,t,n,r){if(t)e.call(n,r);else for(var a=e.length,o=jl(e,a),s=0;s<a;++s)o[s].call(n,r)}function T$(e,t,n,r,a){if(t)e.call(n,r,a);else for(var o=e.length,s=jl(e,o),c=0;c<o;++c)s[c].call(n,r,a)}function x$(e,t,n,r,a,o){if(t)e.call(n,r,a,o);else for(var s=e.length,c=jl(e,s),l=0;l<s;++l)c[l].call(n,r,a,o)}function S$(e,t,n,r){if(t)e.apply(n,r);else for(var a=e.length,o=jl(e,a),s=0;s<a;++s)o[s].apply(n,r)}function nD(e,t,n,r){var a,o,s;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=new yo,e._eventsCount=0),!s)s=o[t]=n,++e._eventsCount;else if(typeof s=="function"?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(
n),!s.warned&&(a=tD(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,C$(c)}return e}function C$(e){typeof console.warn=="function"?console.warn(e):console.log(e)}function rD(e,t,n){var r=!1;function a(){e.removeListener(t,a),r||(r=!0,n.apply(e,arguments))}return i(a,"g"),a.listener=n,a}function aD(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function k$(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}function jl(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function R$(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}var f0,gr,Ia=g(()=>{"use strict";d();i(yo,"EventHandlers");yo.prototype=Object.create(null);i(Ye,"EventEmitter");gr=Ye;Ye.EventEmitter=Ye;Ye.usingDomains=
!1;Ye.prototype.domain=void 0;Ye.prototype._events=void 0;Ye.prototype._maxListeners=void 0;Ye.defaultMaxListeners=10;Ye.init=function(){this.domain=null,Ye.usingDomains&&f0.active&&!(this instanceof f0.Domain)&&(this.domain=f0.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new yo,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ye.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(tD,"$getMaxListeners");Ye.prototype.getMaxListeners=i(function(){return tD(this)},"getMaxListeners");i(w$,"emitNone");i(E$,"emitOne");i(T$,"emitTwo");i(x$,"emitThree");i(S$,"emitMany");Ye.prototype.emit=i(function(t){var n,r,a,o,s,c,l,u=!1,m=t==="error";if(c=this._events,c)m=m&&c.error==null;else if(!m)return!1;if(l=this.domain,m){if(n=arguments[1],l)n||(n=new Error('Uncaught, unspecified "error" event')),
n.domainEmitter=this,n.domain=l,n.domainThrown=!1,l.emit("error",n);else{if(n instanceof Error)throw n;var p=new Error('Uncaught, unspecified "error" event. ('+n+")");throw p.context=n,p}return!1}if(r=c[t],!r)return!1;var f=typeof r=="function";switch(a=arguments.length,a){case 1:w$(r,f,this);break;case 2:E$(r,f,this,arguments[1]);break;case 3:T$(r,f,this,arguments[1],arguments[2]);break;case 4:x$(r,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];S$(r,f,this,o)}return u&&l.exit(),!0},"emit");i(nD,"_addListener");i(C$,"emitWarning");Ye.prototype.addListener=i(function(t,n){return nD(this,t,n,!1)},"addListener");Ye.prototype.on=Ye.prototype.addListener;Ye.prototype.prependListener=i(function(t,n){return nD(this,t,n,!0)},"prependListener");i(rD,"_onceWrap");Ye.prototype.once=i(function(t,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.on(t,rD(this,t,n)),this},"once");Ye.prototype.
prependOnceListener=i(function(t,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(t,rD(this,t,n)),this},"prependOnceListener");Ye.prototype.removeListener=i(function(t,n){var r,a,o,s,c;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(a=this._events,!a)return this;if(r=a[t],!r)return this;if(r===n||r.listener&&r.listener===n)--this._eventsCount===0?this._events=new yo:(delete a[t],a.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(o=-1,s=r.length;s-- >0;)if(r[s]===n||r[s].listener&&r[s].listener===n){c=r[s].listener,o=s;break}if(o<0)return this;if(r.length===1){if(r[0]=void 0,--this._eventsCount===0)return this._events=new yo,this;delete a[t]}else k$(r,o);a.removeListener&&this.emit("removeListener",t,c||n)}return this},"removeListener");Ye.prototype.off=function(e,t){return this.removeListener(e,t)};Ye.prototype.removeAllListeners=i(function(t){
var n,r;if(r=this._events,!r)return this;if(!r.removeListener)return arguments.length===0?(this._events=new yo,this._eventsCount=0):r[t]&&(--this._eventsCount===0?this._events=new yo:delete r[t]),this;if(arguments.length===0){for(var a=Object.keys(r),o=0,s;o<a.length;++o)s=a[o],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=new yo,this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n)do this.removeListener(t,n[n.length-1]);while(n[0]);return this},"removeAllListeners");Ye.prototype.listeners=i(function(t){var n,r,a=this._events;return a?(n=a[t],n?typeof n=="function"?r=[n.listener||n]:r=R$(n):r=[]):r=[],r},"listeners");Ye.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):aD.call(e,t)};Ye.prototype.listenerCount=aD;i(aD,"listenerCount");Ye.prototype.eventNames=i(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");i(
k$,"spliceOne");i(jl,"arrayClone");i(R$,"unwrapListeners")});var iD=ve((owe,oD)=>{d();var Ms=1e3,Os=Ms*60,Ps=Os*60,Ii=Ps*24,I$=Ii*7,A$=Ii*365.25;oD.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return _$(e);if(n==="number"&&isFinite(e))return t.long?N$(e):D$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function _$(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 n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*A$;case"weeks":case"week":case"w":return n*I$;case"days":case"day":case"d":return n*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ps;case"minutes":case"minute":case"mins":case"min":case"m":return n*Os;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ms;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:
return}}}}i(_$,"parse");function D$(e){var t=Math.abs(e);return t>=Ii?Math.round(e/Ii)+"d":t>=Ps?Math.round(e/Ps)+"h":t>=Os?Math.round(e/Os)+"m":t>=Ms?Math.round(e/Ms)+"s":e+"ms"}i(D$,"fmtShort");function N$(e){var t=Math.abs(e);return t>=Ii?Up(e,t,Ii,"day"):t>=Ps?Up(e,t,Ps,"hour"):t>=Os?Up(e,t,Os,"minute"):t>=Ms?Up(e,t,Ms,"second"):e+" ms"}i(N$,"fmtLong");function Up(e,t,n,r){var a=t>=n*1.5;return Math.round(e/n)+" "+r+(a?"s":"")}i(Up,"plural")});var cD=ve((cwe,sD)=>{d();function M$(e){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=a,n.enabled=c,n.humanize=iD(),n.destroy=u,Object.keys(e).forEach(m=>{n[m]=e[m]}),n.names=[],n.skips=[],n.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 n.colors[Math.abs(p)%n.colors.length]}i(t,"selectColor"),n.selectColor=t;function n(m){let p,f=null,h,y;function v(...w){if(!v.enabled)return;let x=v,k=Number(new Date),R=k-(p||k);x.diff=R,x.prev=p,x.curr=k,p=k,w[0]=n.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let C=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(H,P)=>{if(H==="%%")return"%";C++;let G=n.formatters[P];if(typeof G=="function"){let $=w[C];H=G.call(x,$),w.splice(C,1),C--}return H}),n.formatArgs.call(x,w),(x.log||n.log).apply(x,w)}return i(v,"debug"),v.namespace=m,v.useColors=n.useColors(),v.color=n.selectColor(m),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(h!==
n.namespaces&&(h=n.namespaces,y=n.enabled(m)),y),"get"),set:i(w=>{f=w},"set")}),typeof n.init=="function"&&n.init(v),v}i(n,"createDebug");function r(m,p){let f=n(this.namespace+(typeof p>"u"?":":p)+m);return f.log=this.log,f}i(r,"extend");function a(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p=(typeof m=="string"?m:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of p)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}i(a,"enable");function o(m,p){let f=0,h=0,y=-1,v=0;for(;f<m.length;)if(h<p.length&&(p[h]===m[f]||p[h]==="*"))p[h]==="*"?(y=h,v=f,h++):(f++,h++);else if(y!==-1)h=y+1,v++,f=v;else return!1;for(;h<p.length&&p[h]==="*";)h++;return h===p.length}i(o,"matchesTemplate");function s(){let m=[...n.names,...n.skips.map(p=>"-"+p)].join(",");return n.enable(""),m}i(s,"disable");function c(m){for(let p of n.skips)if(o(m,p))return!1;for(let p of n.names)if(o(m,p))return!0;return!1}i(c,"enabled");function l(m){return m instanceof Error?m.stack||m.message:m}i(
l,"coerce");function u(){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(u,"destroy"),n.enable(n.load()),n}i(M$,"setup");sD.exports=M$});var lD=ve((Yn,Bp)=>{d();Yn.formatArgs=P$;Yn.save=L$;Yn.load=F$;Yn.useColors=O$;Yn.storage=U$();Yn.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`."))}})();Yn.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 O$(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return 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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(O$,"useColors");function P$(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Bp.exports.humanize(this.diff),!this.useColors)return;let t="col\
or: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(r=n))}),e.splice(r,0,t)}i(P$,"formatArgs");Yn.log=console.debug||console.log||(()=>{});function L$(e){try{e?Yn.storage.setItem("debug",e):Yn.storage.removeItem("debug")}catch{}}i(L$,"save");function F$(){let e;try{e=Yn.storage.getItem("debug")||Yn.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(F$,"load");function U$(){try{return localStorage}catch{}}i(U$,"localstorage");Bp.exports=cD()(Yn);var{formatters:B$}=Bp.exports;B$.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});function jp(e){if(!e)throw new Error("name must be non-empty")}function j$(e,t){for(var n=0,r=e.length,a;n<r;)a=n+r>>>1,e[a].startTime<t.startTime?n=a+1:r=a;e.splice(n,0,t)}var gn,uD,zp,Gp,Hl,Wp,Hp,qp,dD=g(()=>{d();gn=typeof performance<"u"&&performance,uD=gn&&gn.now?function(){return gn.now()}:function(){return Date.now()};i(jp,"throwIfEmpty");i(j$,"insertSorted");gn&&gn.mark&&gn.measure&&gn.getEntriesByName&&gn.getEntriesByType&&gn.clearMarks&&gn.clearMeasures?(zp=i(function(e){jp(e),gn.mark("start "+e)},"mark"),Gp=i(function(e){jp(e),gn.mark("end "+e);var t=gn.measure(e,"start "+e,"end "+e);if(t)return t;var n=gn.getEntriesByName(e);return n[n.length-1]},"stop"),Hl=i(function(){return gn.getEntriesByType("measure")},"getEntries"),Wp=i(function(){gn.clearMarks(),gn.clearMeasures()},"clear")):(Hp={},qp=[],zp=i(function(e){jp(e);var t=uD();Hp["$"+e]=t},"mark"),Gp=i(function(e){jp(e);var t=uD(),n=Hp["$"+e];if(!n)throw new Error("no known mark: "+e);var r={startTime:n,name:e,duration:t-n,
entryType:"measure"};return j$(qp,r),r},"stop"),Hl=i(function(){return qp},"getEntries"),Wp=i(function(){Hp={},qp=[]},"clear"))});var bo,vo,Ls,Fs,h0,mD,q$,pD,Us,M,Ve=g(()=>{"use strict";d();go();Ia();bo=Cn(lD(),1);dD();vo=Rn.platform==="win32",Ls=Rn.browser,Fs={red:Ls?"crimson":1,yellow:Ls?"gold":3,cyan:Ls?"darkturquoise":6,green:Ls?"forestgreen":2,blue:Ls?"steelblue":4,magenta:Ls?"palevioletred":5};bo.default.colors=[Fs.cyan,Fs.green,Fs.blue,Fs.magenta];h0=class extends Ye{static{i(this,"Emitter")}constructor(t){super(t)}issueStatus(t,n){(t==="status"||t==="statusEnd")&&this.emit(t,[t,...n])}issueWarning(t,n){this.emit("warning",[t,...n])}},mD={},q$=25,Us=class e{static{i(this,"Log")}static _logToStdErr(t,n){e.loggerfn(t)(...n)}static loggerfn(t){t=`LH:${t}`;let n=mD[t];return n||(n=(0,bo.default)(t),mD[t]=n,t.endsWith("error")?n.color=Fs.red:t.endsWith("warn")&&(n.color=Fs.yellow)),n}static setLevel(t){switch(pD=t,t){case"silent":bo.default.enable("-LH:*");break;case"verbose":bo.default.enable("LH:*");break;case"warn":bo.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":bo.default.enable("-LH:*, \
LH:*:error");break;default:bo.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(t,n,r){let a=!Rn||Rn.browser?1/0:Rn.stdout.columns,o=n.method||"?????",s=a-o.length-t.length-q$,c=n.params&&o!=="IO.read"?JSON.stringify(n.params).substr(0,s):"";e._logToStdErr(`${t}:${r||""}`,[o,c])}static isVerbose(){return pD==="verbose"}static time({msg:t,id:n,args:r=[]},a="log"){zp(n),e[a]("status",t,...r)}static timeEnd({msg:t,id:n,args:r=[]},a="verbose"){e[a]("statusEnd",t,...r),Gp(n)}static log(t,...n){return e.events.issueStatus(t,n),e._logToStdErr(t,n)}static warn(t,...n){return e.events.issueWarning(t,n),e._logToStdErr(`${t}:warn`,n)}static error(t,...n){return e._logToStdErr(`${t}:error`,n)}static verbose(t,...n){return e.events.issueStatus(t,n),e._logToStdErr(`${t}:verbose`,n)}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[95m"}static get reset(){return"\x1B[0m"}static get bold(){return"\x1B[1m"}static get dim(){return"\x1B[2m"}static get tick(){return vo?"√":"✓"}static get cross(){return vo?"×":"✘"}static get whiteSmallSquare(){return vo?"·":"▫"}static get heavyHorizontal(){return vo?"─":"━"}static get heavyVertical(){return vo?"│ ":"┃ "}static get heavyUpAndRight(){return vo?"└":"┗"}static get heavyVerticalAndRight(){return vo?"├":"┣"}static get heavyDownAndHorizontal(){return vo?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};Us.events=new h0;Us.takeTimeEntries=()=>{let e=Hl();return Wp(),e};Us.getTimeEntries=()=>Hl();M=Us});var Ht=g(()=>{"use strict";d();});var g0,se,pt=g(()=>{"use strict";d();Ht();g0=class{static{i(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(t){}startSensitiveInstrumentation(t){}stopSensitiveInstrumentation(t){}stopInstrumentation(t){}getArtifact(t){}},se=g0});var z$,G$,W$,V$,$$,K$,Un,wo=g(()=>{"use strict";d();Ve();z$=/^(chrome|https?):/,G$=16,W$="RunTask",V$="ThreadControllerImpl::RunTask",$$="ThreadControllerImpl::DoWork",K$="TaskQueueManager::ProcessTaskFromWorkQueue",Un=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?z$.test(t.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(t,n,r,a){
let o=i(p=>n[p],"lookupArrayIndexByTsIndex"),s=i(p=>a[o(p)],"lookupEventByTsIndex"),c=[],l=[],u=[];for(let p of t){let f=o(p),h=s(p);h.ph==="E"?c.push(f):h.ph==="X"||h.ph==="B"?l.push(f):u.push(f)}let m=new Map;for(let p of l){let f=a[p];if(f.ph==="X")m.set(p,f.dur);else{let h=Number.MAX_SAFE_INTEGER,y=0,v=r+t.length;for(let w=v;w<n.length;w++){let x=s(w);if(x.name===f.name&&x.pid===f.pid&&x.tid===f.tid)if(x.ph==="E"&&y===0){h=x.ts-f.ts;break}else x.ph==="E"?y--:x.ph==="B"&&y++}m.set(p,h)}}return l.sort((p,f)=>(m.get(f)||0)-(m.get(p)||0)||p-f),u.sort((p,f)=>p-f),[...c,...l,...u]}static filteredTraceSort(t,n){let r=[];for(let o=0;o<t.length;o++)n(t[o])&&r.push(o);r.sort((o,s)=>t[o].ts-t[s].ts);for(let o=0;o<r.length-1;o++){let s=t[r[o]].ts,c=[o];for(let u=o+1;u<r.length&&t[r[u]].ts===s;u++)c.push(u);if(c.length===1)continue;let l=e._sortTimestampEventGroup(c,r,o,t);r.splice(o,l.length,...l),o+=c.length-1}let a=[];for(let o=0;o<r.length;o++)a.push(t[r[o]]);return a}static assertHasToplevelEvents(t){
if(!t.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(t,n,r,a=0){let o=0;for(let f=0;f<t.length;f++)o+=t[f];o-=a;let s=n-o,c=0,l=s,u=[],m=-1,p=t.length+1;a>0&&p--;for(let f of r){let h=f*n;for(;l<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]),l=s+Math.abs(c)*p;u.push({percentile:f,time:Math.max(0,(h-s)/p)+G$})}return u}static getRiskToResponsiveness(t,n,r,a=[.5,.75,.9,.99,1]){let o=r-n;a.sort((c,l)=>c-l);let s=this.getMainThreadTopLevelEventDurations(t,n,r);return this._riskPercentiles(s.durations,o,a,s.clippedLength)}static getMainThreadTopLevelEventDurations(t,n=0,r=1/0){let a=[],o=0;for(let s of t){if(s.end<n||s.start>r)continue;let c=s.duration,l=s.start;l<n&&(l=n,c=s.end-n),s.end>r&&(o=c-(r-l)),a.push(c)}return a.sort((s,c)=>s-c),{durations:a,clippedLength:o}}static getMainThreadTopLevelEvents(t,n=0,r=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,l=(s.ts+s.dur-t.timeOriginEvt.ts)/1e3;c>r||l<n||(o&&c<o.end&&(o.end=c-.001),o={start:c,end:l,duration:s.dur/1e3},a.push(o))}return a}static findMainFrameIds(t){let n=t.find(s=>s.name==="TracingStartedInBrowser");if(n?.args.data?.frames){let s=n.args.data.frames.find(u=>!u.parent),c=s?.frame,l=s?.processId;if(l&&c)return{startingPid:l,frameId:c}}let r=t.find(s=>s.name==="TracingStartedInPage");if(r?.args?.data){let s=r.args.data.page;if(s)return{startingPid:r.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,n){let r=n.filter(s=>(s.name==="FrameCommittedInBrowser"||s.name==="ProcessReadyInBrowser")&&s.args?.data?.frame===t.frameId&&s?.args?.data?.processId),a=r.length?r.map(s=>s?.
args?.data?.processId):[t.startingPid],o=new Map;for(let s of new Set(a)){let c=n.filter(m=>m.cat==="__metadata"&&m.pid===s&&m.ph==="M"&&m.name==="thread_name"),l=c.find(m=>m.args.name==="CrRendererMain");l||(l=c.find(m=>m.args.name==="CrBrowserMain"));let u=l?.tid;if(!u)throw new Error("Unable to determine tid for renderer process");o.set(s,u)}return o}static isScheduleableTask(t){return t.name===W$||t.name===V$||t.name===$$||t.name===K$}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,n,r){let a=t.filter(this.isLCPEvent).reverse(),o=new Map;for(let c of a){if(c.ts<=n.ts)break;let l=c.args.frame;o.has(l)||o.set(l,c)}let s;for(let c of o.values())
this.isLCPCandidateEvent(c)&&(!s||c.args.data.size>s.args.data.size)&&(s=c);if(!s){let c=t.filter(m=>m.name.includes("LargestContentfulPaint")&&m.name.includes("UKM")),l="NavStartToLargestContentfulPaint::Invalidate::AllFrames::UKM",u=c.filter(m=>m.name===l);if(u.length>0){u.sort((p,f)=>p.ts-f.ts);let m=u[u.length-1];M.warn("TraceProcessor","LCP candidate missing, falling back to UKM Invalidate event."),s={name:"largestContentfulPaint::Candidate",cat:"loadi