lighthouse 12.6.1 → 12.7.0-dev.20250628

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/cli/test/smokehouse/core-tests.js +2 -0
  2. package/cli/test/smokehouse/frontends/lib.js +0 -2
  3. package/cli/test/smokehouse/frontends/smokehouse-bin.js +1 -3
  4. package/cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
  5. package/cli/test/smokehouse/smokehouse.js +0 -2
  6. package/core/audits/audit.d.ts +7 -0
  7. package/core/audits/audit.js +17 -2
  8. package/core/audits/byte-efficiency/byte-efficiency-audit.js +6 -8
  9. package/core/audits/byte-efficiency/legacy-javascript.js +0 -1
  10. package/core/audits/byte-efficiency/render-blocking-resources.js +1 -1
  11. package/core/audits/deprecations.js +0 -2
  12. package/core/audits/insights/cache-insight.js +2 -1
  13. package/core/audits/insights/cls-culprits-insight.js +6 -7
  14. package/core/audits/insights/{interaction-to-next-paint-insight.d.ts → inp-breakdown-insight.d.ts} +3 -3
  15. package/core/audits/insights/{interaction-to-next-paint-insight.js → inp-breakdown-insight.js} +10 -10
  16. package/core/audits/insights/insight-audit.d.ts +7 -4
  17. package/core/audits/insights/insight-audit.js +48 -7
  18. package/core/audits/insights/lcp-breakdown-insight.d.ts +16 -0
  19. package/core/audits/insights/{lcp-phases-insight.js → lcp-breakdown-insight.js} +19 -19
  20. package/core/audits/insights/modern-http-insight.js +0 -2
  21. package/core/audits/insights/network-dependency-tree-insight.js +85 -8
  22. package/core/audits/insights/render-blocking-insight.js +1 -1
  23. package/core/audits/layout-shifts.js +5 -4
  24. package/core/audits/seo/crawlable-anchors.js +27 -0
  25. package/core/audits/seo/link-text.js +130 -83
  26. package/core/audits/third-party-cookies.js +0 -2
  27. package/core/audits/valid-source-maps.js +0 -2
  28. package/core/computed/js-bundles.js +0 -1
  29. package/core/computed/metrics/cumulative-layout-shift.js +1 -1
  30. package/core/computed/metrics/lantern-metric.js +4 -3
  31. package/core/computed/metrics/timing-summary.js +4 -1
  32. package/core/computed/page-dependency-graph.js +3 -3
  33. package/core/computed/trace-engine-result.js +1 -2
  34. package/core/config/config.js +1 -1
  35. package/core/config/default-config.js +4 -4
  36. package/core/config/experimental-config.js +2 -2
  37. package/core/config/filters.js +7 -0
  38. package/core/config/validation.js +4 -0
  39. package/core/gather/base-artifacts.js +3 -0
  40. package/core/gather/driver/environment.d.ts +6 -0
  41. package/core/gather/driver/environment.js +17 -0
  42. package/core/gather/driver/execution-context.d.ts +3 -1
  43. package/core/gather/driver/execution-context.js +3 -1
  44. package/core/gather/driver/navigation.js +1 -3
  45. package/core/gather/driver/wait-for-condition.js +0 -1
  46. package/core/gather/fetcher.js +0 -2
  47. package/core/gather/gatherers/accessibility.js +1 -1
  48. package/core/gather/gatherers/anchor-elements.js +61 -2
  49. package/core/gather/gatherers/cache-contents.js +0 -2
  50. package/core/gather/gatherers/css-usage.js +3 -1
  51. package/core/gather/gatherers/dobetterweb/doctype.js +0 -2
  52. package/core/gather/gatherers/dobetterweb/domstats.js +1 -1
  53. package/core/gather/gatherers/full-page-screenshot.js +1 -1
  54. package/core/gather/gatherers/image-elements.js +1 -1
  55. package/core/gather/gatherers/inspector-issues.js +1 -1
  56. package/core/gather/gatherers/link-elements.js +1 -1
  57. package/core/gather/gatherers/stacks.js +0 -1
  58. package/core/gather/gatherers/stylesheets.js +3 -1
  59. package/core/gather/gatherers/trace-elements.d.ts +3 -4
  60. package/core/gather/gatherers/trace-elements.js +13 -43
  61. package/core/gather/gatherers/viewport-dimensions.js +0 -2
  62. package/core/index.cjs +0 -1
  63. package/core/index.d.cts +5 -0
  64. package/core/lib/asset-saver.d.ts +1 -1
  65. package/core/lib/asset-saver.js +20 -8
  66. package/core/lib/bf-cache-strings.js +4 -1
  67. package/core/lib/deprecations-strings.d.ts +51 -47
  68. package/core/lib/deprecations-strings.js +14 -8
  69. package/core/lib/i18n/i18n.js +0 -2
  70. package/core/lib/lantern-trace-saver.js +1 -1
  71. package/core/lib/lh-error.js +0 -1
  72. package/core/lib/manifest-parser.js +0 -2
  73. package/core/lib/minify-devtoolslog.js +0 -2
  74. package/core/lib/sentry.d.ts +1 -1
  75. package/core/lib/sentry.js +2 -2
  76. package/core/runner.js +11 -8
  77. package/core/scoring.d.ts +186 -15
  78. package/core/scripts/manual-chrome-launcher.js +0 -1
  79. package/dist/report/bundle.esm.js +14 -12
  80. package/dist/report/flow.js +18 -16
  81. package/dist/report/standalone.js +15 -13
  82. package/eslint.config.mjs +242 -0
  83. package/flow-report/src/common.tsx +1 -0
  84. package/flow-report/src/i18n/i18n.tsx +1 -0
  85. package/flow-report/src/util.ts +2 -0
  86. package/package.json +23 -19
  87. package/readme.md +3 -2
  88. package/report/assets/styles.css +11 -9
  89. package/report/assets/templates.html +1 -1
  90. package/report/generator/file-namer.d.ts +5 -0
  91. package/report/generator/file-namer.js +1 -1
  92. package/report/generator/flow-report-assets.js +1 -1
  93. package/report/generator/report-assets.js +1 -1
  94. package/report/generator/report-generator.js +3 -3
  95. package/report/renderer/api.js +1 -0
  96. package/report/renderer/components.js +2 -2
  97. package/report/renderer/details-renderer.d.ts +5 -0
  98. package/report/renderer/details-renderer.js +35 -3
  99. package/report/renderer/dom.d.ts +2 -0
  100. package/report/renderer/dom.js +6 -0
  101. package/report/renderer/i18n-formatter.js +2 -1
  102. package/report/renderer/performance-category-renderer.js +2 -2
  103. package/report/renderer/report-renderer.js +1 -0
  104. package/report/renderer/report-ui-features.d.ts +1 -0
  105. package/report/renderer/report-ui-features.js +16 -0
  106. package/report/renderer/report-utils.js +3 -2
  107. package/report/renderer/text-encoding.js +0 -2
  108. package/report/renderer/topbar-features.js +1 -1
  109. package/report/types/report-renderer.d.ts +5 -0
  110. package/shared/localization/locales/ar-XB.json +57 -69
  111. package/shared/localization/locales/ar.json +57 -69
  112. package/shared/localization/locales/bg.json +57 -69
  113. package/shared/localization/locales/ca.json +57 -69
  114. package/shared/localization/locales/cs.json +57 -69
  115. package/shared/localization/locales/da.json +57 -69
  116. package/shared/localization/locales/de.json +57 -69
  117. package/shared/localization/locales/el.json +57 -69
  118. package/shared/localization/locales/en-GB.json +57 -69
  119. package/shared/localization/locales/en-US.json +73 -61
  120. package/shared/localization/locales/en-XL.json +73 -61
  121. package/shared/localization/locales/es-419.json +57 -69
  122. package/shared/localization/locales/es.json +56 -68
  123. package/shared/localization/locales/fi.json +57 -69
  124. package/shared/localization/locales/fil.json +57 -69
  125. package/shared/localization/locales/fr.json +57 -69
  126. package/shared/localization/locales/he.json +57 -69
  127. package/shared/localization/locales/hi.json +57 -69
  128. package/shared/localization/locales/hr.json +57 -69
  129. package/shared/localization/locales/hu.json +56 -68
  130. package/shared/localization/locales/id.json +57 -69
  131. package/shared/localization/locales/it.json +56 -68
  132. package/shared/localization/locales/ja.json +57 -69
  133. package/shared/localization/locales/ko.json +57 -69
  134. package/shared/localization/locales/lt.json +57 -69
  135. package/shared/localization/locales/lv.json +57 -69
  136. package/shared/localization/locales/nl.json +57 -69
  137. package/shared/localization/locales/no.json +57 -69
  138. package/shared/localization/locales/pl.json +56 -68
  139. package/shared/localization/locales/pt-PT.json +57 -69
  140. package/shared/localization/locales/pt.json +57 -69
  141. package/shared/localization/locales/ro.json +57 -69
  142. package/shared/localization/locales/ru.json +58 -70
  143. package/shared/localization/locales/sk.json +57 -69
  144. package/shared/localization/locales/sl.json +56 -68
  145. package/shared/localization/locales/sr-Latn.json +57 -69
  146. package/shared/localization/locales/sr.json +57 -69
  147. package/shared/localization/locales/sv.json +57 -69
  148. package/shared/localization/locales/ta.json +57 -69
  149. package/shared/localization/locales/te.json +57 -69
  150. package/shared/localization/locales/th.json +56 -68
  151. package/shared/localization/locales/tr.json +57 -69
  152. package/shared/localization/locales/uk.json +57 -69
  153. package/shared/localization/locales/vi.json +57 -69
  154. package/shared/localization/locales/zh-HK.json +57 -69
  155. package/shared/localization/locales/zh-TW.json +56 -68
  156. package/shared/localization/locales/zh.json +57 -69
  157. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
  158. package/types/artifacts.d.ts +8 -1
  159. package/types/internal/test.d.ts +1 -1
  160. package/types/lhr/audit-details.d.ts +13 -3
  161. package/types/lhr/lhr.d.ts +8 -1
  162. package/core/audits/insights/lcp-phases-insight.d.ts +0 -16
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Be,x,on,ni,ke,rn,en,sn,He={},ln=[],ai=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ne(t,e){for(var n in e)t[n]=e[n];return t}function pn(t){var e=t.parentNode;e&&e.removeChild(t)}function yt(t,e,n){var a,i,o,r={};for(o in e)o=="key"?a=e[o]:o=="ref"?i=e[o]:r[o]=e[o];if(arguments.length>2&&(r.children=arguments.length>3?Be.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)r[o]===void 0&&(r[o]=t.defaultProps[o]);return je(t,r,a,i,null)}function je(t,e,n,a,i){var o={type:t,props:e,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++on};return i==null&&x.vnode!=null&&x.vnode(o),o}function N(t){return t.children}function Me(t,e){this.props=t,this.context=e}function ge(t,e){if(e==null)return t.__?ge(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ge(t):null}function un(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return un(t)}}function bt(t){(!t.__d&&(t.__d=!0)&&ke.push(t)&&!Fe.__r++||en!==x.debounceRendering)&&((en=x.debounceRendering)||rn)(Fe)}function Fe(){for(var t;Fe.__r=ke.length;)t=ke.sort(function(e,n){return e.__v.__b-n.__v.__b}),ke=[],t.some(function(e){var n,a,i,o,r,s;e.__d&&(r=(o=(n=e).__v).__e,(s=n.__P)&&(a=[],(i=ne({},o)).__v=o.__v+1,_t(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),hn(a,o),o.__e!=r&&un(o)))})}function cn(t,e,n,a,i,o,r,s,p,c){var l,d,m,h,f,C,g,_=a&&a.__k||ln,v=_.length;for(n.__k=[],l=0;l<e.length;l++)if((h=n.__k[l]=(h=e[l])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?je(null,h,null,null,h):Array.isArray(h)?je(N,{children:h},null,null,null):h.__b>0?je(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=_[l])===null||m&&h.key==m.key&&h.type===m.type)_[l]=void 0;else for(d=0;d<v;d++){if((m=_[d])&&h.key==m.key&&h.type===m.type){_[d]=void 0;break}m=null}_t(t,h,m=m||He,i,o,r,s,p,c),f=h.__e,(d=h.ref)&&m.ref!=d&&(g||(g=[]),m.ref&&g.push(m.ref,null,h),g.push(d,h.__c||f,h)),f!=null?(C==null&&(C=f),typeof h.type=="function"&&h.__k===m.__k?h.__d=p=mn(h,p,t):p=dn(t,h,m,_,f,p),typeof n.type=="function"&&(n.__d=p)):p&&m.__e==p&&p.parentNode!=t&&(p=ge(m))}for(n.__e=C,l=v;l--;)_[l]!=null&&(typeof n.type=="function"&&_[l].__e!=null&&_[l].__e==n.__d&&(n.__d=ge(a,l+1)),fn(_[l],_[l]));if(g)for(l=0;l<g.length;l++)gn(g[l],g[++l],g[++l])}function mn(t,e,n){for(var a,i=t.__k,o=0;i&&o<i.length;o++)(a=i[o])&&(a.__=t,e=typeof a.type=="function"?mn(a,e,n):dn(n,a,a,i,a.__e,e));return e}function dn(t,e,n,a,i,o){var r,s,p;if(e.__d!==void 0)r=e.__d,e.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(i),r=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<a.length;p+=2)if(s==i)break e;t.insertBefore(i,o),r=o}return r!==void 0?r:i.nextSibling}function ii(t,e,n,a,i){var o;for(o in n)o==="children"||o==="key"||o in e||Oe(t,o,null,n[o],a);for(o in e)i&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===e[o]||Oe(t,o,e[o],n[o],a)}function tn(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||ai.test(e)?n:n+"px"}function Oe(t,e,n,a,i){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)n&&e in n||tn(t.style,e,"");if(n)for(e in n)a&&n[e]===a[e]||tn(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?a||t.addEventListener(e,o?an:nn,o):t.removeEventListener(e,o?an:nn,o);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function nn(t){this.l[t.type+!1](x.event?x.event(t):t)}function an(t){this.l[t.type+!0](x.event?x.event(t):t)}function _t(t,e,n,a,i,o,r,s,p){var c,l,d,m,h,f,C,g,_,v,y,w=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(p=n.__h,s=e.__e=n.__e,e.__h=null,o=[s]),(c=x.__b)&&c(e);try{e:if(typeof w=="function"){if(g=e.props,_=(c=w.contextType)&&a[c.__c],v=c?_?_.props.value:c.__:a,n.__c?C=(l=e.__c=n.__c).__=l.__E:("prototype"in w&&w.prototype.render?e.__c=l=new w(g,v):(e.__c=l=new Me(g,v),l.constructor=w,l.render=ri),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=v,l.__n=a,d=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),w.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ne({},l.__s)),ne(l.__s,w.getDerivedStateFromProps(g,l.__s))),m=l.props,h=l.state,d)w.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,v),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,v)===!1||e.__v===n.__v){l.props=g,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(P){P&&(P.__=e)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,v),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,f)})}l.context=v,l.props=g,l.state=l.__s,(c=x.__r)&&c(e),l.__d=!1,l.__v=e,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(a=ne(ne({},a),l.getChildContext())),d||l.getSnapshotBeforeUpdate==null||(f=l.getSnapshotBeforeUpdate(m,h)),y=c!=null&&c.type===N&&c.key==null?c.props.children:c,cn(t,Array.isArray(y)?y:[y],e,n,a,i,o,r,s,p),l.base=e.__e,e.__h=null,l.__h.length&&r.push(l),C&&(l.__E=l.__=null),l.__e=!1}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=oi(n.__e,e,n,a,i,o,r,p);(c=x.diffed)&&c(e)}catch(P){e.__v=null,(p||o!=null)&&(e.__e=s,e.__h=!!p,o[o.indexOf(s)]=null),x.__e(P,e,n)}}function hn(t,e){x.__c&&x.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(a){a.call(n)})}catch(a){x.__e(a,n.__v)}})}function oi(t,e,n,a,i,o,r,s){var p,c,l,d=n.props,m=e.props,h=e.type,f=0;if(h==="svg"&&(i=!0),o!=null){for(;f<o.length;f++)if((p=o[f])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){t=p,o[f]=null;break}}if(t==null){if(h===null)return document.createTextNode(m);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),o=null,s=!1}if(h===null)d===m||s&&t.data===m||(t.data=m);else{if(o=o&&Be.call(t.childNodes),c=(d=n.props||He).dangerouslySetInnerHTML,l=m.dangerouslySetInnerHTML,!s){if(o!=null)for(d={},f=0;f<t.attributes.length;f++)d[t.attributes[f].name]=t.attributes[f].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(ii(t,m,d,i,s),l)e.__k=[];else if(f=e.props.children,cn(t,Array.isArray(f)?f:[f],e,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(f=o.length;f--;)o[f]!=null&&pn(o[f]);s||("value"in m&&(f=m.value)!==void 0&&(f!==t.value||h==="progress"&&!f||h==="option"&&f!==d.value)&&Oe(t,"value",f,d.value,!1),"checked"in m&&(f=m.checked)!==void 0&&f!==t.checked&&Oe(t,"checked",f,d.checked,!1))}return t}function gn(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(a){x.__e(a,n)}}function fn(t,e,n){var a,i;if(x.unmount&&x.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||gn(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){x.__e(o,e)}a.base=a.__P=null}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&fn(a[i],e,typeof t.type!="function");n||t.__e==null||pn(t.__e),t.__e=t.__d=void 0}function ri(t,e,n){return this.constructor(t,n)}function vn(t,e,n){var a,i,o;x.__&&x.__(t,e),i=(a=typeof n=="function")?null:n&&n.__k||e.__k,o=[],_t(e,t=(!a&&n||e).__k=yt(N,null,[t]),i||He,He,e.ownerSVGElement!==void 0,!a&&n?[n]:i?null:e.firstChild?Be.call(e.childNodes):null,o,!a&&n?n:i?i.__e:e.firstChild,a),hn(o,t)}function Pe(t,e){var n={__c:e="__cC"+sn++,__:t,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,o;return this.getChildContext||(i=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&i.some(bt)},this.sub=function(r){i.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){i.splice(i.indexOf(r),1),s&&s.call(r)}}),a.children}};return n.Provider.__=n.Consumer.contextType=n}Be=ln.slice,x={__e:function(t,e,n,a){for(var i,o,r;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,a||{}),r=i.__d),r)return i.__E=i}catch(s){t=s}throw t}},on=0,ni=function(t){return t!=null&&t.constructor===void 0},Me.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ne({},this.state),typeof t=="function"&&(t=t(ne({},n),this.props)),t&&ne(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),bt(this))},Me.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),bt(this))},Me.prototype.render=N,ke=[],rn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fe.__r=0,sn=0;var fe,F,bn,Ve=0,kn=[],yn=x.__b,_n=x.__r,Cn=x.diffed,wn=x.__c,xn=x.unmount;function Ae(t,e){x.__h&&x.__h(F,t,Ve||e),Ve=0;var n=F.__H||(F.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function ae(t){return Ve=1,si(Pn,t)}function si(t,e,n){var a=Ae(fe++,2);return a.t=t,a.__c||(a.__=[n?n(e):Pn(void 0,e),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=F),a.__}function $e(t,e){var n=Ae(fe++,3);!x.__s&&wt(n.__H,e)&&(n.__=t,n.__H=e,F.__H.__h.push(n))}function qe(t,e){var n=Ae(fe++,4);!x.__s&&wt(n.__H,e)&&(n.__=t,n.__H=e,F.__h.push(n))}function We(t){return Ve=5,Q(function(){return{current:t}},[])}function Q(t,e){var n=Ae(fe++,7);return wt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Ee(t){var e=F.context[t.__c],n=Ae(fe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(F)),e.props.value):t.__}function li(){for(var t;t=kn.shift();)if(t.__P)try{t.__H.__h.forEach(Ge),t.__H.__h.forEach(Ct),t.__H.__h=[]}catch(e){t.__H.__h=[],x.__e(e,t.__v)}}x.__b=function(t){F=null,yn&&yn(t)},x.__r=function(t){_n&&_n(t),fe=0;var e=(F=t.__c).__H;e&&(e.__h.forEach(Ge),e.__h.forEach(Ct),e.__h=[])},x.diffed=function(t){Cn&&Cn(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(kn.push(e)!==1&&bn===x.requestAnimationFrame||((bn=x.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),Sn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);Sn&&(a=requestAnimationFrame(i))})(li)),F=null},x.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Ge),n.__h=n.__h.filter(function(a){return!a.__||Ct(a)})}catch(a){e.some(function(i){i.__h&&(i.__h=[])}),e=[],x.__e(a,n.__v)}}),wn&&wn(t,e)},x.unmount=function(t){xn&&xn(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ge(a)}catch(i){e=i}}),e&&x.__e(e,n.__v))};var Sn=typeof requestAnimationFrame=="function";function Ge(t){var e=F,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),F=e}function Ct(t){var e=F;t.__c=t.__(),F=e}function wt(t,e){return!t||t.length!==e.length||e.some(function(n,a){return n!==t[a]})}function Pn(t,e){return typeof e=="function"?e(t):e}var pi=.8999999999999999,ui=.5,ci=.49999999999999994;function mi(t){let e=Math.sign(t);t=Math.abs(t);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*t),c=p*(n+p*(a+p*(i+p*(o+p*r))));return e*(1-c*Math.exp(-t*t))}function An({median:t,p10:e},n){if(t<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=t)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/t),o=Math.log(i),r=Math.max(Number.MIN_VALUE,e/t),s=-Math.log(r),p=o*a/s,c=(1-mi(p))/2,l;return n<=e?l=Math.max(.9,Math.min(1,c)):n<=t?l=Math.max(ui,Math.min(pi,c)):l=Math.max(0,Math.min(ci,c)),l}var ee="…",hi=" ",En=.9,gi={PASS:{label:"pass",minScore:En},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},fi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],U=class t{static get RATINGS(){return gi}static get PASS_THRESHOLD(){return En}static get MS_DISPLAY_VALUE(){return`%10d${hi}ms`}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,n){return n&&n.find(i=>i.origins.find(o=>e.startsWith(o)))||t.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let n=[],a=e.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(e){let n=[],a=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(e,n,a="…"){if(e.length<=n)return e;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return e;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return e;return e.slice(0,r)+a}static getURLDisplayName(e,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(e.protocol==="about:"||e.protocol==="data:")r=e.href;else{r=e.pathname;let p=r.split("/").filter(c=>c.length);a&&p.length>a&&(r=ee+p.slice(-1*a).join("/")),o&&(r=`${e.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${e.search}`)}let s=64;if(e.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${ee}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ee}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ee}`),r=r.replace(/\u2026+/g,ee),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ee}`),r.length>s&&(r=r.replace(/\?.*/,`?${ee}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ee}${r.slice(p)}`:r=r.slice(0,s-1)+ee}return r}static getChromeExtensionOrigin(e){let n=new URL(e);return n.protocol+"//"+n.host}static parseURL(e){let n=new URL(e);return{file:t.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?t.getChromeExtensionOrigin(e):n.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let n=e.split(".").slice(-2);return fi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(e){let n=t.createOrReturnURL(e).hostname,i=t.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(e,n,a){if(n.length===0)return e.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let c=s;c<=p;c++){let l=c;o.add(l)}}),e.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(e,n){let a=An(e,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Ln=0,b=class t{static i18n=null;static strings={};static reportJson=null;static apply(e){t.strings={...Je,...e.providedStrings},t.i18n=e.i18n,t.reportJson=e.reportJson}static getUniqueSuffix(){return Ln++}static resetUniqueSuffix(){Ln=0}};var Tn="data:image/jpeg;base64,";function Un(t){t.configSettings.locale||(t.configSettings.locale="en"),t.configSettings.formFactor||(t.configSettings.formFactor=t.configSettings.emulatedFormFactor),t.finalDisplayedUrl=U.getFinalDisplayedUrl(t),t.mainDocumentUrl=U.getMainDocumentUrl(t);for(let a of Object.values(t.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Tn)||(i.data=Tn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[e]=t.lighthouseVersion.split(".").map(Number),n=t.categories.performance;if(n){if(e<9){t.categoryGroups||(t.categoryGroups={}),t.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?a.group==="load-opportunities"&&(a.group="diagnostics"):a.group="hidden"}else if(e<12)for(let a of n.auditRefs)a.group||(a.group="diagnostics")}if(e<12&&n){let a=new Map;for(let i of n.auditRefs){let o=i.relevantAudits;if(!(!o||!i.acronym))for(let r of o){let s=a.get(r)||[];s.push(i.acronym),a.set(r,s)}}for(let[i,o]of a){if(!o.length)continue;let r=t.audits[i];if(r&&!r.metricSavings){r.metricSavings={};for(let s of o)r.metricSavings[s]=0}}}if(t.environment||(t.environment={benchmarkIndex:0,networkUserAgent:t.userAgent,hostUserAgent:t.userAgent}),t.configSettings.screenEmulation||(t.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(t.environment.hostUserAgent),disabled:!1}),t.i18n||(t.i18n={}),t.audits["full-page-screenshot"]){let a=t.audits["full-page-screenshot"].details;a?t.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:t.fullPageScreenshot=null,delete t.audits["full-page-screenshot"]}}var te=U.RATINGS,A=class t{static prepareReportResult(e){let n=JSON.parse(JSON.stringify(e));Un(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&t.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.acronym&&a.set(o.acronym,o)}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r;let s=Object.keys(o.result.metricSavings||{});if(s.length){o.relevantMetrics=[];for(let p of s){let c=a.get(p);c&&o.relevantMetrics.push(c)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(c=>{let l=p.find(d=>c.descriptions[d]);l&&c.descriptions[l]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:c.title,iconDataURL:c.iconDataURL,description:c.descriptions[l]}))})}});return n}static getUrlLocatorFn(e){let n=e.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=e.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(e,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=t.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=U.parseURL(s).origin}catch{}if(!p)continue;let c=e.find(l=>l.origins.includes(p));c&&(r.entity=c.name)}}static getTableItemSortComparator(e){return(n,a)=>{for(let i of e){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(e){let n,a,i,o=e.throttling,r=b.i18n,s=b.strings;switch(e.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:m,requestLatencyMs:h}=o;n=`${r.formatNumber(m)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:m,rttMs:h,throughputKbps:f}=o;n=`${r.formatNumber(m)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(f)} throughput (Simulated)`,i=h===150&&f===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=e.channel==="devtools"?!1:e.screenEmulation.disabled,c=e.channel==="devtools"?e.formFactor==="mobile":e.screenEmulation.mobile,l=s.runtimeMobileEmulation;p?l=s.runtimeNoEmulation:c||(l=s.runtimeDesktopEmulation);let d=p?void 0:`${e.screenEmulation.width}x${e.screenEmulation.height}, DPR ${e.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:d,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(e){switch(e.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;case"numeric":case"binary":default:return Number(e.score)>=te.PASS.minScore}}static calculateRating(e,n){if(n==="manual"||n==="notApplicable")return te.PASS.label;if(n==="error")return te.ERROR.label;if(e===null)return te.FAIL.label;let a=te.FAIL.label;return e>=te.PASS.minScore?a=te.PASS.label:e>=te.AVERAGE.minScore&&(a=te.AVERAGE.label),a}static calculateCategoryFraction(e){let n=0,a=0,i=0,o=0;for(let r of e.auditRefs){let s=t.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(e){return e.startsWith("lighthouse-plugin-")}static shouldDisplayAsFraction(e){return e==="timespan"||e==="snapshot"}},Je={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",insightsNotice:"Later this year, insights will replace performance audits. [Learn more and provide feedback here](https://github.com/GoogleChrome/lighthouse/discussions/16462).",tryInsights:"Try insights",goBackToAudits:"Go back to audits"};var vi=0;function u(t,e,n,a,i){var o,r,s={};for(r in e)r=="ref"?o=e[r]:s[r]=e[r];var p={type:t,props:s,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--vi,__source:i,__self:a};if(typeof t=="function"&&(o=t.defaultProps))for(r in o)s[r]===void 0&&(s[r]=o[r]);return x.vnode&&x.vnode(p),p}var In=()=>u("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),Ze=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),Ke=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),u("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),Xe=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),Rn=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),Nn=()=>u("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Dn=()=>u("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),zn=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),jn=()=>u("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[u("rect",{width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Mn=()=>u("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var xt=Pe(void 0),St=Pe({});function Hn(t){return new URLSearchParams(location.hash.replace("#","?")).get(t)}function ve(...t){let e=[];for(let n of t){if(!n)continue;if(typeof n=="string"){e.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);e.push(...a)}return e.join(" ")}function Fn(t){let{width:e,height:n}=t.configSettings.screenEmulation;return{width:e,height:n}}function On(t){let e=t.audits["screenshot-thumbnails"];return e&&e.details&&e.details.type==="filmstrip"&&e.details.items||void 0}function Ye(t,e){switch(t){case"navigation":return e.navigationDescription;case"timespan":return e.timespanDescription;case"snapshot":return e.snapshotDescription}}function B(){let t=Ee(xt);if(!t)throw Error("useFlowResult must be called in the FlowResultContext");return t}function bi(...t){let[e,n]=ae(t.map(Hn));return $e(()=>{function a(){let i=t.map(Hn);i.every((o,r)=>o===e[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[e]),e}function be(){let t=B(),[e,n]=bi("index","anchor");return Q(()=>{if(!e)return null;let a=Number(e);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${e}`),null;let i=t.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[e,t,n])}function ie(t,e){let n=We(null);return qe(()=>{if(!n.current)return;let a=t();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},e),n}function Bn(){return Ee(St)}var yi=500,$=()=>u("div",{className:"Separator",role:"separator"}),kt=({mode:t})=>u(N,{children:[t==="navigation"&&u(Ze,{}),t==="timespan"&&u(Ke,{}),t==="snapshot"&&u(Xe,{})]}),oe=({mode:t})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),t&&u(kt,{mode:t}),u("div",{className:"FlowSegment__bottom-line"})]}),_i=({frames:t,width:e,height:n})=>{let[a,i]=ae(0),o=a%t.length;return $e(()=>{let r=setInterval(()=>i(s=>(s+1)%t.length),yi);return()=>clearInterval(r)},[t.length]),u("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:t[o].data,style:{width:e,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},Qe=({lhr:t,width:e,height:n})=>{let a=On(t),i=Fn(t);if(e&&n===void 0?n=i.height*e/i.width:n&&e===void 0&&(e=i.width*n/i.height),!e||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),u(N,{});let o;if(a?.length){if(o=a[a.length-1].data,t.gatherMode==="timespan")return u(_i,{frames:a,width:e,height:n})}else o=U.getFullPageScreenshot(t)?.screenshot.data;return u(N,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:e,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Pt=function(t,e){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},Pt(t,e)};function Le(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var J=function(){return J=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},J.apply(this,arguments)};function Gn(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]]);return n}function et(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,o;a<i;a++)(o||!(a in e))&&(o||(o=Array.prototype.slice.call(e,0,a)),o[a]=e[a]);return t.concat(o||Array.prototype.slice.call(e))}var ye=function(){return ye=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ye.apply(this,arguments)};var S;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(S||(S={}));var T;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(T||(T={}));var pe;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(pe||(pe={}));function At(t){return t.type===T.literal}function Vn(t){return t.type===T.argument}function tt(t){return t.type===T.number}function nt(t){return t.type===T.date}function at(t){return t.type===T.time}function it(t){return t.type===T.select}function ot(t){return t.type===T.plural}function $n(t){return t.type===T.pound}function rt(t){return t.type===T.tag}function st(t){return!!(t&&typeof t=="object"&&t.type===pe.number)}function Te(t){return!!(t&&typeof t=="object"&&t.type===pe.dateTime)}var Et=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Ci=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qn(t){var e={};return t.replace(Ci,function(n){var a=n.length;switch(n[0]){case"G":e.era=a===4?"long":a===5?"narrow":"short";break;case"y":e.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][a-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][a-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][a-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][a-1];break;case"s":e.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var I=function(){return I=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},I.apply(this,arguments)};var Wn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Xn(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Wn).filter(function(m){return m.length>0}),n=[],a=0,i=e;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),c=0,l=p;c<l.length;c++){var d=l[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function wi(t){return t.replace(/^(.*?)-/,"")}var Jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yn=/^(@+)?(\+|#+)?[rs]?$/g,xi=/(\*)(0+)|(#+)(0+)|(0+)/g,Qn=/^(0+)$/;function Zn(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Yn,function(n,a,i){return typeof i!="string"?(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length):i==="+"?e.minimumSignificantDigits=a.length:a[0]==="#"?e.maximumSignificantDigits=a.length:(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),e}function ea(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Si(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Qn.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Kn(t){var e={},n=ea(t);return n||e}function ta(t){for(var e={},n=0,a=t;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=wi(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=I(I(I({},e),{notation:"scientific"}),i.options.reduce(function(p,c){return I(I({},p),Kn(c))},{}));continue;case"engineering":e=I(I(I({},e),{notation:"engineering"}),i.options.reduce(function(p,c){return I(I({},p),Kn(c))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xi,function(p,c,l,d,m,h){if(c)e.minimumIntegerDigits=l.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qn.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Jn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jn,function(p,c,l,d,m,h){return l==="*"?e.minimumFractionDigits=c.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:m&&h?(e.minimumFractionDigits=m.length,e.maximumFractionDigits=m.length+h.length):(e.minimumFractionDigits=c.length,e.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?e=I(I({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=I(I({},e),Zn(o)));continue}if(Yn.test(i.stem)){e=I(I({},e),Zn(i.stem));continue}var r=ea(i.stem);r&&(e=I(I({},e),r));var s=Si(i.stem);s&&(e=I(I({},e),s))}return e}var Ue={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function na(t,e){for(var n="",a=0;a<t.length;a++){var i=t.charAt(a);if(i==="j"){for(var o=0;a+1<t.length&&t.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",c=ki(e);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function ki(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,a;n!=="root"&&(a=t.maximize().region);var i=Ue[a||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"];return i[0]}var Lt,Pi=new RegExp("^".concat(Et.source,"*")),Ai=new RegExp("".concat(Et.source,"*$"));function k(t,e){return{start:t,end:e}}var Ei=!!String.prototype.startsWith&&"_a".startsWith("a",1),Li=!!String.fromCodePoint,Ti=!!Object.fromEntries,Ui=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ri=!!String.prototype.trimEnd,Ni=!!Number.isSafeInteger,Di=Ni?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ut=!0;try{aa=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ut=((Lt=aa.exec("a"))===null||Lt===void 0?void 0:Lt[0])==="a"}catch{Ut=!1}var aa,ia=Ei?function(e,n,a){return e.startsWith(n,a)}:function(e,n,a){return e.slice(a,a+n.length)===n},It=Li?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var a="",i=e.length,o=0,r;i>o;){if(r=e[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},oa=Ti?Object.fromEntries:function(e){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},ra=Ui?function(e,n){return e.codePointAt(n)}:function(e,n){var a=e.length;if(!(n<0||n>=a)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},zi=Ii?function(e){return e.trimStart()}:function(e){return e.replace(Pi,"")},ji=Ri?function(e){return e.trimEnd()}:function(e){return e.replace(Ai,"")};function sa(t,e){return new RegExp(t,e)}var Rt;Ut?(Tt=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=function(e,n){var a;Tt.lastIndex=n;var i=Tt.exec(e);return(a=i[1])!==null&&a!==void 0?a:""}):Rt=function(e,n){for(var a=[];;){var i=ra(e,n);if(i===void 0||pa(i)||Fi(i))break;a.push(i),n+=i>=65536?2:1}return It.apply(void 0,a)};var Tt,la=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(e,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:T.pound,location:k(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(S.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Nt(this.peek()||0)){var r=this.parseTag(e,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(e,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:T.literal,value:"<".concat(i,"/>"),location:k(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Nt(this.char()))return this.error(S.INVALID_TAG,k(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(S.UNMATCHED_CLOSING_TAG,k(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:T.tag,value:i,children:r,location:k(a,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,k(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,k(a,this.clonePosition()))}else return this.error(S.INVALID_TAG,k(a,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Hi(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(e,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=k(a,this.clonePosition());return{val:{type:T.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mi(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return It.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&e>0?null:(this.bump(),It(a))},t.prototype.parseArgument=function(e,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,k(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:T.argument,value:i,location:k(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition())):this.parseArgumentOptions(e,n,i,a);default:return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),a=Rt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=k(e,o);return{value:a,location:r}},t.prototype.parseArgumentOptions=function(e,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,k(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=ji(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var h=k(l,this.clonePosition());c={style:m,styleLocation:h}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var C=k(i,this.clonePosition());if(c&&ia(c?.style,"::",0)){var g=zi(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(g,c.styleLocation);return d.err?d:{val:{type:T.number,value:a,location:C,style:d.val},err:null}}else{if(g.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,C);var _=g;this.locale&&(_=na(g,this.locale));var m={type:pe.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?qn(_):{}},v=s==="date"?T.date:T.time;return{val:{type:v,value:a,location:C,style:m},err:null}}}return{val:{type:s==="number"?T.number:s==="date"?T.date:T.time,value:a,location:C,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,k(y,ye({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),P=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),P=d.val}var L=this.tryParsePluralOrSelectOptions(e,s,n,w);if(L.err)return L;var f=this.tryParseArgumentClose(i);if(f.err)return f;var R=k(i,this.clonePosition());return s==="select"?{val:{type:T.select,value:a,options:oa(L.val),location:R},err:null}:{val:{type:T.plural,value:a,options:oa(L.val),offset:P,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,k(r,p))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var a=[];try{a=Xn(e)}catch{return this.error(S.INVALID_NUMBER_SKELETON,n)}return{val:{type:pe.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ta(a):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,a,i){for(var o,r=!1,s=[],p=new Set,c=i.value,l=i.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;l=k(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,n,a);if(f.err)return f;var C=this.tryParseArgumentClose(h);if(C.err)return C;s.push([c,{value:f.val,location:k(h,this.clonePosition())}]),p.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,l=o.location}return s.length===0?this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(S.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=k(i,this.clonePosition());return o?(r*=a,Di(r)?{val:r,err:null}:this.error(n,p)):this.error(e,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=ra(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ia(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),a=this.message.indexOf(e,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&pa(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(e>=65536?2:1));return a??null},t}();function Nt(t){return t>=97&&t<=122||t>=65&&t<=90}function Mi(t){return Nt(t)||t===47}function Hi(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function pa(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Fi(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Dt(t){t.forEach(function(e){if(delete e.location,it(e)||ot(e))for(var n in e.options)delete e.options[n].location,Dt(e.options[n].value);else tt(e)&&st(e.style)||(nt(e)||at(e))&&Te(e.style)?delete e.style.location:rt(e)&&Dt(e.children)})}function ua(t,e){e===void 0&&(e={}),e=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new la(t,e).parse();if(n.err){var a=SyntaxError(S[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return e?.captureLocation||Dt(n.val),n.val}function lt(t,e){var n=e&&e.cache?e.cache:qi,a=e&&e.serializer?e.serializer:$i,i=e&&e.strategy?e.strategy:Bi;return i(t,{cache:n,serializer:a})}function Oi(t){return t==null||typeof t=="number"||typeof t=="boolean"}function ca(t,e,n,a){var i=Oi(a)?a:n(a),o=e.get(i);return typeof o>"u"&&(o=t.call(this,a),e.set(i,o)),o}function ma(t,e,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=e.get(i);return typeof o>"u"&&(o=t.apply(this,a),e.set(i,o)),o}function zt(t,e,n,a,i){return n.bind(e,t,a,i)}function Bi(t,e){var n=t.length===1?ca:ma;return zt(t,this,n,e.cache.create(),e.serializer)}function Gi(t,e){return zt(t,this,ma,e.cache.create(),e.serializer)}function Vi(t,e){return zt(t,this,ca,e.cache.create(),e.serializer)}var $i=function(){return JSON.stringify(arguments)};function jt(){this.cache=Object.create(null)}jt.prototype.get=function(t){return this.cache[t]};jt.prototype.set=function(t,e){this.cache[t]=e};var qi={create:function(){return new jt}},pt={variadic:Gi,monadic:Vi};var ue;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ue||(ue={}));var Ie=function(t){Le(e,t);function e(n,a,i){var o=t.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error);var Mt=function(t){Le(e,t);function e(n,a,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ue.INVALID_VALUE,o)||this}return e}(Ie);var da=function(t){Le(e,t);function e(n,a,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ue.INVALID_VALUE,i)||this}return e}(Ie);var ha=function(t){Le(e,t);function e(n,a){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),ue.MISSING_VALUE,a)||this}return e}(Ie);var j;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(j||(j={}));function Wi(t){return t.length<2?t:t.reduce(function(e,n){var a=e[e.length-1];return!a||a.type!==j.literal||n.type!==j.literal?e.push(n):a.value+=n.value,e},[])}function Ji(t){return typeof t=="function"}function Re(t,e,n,a,i,o,r){if(t.length===1&&At(t[0]))return[{type:j.literal,value:t[0].value}];for(var s=[],p=0,c=t;p<c.length;p++){var l=c[p];if(At(l)){s.push({type:j.literal,value:l.value});continue}if($n(l)){typeof o=="number"&&s.push({type:j.literal,value:n.getNumberFormat(e).format(o)});continue}var d=l.value;if(!(i&&d in i))throw new ha(d,r);var m=i[d];if(Vn(l)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?j.literal:j.object,value:m});continue}if(nt(l)){var h=typeof l.style=="string"?a.date[l.style]:Te(l.style)?l.style.parsedOptions:void 0;s.push({type:j.literal,value:n.getDateTimeFormat(e,h).format(m)});continue}if(at(l)){var h=typeof l.style=="string"?a.time[l.style]:Te(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:j.literal,value:n.getDateTimeFormat(e,h).format(m)});continue}if(tt(l)){var h=typeof l.style=="string"?a.number[l.style]:st(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(m=m*(h.scale||1)),s.push({type:j.literal,value:n.getNumberFormat(e,h).format(m)});continue}if(rt(l)){var f=l.children,C=l.value,g=i[C];if(!Ji(g))throw new da(C,"function",r);var _=Re(f,e,n,a,i,o),v=g(_.map(function(P){return P.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(P){return{type:typeof P=="string"?j.literal:j.object,value:P}}))}if(it(l)){var y=l.options[m]||l.options.other;if(!y)throw new Mt(l.value,m,Object.keys(l.options),r);s.push.apply(s,Re(y.value,e,n,a,i));continue}if(ot(l)){var y=l.options["=".concat(m)];if(!y){if(!Intl.PluralRules)throw new Ie(`Intl.PluralRules is not available in this environment.
1
+ "use strict";(()=>{var Be,x,on,ni,ke,rn,en,sn,He={},ln=[],ai=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ne(t,e){for(var n in e)t[n]=e[n];return t}function pn(t){var e=t.parentNode;e&&e.removeChild(t)}function yt(t,e,n){var a,i,o,r={};for(o in e)o=="key"?a=e[o]:o=="ref"?i=e[o]:r[o]=e[o];if(arguments.length>2&&(r.children=arguments.length>3?Be.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)r[o]===void 0&&(r[o]=t.defaultProps[o]);return je(t,r,a,i,null)}function je(t,e,n,a,i){var o={type:t,props:e,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++on};return i==null&&x.vnode!=null&&x.vnode(o),o}function N(t){return t.children}function Me(t,e){this.props=t,this.context=e}function ge(t,e){if(e==null)return t.__?ge(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ge(t):null}function un(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return un(t)}}function bt(t){(!t.__d&&(t.__d=!0)&&ke.push(t)&&!Fe.__r++||en!==x.debounceRendering)&&((en=x.debounceRendering)||rn)(Fe)}function Fe(){for(var t;Fe.__r=ke.length;)t=ke.sort(function(e,n){return e.__v.__b-n.__v.__b}),ke=[],t.some(function(e){var n,a,i,o,r,s;e.__d&&(r=(o=(n=e).__v).__e,(s=n.__P)&&(a=[],(i=ne({},o)).__v=o.__v+1,_t(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),hn(a,o),o.__e!=r&&un(o)))})}function cn(t,e,n,a,i,o,r,s,p,c){var l,m,d,h,f,C,g,_=a&&a.__k||ln,v=_.length;for(n.__k=[],l=0;l<e.length;l++)if((h=n.__k[l]=(h=e[l])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?je(null,h,null,null,h):Array.isArray(h)?je(N,{children:h},null,null,null):h.__b>0?je(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(d=_[l])===null||d&&h.key==d.key&&h.type===d.type)_[l]=void 0;else for(m=0;m<v;m++){if((d=_[m])&&h.key==d.key&&h.type===d.type){_[m]=void 0;break}d=null}_t(t,h,d=d||He,i,o,r,s,p,c),f=h.__e,(m=h.ref)&&d.ref!=m&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(m,h.__c||f,h)),f!=null?(C==null&&(C=f),typeof h.type=="function"&&h.__k===d.__k?h.__d=p=dn(h,p,t):p=mn(t,h,d,_,f,p),typeof n.type=="function"&&(n.__d=p)):p&&d.__e==p&&p.parentNode!=t&&(p=ge(d))}for(n.__e=C,l=v;l--;)_[l]!=null&&(typeof n.type=="function"&&_[l].__e!=null&&_[l].__e==n.__d&&(n.__d=ge(a,l+1)),fn(_[l],_[l]));if(g)for(l=0;l<g.length;l++)gn(g[l],g[++l],g[++l])}function dn(t,e,n){for(var a,i=t.__k,o=0;i&&o<i.length;o++)(a=i[o])&&(a.__=t,e=typeof a.type=="function"?dn(a,e,n):mn(n,a,a,i,a.__e,e));return e}function mn(t,e,n,a,i,o){var r,s,p;if(e.__d!==void 0)r=e.__d,e.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(i),r=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<a.length;p+=2)if(s==i)break e;t.insertBefore(i,o),r=o}return r!==void 0?r:i.nextSibling}function ii(t,e,n,a,i){var o;for(o in n)o==="children"||o==="key"||o in e||Oe(t,o,null,n[o],a);for(o in e)i&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===e[o]||Oe(t,o,e[o],n[o],a)}function tn(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||ai.test(e)?n:n+"px"}function Oe(t,e,n,a,i){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)n&&e in n||tn(t.style,e,"");if(n)for(e in n)a&&n[e]===a[e]||tn(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?a||t.addEventListener(e,o?an:nn,o):t.removeEventListener(e,o?an:nn,o);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function nn(t){this.l[t.type+!1](x.event?x.event(t):t)}function an(t){this.l[t.type+!0](x.event?x.event(t):t)}function _t(t,e,n,a,i,o,r,s,p){var c,l,m,d,h,f,C,g,_,v,y,w=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(p=n.__h,s=e.__e=n.__e,e.__h=null,o=[s]),(c=x.__b)&&c(e);try{e:if(typeof w=="function"){if(g=e.props,_=(c=w.contextType)&&a[c.__c],v=c?_?_.props.value:c.__:a,n.__c?C=(l=e.__c=n.__c).__=l.__E:("prototype"in w&&w.prototype.render?e.__c=l=new w(g,v):(e.__c=l=new Me(g,v),l.constructor=w,l.render=ri),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=v,l.__n=a,m=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),w.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ne({},l.__s)),ne(l.__s,w.getDerivedStateFromProps(g,l.__s))),d=l.props,h=l.state,m)w.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,v),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,v)===!1||e.__v===n.__v){l.props=g,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(P){P&&(P.__=e)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,v),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,h,f)})}l.context=v,l.props=g,l.state=l.__s,(c=x.__r)&&c(e),l.__d=!1,l.__v=e,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(a=ne(ne({},a),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(f=l.getSnapshotBeforeUpdate(d,h)),y=c!=null&&c.type===N&&c.key==null?c.props.children:c,cn(t,Array.isArray(y)?y:[y],e,n,a,i,o,r,s,p),l.base=e.__e,e.__h=null,l.__h.length&&r.push(l),C&&(l.__E=l.__=null),l.__e=!1}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=oi(n.__e,e,n,a,i,o,r,p);(c=x.diffed)&&c(e)}catch(P){e.__v=null,(p||o!=null)&&(e.__e=s,e.__h=!!p,o[o.indexOf(s)]=null),x.__e(P,e,n)}}function hn(t,e){x.__c&&x.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(a){a.call(n)})}catch(a){x.__e(a,n.__v)}})}function oi(t,e,n,a,i,o,r,s){var p,c,l,m=n.props,d=e.props,h=e.type,f=0;if(h==="svg"&&(i=!0),o!=null){for(;f<o.length;f++)if((p=o[f])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){t=p,o[f]=null;break}}if(t==null){if(h===null)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,s=!1}if(h===null)m===d||s&&t.data===d||(t.data=d);else{if(o=o&&Be.call(t.childNodes),c=(m=n.props||He).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){if(o!=null)for(m={},f=0;f<t.attributes.length;f++)m[t.attributes[f].name]=t.attributes[f].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(ii(t,d,m,i,s),l)e.__k=[];else if(f=e.props.children,cn(t,Array.isArray(f)?f:[f],e,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(f=o.length;f--;)o[f]!=null&&pn(o[f]);s||("value"in d&&(f=d.value)!==void 0&&(f!==t.value||h==="progress"&&!f||h==="option"&&f!==m.value)&&Oe(t,"value",f,m.value,!1),"checked"in d&&(f=d.checked)!==void 0&&f!==t.checked&&Oe(t,"checked",f,m.checked,!1))}return t}function gn(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(a){x.__e(a,n)}}function fn(t,e,n){var a,i;if(x.unmount&&x.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||gn(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){x.__e(o,e)}a.base=a.__P=null}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&fn(a[i],e,typeof t.type!="function");n||t.__e==null||pn(t.__e),t.__e=t.__d=void 0}function ri(t,e,n){return this.constructor(t,n)}function vn(t,e,n){var a,i,o;x.__&&x.__(t,e),i=(a=typeof n=="function")?null:n&&n.__k||e.__k,o=[],_t(e,t=(!a&&n||e).__k=yt(N,null,[t]),i||He,He,e.ownerSVGElement!==void 0,!a&&n?[n]:i?null:e.firstChild?Be.call(e.childNodes):null,o,!a&&n?n:i?i.__e:e.firstChild,a),hn(o,t)}function Pe(t,e){var n={__c:e="__cC"+sn++,__:t,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,o;return this.getChildContext||(i=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&i.some(bt)},this.sub=function(r){i.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){i.splice(i.indexOf(r),1),s&&s.call(r)}}),a.children}};return n.Provider.__=n.Consumer.contextType=n}Be=ln.slice,x={__e:function(t,e,n,a){for(var i,o,r;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,a||{}),r=i.__d),r)return i.__E=i}catch(s){t=s}throw t}},on=0,ni=function(t){return t!=null&&t.constructor===void 0},Me.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ne({},this.state),typeof t=="function"&&(t=t(ne({},n),this.props)),t&&ne(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),bt(this))},Me.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),bt(this))},Me.prototype.render=N,ke=[],rn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fe.__r=0,sn=0;var fe,F,bn,Ve=0,kn=[],yn=x.__b,_n=x.__r,Cn=x.diffed,wn=x.__c,xn=x.unmount;function Ae(t,e){x.__h&&x.__h(F,t,Ve||e),Ve=0;var n=F.__H||(F.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function ae(t){return Ve=1,si(Pn,t)}function si(t,e,n){var a=Ae(fe++,2);return a.t=t,a.__c||(a.__=[n?n(e):Pn(void 0,e),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=F),a.__}function $e(t,e){var n=Ae(fe++,3);!x.__s&&wt(n.__H,e)&&(n.__=t,n.__H=e,F.__H.__h.push(n))}function qe(t,e){var n=Ae(fe++,4);!x.__s&&wt(n.__H,e)&&(n.__=t,n.__H=e,F.__h.push(n))}function We(t){return Ve=5,Q(function(){return{current:t}},[])}function Q(t,e){var n=Ae(fe++,7);return wt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Ee(t){var e=F.context[t.__c],n=Ae(fe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(F)),e.props.value):t.__}function li(){for(var t;t=kn.shift();)if(t.__P)try{t.__H.__h.forEach(Ge),t.__H.__h.forEach(Ct),t.__H.__h=[]}catch(e){t.__H.__h=[],x.__e(e,t.__v)}}x.__b=function(t){F=null,yn&&yn(t)},x.__r=function(t){_n&&_n(t),fe=0;var e=(F=t.__c).__H;e&&(e.__h.forEach(Ge),e.__h.forEach(Ct),e.__h=[])},x.diffed=function(t){Cn&&Cn(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(kn.push(e)!==1&&bn===x.requestAnimationFrame||((bn=x.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),Sn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);Sn&&(a=requestAnimationFrame(i))})(li)),F=null},x.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Ge),n.__h=n.__h.filter(function(a){return!a.__||Ct(a)})}catch(a){e.some(function(i){i.__h&&(i.__h=[])}),e=[],x.__e(a,n.__v)}}),wn&&wn(t,e)},x.unmount=function(t){xn&&xn(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ge(a)}catch(i){e=i}}),e&&x.__e(e,n.__v))};var Sn=typeof requestAnimationFrame=="function";function Ge(t){var e=F,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),F=e}function Ct(t){var e=F;t.__c=t.__(),F=e}function wt(t,e){return!t||t.length!==e.length||e.some(function(n,a){return n!==t[a]})}function Pn(t,e){return typeof e=="function"?e(t):e}var pi=.8999999999999999,ui=.5,ci=.49999999999999994;function di(t){let e=Math.sign(t);t=Math.abs(t);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*t),c=p*(n+p*(a+p*(i+p*(o+p*r))));return e*(1-c*Math.exp(-t*t))}function An({median:t,p10:e},n){if(t<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=t)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/t),o=Math.log(i),r=Math.max(Number.MIN_VALUE,e/t),s=-Math.log(r),p=o*a/s,c=(1-di(p))/2,l;return n<=e?l=Math.max(.9,Math.min(1,c)):n<=t?l=Math.max(ui,Math.min(pi,c)):l=Math.max(0,Math.min(ci,c)),l}var ee="…",hi=" ",En=.9,gi={PASS:{label:"pass",minScore:En},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},fi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],U=class t{static get RATINGS(){return gi}static get PASS_THRESHOLD(){return En}static get MS_DISPLAY_VALUE(){return`%10d${hi}ms`}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,n){return n&&n.find(i=>i.origins.find(o=>e.startsWith(o)))||t.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let n=[],a=e.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(e){let n=[],a=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(e,n,a="…"){if(e.length<=n)return e;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return e;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return e;return e.slice(0,r)+a}static getURLDisplayName(e,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(e.protocol==="about:"||e.protocol==="data:")r=e.href;else{r=e.pathname;let p=r.split("/").filter(c=>c.length);a&&p.length>a&&(r=ee+p.slice(-1*a).join("/")),o&&(r=`${e.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${e.search}`)}let s=64;if(e.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${ee}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ee}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ee}`),r=r.replace(/\u2026+/g,ee),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ee}`),r.length>s&&(r=r.replace(/\?.*/,`?${ee}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ee}${r.slice(p)}`:r=r.slice(0,s-1)+ee}return r}static getChromeExtensionOrigin(e){let n=new URL(e);return n.protocol+"//"+n.host}static parseURL(e){let n=new URL(e);return{file:t.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?t.getChromeExtensionOrigin(e):n.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let n=e.split(".").slice(-2);return fi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(e){let n=t.createOrReturnURL(e).hostname,i=t.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(e,n,a){if(n.length===0)return e.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let c=s;c<=p;c++){let l=c;o.add(l)}}),e.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(e,n){let a=An(e,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Ln=0,b=class t{static i18n=null;static strings={};static reportJson=null;static apply(e){t.strings={...Je,...e.providedStrings},t.i18n=e.i18n,t.reportJson=e.reportJson}static getUniqueSuffix(){return Ln++}static resetUniqueSuffix(){Ln=0}};var Tn="data:image/jpeg;base64,";function Un(t){t.configSettings.locale||(t.configSettings.locale="en"),t.configSettings.formFactor||(t.configSettings.formFactor=t.configSettings.emulatedFormFactor),t.finalDisplayedUrl=U.getFinalDisplayedUrl(t),t.mainDocumentUrl=U.getMainDocumentUrl(t);for(let a of Object.values(t.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Tn)||(i.data=Tn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[e]=t.lighthouseVersion.split(".").map(Number),n=t.categories.performance;if(n){if(e<9){t.categoryGroups||(t.categoryGroups={}),t.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?a.group==="load-opportunities"&&(a.group="diagnostics"):a.group="hidden"}else if(e<12)for(let a of n.auditRefs)a.group||(a.group="diagnostics")}if(e<12&&n){let a=new Map;for(let i of n.auditRefs){let o=i.relevantAudits;if(!(!o||!i.acronym))for(let r of o){let s=a.get(r)||[];s.push(i.acronym),a.set(r,s)}}for(let[i,o]of a){if(!o.length)continue;let r=t.audits[i];if(r&&!r.metricSavings){r.metricSavings={};for(let s of o)r.metricSavings[s]=0}}}if(t.environment||(t.environment={benchmarkIndex:0,networkUserAgent:t.userAgent,hostUserAgent:t.userAgent}),t.configSettings.screenEmulation||(t.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(t.environment.hostUserAgent),disabled:!1}),t.i18n||(t.i18n={}),t.audits["full-page-screenshot"]){let a=t.audits["full-page-screenshot"].details;a?t.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:t.fullPageScreenshot=null,delete t.audits["full-page-screenshot"]}}var te=U.RATINGS,A=class t{static prepareReportResult(e){let n=JSON.parse(JSON.stringify(e));Un(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&t.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.acronym&&a.set(o.acronym,o)}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r;let s=Object.keys(o.result.metricSavings||{});if(s.length){o.relevantMetrics=[];for(let p of s){let c=a.get(p);c&&o.relevantMetrics.push(c)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(c=>{let l=p.find(m=>c.descriptions[m]);l&&c.descriptions[l]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:c.title,iconDataURL:c.iconDataURL,description:c.descriptions[l]}))})}});return n}static getUrlLocatorFn(e){let n=e.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=e.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(e,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=t.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=U.parseURL(s).origin}catch{}if(!p)continue;let c=e.find(l=>l.origins.includes(p));c&&(r.entity=c.name)}}static getTableItemSortComparator(e){return(n,a)=>{for(let i of e){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(e){let n,a,i,o=e.throttling,r=b.i18n,s=b.strings;switch(e.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:d,requestLatencyMs:h}=o;n=`${r.formatNumber(d)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:d,rttMs:h,throughputKbps:f}=o;n=`${r.formatNumber(d)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(f)} throughput (Simulated)`,i=h===150&&f===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=e.channel==="devtools"?!1:e.screenEmulation.disabled,c=e.channel==="devtools"?e.formFactor==="mobile":e.screenEmulation.mobile,l=s.runtimeMobileEmulation;p?l=s.runtimeNoEmulation:c||(l=s.runtimeDesktopEmulation);let m=p?void 0:`${e.screenEmulation.width}x${e.screenEmulation.height}, DPR ${e.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:m,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(e){switch(e.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;case"numeric":case"binary":default:return Number(e.score)>=te.PASS.minScore}}static calculateRating(e,n){if(n==="manual"||n==="notApplicable")return te.PASS.label;if(n==="error")return te.ERROR.label;if(e===null)return te.FAIL.label;let a=te.FAIL.label;return e>=te.PASS.minScore?a=te.PASS.label:e>=te.AVERAGE.minScore&&(a=te.AVERAGE.label),a}static calculateCategoryFraction(e){let n=0,a=0,i=0,o=0;for(let r of e.auditRefs){let s=t.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(e){return e.startsWith("lighthouse-plugin-")}static shouldDisplayAsFraction(e){return e==="timespan"||e==="snapshot"}},Je={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",insightsNotice:"Later this year, insights will replace performance audits. [Learn more and provide feedback here](https://github.com/GoogleChrome/lighthouse/discussions/16462).",tryInsights:"Try insights",goBackToAudits:"Go back to audits"};var vi=0;function u(t,e,n,a,i){var o,r,s={};for(r in e)r=="ref"?o=e[r]:s[r]=e[r];var p={type:t,props:s,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--vi,__source:i,__self:a};if(typeof t=="function"&&(o=t.defaultProps))for(r in o)s[r]===void 0&&(s[r]=o[r]);return x.vnode&&x.vnode(p),p}var In=()=>u("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),Ze=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),Ke=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),u("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),Xe=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),Rn=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),Nn=()=>u("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Dn=()=>u("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),zn=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),jn=()=>u("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[u("rect",{width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Mn=()=>u("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var xt=Pe(void 0),St=Pe({});function Hn(t){return new URLSearchParams(location.hash.replace("#","?")).get(t)}function ve(...t){let e=[];for(let n of t){if(!n)continue;if(typeof n=="string"){e.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);e.push(...a)}return e.join(" ")}function Fn(t){let{width:e,height:n}=t.configSettings.screenEmulation;return{width:e,height:n}}function On(t){let e=t.audits["screenshot-thumbnails"];return e&&e.details&&e.details.type==="filmstrip"&&e.details.items||void 0}function Ye(t,e){switch(t){case"navigation":return e.navigationDescription;case"timespan":return e.timespanDescription;case"snapshot":return e.snapshotDescription}}function B(){let t=Ee(xt);if(!t)throw Error("useFlowResult must be called in the FlowResultContext");return t}function bi(...t){let[e,n]=ae(t.map(Hn));return $e(()=>{function a(){let i=t.map(Hn);i.every((o,r)=>o===e[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[e]),e}function be(){let t=B(),[e,n]=bi("index","anchor");return Q(()=>{if(!e)return null;let a=Number(e);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${e}`),null;let i=t.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[e,t,n])}function ie(t,e){let n=We(null);return qe(()=>{if(!n.current)return;let a=t();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},e),n}function Bn(){return Ee(St)}var yi=500,$=()=>u("div",{className:"Separator",role:"separator"}),kt=({mode:t})=>u(N,{children:[t==="navigation"&&u(Ze,{}),t==="timespan"&&u(Ke,{}),t==="snapshot"&&u(Xe,{})]}),oe=({mode:t})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),t&&u(kt,{mode:t}),u("div",{className:"FlowSegment__bottom-line"})]}),_i=({frames:t,width:e,height:n})=>{let[a,i]=ae(0),o=a%t.length;return $e(()=>{let r=setInterval(()=>i(s=>(s+1)%t.length),yi);return()=>clearInterval(r)},[t.length]),u("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:t[o].data,style:{width:e,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},Qe=({lhr:t,width:e,height:n})=>{let a=On(t),i=Fn(t);if(e&&n===void 0?n=i.height*e/i.width:n&&e===void 0&&(e=i.width*n/i.height),!e||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),u(N,{});let o;if(a?.length){if(o=a[a.length-1].data,t.gatherMode==="timespan")return u(_i,{frames:a,width:e,height:n})}else o=U.getFullPageScreenshot(t)?.screenshot.data;return u(N,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:e,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Pt=function(t,e){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},Pt(t,e)};function Le(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var J=function(){return J=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},J.apply(this,arguments)};function Gn(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]]);return n}function et(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,o;a<i;a++)(o||!(a in e))&&(o||(o=Array.prototype.slice.call(e,0,a)),o[a]=e[a]);return t.concat(o||Array.prototype.slice.call(e))}var ye=function(){return ye=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ye.apply(this,arguments)};var S;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(S||(S={}));var T;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(T||(T={}));var pe;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(pe||(pe={}));function At(t){return t.type===T.literal}function Vn(t){return t.type===T.argument}function tt(t){return t.type===T.number}function nt(t){return t.type===T.date}function at(t){return t.type===T.time}function it(t){return t.type===T.select}function ot(t){return t.type===T.plural}function $n(t){return t.type===T.pound}function rt(t){return t.type===T.tag}function st(t){return!!(t&&typeof t=="object"&&t.type===pe.number)}function Te(t){return!!(t&&typeof t=="object"&&t.type===pe.dateTime)}var Et=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Ci=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qn(t){var e={};return t.replace(Ci,function(n){var a=n.length;switch(n[0]){case"G":e.era=a===4?"long":a===5?"narrow":"short";break;case"y":e.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][a-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][a-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][a-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][a-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][a-1];break;case"s":e.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var I=function(){return I=Object.assign||function(e){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},I.apply(this,arguments)};var Wn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Xn(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Wn).filter(function(d){return d.length>0}),n=[],a=0,i=e;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),c=0,l=p;c<l.length;c++){var m=l[c];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function wi(t){return t.replace(/^(.*?)-/,"")}var Jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yn=/^(@+)?(\+|#+)?[rs]?$/g,xi=/(\*)(0+)|(#+)(0+)|(0+)/g,Qn=/^(0+)$/;function Zn(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Yn,function(n,a,i){return typeof i!="string"?(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length):i==="+"?e.minimumSignificantDigits=a.length:a[0]==="#"?e.maximumSignificantDigits=a.length:(e.minimumSignificantDigits=a.length,e.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),e}function ea(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Si(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Qn.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Kn(t){var e={},n=ea(t);return n||e}function ta(t){for(var e={},n=0,a=t;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=wi(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=I(I(I({},e),{notation:"scientific"}),i.options.reduce(function(p,c){return I(I({},p),Kn(c))},{}));continue;case"engineering":e=I(I(I({},e),{notation:"engineering"}),i.options.reduce(function(p,c){return I(I({},p),Kn(c))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xi,function(p,c,l,m,d,h){if(c)e.minimumIntegerDigits=l.length;else{if(m&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qn.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Jn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jn,function(p,c,l,m,d,h){return l==="*"?e.minimumFractionDigits=c.length:m&&m[0]==="#"?e.maximumFractionDigits=m.length:d&&h?(e.minimumFractionDigits=d.length,e.maximumFractionDigits=d.length+h.length):(e.minimumFractionDigits=c.length,e.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?e=I(I({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=I(I({},e),Zn(o)));continue}if(Yn.test(i.stem)){e=I(I({},e),Zn(i.stem));continue}var r=ea(i.stem);r&&(e=I(I({},e),r));var s=Si(i.stem);s&&(e=I(I({},e),s))}return e}var Ue={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function na(t,e){for(var n="",a=0;a<t.length;a++){var i=t.charAt(a);if(i==="j"){for(var o=0;a+1<t.length&&t.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",c=ki(e);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function ki(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,a;n!=="root"&&(a=t.maximize().region);var i=Ue[a||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"];return i[0]}var Lt,Pi=new RegExp("^".concat(Et.source,"*")),Ai=new RegExp("".concat(Et.source,"*$"));function k(t,e){return{start:t,end:e}}var Ei=!!String.prototype.startsWith&&"_a".startsWith("a",1),Li=!!String.fromCodePoint,Ti=!!Object.fromEntries,Ui=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ri=!!String.prototype.trimEnd,Ni=!!Number.isSafeInteger,Di=Ni?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ut=!0;try{aa=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ut=((Lt=aa.exec("a"))===null||Lt===void 0?void 0:Lt[0])==="a"}catch{Ut=!1}var aa,ia=Ei?function(e,n,a){return e.startsWith(n,a)}:function(e,n,a){return e.slice(a,a+n.length)===n},It=Li?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var a="",i=e.length,o=0,r;i>o;){if(r=e[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},oa=Ti?Object.fromEntries:function(e){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},ra=Ui?function(e,n){return e.codePointAt(n)}:function(e,n){var a=e.length;if(!(n<0||n>=a)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},zi=Ii?function(e){return e.trimStart()}:function(e){return e.replace(Pi,"")},ji=Ri?function(e){return e.trimEnd()}:function(e){return e.replace(Ai,"")};function sa(t,e){return new RegExp(t,e)}var Rt;Ut?(Tt=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=function(e,n){var a;Tt.lastIndex=n;var i=Tt.exec(e);return(a=i[1])!==null&&a!==void 0?a:""}):Rt=function(e,n){for(var a=[];;){var i=ra(e,n);if(i===void 0||pa(i)||Fi(i))break;a.push(i),n+=i>=65536?2:1}return It.apply(void 0,a)};var Tt,la=function(){function t(e,n){n===void 0&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(e,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:T.pound,location:k(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(S.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Nt(this.peek()||0)){var r=this.parseTag(e,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(e,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:T.literal,value:"<".concat(i,"/>"),location:k(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Nt(this.char()))return this.error(S.INVALID_TAG,k(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(S.UNMATCHED_CLOSING_TAG,k(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:T.tag,value:i,children:r,location:k(a,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,k(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,k(a,this.clonePosition()))}else return this.error(S.INVALID_TAG,k(a,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Hi(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(e,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=k(a,this.clonePosition());return{val:{type:T.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mi(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return It.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&e>0?null:(this.bump(),It(a))},t.prototype.parseArgument=function(e,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,k(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:T.argument,value:i,location:k(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition())):this.parseArgumentOptions(e,n,i,a);default:return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),a=Rt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=k(e,o);return{value:a,location:r}},t.prototype.parseArgumentOptions=function(e,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,k(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var d=ji(m.val);if(d.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var h=k(l,this.clonePosition());c={style:d,styleLocation:h}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var C=k(i,this.clonePosition());if(c&&ia(c?.style,"::",0)){var g=zi(c.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(g,c.styleLocation);return m.err?m:{val:{type:T.number,value:a,location:C,style:m.val},err:null}}else{if(g.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,C);var _=g;this.locale&&(_=na(g,this.locale));var d={type:pe.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?qn(_):{}},v=s==="date"?T.date:T.time;return{val:{type:v,value:a,location:C,style:d},err:null}}}return{val:{type:s==="number"?T.number:s==="date"?T.date:T.time,value:a,location:C,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,k(y,ye({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),P=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),w=this.parseIdentifierIfPossible(),P=m.val}var L=this.tryParsePluralOrSelectOptions(e,s,n,w);if(L.err)return L;var f=this.tryParseArgumentClose(i);if(f.err)return f;var R=k(i,this.clonePosition());return s==="select"?{val:{type:T.select,value:a,options:oa(L.val),location:R},err:null}:{val:{type:T.plural,value:a,options:oa(L.val),offset:P,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,k(r,p))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var a=[];try{a=Xn(e)}catch{return this.error(S.INVALID_NUMBER_SKELETON,n)}return{val:{type:pe.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ta(a):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,n,a,i){for(var o,r=!1,s=[],p=new Set,c=i.value,l=i.location;;){if(c.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=k(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,n,a);if(f.err)return f;var C=this.tryParseArgumentClose(h);if(C.err)return C;s.push([c,{value:f.val,location:k(h,this.clonePosition())}]),p.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,l=o.location}return s.length===0?this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(S.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(e,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=k(i,this.clonePosition());return o?(r*=a,Di(r)?{val:r,err:null}:this.error(n,p)):this.error(e,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=ra(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ia(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),a=this.message.indexOf(e,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&pa(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(e>=65536?2:1));return a??null},t}();function Nt(t){return t>=97&&t<=122||t>=65&&t<=90}function Mi(t){return Nt(t)||t===47}function Hi(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function pa(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Fi(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Dt(t){t.forEach(function(e){if(delete e.location,it(e)||ot(e))for(var n in e.options)delete e.options[n].location,Dt(e.options[n].value);else tt(e)&&st(e.style)||(nt(e)||at(e))&&Te(e.style)?delete e.style.location:rt(e)&&Dt(e.children)})}function ua(t,e){e===void 0&&(e={}),e=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new la(t,e).parse();if(n.err){var a=SyntaxError(S[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return e?.captureLocation||Dt(n.val),n.val}function lt(t,e){var n=e&&e.cache?e.cache:qi,a=e&&e.serializer?e.serializer:$i,i=e&&e.strategy?e.strategy:Bi;return i(t,{cache:n,serializer:a})}function Oi(t){return t==null||typeof t=="number"||typeof t=="boolean"}function ca(t,e,n,a){var i=Oi(a)?a:n(a),o=e.get(i);return typeof o>"u"&&(o=t.call(this,a),e.set(i,o)),o}function da(t,e,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=e.get(i);return typeof o>"u"&&(o=t.apply(this,a),e.set(i,o)),o}function zt(t,e,n,a,i){return n.bind(e,t,a,i)}function Bi(t,e){var n=t.length===1?ca:da;return zt(t,this,n,e.cache.create(),e.serializer)}function Gi(t,e){return zt(t,this,da,e.cache.create(),e.serializer)}function Vi(t,e){return zt(t,this,ca,e.cache.create(),e.serializer)}var $i=function(){return JSON.stringify(arguments)};function jt(){this.cache=Object.create(null)}jt.prototype.get=function(t){return this.cache[t]};jt.prototype.set=function(t,e){this.cache[t]=e};var qi={create:function(){return new jt}},pt={variadic:Gi,monadic:Vi};var ue;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ue||(ue={}));var Ie=function(t){Le(e,t);function e(n,a,i){var o=t.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error);var Mt=function(t){Le(e,t);function e(n,a,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ue.INVALID_VALUE,o)||this}return e}(Ie);var ma=function(t){Le(e,t);function e(n,a,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ue.INVALID_VALUE,i)||this}return e}(Ie);var ha=function(t){Le(e,t);function e(n,a){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),ue.MISSING_VALUE,a)||this}return e}(Ie);var j;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(j||(j={}));function Wi(t){return t.length<2?t:t.reduce(function(e,n){var a=e[e.length-1];return!a||a.type!==j.literal||n.type!==j.literal?e.push(n):a.value+=n.value,e},[])}function Ji(t){return typeof t=="function"}function Re(t,e,n,a,i,o,r){if(t.length===1&&At(t[0]))return[{type:j.literal,value:t[0].value}];for(var s=[],p=0,c=t;p<c.length;p++){var l=c[p];if(At(l)){s.push({type:j.literal,value:l.value});continue}if($n(l)){typeof o=="number"&&s.push({type:j.literal,value:n.getNumberFormat(e).format(o)});continue}var m=l.value;if(!(i&&m in i))throw new ha(m,r);var d=i[m];if(Vn(l)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?j.literal:j.object,value:d});continue}if(nt(l)){var h=typeof l.style=="string"?a.date[l.style]:Te(l.style)?l.style.parsedOptions:void 0;s.push({type:j.literal,value:n.getDateTimeFormat(e,h).format(d)});continue}if(at(l)){var h=typeof l.style=="string"?a.time[l.style]:Te(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:j.literal,value:n.getDateTimeFormat(e,h).format(d)});continue}if(tt(l)){var h=typeof l.style=="string"?a.number[l.style]:st(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),s.push({type:j.literal,value:n.getNumberFormat(e,h).format(d)});continue}if(rt(l)){var f=l.children,C=l.value,g=i[C];if(!Ji(g))throw new ma(C,"function",r);var _=Re(f,e,n,a,i,o),v=g(_.map(function(P){return P.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(P){return{type:typeof P=="string"?j.literal:j.object,value:P}}))}if(it(l)){var y=l.options[d]||l.options.other;if(!y)throw new Mt(l.value,d,Object.keys(l.options),r);s.push.apply(s,Re(y.value,e,n,a,i));continue}if(ot(l)){var y=l.options["=".concat(d)];if(!y){if(!Intl.PluralRules)throw new Ie(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,ue.MISSING_INTL_API,r);var w=n.getPluralRules(e,{type:l.pluralType}).select(m-(l.offset||0));y=l.options[w]||l.options.other}if(!y)throw new Mt(l.value,m,Object.keys(l.options),r);s.push.apply(s,Re(y.value,e,n,a,i,m-(l.offset||0)));continue}}return Wi(s)}function Zi(t,e){return e?J(J(J({},t||{}),e||{}),Object.keys(t).reduce(function(n,a){return n[a]=J(J({},t[a]),e[a]||{}),n},{})):t}function Ki(t,e){return e?Object.keys(t).reduce(function(n,a){return n[a]=Zi(t[a],e[a]),n},J({},t)):t}function Ht(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function Xi(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.NumberFormat).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.number),strategy:pt.variadic}),getDateTimeFormat:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.DateTimeFormat).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.dateTime),strategy:pt.variadic}),getPluralRules:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.PluralRules).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.pluralRules),strategy:pt.variadic})}}var ga=function(){function t(e,n,a,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var d=l.reduce(function(m,h){return!m.length||h.type!==j.literal||typeof m[m.length-1]!="string"?m.push(h.value):m[m.length-1]+=h.value,m},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return Re(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=i||{},s=r.formatters,p=Gn(r,["formatters"]);this.ast=t.__parse(e,J(J({},p),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ki(t.formats,a),this.formatters=i&&i.formatters||Xi(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=ua,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();var Ft=ga;var ut={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var Ms=["ar-XB.json","ar.json","bg.json","ca.json","cs.json","da.json","de.json","el.json","en-GB.json","en-US.json","en-XA.json","en-XL.json","es-419.json","es.json","fi.json","fil.json","fr.json","he.json","hi.json","hr.json","hu.json","id.json","it.json","ja.json","ko.json","lt.json","lv.json","nl.json","no.json","pl.json","pt-PT.json","pt.json","ro.json","ru.json","sk.json","sl.json","sr-Latn.json","sr.json","sv.json","ta.json","te.json","th.json","tr.json","uk.json","vi.json","zh-HK.json","zh-TW.json","zh.json"].filter(t=>t.endsWith(".json")&&!t.endsWith(".ctc.json")).map(t=>t.replace(".json","")).sort();var Yi={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function fa(t,e=new Map){for(let n of t)if(!(n.type===ut.literal||n.type===ut.pound)&&(e.set(n.value,n),n.type===ut.plural))for(let a of Object.values(n.options))fa(a.value,e);return e}function Qi(t,e={},n){let a=fa(t.getAst()),i={};for(let[o,r]of a){if(!(o in e))throw new Error(`ICU Message "${n}" contains a value reference ("${o}") that wasn't provided`);let s=e[o];if(r.type!==ut.number){i[o]=s;continue}if(typeof s!="number")throw new Error(`ICU Message "${n}" contains a numeric reference ("${o}") but provided value was not a number`);r.style==="milliseconds"?i[o]=Math.round(s/10)*10:r.style==="seconds"&&o==="timeInMs"?i[o]=Math.round(s/100)/10:r.style==="bytes"?i[o]=s/1024:i[o]=s}for(let o of Object.keys(e))if(!(o in i)){if(o==="errorCode"){i.errorCode=e.errorCode;continue}throw new Error(`Provided value "${o}" does not match any placeholder in ICU message "${n}"`)}return i}function eo(t){return t.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function va(t,e,n){t=eo(t);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Ft.IntlMessageFormat||Ft,o=new i(t,a,Yi,{ignoreTag:!0}),r=Qi(o,e,t),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var Ot=" ";var ce=class{constructor(e){e==="en-XA"&&(e="de"),this._locale=e,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(e,n,a={}){if(n!==void 0){let r=-Math.log10(n);Number.isInteger(r)||(console.warn(`granularity of ${n} is invalid. Using 1 instead`),n=1),n<1&&(a={...a},a.minimumFractionDigits=a.maximumFractionDigits=Math.ceil(r)),e=Math.round(e/n)*n,Object.is(e,-0)&&(e=0)}else Math.abs(e)<5e-4&&(e=0);let i,o=[a.minimumFractionDigits,a.maximumFractionDigits,a.style,a.unit,a.unitDisplay,this._locale].join("");return i=this._cachedNumberFormatters.get(o),i||(i=new Intl.NumberFormat(this._locale,a),this._cachedNumberFormatters.set(o,i)),i.format(e).replace(" ",Ot)}formatNumber(e,n){return this._formatNumberWithGranularity(e,n)}formatInteger(e){return this._formatNumberWithGranularity(e,1)}formatPercent(e){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(e)}formatBytesToKiB(e,n=void 0){return this._formatNumberWithGranularity(e/1024,n)+`${Ot}KiB`}formatBytesToMiB(e,n=void 0){return this._formatNumberWithGranularity(e/1048576,n)+`${Ot}MiB`}formatBytes(e,n=1){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(e,n=.1){return e>=1048576?this.formatBytesToMiB(e,n):e>=1024?this.formatBytesToKiB(e,n):this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(e,n=void 0){return this._formatNumberWithGranularity(e/1e3,n,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(e){let n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},a;try{a=new Intl.DateTimeFormat(this._locale,n)}catch{n.timeZone="UTC",a=new Intl.DateTimeFormat(this._locale,n)}return a.format(new Date(e))}formatDuration(e){let n=e/1e3;if(Math.round(n)===0)return"None";let a=[],i={day:60*60*24,hour:60*60,minute:60,second:1};return Object.keys(i).forEach(o=>{let r=i[o],s=Math.floor(n/r);if(s>0){n-=s*r;let p=this._formatNumberWithGranularity(s,1,{style:"unit",unit:o,unitDisplay:"narrow"});a.push(p)}}),a.join(" ")}};var Bt={navigationDescription:"Page load",timespanDescription:"User interactions",snapshotDescription:"Captured state of page",navigationLongDescription:"Navigation reports analyze a single page load, exactly like the original Lighthouse reports.",timespanLongDescription:"Timespan reports analyze an arbitrary period of time, typically containing user interactions.",snapshotLongDescription:"Snapshot reports analyze the page in a particular state, typically after user interactions.",navigationReport:"Navigation report",timespanReport:"Timespan report",snapshotReport:"Snapshot report",summary:"Summary",allReports:"All Reports",title:"Lighthouse User Flow Report",categories:"Categories",categoryPerformance:"Performance",categoryAccessibility:"Accessibility",categoryBestPractices:"Best Practices",categorySeo:"SEO",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
3
+ `,ue.MISSING_INTL_API,r);var w=n.getPluralRules(e,{type:l.pluralType}).select(d-(l.offset||0));y=l.options[w]||l.options.other}if(!y)throw new Mt(l.value,d,Object.keys(l.options),r);s.push.apply(s,Re(y.value,e,n,a,i,d-(l.offset||0)));continue}}return Wi(s)}function Zi(t,e){return e?J(J(J({},t||{}),e||{}),Object.keys(t).reduce(function(n,a){return n[a]=J(J({},t[a]),e[a]||{}),n},{})):t}function Ki(t,e){return e?Object.keys(t).reduce(function(n,a){return n[a]=Zi(t[a],e[a]),n},J({},t)):t}function Ht(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function Xi(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.NumberFormat).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.number),strategy:pt.variadic}),getDateTimeFormat:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.DateTimeFormat).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.dateTime),strategy:pt.variadic}),getPluralRules:lt(function(){for(var e,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((e=Intl.PluralRules).bind.apply(e,et([void 0],n,!1)))},{cache:Ht(t.pluralRules),strategy:pt.variadic})}}var ga=function(){function t(e,n,a,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var m=l.reduce(function(d,h){return!d.length||h.type!==j.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(c){return Re(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=i||{},s=r.formatters,p=Gn(r,["formatters"]);this.ast=t.__parse(e,J(J({},p),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ki(t.formats,a),this.formatters=i&&i.formatters||Xi(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=ua,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();var Ft=ga;var ut={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var Ms=["ar-XB.json","ar.json","bg.json","ca.json","cs.json","da.json","de.json","el.json","en-GB.json","en-US.json","en-XA.json","en-XL.json","es-419.json","es.json","fi.json","fil.json","fr.json","he.json","hi.json","hr.json","hu.json","id.json","it.json","ja.json","ko.json","lt.json","lv.json","nl.json","no.json","pl.json","pt-PT.json","pt.json","ro.json","ru.json","sk.json","sl.json","sr-Latn.json","sr.json","sv.json","ta.json","te.json","th.json","tr.json","uk.json","vi.json","zh-HK.json","zh-TW.json","zh.json"].filter(t=>t.endsWith(".json")&&!t.endsWith(".ctc.json")).map(t=>t.replace(".json","")).sort();var Yi={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function fa(t,e=new Map){for(let n of t)if(!(n.type===ut.literal||n.type===ut.pound)&&(e.set(n.value,n),n.type===ut.plural))for(let a of Object.values(n.options))fa(a.value,e);return e}function Qi(t,e={},n){let a=fa(t.getAst()),i={};for(let[o,r]of a){if(!(o in e))throw new Error(`ICU Message "${n}" contains a value reference ("${o}") that wasn't provided`);let s=e[o];if(r.type!==ut.number){i[o]=s;continue}if(typeof s!="number")throw new Error(`ICU Message "${n}" contains a numeric reference ("${o}") but provided value was not a number`);r.style==="milliseconds"?i[o]=Math.round(s/10)*10:r.style==="seconds"&&o==="timeInMs"?i[o]=Math.round(s/100)/10:r.style==="bytes"?i[o]=s/1024:i[o]=s}for(let o of Object.keys(e))if(!(o in i)){if(o==="errorCode"){i.errorCode=e.errorCode;continue}throw new Error(`Provided value "${o}" does not match any placeholder in ICU message "${n}"`)}return i}function eo(t){return t.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function va(t,e,n){t=eo(t);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Ft.IntlMessageFormat||Ft,o=new i(t,a,Yi,{ignoreTag:!0}),r=Qi(o,e,t),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var Ot=" ";var ce=class{constructor(e){e==="en-XA"&&(e="de"),this._locale=e,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(e,n,a={}){if(n!==void 0){let r=-Math.log10(n);Number.isInteger(r)||(console.warn(`granularity of ${n} is invalid. Using 1 instead`),n=1),n<1&&(a={...a},a.minimumFractionDigits=a.maximumFractionDigits=Math.ceil(r)),e=Math.round(e/n)*n,Object.is(e,-0)&&(e=0)}else Math.abs(e)<5e-4&&(e=0);let i,o=[a.minimumFractionDigits,a.maximumFractionDigits,a.style,a.unit,a.unitDisplay,this._locale].join("");return i=this._cachedNumberFormatters.get(o),i||(i=new Intl.NumberFormat(this._locale,a),this._cachedNumberFormatters.set(o,i)),i.format(e).replace(" ",Ot)}formatNumber(e,n){return this._formatNumberWithGranularity(e,n)}formatInteger(e){return this._formatNumberWithGranularity(e,1)}formatPercent(e){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(e)}formatBytesToKiB(e,n=void 0){return this._formatNumberWithGranularity(e/1024,n)+`${Ot}KiB`}formatBytesToMiB(e,n=void 0){return this._formatNumberWithGranularity(e/1048576,n)+`${Ot}MiB`}formatBytes(e,n=1){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(e,n=.1){return e>=1048576?this.formatBytesToMiB(e,n):e>=1024?this.formatBytesToKiB(e,n):this._formatNumberWithGranularity(e,n,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(e,n=void 0){return this._formatNumberWithGranularity(e,n,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(e,n=void 0){return this._formatNumberWithGranularity(e/1e3,n,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(e){let n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},a;try{a=new Intl.DateTimeFormat(this._locale,n)}catch{n.timeZone="UTC",a=new Intl.DateTimeFormat(this._locale,n)}return a.format(new Date(e))}formatDuration(e){let n=e/1e3;if(Math.round(n)===0)return"None";let a=[],i={day:60*60*24,hour:60*60,minute:60,second:1};return Object.keys(i).forEach(o=>{let r=i[o],s=Math.floor(n/r);if(s>0){n-=s*r;let p=this._formatNumberWithGranularity(s,1,{style:"unit",unit:o,unitDisplay:"narrow"});a.push(p)}}),a.join(" ")}};var Bt={navigationDescription:"Page load",timespanDescription:"User interactions",snapshotDescription:"Captured state of page",navigationLongDescription:"Navigation reports analyze a single page load, exactly like the original Lighthouse reports.",timespanLongDescription:"Timespan reports analyze an arbitrary period of time, typically containing user interactions.",snapshotLongDescription:"Snapshot reports analyze the page in a particular state, typically after user interactions.",navigationReport:"Navigation report",timespanReport:"Timespan report",snapshotReport:"Snapshot report",summary:"Summary",allReports:"All Reports",title:"Lighthouse User Flow Report",categories:"Categories",categoryPerformance:"Performance",categoryAccessibility:"Accessibility",categoryBestPractices:"Best Practices",categorySeo:"SEO",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
4
4
  =1 {{numNavigation} navigation report}
5
5
  other {{numNavigation} navigation reports}
6
6
  }`,timespanReportCount:`{numTimespan, plural,
@@ -85,7 +85,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
85
85
  .lh-3p-filter-input:disabled + .lh-3p-ui-string {
86
86
  text-decoration: line-through;
87
87
  }
88
- `),e.append(n);let a=t.createElement("div","lh-3p-filter"),i=t.createElement("label","lh-3p-filter-label"),o=t.createElement("input","lh-3p-filter-input");o.setAttribute("type","checkbox"),o.setAttribute("checked","");let r=t.createElement("span","lh-3p-ui-string");r.append("Show 3rd party resources");let s=t.createElement("span","lh-3p-filter-count");return i.append(" ",o," ",r," (",s,") "),a.append(" ",i," "),e.append(a),e}function so(t){let e=t.createFragment(),n=t.createElement("div","lh-audit"),a=t.createElement("details","lh-expandable-details"),i=t.createElement("summary"),o=t.createElement("div","lh-audit__header lh-expandable-details__summary"),r=t.createElement("span","lh-audit__score-icon"),s=t.createElement("span","lh-audit__title-and-text"),p=t.createElement("span","lh-audit__title"),c=t.createElement("span","lh-audit__display-text");s.append(" ",p," ",c," ");let l=t.createElement("div","lh-chevron-container");o.append(" ",r," ",s," ",l," "),i.append(" ",o," ");let d=t.createElement("div","lh-audit__description"),m=t.createElement("div","lh-audit__stackpacks");return a.append(" ",i," ",d," ",m," "),n.append(" ",a," "),e.append(n),e}function lo(t){let e=t.createFragment(),n=t.createElement("div","lh-category-header"),a=t.createElement("div","lh-score__gauge");a.setAttribute("role","heading"),a.setAttribute("aria-level","2");let i=t.createElement("div","lh-category-header__description");return n.append(" ",a," ",i," "),e.append(n),e}function po(t){let e=t.createFragment(),n=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-chevron");n.setAttribute("viewBox","0 0 100 100");let a=t.createElementNS("http://www.w3.org/2000/svg","g","lh-chevron__lines"),i=t.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-left");i.setAttribute("d","M10 50h40");let o=t.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-right");return o.setAttribute("d","M90 50H50"),a.append(" ",i," ",o," "),n.append(" ",a," "),e.append(n),e}function uo(t){let e=t.createFragment(),n=t.createElement("div","lh-audit-group"),a=t.createElement("details","lh-clump"),i=t.createElement("summary"),o=t.createElement("div","lh-audit-group__summary"),r=t.createElement("div","lh-audit-group__header"),s=t.createElement("span","lh-audit-group__title"),p=t.createElement("span","lh-audit-group__itemcount");r.append(" ",s," ",p," "," "," ");let c=t.createElement("div","lh-clump-toggle"),l=t.createElement("span","lh-clump-toggletext--show"),d=t.createElement("span","lh-clump-toggletext--hide");return c.append(" ",l," ",d," "),o.append(" ",r," ",c," "),i.append(" ",o," "),a.append(" ",i," "),n.append(" "," ",a," "),e.append(n),e}function co(t){let e=t.createFragment(),n=t.createElement("div","lh-crc-container"),a=t.createElement("style");a.append(`
88
+ `),e.append(n);let a=t.createElement("div","lh-3p-filter"),i=t.createElement("label","lh-3p-filter-label"),o=t.createElement("input","lh-3p-filter-input");o.setAttribute("type","checkbox"),o.setAttribute("checked","");let r=t.createElement("span","lh-3p-ui-string");r.append("Show 3rd party resources");let s=t.createElement("span","lh-3p-filter-count");return i.append(" ",o," ",r," (",s,") "),a.append(" ",i," "),e.append(a),e}function so(t){let e=t.createFragment(),n=t.createElement("div","lh-audit"),a=t.createElement("details","lh-expandable-details"),i=t.createElement("summary"),o=t.createElement("div","lh-audit__header lh-expandable-details__summary"),r=t.createElement("span","lh-audit__score-icon"),s=t.createElement("span","lh-audit__title-and-text"),p=t.createElement("span","lh-audit__title"),c=t.createElement("span","lh-audit__display-text");s.append(" ",p," ",c," ");let l=t.createElement("div","lh-chevron-container");o.append(" ",r," ",s," ",l," "),i.append(" ",o," ");let m=t.createElement("div","lh-audit__description"),d=t.createElement("div","lh-audit__stackpacks");return a.append(" ",i," ",m," ",d," "),n.append(" ",a," "),e.append(n),e}function lo(t){let e=t.createFragment(),n=t.createElement("div","lh-category-header"),a=t.createElement("div","lh-score__gauge");a.setAttribute("role","heading"),a.setAttribute("aria-level","2");let i=t.createElement("div","lh-category-header__description");return n.append(" ",a," ",i," "),e.append(n),e}function po(t){let e=t.createFragment(),n=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-chevron");n.setAttribute("viewBox","0 0 100 100");let a=t.createElementNS("http://www.w3.org/2000/svg","g","lh-chevron__lines"),i=t.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-left");i.setAttribute("d","M10 50h40");let o=t.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-right");return o.setAttribute("d","M90 50H50"),a.append(" ",i," ",o," "),n.append(" ",a," "),e.append(n),e}function uo(t){let e=t.createFragment(),n=t.createElement("div","lh-audit-group"),a=t.createElement("details","lh-clump"),i=t.createElement("summary"),o=t.createElement("div","lh-audit-group__summary"),r=t.createElement("div","lh-audit-group__header"),s=t.createElement("span","lh-audit-group__title"),p=t.createElement("span","lh-audit-group__itemcount");r.append(" ",s," ",p," "," "," ");let c=t.createElement("div","lh-clump-toggle"),l=t.createElement("span","lh-clump-toggletext--show"),m=t.createElement("span","lh-clump-toggletext--hide");return c.append(" ",l," ",m," "),o.append(" ",r," ",c," "),i.append(" ",o," "),a.append(" ",i," "),n.append(" "," ",a," "),e.append(n),e}function co(t){let e=t.createFragment(),n=t.createElement("div","lh-crc-container"),a=t.createElement("style");a.append(`
89
89
  .lh-crc .lh-tree-marker {
90
90
  width: 12px;
91
91
  height: 26px;
@@ -137,7 +137,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
137
137
  .lh-crc__summary-value {
138
138
  margin-bottom: 10px;
139
139
  }
140
- `);let i=t.createElement("div"),o=t.createElement("div","lh-crc__summary-value"),r=t.createElement("span","lh-crc__longest_duration_label"),s=t.createElement("b","lh-crc__longest_duration");o.append(" ",r," ",s," "),i.append(" ",o," ");let p=t.createElement("div","lh-crc"),c=t.createElement("div","lh-crc-initial-nav");return p.append(" ",c," "," "),n.append(" ",a," ",i," ",p," "),e.append(n),e}function mo(t){let e=t.createFragment(),n=t.createElement("div","lh-crc-node"),a=t.createElement("span","lh-crc-node__tree-marker"),i=t.createElement("span","lh-crc-node__tree-value");return n.append(" ",a," ",i," "),e.append(n),e}function ho(t){let e=t.createFragment(),n=t.createElement("div","lh-element-screenshot"),a=t.createElement("div","lh-element-screenshot__content"),i=t.createElement("div","lh-element-screenshot__image"),o=t.createElement("div","lh-element-screenshot__mask"),r=t.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("height","0"),r.setAttribute("width","0");let s=t.createElementNS("http://www.w3.org/2000/svg","defs"),p=t.createElementNS("http://www.w3.org/2000/svg","clipPath");p.setAttribute("clipPathUnits","objectBoundingBox"),s.append(" ",p," "," "),r.append(" ",s," "),o.append(" ",r," ");let c=t.createElement("div","lh-element-screenshot__element-marker");return i.append(" ",o," ",c," "),a.append(" ",i," "),n.append(" ",a," "),e.append(n),e}function go(t){let e=t.createFragment(),n=t.createElement("div","lh-exp-gauge-component"),a=t.createElement("div","lh-exp-gauge__wrapper");a.setAttribute("target","_blank");let i=t.createElement("div","lh-exp-gauge__svg-wrapper"),o=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-exp-gauge"),r=t.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__inner"),s=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__bg"),p=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__base lh-exp-gauge--faded"),c=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__arc"),l=t.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__percentage");r.append(" ",s," ",p," ",c," ",l," ");let d=t.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__outer"),m=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-cover");d.append(" ",m," ");let h=t.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__label");return h.setAttribute("text-anchor","middle"),h.setAttribute("x","0"),h.setAttribute("y","60"),o.append(" ",r," ",d," ",h," "),i.append(" ",o," "),a.append(" ",i," "),n.append(" ",a," "),e.append(n),e}function fo(t){let e=t.createFragment(),n=t.createElement("style");n.append(`
140
+ `);let i=t.createElement("div"),o=t.createElement("div","lh-crc__summary-value"),r=t.createElement("span","lh-crc__longest_duration_label"),s=t.createElement("b","lh-crc__longest_duration");o.append(" ",r," ",s," "),i.append(" ",o," ");let p=t.createElement("div","lh-crc"),c=t.createElement("div","lh-crc-initial-nav");return p.append(" ",c," "," "),n.append(" ",a," ",i," ",p," "),e.append(n),e}function mo(t){let e=t.createFragment(),n=t.createElement("div","lh-crc-node"),a=t.createElement("span","lh-crc-node__tree-marker"),i=t.createElement("span","lh-crc-node__tree-value");return n.append(" ",a," ",i," "),e.append(n),e}function ho(t){let e=t.createFragment(),n=t.createElement("div","lh-element-screenshot"),a=t.createElement("div","lh-element-screenshot__content"),i=t.createElement("div","lh-element-screenshot__image"),o=t.createElement("div","lh-element-screenshot__mask"),r=t.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("height","0"),r.setAttribute("width","0");let s=t.createElementNS("http://www.w3.org/2000/svg","defs"),p=t.createElementNS("http://www.w3.org/2000/svg","clipPath");p.setAttribute("clipPathUnits","objectBoundingBox"),s.append(" ",p," "," "),r.append(" ",s," "),o.append(" ",r," ");let c=t.createElement("div","lh-element-screenshot__element-marker");return i.append(" ",o," ",c," "),a.append(" ",i," "),n.append(" ",a," "),e.append(n),e}function go(t){let e=t.createFragment(),n=t.createElement("div","lh-exp-gauge-component"),a=t.createElement("div","lh-exp-gauge__wrapper");a.setAttribute("target","_blank");let i=t.createElement("div","lh-exp-gauge__svg-wrapper"),o=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-exp-gauge"),r=t.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__inner"),s=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__bg"),p=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__base lh-exp-gauge--faded"),c=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__arc"),l=t.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__percentage");r.append(" ",s," ",p," ",c," ",l," ");let m=t.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__outer"),d=t.createElementNS("http://www.w3.org/2000/svg","circle","lh-cover");m.append(" ",d," ");let h=t.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__label");return h.setAttribute("text-anchor","middle"),h.setAttribute("x","0"),h.setAttribute("y","60"),o.append(" ",r," ",m," ",h," "),i.append(" ",o," "),a.append(" ",i," "),n.append(" ",a," "),e.append(n),e}function fo(t){let e=t.createFragment(),n=t.createElement("style");n.append(`
141
141
  .lh-footer {
142
142
  padding: var(--footer-padding-vertical) calc(var(--default-padding) * 2);
143
143
  max-width: var(--report-content-max-width);
@@ -743,14 +743,6 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
743
743
  color: var(--report-text-color);
744
744
  }
745
745
 
746
- .lh-root :focus-visible {
747
- outline: -webkit-focus-ring-color auto 3px;
748
- }
749
- .lh-root summary:focus {
750
- outline: none;
751
- box-shadow: 0 0 0 1px hsl(217, 89%, 61%);
752
- }
753
-
754
746
  .lh-root [hidden] {
755
747
  display: none !important;
756
748
  }
@@ -805,7 +797,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
805
797
  color: var(--link-color);
806
798
  }
807
799
 
808
- .lh-audit__description, .lh-audit__stackpack {
800
+ .lh-audit__description, .lh-audit__stackpack, .lh-list-section__description {
809
801
  --inner-audit-padding-right: var(--stackpack-padding-horizontal);
810
802
  padding-left: var(--audit-description-padding-left);
811
803
  padding-right: var(--inner-audit-padding-right);
@@ -1522,6 +1514,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1522
1514
  margin-bottom: calc(var(--default-padding) * 2);
1523
1515
  border-bottom: 1px solid #A8C7FA;
1524
1516
  }
1517
+ .lh-list-section {
1518
+ padding: calc(var(--default-padding) * 2) 0;
1519
+ }
1520
+ .lh-list-section__title {
1521
+ text-decoration: underline;
1522
+ }
1525
1523
 
1526
1524
  .lh-header-container {
1527
1525
  display: block;
@@ -1964,6 +1962,10 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1964
1962
  .lh-categories {
1965
1963
  margin-top: 0;
1966
1964
  }
1965
+ .lh-buttons, .lh-highlighter {
1966
+ /* hide stickyheader marker when printing. crbug.com/41486992 */
1967
+ display: none;
1968
+ }
1967
1969
  }
1968
1970
 
1969
1971
  .lh-table {
@@ -2837,7 +2839,7 @@ details[open] .lh-clump-toggletext--hide { display: block;}
2837
2839
  }
2838
2840
  .lh-tool-locale__button.lh-active + .lh-tools-locale__selector-wrapper {
2839
2841
  opacity: 1;
2840
- clip: rect(-1px, 194px, 242px, -3px);
2842
+ clip: rect(-1px, 255px, 242px, -3px);
2841
2843
  visibility: visible;
2842
2844
  margin: 0 4px;
2843
2845
  }
@@ -2871,8 +2873,8 @@ details[open] .lh-clump-toggletext--hide { display: block;}
2871
2873
  display: none;
2872
2874
  }
2873
2875
  }
2874
- `),e.append(n);let a=t.createElement("div","lh-topbar"),i=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=t.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=t.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=t.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=t.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let c=t.createElement("div","lh-tools"),l=t.createElement("div","lh-tools-locale lh-hidden"),d=t.createElement("button","lh-button lh-tool-locale__button");d.setAttribute("id","lh-button__swap-locales"),d.setAttribute("title","Show Language Picker"),d.setAttribute("aria-label","Toggle language picker"),d.setAttribute("aria-haspopup","menu"),d.setAttribute("aria-expanded","false"),d.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let m=t.createElementNS("http://www.w3.org/2000/svg","svg");m.setAttribute("width","20px"),m.setAttribute("height","20px"),m.setAttribute("viewBox","0 0 24 24"),m.setAttribute("fill","currentColor");let h=t.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let f=t.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("d","M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),m.append(h,f),d.append(" ",m," ");let C=t.createElement("div","lh-tools-locale__selector-wrapper");C.setAttribute("id","lh-tools-locale__selector-wrapper"),C.setAttribute("role","menu"),C.setAttribute("aria-labelledby","lh-button__swap-locales"),C.setAttribute("aria-hidden","true"),C.append(" "," "),l.append(" ",d," ",C," ");let g=t.createElement("button","lh-tools__button");g.setAttribute("id","lh-tools-button"),g.setAttribute("title","Tools menu"),g.setAttribute("aria-label","Toggle report tools menu"),g.setAttribute("aria-haspopup","menu"),g.setAttribute("aria-expanded","false"),g.setAttribute("aria-controls","lh-tools-dropdown");let _=t.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.setAttribute("viewBox","0 0 24 24");let v=t.createElementNS("http://www.w3.org/2000/svg","path");v.setAttribute("d","M0 0h24v24H0z"),v.setAttribute("fill","none");let y=t.createElementNS("http://www.w3.org/2000/svg","path");y.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),_.append(" ",v," ",y," "),g.append(" ",_," ");let w=t.createElement("div","lh-tools__dropdown");w.setAttribute("id","lh-tools-dropdown"),w.setAttribute("role","menu"),w.setAttribute("aria-labelledby","lh-tools-button");let P=t.createElement("a","lh-report-icon lh-report-icon--print");P.setAttribute("role","menuitem"),P.setAttribute("tabindex","-1"),P.setAttribute("href","#"),P.setAttribute("data-i18n","dropdownPrintSummary"),P.setAttribute("data-action","print-summary");let L=t.createElement("a","lh-report-icon lh-report-icon--print");L.setAttribute("role","menuitem"),L.setAttribute("tabindex","-1"),L.setAttribute("href","#"),L.setAttribute("data-i18n","dropdownPrintExpanded"),L.setAttribute("data-action","print-expanded");let R=t.createElement("a","lh-report-icon lh-report-icon--copy");R.setAttribute("role","menuitem"),R.setAttribute("tabindex","-1"),R.setAttribute("href","#"),R.setAttribute("data-i18n","dropdownCopyJSON"),R.setAttribute("data-action","copy");let M=t.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");M.setAttribute("role","menuitem"),M.setAttribute("tabindex","-1"),M.setAttribute("href","#"),M.setAttribute("data-i18n","dropdownSaveHTML"),M.setAttribute("data-action","save-html");let G=t.createElement("a","lh-report-icon lh-report-icon--download");G.setAttribute("role","menuitem"),G.setAttribute("tabindex","-1"),G.setAttribute("href","#"),G.setAttribute("data-i18n","dropdownSaveJSON"),G.setAttribute("data-action","save-json");let Z=t.createElement("a","lh-report-icon lh-report-icon--open");Z.setAttribute("role","menuitem"),Z.setAttribute("tabindex","-1"),Z.setAttribute("href","#"),Z.setAttribute("data-i18n","dropdownViewer"),Z.setAttribute("data-action","open-viewer");let K=t.createElement("a","lh-report-icon lh-report-icon--open");K.setAttribute("role","menuitem"),K.setAttribute("tabindex","-1"),K.setAttribute("href","#"),K.setAttribute("data-i18n","dropdownSaveGist"),K.setAttribute("data-action","save-gist");let q=t.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");q.setAttribute("role","menuitem"),q.setAttribute("tabindex","-1"),q.setAttribute("href","#"),q.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),q.setAttribute("data-action","view-unthrottled-trace");let X=t.createElement("a","lh-report-icon lh-report-icon--dark");return X.setAttribute("role","menuitem"),X.setAttribute("tabindex","-1"),X.setAttribute("href","#"),X.setAttribute("data-i18n","dropdownDarkTheme"),X.setAttribute("data-action","toggle-dark"),w.append(" ",P," ",L," ",R," "," ",M," ",G," ",Z," ",K," "," ",q," ",X," "),c.append(" ",l," ",g," ",w," "),a.append(" "," ",i," ",p," ",c," "),e.append(a),e}function Lo(t){let e=t.createFragment(),n=t.createElement("div","lh-warnings lh-warnings--toplevel"),a=t.createElement("p","lh-warnings__msg"),i=t.createElement("ul");return n.append(" ",a," ",i," "),e.append(n),e}function Sa(t,e){switch(e){case"3pFilter":return ro(t);case"audit":return so(t);case"categoryHeader":return lo(t);case"chevron":return po(t);case"clump":return uo(t);case"crc":return co(t);case"crcChain":return mo(t);case"elementScreenshot":return ho(t);case"explodeyGauge":return go(t);case"footer":return fo(t);case"fraction":return vo(t);case"gauge":return bo(t);case"heading":return yo(t);case"metric":return _o(t);case"scorescale":return Co(t);case"scoresWrapper":return wo(t);case"snippet":return xo(t);case"snippetContent":return So(t);case"snippetHeader":return ko(t);case"snippetLine":return Po(t);case"styles":return Ao(t);case"topbar":return Eo(t);case"warningsToplevel":return Lo(t)}throw new Error("unexpected component: "+e)}var re=class{constructor(e,n){this._document=e,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n,this._swappableSections=new WeakMap}createElement(e,n){let a=this._document.createElement(e);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(e,n,a){let i=this._document.createElementNS(e,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(e,n){return this._document.createElementNS("http://www.w3.org/2000/svg",e,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(e){return this._document.createTextNode(e)}createChildOf(e,n,a){let i=this.createElement(n,a);return e.append(i),i}createComponent(e){let n=this._componentCache.get(e);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Sa(this,e),this._componentCache.set(e,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(e,n={}){let a=this.createElement("span");for(let i of U.splitMarkdownLink(e)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(e,n){if(n=n||"",n.startsWith("#")){e.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)&&(e.href=i.href)}safelySetBlobHref(e,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);e.href=a}convertMarkdownCodeSnippets(e){let n=this.createElement("span");for(let a of U.splitMarkdownCodeSpans(e))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(e){this._lighthouseChannel=e}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(e,n=this.rootEl??this._document){let a=this.maybeFind(e,n);if(a===null)throw new Error(`query ${e} not found`);return a}maybeFind(e,n=this.rootEl??this._document){return n.querySelector(e)}findAll(e,n){return Array.from(n.querySelectorAll(e))}fireEventOn(e,n=this._document,a){let i=new CustomEvent(e,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(e,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,e),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}registerSwappableSections(e,n){this._swappableSections.set(e,n),this._swappableSections.set(n,e)}swapSectionIfPossible(e){let n=this._swappableSections.get(e);if(!n)return;let a=e.parentNode;if(!a)return;let i=e.querySelectorAll("style");n.append(...i),a.insertBefore(n,e),e.remove()}};var se=class{constructor(e,n){this.dom=e,this.detailsRenderer=n}get _clumpTitles(){return{warning:b.strings.warningAuditsGroupTitle,manual:b.strings.manualAuditsGroupTitle,passed:b.strings.passedAuditsGroupTitle,notApplicable:b.strings.notApplicableAuditsGroupTitle}}renderAudit(e){let n=b.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=e.result.id;let o=e.result.scoreDisplayMode;e.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=e.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(e.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(e.result.description));for(let m of e.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${m.result.title}`,h.textContent=m.acronym||m.id}e.stackPacks&&e.stackPacks.forEach(m=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");h.src=m.iconDataURL,h.alt=m.title;let f=this.dom.convertMarkdownLinkSnippets(m.description,{alwaysAppendUtmSource:!0}),C=this.dom.createElement("div","lh-audit__stackpack");C.append(h,f),this.dom.find(".lh-audit__stackpacks",i).append(C)});let p=this.dom.find("details",i);if(e.result.details){let m=this.detailsRenderer.render(e.result.details);m&&(m.classList.add("lh-details"),p.append(m))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,e.result.score,o),e.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let m=this.dom.find(".lh-audit__display-text",i);m.textContent=n.errorLabel,m.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(m,"div","lh-tooltip lh-tooltip--error");h.textContent=e.result.errorMessage||n.errorMissingAuditInfo}else if(e.result.explanation){let m=this.dom.createChildOf(r,"div","lh-audit-explanation");m.textContent=e.result.explanation}let c=e.result.warnings;if(!c||c.length===0)return i;let l=this.dom.find("summary",p),d=this.dom.createChildOf(l,"div","lh-warnings");if(this.dom.createChildOf(d,"span").textContent=n.warningHeader,c.length===1)d.append(this.dom.createTextNode(c.join("")));else{let m=this.dom.createChildOf(d,"ul");for(let h of c){let f=this.dom.createChildOf(m,"li");f.textContent=h}}return i}injectFinalScreenshot(e,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;o.src=r,o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",e),p=this.dom.createElement("div","lh-category-headercol"),c=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),l=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),l.append(o),s.append(p,c,l),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let e=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",e)}_setRatingClass(e,n,a){let i=A.calculateRating(n,a);return e.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&e.classList.add(`lh-audit--${i}`),e}renderCategoryHeader(e,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(e,n,a);if(o.append(r),e.description){let s=this.dom.convertMarkdownLinkSnippets(e.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(e){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=e.title,n.append(a);let i=null;return e.description&&(i=this.dom.convertMarkdownLinkSnippets(e.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(e,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of e){let s=r.group||i,p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let d of s)o.push(this.renderAudit(d));continue}let p=n[r],[c,l]=this.renderAuditGroup(p);for(let d of s)c.insertBefore(this.renderAudit(d),l);c.classList.add(`lh-audit-group--${r}`),o.push(c)}return o}renderUnexpandableClump(e,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(e,n).forEach(o=>a.append(o)),a}renderClump(e,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[e];this.dom.find(".lh-audit-group__title",s).textContent=p;let c=this.dom.find(".lh-audit-group__itemcount",r);c.textContent=`(${n.length})`;let l=n.map(m=>m instanceof HTMLElement?m:this.renderAudit(m));r.append(...l);let d=this.dom.find(".lh-audit-group",o);if(a){let m=this.dom.convertMarkdownLinkSnippets(a);m.classList.add("lh-audit-group__description","lh-audit-group__footer"),d.append(m)}return this.dom.find(".lh-clump-toggletext--show",d).textContent=b.strings.show,this.dom.find(".lh-clump-toggletext--hide",d).textContent=b.strings.hide,r.classList.add(`lh-clump--${e.toLowerCase()}`),d}renderCategoryScore(e,n,a){let i;if(a&&A.shouldDisplayAsFraction(a.gatherMode)?i=this.renderCategoryFraction(e):i=this.renderScoreGauge(e,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(e,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);A.isPluginCategory(e.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(e.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),c=this.dom.find("div.lh-gauge__percentage",a);return c.textContent=p.toString(),e.score===null&&(c.classList.add("lh-gauge--error"),c.textContent="",c.title=b.strings.errorLabel),e.auditRefs.length===0||this.hasApplicableAudits(e)?i.classList.add(`lh-gauge__wrapper--${A.calculateRating(e.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),c.textContent="-",c.title=b.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=e.title,a}renderCategoryFraction(e){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=A.calculateCategoryFraction(e),s=i/o,p=this.dom.find(".lh-fraction__content",n),c=this.dom.createElement("span");c.textContent=`${i}/${o}`,p.append(c);let l=A.calculateRating(s);return r===0&&(l="null"),a.classList.add(`lh-fraction__wrapper--${l}`),this.dom.find(".lh-fraction__label",n).textContent=e.title,n}hasApplicableAudits(e){return e.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(e,n){let a=2*Math.PI*Number(e.getAttribute("r")),i=Number(e.getAttribute("stroke-width")),o=.25*i/a;e.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(e.style.opacity="0"),n===1&&(r=a),e.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(e){return!!e.result.warnings?.length}_getClumpIdForAuditRef(e){let n=e.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:A.showAsPassed(e.result)?this._auditHasWarning(e)?"warning":"passed":"failed"}render(e,n={},a){let i=this.dom.createElement("div","lh-category");i.id=e.id,i.append(this.renderCategoryHeader(e,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of e.auditRefs){if(s.group==="hidden")continue;let p=this._getClumpIdForAuditRef(s),c=o.get(p);c.push(s),o.set(p,c)}for(let s of o.values())s.sort((p,c)=>c.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let m=this.renderUnexpandableClump(p,n);m.classList.add("lh-clump--failed"),i.append(m);continue}let c=s==="manual"?e.manualDescription:void 0,l=s==="warning"||s==="manual"&&r===0,d=this.renderClump(s,{auditRefsOrEls:p,description:c,openByDefault:l});i.append(d)}return i}};var ze=class{static createSegment(e,n,a,i){let o=e[n],r=Object.keys(e),s=r.indexOf(n)===r.length-1,p=!!o.children&&Object.keys(o.children).length>0,c=Array.isArray(a)?a.slice(0):[];return typeof i<"u"&&c.push(!i),{node:o,isLastChild:s,hasChildren:p,treeMarkers:c}}static createChainNode(e,n,a){let i=e.createComponent("crcChain"),o,r,s,p,c;"request"in n.node?(r=n.node.request.transferSize,s=n.node.request.url,o=(n.node.request.endTime-n.node.request.startTime)*1e3,p=!1):(r=n.node.transferSize,s=n.node.url,o=n.node.navStartToEndTime,p=!0,c=n.node.isLongest);let l=e.find(".lh-crc-node",i);l.setAttribute("title",s),c&&l.classList.add("lh-crc-node__longest");let d=e.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(g=>{let _=g?"lh-tree-marker lh-vert":"lh-tree-marker";d.append(e.createElement("span",_),e.createElement("span","lh-tree-marker"))});let m=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",h=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";d.append(e.createElement("span",m),e.createElement("span","lh-tree-marker lh-right"),e.createElement("span",h));let f=a.renderTextURL(s),C=e.find(".lh-crc-node__tree-value",i);if(C.append(f),!n.hasChildren||p){let g=e.createElement("span","lh-crc-node__chain-duration");g.textContent=" - "+b.i18n.formatMilliseconds(o)+", ";let _=e.createElement("span","lh-crc-node__chain-size");_.textContent=b.i18n.formatBytesToKiB(r,.01),C.append(g,_)}return i}static buildTree(e,n,a,i){if(a.append(De.createChainNode(e,n,i)),n.node.children)for(let o of Object.keys(n.node.children)){let r=De.createSegment(n.node.children,o,n.treeMarkers,n.isLastChild);De.buildTree(e,r,a,i)}}static render(e,n,a){let i=e.createComponent("crc"),o=e.find(".lh-crc",i);e.find(".lh-crc-initial-nav",i).textContent=b.strings.crcInitialNavigation,e.find(".lh-crc__longest_duration_label",i).textContent=b.strings.crcLongestDurationLabel,e.find(".lh-crc__longest_duration",i).textContent=b.i18n.formatMilliseconds(n.longestChain.duration);let r=n.chains;for(let s of Object.keys(r)){let p=De.createSegment(r,s);De.buildTree(e,p,o,a)}return e.find(".lh-crc-container",i)}},De=ze;function To(t,e){return e.left<=t.width&&0<=e.right&&e.top<=t.height&&0<=e.bottom}function ka(t,e,n){return t<e?e:t>n?n:t}function Uo(t){return{x:t.left+t.width/2,y:t.top+t.height/2}}var le=class t{static getScreenshotPositions(e,n,a){let i=Uo(e),o=ka(i.x-n.width/2,0,a.width-n.width),r=ka(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:e.left-o,top:e.top-r}}}static renderClipPathInScreenshot(e,n,a,i,o){let r=e.find("clipPath",n),s=`clip-${b.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,c=p+i.height/o.height,l=a.left/o.width,d=l+i.width/o.width,m=[`0,0 1,0 1,${p} 0,${p}`,`0,${c} 1,${c} 1,1 0,1`,`0,${p} ${l},${p} ${l},${c} 0,${c}`,`${d},${p} 1,${p} 1,${c} ${d},${c}`];for(let h of m){let f=e.createElementNS("http://www.w3.org/2000/svg","polygon");f.setAttribute("points",h),r.append(f)}}static installFullPageScreenshot(e,n){e.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(e){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=e,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let c=p.closest(".lh-node > .lh-element-screenshot");if(!c)return;let l=n.createElement("div","lh-element-screenshot__overlay");i.append(l);let d={width:l.clientWidth*.95,height:l.clientHeight*.8},m={width:Number(c.dataset.rectWidth),height:Number(c.dataset.rectHeight),left:Number(c.dataset.rectLeft),right:Number(c.dataset.rectLeft)+Number(c.dataset.rectWidth),top:Number(c.dataset.rectTop),bottom:Number(c.dataset.rectTop)+Number(c.dataset.rectHeight)},h=t.render(n,o.screenshot,m,d);if(!h){l.remove();return}l.append(h),l.addEventListener("click",()=>l.remove())}))}static _computeZoomFactor(e,n){let i={x:n.width/e.width,y:n.height/e.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(e,n,a,i){if(!To(n,a))return null;let o=e.createComponent("elementScreenshot"),r=e.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let c={width:p.width*s,height:p.height*s},l=t.getScreenshotPositions(a,p,{width:n.width,height:n.height}),d=e.find("div.lh-element-screenshot__image",r);d.style.width=c.width+"px",d.style.height=c.height+"px",d.style.backgroundPositionY=-(l.screenshot.top*s)+"px",d.style.backgroundPositionX=-(l.screenshot.left*s)+"px",d.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let m=e.find("div.lh-element-screenshot__element-marker",r);m.style.width=a.width*s+"px",m.style.height=a.height*s+"px",m.style.left=l.clip.left*s+"px",m.style.top=l.clip.top*s+"px";let h=e.find("div.lh-element-screenshot__mask",r);return h.style.width=c.width+"px",h.style.height=c.height+"px",t.renderClipPathInScreenshot(e,h,l.clip,a,p),r}};var Io=["http://","https://","data:"],Ro=["bytes","numeric","ms","timespanMs"],_e=class{constructor(e,n={}){this._dom=e,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(e){switch(e.type){case"filmstrip":return this._renderFilmstrip(e);case"list":return this._renderList(e);case"checklist":return this._renderChecklist(e);case"table":case"opportunity":return this._renderTable(e);case"network-tree":case"criticalrequestchain":return ze.render(this._dom,e,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(e.type,e)}}_renderBytes(e){let n=b.i18n.formatBytesToKiB(e.value,e.granularity||.1),a=this._renderText(n);return a.title=b.i18n.formatBytes(e.value),a}_renderMilliseconds(e){let n;return e.displayUnit==="duration"?n=b.i18n.formatDuration(e.value):n=b.i18n.formatMilliseconds(e.value,e.granularity||10),this._renderText(n)}renderTextURL(e){let n=e,a,i,o;try{let s=U.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._renderLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(e){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,e.url),!n.href){let a=this._renderText(e.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=e.text,n.classList.add("lh-link"),n}_renderText(e){let n=this._dom.createElement("div","lh-text");return n.textContent=e,n}_renderNumeric(e){let n=b.i18n.formatNumber(e.value,e.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(e){let n=this._dom.createElement("img","lh-thumbnail"),a=e;return n.src=a,n.title=a,n.alt="",n}_renderUnknown(e,n){console.error(`Unknown details type: ${e}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${e}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(e,n){if(e==null)return null;if(typeof e=="object")switch(e.type){case"code":return this._renderCode(e.value);case"link":return this._renderLink(e);case"node":return this.renderNode(e);case"numeric":return this._renderNumeric(e);case"text":return this._renderText(e.value);case"source-location":return this.renderSourceLocation(e);case"url":return this.renderTextURL(e.value);default:return this._renderUnknown(e.type,e)}switch(n.valueType){case"bytes":{let a=Number(e);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(e);return this._renderCode(a)}case"ms":{let a={value:Number(e),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(e);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(e);return this._renderText(a)}case"thumbnail":{let a=String(e);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(e);return this._renderMilliseconds({value:a})}case"url":{let a=String(e);return Io.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,e)}}_getDerivedSubItemsHeading(e){return e.subItemsHeading?{key:e.subItemsHeading.key||"",valueType:e.subItemsHeading.valueType||e.valueType,granularity:e.subItemsHeading.granularity||e.granularity,displayUnit:e.subItemsHeading.displayUnit||e.displayUnit,label:""}:null}_renderTableRow(e,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=e[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(e,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(e,n)),!e.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of e.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(e){let n=e.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",e);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=b.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");o.href=a.homepage,o.target="_blank",o.title=b.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o)}}_renderEntityGroupRow(e,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(e,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(e){let{items:n,headings:a,sortedBy:i}=e;if(!n.length||e.isEntityGrouped||!n.some(l=>l.entity))return[];let o=new Set(e.skipSumming||[]),r=[];for(let l of a)!l.key||o.has(l.key)||Ro.includes(l.valueType)&&r.push(l.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let l of n){let d=typeof l.entity=="string"?l.entity:void 0,m=p.get(d)||{[s]:d||b.strings.unattributable,entity:d};for(let h of r)m[h]=Number(m[h]||0)+Number(l[h]||0);p.set(d,m)}let c=[...p.values()];return i&&c.sort(A.getTableItemSortComparator(i)),c}_renderTable(e){if(!e.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of e.headings){let c=`lh-table-column--${s.valueType||"text"}`,l=this._dom.createElement("div","lh-text");l.textContent=s.label,this._dom.createChildOf(i,"th",c).append(l)}let o=this._getEntityGroupItems(e),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,c=this._renderEntityGroupRow(s,e.headings);for(let d of e.items.filter(m=>m.entity===p))c.append(this._renderTableRowsFromItem(d,e.headings));let l=this._dom.findAll("tr",c);p&&l.length&&(l.forEach(d=>d.dataset.entity=p),this._adornEntityGroupRow(l[0])),r.append(c)}else{let s=!0;for(let p of e.items){let c=this._renderTableRowsFromItem(p,e.headings),l=this._dom.findAll("tr",c),d=l[0];if(typeof p.entity=="string"&&(d.dataset.entity=p.entity),e.isEntityGrouped&&p.entity)d.classList.add("lh-row--group"),this._adornEntityGroupRow(d);else for(let m of l)m.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(c)}}return n}_renderList(e){let n=this._dom.createElement("div","lh-list");return e.items.forEach(a=>{if(a.type==="node"){n.append(this.renderNode(a));return}let i=this.render(a);i&&n.append(i)}),n}_renderChecklist(e){let n=this._dom.createElement("ul","lh-checklist");return Object.values(e.items).forEach(a=>{let i=this._dom.createChildOf(n,"li","lh-checklist-item"),o=a.value?"lh-report-plain-icon--checklist-pass":"lh-report-plain-icon--checklist-fail";this._dom.createChildOf(i,"span",`lh-report-plain-icon ${o}`).textContent=a.label}),n}renderNode(e){let n=this._dom.createElement("span","lh-node");if(e.nodeLabel){let r=this._dom.createElement("div");r.textContent=e.nodeLabel,n.append(r)}if(e.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=e.snippet,n.append(r)}if(e.selector&&(n.title=e.selector),e.path&&n.setAttribute("data-path",e.path),e.selector&&n.setAttribute("data-selector",e.selector),e.snippet&&n.setAttribute("data-snippet",e.snippet),!this._fullPageScreenshot)return n;let a=e.lhId&&this._fullPageScreenshot.nodes[e.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=le.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(e){if(!e.url)return null;let n=`${e.url}:${e.line+1}:${e.column}`,a;e.original&&(a=`${e.original.file||"<unmapped>"}:${e.original.line+1}:${e.original.column}`);let i;if(e.urlProvider==="network"&&a)i=this._renderLink({url:e.url,text:a}),i.title=`maps to generated location ${n}`;else if(e.urlProvider==="network"&&!a)i=this.renderTextURL(e.url),this._dom.find(".lh-link",i).textContent+=`:${e.line+1}:${e.column}`;else if(e.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(e.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",e.url),i.setAttribute("data-source-line",String(e.line)),i.setAttribute("data-source-column",String(e.column)),i}_renderFilmstrip(e){let n=this._dom.createElement("div","lh-filmstrip");for(let a of e.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");o.src=a.data,o.alt="Screenshot"}return n}_renderCode(e){let n=this._dom.createElement("pre","lh-code");return n.textContent=e,n}};function Pa(t){let e=t.createComponent("explodeyGauge");return t.find(".lh-exp-gauge-component",e)}function Aa(t,e,n){let a=t.find("div.lh-exp-gauge__wrapper",e);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${A.calculateRating(n.score)}`),Do(t,a,n)}function No(t,e,n){n=n||t/32;let a=t/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,c=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(e*r)),getMetricArcLength:(l,d=!1)=>{let m=d?0:2*c;return Math.max(0,Number(l*p-i-m))},endDiffInner:s,endDiffOuter:c,strokeWidth:n,strokeGap:i}}function Do(t,e,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:c,getArcLength:l,getMetricArcLength:d,endDiffInner:m,endDiffOuter:h,strokeWidth:f,strokeGap:C}=No(128,o),g=t.find("svg.lh-exp-gauge",e);t.find(".lh-exp-gauge__label",g).textContent=n.title,g.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),g.style.setProperty("--stroke-width",`${f}px`),g.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let _=t.find("g.lh-exp-gauge__outer",e),v=t.find("g.lh-exp-gauge__inner",e),y=t.find("circle.lh-cover",_),w=t.find("circle.lh-exp-gauge__arc",v),P=t.find("text.lh-exp-gauge__percentage",v);_.style.setProperty("--scale-initial",String(r/s)),_.style.setProperty("--radius",`${s}px`),y.style.setProperty("--radius",`${.5*(r+s)}px`),y.setAttribute("stroke-width",String(C)),g.style.setProperty("--radius",`${r}px`),w.setAttribute("stroke-dasharray",`${l()} ${(p-l()).toFixed(4)}`),w.setAttribute("stroke-dashoffset",String(.25*p-m)),P.textContent=Math.round(o*100).toString();let L=s+f,R=s-f,M=n.auditRefs.filter(E=>E.group==="metrics"&&E.weight),G=M.reduce((E,z)=>E+=z.weight,0),Z=.25*c-h-.5*C,K=-.5*Math.PI;_.querySelectorAll(".metric").forEach(E=>{M.map(V=>`metric--${V.id}`).find(V=>E.classList.contains(V))||E.remove()}),M.forEach((E,z)=>{let H=E.acronym??E.id,V=!_.querySelector(`.metric--${H}`),O=t.maybeFind(`g.metric--${H}`,_)||t.createSVGElement("g"),me=t.maybeFind(`.metric--${H} circle.lh-exp-gauge--faded`,_)||t.createSVGElement("circle"),we=t.maybeFind(`.metric--${H} circle.lh-exp-gauge--miniarc`,_)||t.createSVGElement("circle"),de=t.maybeFind(`.metric--${H} circle.lh-exp-gauge-hovertarget`,_)||t.createSVGElement("circle"),W=t.maybeFind(`.metric--${H} text.metric__label`,_)||t.createSVGElement("text"),Y=t.maybeFind(`.metric--${H} text.metric__value`,_)||t.createSVGElement("text");O.classList.add("metric",`metric--${H}`),me.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),we.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),de.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let he=E.weight/G,Jt=d(he),Zt=E.result.score?E.result.score*he:0,Kt=d(Zt),ti=he*c,Xt=d(he,!0),Yt=A.calculateRating(E.result.score,E.result.scoreDisplayMode);O.style.setProperty("--metric-rating",Yt),O.style.setProperty("--metric-color",`var(--color-${Yt})`),O.style.setProperty("--metric-offset",`${Z}`),O.style.setProperty("--i",z.toString()),me.setAttribute("stroke-dasharray",`${Jt} ${c-Jt}`),we.style.setProperty("--metric-array",`${Kt} ${c-Kt}`),de.setAttribute("stroke-dasharray",`${Xt} ${c-Xt-h}`),W.classList.add("metric__label"),Y.classList.add("metric__value"),W.textContent=H,Y.textContent=`+${Math.round(Zt*100)}`;let Qt=K+he*Math.PI,xe=Math.cos(Qt),Se=Math.sin(Qt);switch(!0){case xe>0:Y.setAttribute("text-anchor","end");break;case xe<0:W.setAttribute("text-anchor","end");break;case xe===0:W.setAttribute("text-anchor","middle"),Y.setAttribute("text-anchor","middle");break}switch(!0){case Se>0:W.setAttribute("dominant-baseline","hanging");break;case Se<0:Y.setAttribute("dominant-baseline","hanging");break;case Se===0:W.setAttribute("dominant-baseline","middle"),Y.setAttribute("dominant-baseline","middle");break}W.setAttribute("x",(L*xe).toFixed(2)),W.setAttribute("y",(L*Se).toFixed(2)),Y.setAttribute("x",(R*xe).toFixed(2)),Y.setAttribute("y",(R*Se).toFixed(2)),V&&(O.appendChild(me),O.appendChild(we),O.appendChild(de),O.appendChild(W),O.appendChild(Y),_.appendChild(O)),Z-=ti,K+=he*2*Math.PI});let q=_.querySelector(".lh-exp-gauge-underhovertarget")||t.createSVGElement("circle");q.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let X=d(1,!0);if(q.setAttribute("stroke-dasharray",`${X} ${c-X-h}`),q.isConnected||_.prepend(q),g.dataset.listenersSetup)return;g.dataset.listenersSetup=!0,ei(g),g.addEventListener("pointerover",E=>{if(E.target===g&&g.classList.contains("state--expanded")){g.classList.remove("state--expanded"),g.classList.contains("state--highlight")&&(g.classList.remove("state--highlight"),t.find(".metric--highlight",g).classList.remove("metric--highlight"));return}if(!(E.target instanceof Element))return;let z=E.target.parentNode;if(z instanceof SVGElement){if(z&&z===v){g.classList.contains("state--expanded")?g.classList.contains("state--highlight")&&(g.classList.remove("state--highlight"),t.find(".metric--highlight",g).classList.remove("metric--highlight")):g.classList.add("state--expanded");return}if(z&&z.classList&&z.classList.contains("metric")){let H=z.style.getPropertyValue("--metric-rating");if(e.style.setProperty("--color-highlight",`var(--color-${H}-secondary)`),!g.classList.contains("state--highlight"))g.classList.add("state--highlight"),z.classList.add("metric--highlight");else{let V=t.find(".metric--highlight",g);z!==V&&(V.classList.remove("metric--highlight"),z.classList.add("metric--highlight"))}}}}),g.addEventListener("mouseleave",()=>{g.classList.remove("state--highlight"),g.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function ei(E){if(await new Promise(W=>setTimeout(W,1e3)),E.classList.contains("state--expanded"))return;let z=t.find(".lh-exp-gauge__inner",E),H=`uniq-${Math.random()}`;z.setAttribute("id",H);let V=t.createSVGElement("use");V.setAttribute("href",`#${H}`),E.appendChild(V);let O=2.5;E.style.setProperty("--peek-dur",`${O}s`),E.classList.add("state--peek","state--expanded");let me=()=>{E.classList.remove("state--peek","state--expanded"),V.remove()},we=setTimeout(()=>{E.removeEventListener("mouseenter",de),me()},O*1e3*1.5);function de(){clearTimeout(we),me()}E.addEventListener("mouseenter",de,{once:!0})}}var Ea="__lh__insights_audits_toggle_state",mt=class extends se{_memoryInsightToggleState="DEFAULT";_renderMetric(e){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=e.result.id;let i=A.calculateRating(e.result.score,e.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=e.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=e.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(e.result.description)),e.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=e.result.errorMessage||"Report error: no metric information"}else e.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(e){let n=e.filter(d=>d.group==="metrics"),a=e.find(d=>d.id==="interactive"),i=e.find(d=>d.id==="first-cpu-idle"),o=e.find(d=>d.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&typeof o.result.score=="number"&&n.push(o);let r=d=>Math.round(d*100)/100,p=[...n.map(d=>{let m;return typeof d.result.numericValue=="number"?(m=d.id==="cumulative-layout-shift"?r(d.result.numericValue):Math.round(d.result.numericValue),m=m.toString()):m="null",[d.acronym||d.id,m]})];b.reportJson&&(p.push(["device",b.reportJson.configSettings.formFactor]),p.push(["version",b.reportJson.lighthouseVersion]));let c=new URLSearchParams(p),l=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return l.hash=c.toString(),l.href}overallImpact(e,n){if(!e.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(e.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let c=r/p*s.weight;i+=c;let l=s.result.scoringOptions;if(!l)continue;let m=(U.computeLogNormalScore(l,p-r)-s.result.score)*s.weight;a+=m}return{overallImpact:a,overallLinearImpact:i}}_persistInsightToggleToStorage(e){try{window.localStorage.setItem(Ea,e)}finally{this._memoryInsightToggleState=e}}_getInsightToggleState(){let e=this._getRawInsightToggleState();return e==="DEFAULT"&&(e="AUDITS"),e}_getRawInsightToggleState(){try{let e=window.localStorage.getItem(Ea);if(e==="AUDITS"||e==="INSIGHTS")return e}catch{return this._memoryInsightToggleState}return"DEFAULT"}_setInsightToggleButtonText(e){let n=this._getInsightToggleState();e.innerText=n==="AUDITS"?b.strings.tryInsights:b.strings.goBackToAudits}_renderInsightsToggle(e){let n=this.dom.createChildOf(e,"div","lh-perf-insights-toggle"),a=this.dom.createChildOf(n,"span","lh-perf-toggle-text"),i=this.dom.createElement("span","lh-perf-insights-icon insights-icon-url");a.appendChild(i),a.appendChild(this.dom.convertMarkdownLinkSnippets(b.strings.insightsNotice));let r=this.dom.createChildOf(n,"button","lh-button lh-button-insight-toggle");this._setInsightToggleButtonText(r),r.addEventListener("click",s=>{s.preventDefault();let p=this.dom.maybeFind(".lh-perf-audits--swappable");p&&this.dom.swapSectionIfPossible(p);let l=this._getInsightToggleState()==="AUDITS"?"INSIGHTS":"AUDITS";this.dom.fireEventOn("lh-analytics",this.dom.document(),{name:"toggle_insights",data:{newState:l}}),this._persistInsightToggleToStorage(l),this._setInsightToggleButtonText(r)}),n.appendChild(r)}render(e,n,a){let i=b.strings,o=this.dom.createElement("div","lh-category");o.id=e.id,o.append(this.renderCategoryHeader(e,n,a));let r=e.auditRefs.filter(h=>h.group==="metrics");if(r.length){let[h,f]=this.renderAuditGroup(n.metrics),C=this.dom.createElement("input","lh-metrics-toggle__input"),g=`lh-metrics-toggle${b.getUniqueSuffix()}`;C.setAttribute("aria-label","Toggle the display of metric descriptions"),C.type="checkbox",C.id=g,h.prepend(C);let _=this.dom.find(".lh-audit-group__header",h),v=this.dom.createChildOf(_,"label","lh-metrics-toggle__label");v.htmlFor=g;let y=this.dom.createChildOf(v,"span","lh-metrics-toggle__labeltext--show"),w=this.dom.createChildOf(v,"span","lh-metrics-toggle__labeltext--hide");y.textContent=b.strings.expandView,w.textContent=b.strings.collapseView;let P=this.dom.createElement("div","lh-metrics-container");if(h.insertBefore(P,f),r.forEach(L=>{P.append(this._renderMetric(L))}),o.querySelector(".lh-gauge__wrapper")){let L=this.dom.find(".lh-category-header__description",o),R=this.dom.createChildOf(L,"div","lh-metrics__disclaimer"),M=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);R.append(M);let G=this.dom.createChildOf(R,"a","lh-calclink");G.target="_blank",G.textContent=i.calculatorLink,this.dom.safelySetHref(G,this._getScoringCalculatorHref(e.auditRefs))}h.classList.add("lh-audit-group--metrics"),o.append(h)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),c=e.auditRefs.find(h=>h.id==="screenshot-thumbnails")?.result;if(c?.details){s.id=c.id;let h=this.detailsRenderer.render(c.details);h&&s.append(h)}this._renderInsightsToggle(o);let l=this.renderFilterableSection(e,n,["diagnostics"],r);l?.classList.add("lh-perf-audits--swappable","lh-perf-audits--legacy");let d=this.renderFilterableSection(e,n,["insights","diagnostics"],r);if(d?.classList.add("lh-perf-audits--swappable","lh-perf-audits--experimental"),l&&(o.append(l),d&&this.dom.registerSwappableSections(l,d)),this._getInsightToggleState()==="INSIGHTS"&&requestAnimationFrame(()=>{let h=this.dom.maybeFind(".lh-perf-audits--swappable");h&&this.dom.swapSectionIfPossible(h)}),this.dom.fireEventOn("lh-analytics",this.dom.document(),{name:"initial_insights_state",data:{state:this._getRawInsightToggleState()}}),(!a||a?.gatherMode==="navigation")&&e.score!==null){let h=Pa(this.dom);Aa(this.dom,h,e),this.dom.find(".lh-score__gauge",o).replaceWith(h)}return o}renderFilterableSection(e,n,a,i){if(a.some(v=>!n[v]))return null;let o=this.dom.createElement("div"),r=new Set,s=v=>v.id.endsWith("-insight")?"insights":v.group??"",p=e.auditRefs.filter(v=>a.includes(s(v)));for(let v of p)v.result.replacesAudits?.forEach(y=>{r.add(y)});let c=p.filter(v=>!r.has(v.id)).map(v=>{let{overallImpact:y,overallLinearImpact:w}=this.overallImpact(v,i),P=v.result.guidanceLevel||1,L=this.renderAudit(v);return{auditRef:v,auditEl:L,overallImpact:y,overallLinearImpact:w,guidanceLevel:P}}),l=c.filter(v=>!A.showAsPassed(v.auditRef.result)),d=c.filter(v=>A.showAsPassed(v.auditRef.result)),m={};for(let v of a){let y=this.renderAuditGroup(n[v]);y[0].classList.add(`lh-audit-group--${v}`),m[v]=y}function h(v){for(let y of c)if(v==="All")y.auditEl.hidden=!1;else{let w=y.auditRef.result.metricSavings?.[v]===void 0;y.auditEl.hidden=w}l.sort((y,w)=>{let P=y.auditRef.result.score||0,L=w.auditRef.result.score||0;if(P!==L)return P-L;if(v!=="All"){let R=y.auditRef.result.metricSavings?.[v]??-1,M=w.auditRef.result.metricSavings?.[v]??-1;if(R!==M)return M-R}return y.overallImpact!==w.overallImpact?w.overallImpact*w.guidanceLevel-y.overallImpact*y.guidanceLevel:y.overallImpact===0&&w.overallImpact===0&&y.overallLinearImpact!==w.overallLinearImpact?w.overallLinearImpact*w.guidanceLevel-y.overallLinearImpact*y.guidanceLevel:w.guidanceLevel-y.guidanceLevel});for(let y of l){if(!y.auditRef.group)continue;let w=m[s(y.auditRef)];if(!w)continue;let[P,L]=w;P.insertBefore(y.auditEl,L)}}let f=new Set;for(let v of l){let y=v.auditRef.result.metricSavings||{};for(let[w,P]of Object.entries(y))typeof P=="number"&&f.add(w)}let C=i.filter(v=>v.acronym&&f.has(v.acronym));C.length&&this.renderMetricAuditFilter(C,o,h),h("All");for(let v of a)if(l.some(y=>s(y.auditRef)===v)){let y=m[v];if(!y)continue;o.append(y[0])}if(!d.length)return o;let g={auditRefsOrEls:d.map(v=>v.auditEl),groupDefinitions:n},_=this.renderClump("passed",g);return o.append(_),o}renderMetricAuditFilter(e,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=b.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...e],s=b.getUniqueSuffix();for(let p of r){let c=`metric-${p.acronym}-${s}`,l=this.dom.createChildOf(i,"input","lh-metricfilter__radio");l.type="radio",l.name=`metricsfilter-${s}`,l.id=c;let d=this.dom.createChildOf(i,"label","lh-metricfilter__label");d.htmlFor=c,d.title="result"in p?p.result.title:"",d.textContent=p.acronym||p.id,p.acronym==="All"&&(l.checked=!0,d.classList.add("lh-metricfilter__label--active")),n.append(i),l.addEventListener("input",m=>{for(let f of n.querySelectorAll("label.lh-metricfilter__label"))f.classList.toggle("lh-metricfilter__label--active",f.htmlFor===c);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let f of h){f.hidden=!1;let C=Array.from(f.querySelectorAll("div.lh-audit")),g=!!C.length&&C.every(_=>_.hidden);f.hidden=g}})}}};var dt=class{constructor(e){this._dom=e,this._opts={}}renderReport(e,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(e.configSettings.channel||"unknown");let i=A.prepareReportResult(e);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(e){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=e.finalDisplayedUrl,a.title=e.finalDisplayedUrl,this._dom.safelySetHref(a,e.finalDisplayedUrl),n}_renderReportHeader(){let e=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",e).replaceWith(n),e}_renderReportFooter(e){let n=this._dom.createComponent("footer");return this._renderMetaBlock(e,n),this._dom.find(".lh-footer__version_issue",n).textContent=b.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=e.lighthouseVersion,n}_renderMetaBlock(e,n){let a=A.getEmulationDescriptions(e.configSettings||{}),i=e.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=e.configSettings.channel,s=e.environment.benchmarkIndex.toFixed(0),p=e.environment.credits?.["axe-core"],c=[`${b.strings.runtimeSettingsBenchmark}: ${s}`,`${b.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&c.push(`${b.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&c.push(`${b.strings.runtimeSettingsAxeVersion}: ${p}`);let l=b.strings.runtimeAnalysisWindow;e.gatherMode==="timespan"?l=b.strings.runtimeAnalysisWindowTimespan:e.gatherMode==="snapshot"&&(l=b.strings.runtimeAnalysisWindowSnapshot);let d=[["date",`Captured at ${b.i18n.formatDateTime(e.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${e.lighthouseVersion}`,c.join(`
2875
- `)],["samples-one",b.strings.runtimeSingleLoad,b.strings.runtimeSingleLoadTooltip],["stopwatch",l],["networkspeed",`${a.summary}`,`${b.strings.runtimeSettingsNetworkThrottling}: ${a.networkThrottling}`],["chrome",`Using ${o}`+(r?` with ${r}`:""),`${b.strings.runtimeSettingsUANetwork}: "${e.environment.networkUserAgent}"`]],m=this._dom.find(".lh-meta__items",n);for(let[h,f,C]of d){let g=this._dom.createChildOf(m,"li","lh-meta__item");if(g.textContent=f,C){g.classList.add("lh-tooltip-boundary");let _=this._dom.createChildOf(g,"div","lh-tooltip");_.textContent=C}g.classList.add("lh-report-icon",`lh-report-icon--${h}`)}}_renderReportWarnings(e){if(!e.runWarnings||e.runWarnings.length===0)return this._dom.createElement("div");let n=this._dom.createComponent("warningsToplevel"),a=this._dom.find(".lh-warnings__msg",n);a.textContent=b.strings.toplevelWarningsMessage;let i=[];for(let o of e.runWarnings){let r=this._dom.createElement("li");r.append(this._dom.convertMarkdownLinkSnippets(o)),i.push(r)}return this._dom.find("ul",n).append(...i),n}_renderScoreGauges(e,n,a){let i=[],o=[];for(let r of Object.values(e.categories)){let p=(a[r.id]||n).renderCategoryScore(r,e.categoryGroups||{},{gatherMode:e.gatherMode}),c=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",p);c&&(this._dom.safelySetHref(c,`#${r.id}`),c.addEventListener("click",l=>{if(!c.matches('[href^="#"]'))return;let d=c.getAttribute("href"),m=this._dom.rootEl;if(!d||!m)return;let h=this._dom.find(d,m);l.preventDefault(),h.scrollIntoView()}),this._opts.onPageAnchorRendered?.(c)),A.isPluginCategory(r.id)?o.push(p):i.push(p)}return[...i,...o]}_renderReport(e){b.apply({providedStrings:e.i18n.rendererFormattedStrings,i18n:new ce(e.configSettings.locale),reportJson:e});let n=new _e(this._dom,{fullPageScreenshot:e.fullPageScreenshot??void 0,entities:e.entities}),a=new se(this._dom,n),i={performance:new mt(this._dom,n)},o=this._dom.createElement("div");o.append(this._renderReportHeader());let r=this._dom.createElement("div","lh-container"),s=this._dom.createElement("div","lh-report");s.append(this._renderReportWarnings(e));let p;Object.keys(e.categories).length===1?o.classList.add("lh-header--solo-category"):p=this._dom.createElement("div","lh-scores-header");let l=this._dom.createElement("div");if(l.classList.add("lh-scorescale-wrap"),l.append(this._dom.createComponent("scorescale")),p){let f=this._dom.find(".lh-scores-container",o);p.append(...this._renderScoreGauges(e,a,i)),f.append(p,l);let C=this._dom.createElement("div","lh-sticky-header");C.append(...this._renderScoreGauges(e,a,i)),r.append(C)}let d=this._dom.createElement("div","lh-categories");s.append(d);let m={gatherMode:e.gatherMode};for(let f of Object.values(e.categories)){let C=i[f.id]||a;C.dom.createChildOf(d,"div","lh-category-wrapper").append(C.render(f,e.categoryGroups,m))}a.injectFinalScreenshot(d,e.audits,l);let h=this._dom.createFragment();return this._opts.omitGlobalStyles||h.append(this._dom.createComponent("styles")),this._opts.omitTopbar||h.append(this._renderReportTopbar(e)),h.append(r),s.append(this._renderReportFooter(e)),r.append(o,s),e.fullPageScreenshot&&le.installFullPageScreenshot(this._dom.rootEl,e.fullPageScreenshot.screenshot),h}};function Ce(t,e){let n=t.rootEl;typeof e>"u"?n.classList.toggle("lh-dark"):n.classList.toggle("lh-dark",e)}var zo=typeof btoa<"u"?btoa:t=>Buffer.from(t).toString("base64"),jo=typeof atob<"u"?atob:t=>Buffer.from(t,"base64").toString();async function Mo(t,e){let n=new TextEncoder().encode(t);if(e.gzip)if(typeof CompressionStream<"u"){let o=new CompressionStream("gzip"),r=o.writable.getWriter();r.write(n),r.close();let s=await new Response(o.readable).arrayBuffer();n=new Uint8Array(s)}else n=window.pako.gzip(t);let a="",i=5e3;for(let o=0;o<n.length;o+=i)a+=String.fromCharCode(...n.subarray(o,o+i));return zo(a)}function Ho(t,e){let n=jo(t),a=Uint8Array.from(n,i=>i.charCodeAt(0));return e.gzip?window.pako.ungzip(a,{to:"string"}):new TextDecoder().decode(a)}var La={toBase64:Mo,fromBase64:Ho};function Gt(){let t=window.location.host.endsWith(".vercel.app"),e=new URLSearchParams(window.location.search).has("dev");return t?`https://${window.location.host}/gh-pages`:e?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function Vt(t){let e=t.generatedTime,n=t.fetchTime||e;return`${t.lighthouseVersion}-${t.finalDisplayedUrl}-${n}`}function Fo(t,e,n){let a=new URL(e).origin;window.addEventListener("message",function o(r){r.origin===a&&i&&r.data.opened&&(i.postMessage(t,a),window.removeEventListener("message",o))});let i=window.open(e,n)}async function Ta(t,e,n){let a=new URL(e),i=!!window.CompressionStream;a.hash=await La.toBase64(JSON.stringify(t),{gzip:i}),i&&a.searchParams.set("gzip","1"),window.open(a.toString(),n)}async function Ua(t){let e="viewer-"+Vt(t),n=Gt()+"/viewer/";await Ta({lhr:t},n,e)}async function Ia(t){let e="viewer-"+Vt(t),n=Gt()+"/viewer/";Fo({lhr:t},n,e)}function Ra(t){if(!t.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let n={lhr:{mainDocumentUrl:t.mainDocumentUrl,finalUrl:t.finalUrl,finalDisplayedUrl:t.finalDisplayedUrl,audits:{"script-treemap-data":t.audits["script-treemap-data"]},configSettings:{locale:t.configSettings.locale}}},a=Gt()+"/treemap/",i="treemap-"+Vt(t);Ta(n,a,i)}var ht=class{constructor(e){this._dom=e,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(e){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventListener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",e)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(e){this._toggleEl.classList.contains("lh-active")?e.focus():this._menuEl.addEventListener("transitionend",()=>{e.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(e){switch(e.code){case"ArrowUp":e.preventDefault(),this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(e){let n=e.target;switch(e.code){case"ArrowUp":e.preventDefault(),this._getPreviousMenuItem(n).focus();break;case"ArrowDown":e.preventDefault(),this._getNextMenuItem(n).focus();break;case"Home":e.preventDefault(),this._getNextMenuItem().focus();break;case"End":e.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(e){e.keyCode===27&&this.close()}onMenuFocusOut(e){let n=e.relatedTarget;this._menuEl.contains(n)||this.close()}_getNextSelectableNode(e,n){let a=e.filter(o=>o instanceof HTMLElement).filter(o=>!(o.hasAttribute("disabled")||window.getComputedStyle(o).display==="none")),i=n?a.indexOf(n)+1:0;return i>=a.length&&(i=0),a[i]}_getNextMenuItem(e){let n=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(n,e)}_getPreviousMenuItem(e){let n=Array.from(this._menuEl.childNodes).reverse();return this._getNextSelectableNode(n,e)}};var gt=class{constructor(e,n){this.lhr,this._reportUIFeatures=e,this._dom=n,this._dropDownMenu=new ht(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(e){this.lhr=e,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>Ce(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(e){e.preventDefault();let n=e.target;if(!(!n||!n.hasAttribute("data-action"))){switch(n.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":this.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let a=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([a],{type:"application/json"}));break}case"save-html":{let a=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([a],{type:"text/html"}))}catch(i){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+i.message})}break}case"open-viewer":{this._dom.isDevTools()?Ua(this.lhr):Ia(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{Ce(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(e){this._copyAttempt&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied to clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{name:"copy"});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(e){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:e.message})}}onKeyUp(e){(e.ctrlKey||e.metaKey)&&e.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(e){let{overflowY:n}=window.getComputedStyle(e);return n!=="visible"&&n!=="hidden"?e:e.parentElement?this._getScrollParent(e.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(n=>{n.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let e=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));e.addEventListener("scroll",()=>this._updateStickyHeader());let n=e instanceof window.Document?document.documentElement:e;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(n)}))}_updateStickyHeader(){if(!this.stickyHeaderEl)return;let e=this.topbarEl.getBoundingClientRect().bottom,n=this.categoriesEl.getBoundingClientRect().top,a=e>=n,o=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(d=>d.getBoundingClientRect().top-window.innerHeight/2<0),r=o.length>0?o.length-1:0,s=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),p=s[r],c=s[0].getBoundingClientRect().left,l=p.getBoundingClientRect().left-c;this.highlightEl.style.transform=`translate(${l}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",a)}};function Na(t,e){let n=e?new Date(e):new Date,a=n.toLocaleTimeString("en-US",{hour12:!1}),i=n.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");i.unshift(i.pop());let o=i.join("-");return`${t}_${o}_${a}`.replace(/[/?<>\\:*|"]/g,"-")}function Da(t){let e=new URL(t.finalDisplayedUrl).hostname;return Na(e,t.fetchTime)}function za(t){let e=t.steps[0].lhr,n=t.name.replace(/\s/g,"-");return Na(n,e.fetchTime)}function Oo(t){return Array.from(t.tBodies[0].rows)}var ft=class{constructor(e,n={}){this.json,this._dom=e,this._opts=n,this._topbar=n.omitTopbar?null:new gt(this,e),this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(e){this.json=e,this._fullPageScreenshot=U.getFullPageScreenshot(e),this._topbar&&(this._topbar.enable(e),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl);let n=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!n&&window.matchMedia("(prefers-color-scheme: dark)").matches&&Ce(this._dom,!0);let i=["performance","accessibility","best-practices","seo"].every(p=>{let c=e.categories[p];return c&&c.score===1}),o=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(i&&!o&&(this._enableFireworks(),n||Ce(this._dom,!0)),e.categories.performance&&e.categories.performance.auditRefs.some(p=>!!(p.group==="metrics"&&e.audits[p.id].errorMessage))){let p=this._dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);p.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:b.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Ra(this.json)}),this._opts.onViewTrace&&(e.configSettings.throttlingMethod==="simulate"?this._dom.find('a[data-action="view-unthrottled-trace"]',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:b.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find('a[data-action="save-html"]',this._dom.rootEl).classList.remove("lh-hidden");for(let p of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let l=p.getAttribute("data-i18n");p.textContent=b.strings[l]}}addButton(e){let n=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!n)return;let a=n.querySelector(".lh-buttons");a||(a=this._dom.createChildOf(n,"div","lh-buttons"));let i=["lh-button"];e.icon&&(i.push("lh-report-icon"),i.push(`lh-report-icon--${e.icon}`));let o=this._dom.createChildOf(a,"button",i.join(" "));return o.textContent=e.text,o.addEventListener("click",e.onClick),o}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let e=self.matchMedia("(max-width: 500px)");e.addListener(this.onMediaQueryChange),this.onMediaQueryChange(e)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(e){this._dom.rootEl.classList.toggle("lh-narrow",e.matches)}_setupThirdPartyFilter(){let e=["uses-rel-preconnect","third-party-facades"],n=["legacy-javascript"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(o=>o.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(o=>{let r=o.closest(".lh-audit");if(!r)throw new Error(".lh-table not within audit");return!e.includes(r.id)}).forEach(o=>{let r=Oo(o),s=r.filter(g=>!g.classList.contains("lh-sub-item-row")),p=this._getThirdPartyRows(s,U.getFinalDisplayedUrl(this.json)),c=r.some(g=>g.classList.contains("lh-row--even")),l=this._dom.createComponent("3pFilter"),d=this._dom.find("input",l);d.addEventListener("change",g=>{let _=g.target instanceof HTMLInputElement&&!g.target.checked,v=!0,y=s[0];for(;y;){let w=_&&p.includes(y);do y.classList.toggle("lh-row--hidden",w),c&&(y.classList.toggle("lh-row--even",!w&&v),y.classList.toggle("lh-row--odd",!w&&!v)),y=y.nextElementSibling;while(y&&y.classList.contains("lh-sub-item-row"));w||(v=!v)}});let m=p.filter(g=>!g.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",l).textContent=`${m}`,this._dom.find(".lh-3p-ui-string",l).textContent=b.strings.thirdPartyResourcesLabel;let h=p.length===s.length,f=!p.length;if((h||f)&&(this._dom.find("div.lh-3p-filter",l).hidden=!0),!o.parentNode)return;o.parentNode.insertBefore(l,o);let C=o.closest(".lh-audit");if(!C)throw new Error(".lh-table not within audit");n.includes(C.id)&&!h&&d.click()})}_setupElementScreenshotOverlay(e){this._fullPageScreenshot&&le.installOverlayFeature({dom:this._dom,rootEl:e,overlayContainerEl:e,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(e,n){let a=U.getEntityFromUrl(n,this.json.entities),i=this.json.entities?.find(r=>r.isFirstParty===!0)?.name,o=[];for(let r of e){if(i){if(!r.dataset.entity||r.dataset.entity===i)continue}else{let s=r.querySelector("div.lh-text__url");if(!s)continue;let p=s.dataset.url;if(!p||!(U.getEntityFromUrl(p,this.json.entities)!==a))continue}o.push(r)}return o}_saveFile(e){let n=e.type.match("json")?".json":".html",a=Da({finalDisplayedUrl:U.getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+n;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(e,a):this._dom.saveFile(e,a)}};function ja(t,e={}){let n=document.createElement("article");n.classList.add("lh-root","lh-vars");let a=new re(n.ownerDocument,n);return new dt(a).renderReport(t,n,e),new ft(a,e).initFeatures(t),n}function Ma(t,e){let n=new re(document,document.documentElement),a=new _e(n);return new se(n,a).renderCategoryScore(t,{},e)}function Ha(t,e){new re(document,document.documentElement).saveFile(t,e)}function Fa(t){return new re(document,document.documentElement).convertMarkdownCodeSnippets(t)}function Oa(){return new re(document,document.documentElement).createComponent("styles")}var Ba=({category:t,href:e,gatherMode:n})=>{let a=ie(()=>Ma(t,{gatherMode:n,omitLabel:!0,onPageAnchorRendered:i=>i.href=e}),[t,e]);return u("div",{ref:a,"data-testid":"CategoryScore"})};var Ga=({text:t})=>{let e=ie(()=>Fa(t),[t]);return u("span",{ref:e})};var Bo=2;function Go(t,e){switch(t){case"navigation":return e.navigationReport;case"timespan":return e.timespanReport;case"snapshot":return e.snapshotReport}}function Vo(t,e){switch(t){case"pass":return e.ratingPass;case"average":return e.ratingAverage;case"fail":return e.ratingFail;case"error":return e.ratingError}}function Va(t){return t.weight*(1-t.result.score)}var $o=({audit:t})=>{let e=A.calculateRating(t.result.score,t.result.scoreDisplayMode);return u("div",{className:`SummaryTooltipAudit SummaryTooltipAudit--${e}`,children:u(Ga,{text:t.result.title})})},qo=({category:t})=>{let e=D();function n(i){return i.result.score!==null&&i.group!=="metrics"&&i.group!=="hidden"&&(i.weight>0||i.group==="diagnostics")&&!A.showAsPassed(i.result)}let a=t.auditRefs.filter(n).sort((i,o)=>{let r=Va(i),s=Va(o);if(r!==s)return s-r;if(i.result.score!==o.result.score)return i.result.score-o.result.score;let p=i.result.metricSavings?.LCP||0;return(o.result.metricSavings?.LCP||0)-p}).splice(0,Bo);return a.length?u("div",{className:"SummaryTooltipAudits",children:[u("div",{className:"SummaryTooltipAudits__title",children:e.highestImpact}),a.map(i=>u($o,{audit:i},i.id))]}):null},Wo=({category:t,gatherMode:e,url:n})=>{let a=D(),i=ct(),{numPassed:o,numPassableAudits:r,numInformative:s,totalWeight:p}=A.calculateCategoryFraction(t),c=Ne(),l=A.shouldDisplayAsFraction(e),d=l?o/r:t.score,m=d===null?"error":A.calculateRating(d);return u("div",{className:"SummaryTooltip",children:[u("div",{className:"SummaryTooltip__title",children:Go(e,a)}),u("div",{className:"SummaryTooltip__url",children:n}),u($,{}),u("div",{className:"SummaryTooltip__category",children:[u("div",{className:"SummaryTooltip__category-title",children:t.title}),p!==0&&u("div",{className:`SummaryTooltip__rating SummaryTooltip__rating--${m}`,children:[u("span",{children:Vo(m,a)}),!l&&t.score!==null&&u(N,{children:[u("span",{children:" · "}),u("span",{children:c.formatter.formatInteger(t.score*100)})]})]})]}),u("div",{className:"SummaryTooltip__fraction",children:[u("span",{children:i(a.passedAuditCount,{numPassed:o})}),u("span",{children:" / "}),u("span",{children:i(a.passableAuditCount,{numPassableAudits:r})})]}),s!==0&&u("div",{className:"SummaryTooltip__informative",children:i(a.informativeAuditCount,{numInformative:s})}),u(qo,{category:t})]})},$a=({category:t,href:e,gatherMode:n,finalDisplayedUrl:a})=>u("div",{className:"SummaryCategory",children:t?u("div",{className:"SummaryCategory__content",children:[u(Ba,{category:t,href:e,gatherMode:n}),u(Wo,{category:t,gatherMode:n,url:a})]}):u("div",{className:"SummaryCategory__null","data-testid":"SummaryCategory__null"})});var Jo=["performance","accessibility","best-practices","seo"],Zo=40,Ko=({lhr:t})=>{let e=D();return u("div",{className:"SummaryNavigationHeader","data-testid":"SummaryNavigationHeader",children:[u(oe,{}),u("div",{className:"SummaryNavigationHeader__url",children:u("a",{rel:"noopener",target:"_blank",href:t.finalDisplayedUrl,children:t.finalDisplayedUrl})}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryPerformance}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryAccessibility}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryBestPractices}),u("div",{className:"SummaryNavigationHeader__category",children:e.categorySeo})]})},Xo=({lhr:t,label:e,hashIndex:n})=>{let a=Q(()=>A.prepareReportResult(t),[t]),i=D(),o=Ye(t.gatherMode,i);return u("div",{className:"SummaryFlowStep",children:[t.gatherMode==="navigation"||n===0?u(Ko,{lhr:t}):u("div",{className:"SummaryFlowStep__separator",children:[u(oe,{}),u($,{})]}),u(Qe,{lhr:t,width:Zo}),u(oe,{mode:t.gatherMode}),u("div",{className:"SummaryFlowStep__label",children:[u("div",{className:"SummaryFlowStep__mode",children:o}),u("a",{className:"SummaryFlowStep__link",href:`#index=${n}`,children:e})]}),Jo.map(r=>u($a,{category:a.categories[r],href:`#index=${n}&anchor=${r}`,gatherMode:t.gatherMode,finalDisplayedUrl:t.finalDisplayedUrl},r))]})},Yo=()=>{let t=B();return u("div",{className:"SummaryFlow",children:t.steps.map((e,n)=>u(Xo,{lhr:e.lhr,label:e.name,hashIndex:n},e.lhr.fetchTime))})},Qo=()=>{let t=B(),e=D(),n=ct(),a=0,i=0,o=0;for(let p of t.steps)switch(p.lhr.gatherMode){case"navigation":a++;break;case"timespan":i++;break;case"snapshot":o++;break}let r=[];a&&r.push(n(e.navigationReportCount,{numNavigation:a})),i&&r.push(n(e.timespanReportCount,{numTimespan:i})),o&&r.push(n(e.snapshotReportCount,{numSnapshot:o}));let s=r.join(" · ");return u("div",{className:"SummaryHeader",children:[u("div",{className:"SummaryHeader__title",children:e.summary}),u("div",{className:"SummaryHeader__subtitle",children:s})]})},er=({children:t})=>u("div",{className:"SummarySectionHeader",children:[u("div",{className:"SummarySectionHeader__content",children:t}),u($,{})]}),qa=()=>{let t=D();return u("div",{className:"Summary","data-testid":"Summary",children:[u(Qo,{}),u($,{}),u(er,{children:t.allReports}),u(Yo,{})]})};function tr(t,e){let n=t.cloneNode(!0);if(!n.hash)return n;let a=t.hash.substr(1);n.hash=`#index=${e}&anchor=${a}`,n.onclick=i=>{i.preventDefault();let o=document.getElementById(a);o&&o.scrollIntoView()},t.replaceWith(n)}var Wa=({hashState:t})=>{let e=ie(()=>ja(t.currentLhr,{disableFireworks:!0,disableDarkMode:!0,omitTopbar:!0,omitGlobalStyles:!0,onPageAnchorRendered:n=>tr(n,t.index)}),[t]);return u("div",{ref:e,"data-testid":"Report"})};var $t=t=>{let e=D();return u("div",{className:"HelpDialogColumn",children:[u("div",{className:"HelpDialogColumn__legend",children:[u("div",{className:"HelpDialogColumnTimeline",children:[t.icon,u("div",{className:"HelpDialogColumnTimeline__line"})]}),u("div",{className:"HelpDialogColumn__legend-label",children:t.userFriendlyModeLabel})]}),u("div",{className:"HelpDialogColumn__header",children:[u("div",{className:"HelpDialogColumn__header-title",children:t.lighthouseOfficialModeLabel}),u("p",{children:t.modeDescription})]}),u("div",{className:"HelpDialogColumn__use-cases",children:[u("p",{children:t.useCaseInstruction}),u("ul",{children:t.useCases.map((n,a)=>u("li",{children:n},a))})]}),u("div",{className:"HelpDialogColumn__categories",children:[u("p",{children:e.categories}),u("ul",{children:t.availableCategories.map((n,a)=>u("li",{children:n},a))})]})]})},Ja=({onClose:t})=>{let e=D();return u("div",{className:"HelpDialog",children:[u("div",{className:"HelpDialog__title",children:[u("div",{children:e.helpDialogTitle}),u("div",{style:{flexGrow:1}}),u("button",{className:"HelpDialog__close",onClick:t,children:u(Rn,{})})]}),u("div",{className:"HelpDialog__columns",children:[u($t,{icon:u(Ze,{}),userFriendlyModeLabel:e.navigationDescription,lighthouseOfficialModeLabel:e.navigationReport,modeDescription:e.navigationLongDescription,useCaseInstruction:e.helpUseCaseInstructionNavigation,useCases:[e.helpUseCaseNavigation1,e.helpUseCaseNavigation2,e.helpUseCaseNavigation3],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]}),u($t,{icon:u(Ke,{}),userFriendlyModeLabel:e.timespanDescription,lighthouseOfficialModeLabel:e.timespanReport,modeDescription:e.timespanLongDescription,useCaseInstruction:e.helpUseCaseInstructionTimespan,useCases:[e.helpUseCaseTimespan1,e.helpUseCaseTimespan2],availableCategories:[e.categoryPerformance,e.categoryBestPractices]}),u($t,{icon:u(Xe,{}),userFriendlyModeLabel:e.snapshotDescription,lighthouseOfficialModeLabel:e.snapshotReport,modeDescription:e.snapshotLongDescription,useCaseInstruction:e.helpUseCaseInstructionSnapshot,useCases:[e.helpUseCaseSnapshot1,e.helpUseCaseSnapshot2],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]})]})]})};function qt(t,e){let n=new Blob([e],{type:"text/html"}),a=za(t)+".html";qt.saveFile(n,a)}qt.saveFile=Ha;var nr=()=>u("svg",{role:"img",class:"lh-topbar__logo",title:"Lighthouse logo",width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[u("path",{d:"m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z",fill:"#F63"}),u("path",{d:"M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z",fill:"#FFA385"}),u("path",{fill:"#FF3",d:"M20.5 10h7v7h-7z"})]}),vt=({onClick:t,label:e,children:n})=>u("button",{className:"TopbarButton",onClick:t,"aria-label":e,children:n}),Za=({onMenuClick:t})=>{let e=B(),n=D(),[a,i]=ae(!1),{getReportHtml:o,saveAsGist:r}=Bn();return u("div",{className:"Topbar",children:[u(vt,{onClick:t,label:"Button that opens and closes the sidebar",children:u(jn,{})}),u("div",{className:"Topbar__logo",children:u(nr,{})}),u("div",{className:"Topbar__title",children:n.title}),o&&u(vt,{onClick:()=>{let s=o(e);qt(e,s)},label:"Button that saves the report as HTML",children:n.save}),r&&u(vt,{onClick:()=>r(e),label:"Button that saves the report to a gist",children:n.dropdownSaveGist}),u("div",{style:{flexGrow:1}}),u(vt,{onClick:()=>i(s=>!s),label:"Button that toggles the help dialog",children:u("div",{className:"Topbar__help-label",children:[u(Mn,{}),n.helpLabel]})}),a?u(Ja,{onClose:()=>i(!1)}):null]})};var ar=80,ir=120,Wt=({lhr:t,position:e})=>{let n=e==="main"?ir:ar;return u("div",{className:`HeaderThumbnail HeaderThumbnail--${e}`,children:[u(Qe,{lhr:t,height:n}),u("div",{className:"HeaderThumbnail__icon",children:u(kt,{mode:t.gatherMode})})]})},Ka=({hashState:t})=>{let e=B(),{index:n}=t,a=e.steps[n],i=e.steps[n-1],o=e.steps[n+1],r=D(),s=Ye(a.lhr.gatherMode,r);return u("div",{className:"Header",children:[i&&u(N,{children:[e.steps[n-2]&&u("div",{className:"Header__segment"}),u("div",{className:"Header__prev-thumbnail",children:[u(Wt,{lhr:i.lhr,position:"prev"}),u("div",{className:"Header__segment"})]}),u("a",{className:"Header__prev-title",href:`#index=${n-1}`,children:i.name})]}),u("div",{className:"Header__current-thumbnail",children:u(Wt,{lhr:a.lhr,position:"main"})}),u("div",{className:"Header__current-title",children:[a.name,u("div",{className:"Header__current-description",children:s})]}),o&&u(N,{children:[u("div",{className:"Header__next-thumbnail",children:[u("div",{className:"Header__segment"}),u(Wt,{lhr:o.lhr,position:"next"})]}),u("a",{className:"Header__next-title",href:`#index=${n+1}`,children:o.name}),e.steps[n+2]&&u("div",{className:"Header__segment"})]})]})};var Xa=()=>{let t=ie(Oa);return u("div",{ref:t})};function or(t){return!t||!t.anchor?null:document.getElementById(t.anchor)}var rr=()=>{let t=be(),e=We(null);return qe(()=>{let n=or(t);n?n.scrollIntoView():e.current&&(e.current.scrollTop=0)},[t]),u("div",{ref:e,className:"Content",children:t?u(N,{children:[u(Ka,{hashState:t}),u(Wa,{hashState:t})]}):u(qa,{})})},Ya=({flowResult:t,options:e})=>{let[n,a]=ae(!1),i=Q(()=>e||{},[e]);return u(St.Provider,{value:i,children:u(xt.Provider,{value:t,children:u(Ca,{children:[u(Xa,{}),u("div",{className:ve("App",{"App--collapsed":n}),"data-testid":"App",children:[u(Za,{onMenuClick:()=>a(o=>!o)}),u(xa,{}),u(rr,{})]})]})})})};function Qa(t,e,n){e.classList.add("flow-vars","lh-vars","lh-root"),vn(yt(Ya,{flowResult:t,options:n}),e)}function sr(){let t=document.body.querySelector("main");if(!t)throw Error("Container element not found");Qa(window.__LIGHTHOUSE_FLOW_JSON__,t,{getReportHtml:()=>document.documentElement.outerHTML})}window.__initLighthouseFlowReport__=sr;window.__initLighthouseFlowReport__();})();
2876
+ `),e.append(n);let a=t.createElement("div","lh-topbar"),i=t.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=t.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=t.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=t.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=t.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let c=t.createElement("div","lh-tools"),l=t.createElement("div","lh-tools-locale lh-hidden"),m=t.createElement("button","lh-button lh-tool-locale__button");m.setAttribute("id","lh-button__swap-locales"),m.setAttribute("title","Show Language Picker"),m.setAttribute("aria-label","Toggle language picker"),m.setAttribute("aria-haspopup","menu"),m.setAttribute("aria-expanded","false"),m.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let d=t.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("width","20px"),d.setAttribute("height","20px"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","currentColor");let h=t.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let f=t.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("d","M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),d.append(h,f),m.append(" ",d," ");let C=t.createElement("div","lh-tools-locale__selector-wrapper");C.setAttribute("id","lh-tools-locale__selector-wrapper"),C.setAttribute("role","menu"),C.setAttribute("aria-labelledby","lh-button__swap-locales"),C.setAttribute("aria-hidden","true"),C.append(" "," "),l.append(" ",m," ",C," ");let g=t.createElement("button","lh-tools__button");g.setAttribute("id","lh-tools-button"),g.setAttribute("title","Tools menu"),g.setAttribute("aria-label","Toggle report tools menu"),g.setAttribute("aria-haspopup","menu"),g.setAttribute("aria-expanded","false"),g.setAttribute("aria-controls","lh-tools-dropdown");let _=t.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.setAttribute("viewBox","0 0 24 24");let v=t.createElementNS("http://www.w3.org/2000/svg","path");v.setAttribute("d","M0 0h24v24H0z"),v.setAttribute("fill","none");let y=t.createElementNS("http://www.w3.org/2000/svg","path");y.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),_.append(" ",v," ",y," "),g.append(" ",_," ");let w=t.createElement("div","lh-tools__dropdown");w.setAttribute("id","lh-tools-dropdown"),w.setAttribute("role","menu"),w.setAttribute("aria-labelledby","lh-tools-button");let P=t.createElement("a","lh-report-icon lh-report-icon--print");P.setAttribute("role","menuitem"),P.setAttribute("tabindex","-1"),P.setAttribute("href","#"),P.setAttribute("data-i18n","dropdownPrintSummary"),P.setAttribute("data-action","print-summary");let L=t.createElement("a","lh-report-icon lh-report-icon--print");L.setAttribute("role","menuitem"),L.setAttribute("tabindex","-1"),L.setAttribute("href","#"),L.setAttribute("data-i18n","dropdownPrintExpanded"),L.setAttribute("data-action","print-expanded");let R=t.createElement("a","lh-report-icon lh-report-icon--copy");R.setAttribute("role","menuitem"),R.setAttribute("tabindex","-1"),R.setAttribute("href","#"),R.setAttribute("data-i18n","dropdownCopyJSON"),R.setAttribute("data-action","copy");let M=t.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");M.setAttribute("role","menuitem"),M.setAttribute("tabindex","-1"),M.setAttribute("href","#"),M.setAttribute("data-i18n","dropdownSaveHTML"),M.setAttribute("data-action","save-html");let G=t.createElement("a","lh-report-icon lh-report-icon--download");G.setAttribute("role","menuitem"),G.setAttribute("tabindex","-1"),G.setAttribute("href","#"),G.setAttribute("data-i18n","dropdownSaveJSON"),G.setAttribute("data-action","save-json");let Z=t.createElement("a","lh-report-icon lh-report-icon--open");Z.setAttribute("role","menuitem"),Z.setAttribute("tabindex","-1"),Z.setAttribute("href","#"),Z.setAttribute("data-i18n","dropdownViewer"),Z.setAttribute("data-action","open-viewer");let K=t.createElement("a","lh-report-icon lh-report-icon--open");K.setAttribute("role","menuitem"),K.setAttribute("tabindex","-1"),K.setAttribute("href","#"),K.setAttribute("data-i18n","dropdownSaveGist"),K.setAttribute("data-action","save-gist");let q=t.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");q.setAttribute("role","menuitem"),q.setAttribute("tabindex","-1"),q.setAttribute("href","#"),q.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),q.setAttribute("data-action","view-unthrottled-trace");let X=t.createElement("a","lh-report-icon lh-report-icon--dark");return X.setAttribute("role","menuitem"),X.setAttribute("tabindex","-1"),X.setAttribute("href","#"),X.setAttribute("data-i18n","dropdownDarkTheme"),X.setAttribute("data-action","toggle-dark"),w.append(" ",P," ",L," ",R," "," ",M," ",G," ",Z," ",K," "," ",q," ",X," "),c.append(" ",l," ",g," ",w," "),a.append(" "," ",i," ",p," ",c," "),e.append(a),e}function Lo(t){let e=t.createFragment(),n=t.createElement("div","lh-warnings lh-warnings--toplevel"),a=t.createElement("p","lh-warnings__msg"),i=t.createElement("ul");return n.append(" ",a," ",i," "),e.append(n),e}function Sa(t,e){switch(e){case"3pFilter":return ro(t);case"audit":return so(t);case"categoryHeader":return lo(t);case"chevron":return po(t);case"clump":return uo(t);case"crc":return co(t);case"crcChain":return mo(t);case"elementScreenshot":return ho(t);case"explodeyGauge":return go(t);case"footer":return fo(t);case"fraction":return vo(t);case"gauge":return bo(t);case"heading":return yo(t);case"metric":return _o(t);case"scorescale":return Co(t);case"scoresWrapper":return wo(t);case"snippet":return xo(t);case"snippetContent":return So(t);case"snippetHeader":return ko(t);case"snippetLine":return Po(t);case"styles":return Ao(t);case"topbar":return Eo(t);case"warningsToplevel":return Lo(t)}throw new Error("unexpected component: "+e)}var re=class{constructor(e,n){this._document=e,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n,this._swappableSections=new WeakMap,this._onSwap=()=>{},this._onSwapHook=()=>{}}createElement(e,n){let a=this._document.createElement(e);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(e,n,a){let i=this._document.createElementNS(e,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(e,n){return this._document.createElementNS("http://www.w3.org/2000/svg",e,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(e){return this._document.createTextNode(e)}createChildOf(e,n,a){let i=this.createElement(n,a);return e.append(i),i}createComponent(e){let n=this._componentCache.get(e);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Sa(this,e),this._componentCache.set(e,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(e,n={}){let a=this.createElement("span");for(let i of U.splitMarkdownLink(e)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(e,n){if(n=n||"",n.startsWith("#")){e.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)&&(e.href=i.href)}safelySetBlobHref(e,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);e.href=a}convertMarkdownCodeSnippets(e){let n=this.createElement("span");for(let a of U.splitMarkdownCodeSpans(e))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(e){this._lighthouseChannel=e}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(e,n=this.rootEl??this._document){let a=this.maybeFind(e,n);if(a===null)throw new Error(`query ${e} not found`);return a}maybeFind(e,n=this.rootEl??this._document){return n.querySelector(e)}findAll(e,n){return Array.from(n.querySelectorAll(e))}fireEventOn(e,n=this._document,a){let i=new CustomEvent(e,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(e,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,e),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}registerSwappableSections(e,n){this._swappableSections.set(e,n),this._swappableSections.set(n,e)}swapSectionIfPossible(e){let n=this._swappableSections.get(e);if(!n)return;let a=e.parentNode;if(!a)return;let i=e.querySelectorAll("style");n.append(...i),a.insertBefore(n,e),e.remove(),this._onSwap(),this._onSwapHook&&this._onSwapHook()}};var se=class{constructor(e,n){this.dom=e,this.detailsRenderer=n}get _clumpTitles(){return{warning:b.strings.warningAuditsGroupTitle,manual:b.strings.manualAuditsGroupTitle,passed:b.strings.passedAuditsGroupTitle,notApplicable:b.strings.notApplicableAuditsGroupTitle}}renderAudit(e){let n=b.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=e.result.id;let o=e.result.scoreDisplayMode;e.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=e.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(e.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(e.result.description));for(let d of e.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${d.result.title}`,h.textContent=d.acronym||d.id}e.stackPacks&&e.stackPacks.forEach(d=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");h.src=d.iconDataURL,h.alt=d.title;let f=this.dom.convertMarkdownLinkSnippets(d.description,{alwaysAppendUtmSource:!0}),C=this.dom.createElement("div","lh-audit__stackpack");C.append(h,f),this.dom.find(".lh-audit__stackpacks",i).append(C)});let p=this.dom.find("details",i);if(e.result.details){let d=this.detailsRenderer.render(e.result.details);d&&(d.classList.add("lh-details"),p.append(d))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,e.result.score,o),e.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let d=this.dom.find(".lh-audit__display-text",i);d.textContent=n.errorLabel,d.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(d,"div","lh-tooltip lh-tooltip--error");h.textContent=e.result.errorMessage||n.errorMissingAuditInfo}else if(e.result.explanation){let d=this.dom.createChildOf(r,"div","lh-audit-explanation");d.textContent=e.result.explanation}let c=e.result.warnings;if(!c||c.length===0)return i;let l=this.dom.find("summary",p),m=this.dom.createChildOf(l,"div","lh-warnings");if(this.dom.createChildOf(m,"span").textContent=n.warningHeader,c.length===1)m.append(this.dom.createTextNode(c.join("")));else{let d=this.dom.createChildOf(m,"ul");for(let h of c){let f=this.dom.createChildOf(d,"li");f.textContent=h}}return i}injectFinalScreenshot(e,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;o.src=r,o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",e),p=this.dom.createElement("div","lh-category-headercol"),c=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),l=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),l.append(o),s.append(p,c,l),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let e=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",e)}_setRatingClass(e,n,a){let i=A.calculateRating(n,a);return e.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&e.classList.add(`lh-audit--${i}`),e}renderCategoryHeader(e,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(e,n,a);if(o.append(r),e.description){let s=this.dom.convertMarkdownLinkSnippets(e.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(e){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=e.title,n.append(a);let i=null;return e.description&&(i=this.dom.convertMarkdownLinkSnippets(e.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(e,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of e){let s=r.group||i,p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let m of s)o.push(this.renderAudit(m));continue}let p=n[r],[c,l]=this.renderAuditGroup(p);for(let m of s)c.insertBefore(this.renderAudit(m),l);c.classList.add(`lh-audit-group--${r}`),o.push(c)}return o}renderUnexpandableClump(e,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(e,n).forEach(o=>a.append(o)),a}renderClump(e,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[e];this.dom.find(".lh-audit-group__title",s).textContent=p;let c=this.dom.find(".lh-audit-group__itemcount",r);c.textContent=`(${n.length})`;let l=n.map(d=>d instanceof HTMLElement?d:this.renderAudit(d));r.append(...l);let m=this.dom.find(".lh-audit-group",o);if(a){let d=this.dom.convertMarkdownLinkSnippets(a);d.classList.add("lh-audit-group__description","lh-audit-group__footer"),m.append(d)}return this.dom.find(".lh-clump-toggletext--show",m).textContent=b.strings.show,this.dom.find(".lh-clump-toggletext--hide",m).textContent=b.strings.hide,r.classList.add(`lh-clump--${e.toLowerCase()}`),m}renderCategoryScore(e,n,a){let i;if(a&&A.shouldDisplayAsFraction(a.gatherMode)?i=this.renderCategoryFraction(e):i=this.renderScoreGauge(e,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(e,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);A.isPluginCategory(e.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(e.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),c=this.dom.find("div.lh-gauge__percentage",a);return c.textContent=p.toString(),e.score===null&&(c.classList.add("lh-gauge--error"),c.textContent="",c.title=b.strings.errorLabel),e.auditRefs.length===0||this.hasApplicableAudits(e)?i.classList.add(`lh-gauge__wrapper--${A.calculateRating(e.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),c.textContent="-",c.title=b.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=e.title,a}renderCategoryFraction(e){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=A.calculateCategoryFraction(e),s=i/o,p=this.dom.find(".lh-fraction__content",n),c=this.dom.createElement("span");c.textContent=`${i}/${o}`,p.append(c);let l=A.calculateRating(s);return r===0&&(l="null"),a.classList.add(`lh-fraction__wrapper--${l}`),this.dom.find(".lh-fraction__label",n).textContent=e.title,n}hasApplicableAudits(e){return e.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(e,n){let a=2*Math.PI*Number(e.getAttribute("r")),i=Number(e.getAttribute("stroke-width")),o=.25*i/a;e.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(e.style.opacity="0"),n===1&&(r=a),e.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(e){return!!e.result.warnings?.length}_getClumpIdForAuditRef(e){let n=e.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:A.showAsPassed(e.result)?this._auditHasWarning(e)?"warning":"passed":"failed"}render(e,n={},a){let i=this.dom.createElement("div","lh-category");i.id=e.id,i.append(this.renderCategoryHeader(e,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of e.auditRefs){if(s.group==="hidden")continue;let p=this._getClumpIdForAuditRef(s),c=o.get(p);c.push(s),o.set(p,c)}for(let s of o.values())s.sort((p,c)=>c.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let d=this.renderUnexpandableClump(p,n);d.classList.add("lh-clump--failed"),i.append(d);continue}let c=s==="manual"?e.manualDescription:void 0,l=s==="warning"||s==="manual"&&r===0,m=this.renderClump(s,{auditRefsOrEls:p,description:c,openByDefault:l});i.append(m)}return i}};var ze=class{static createSegment(e,n,a,i){let o=e[n],r=Object.keys(e),s=r.indexOf(n)===r.length-1,p=!!o.children&&Object.keys(o.children).length>0,c=Array.isArray(a)?a.slice(0):[];return typeof i<"u"&&c.push(!i),{node:o,isLastChild:s,hasChildren:p,treeMarkers:c}}static createChainNode(e,n,a){let i=e.createComponent("crcChain"),o,r,s,p,c;"request"in n.node?(r=n.node.request.transferSize,s=n.node.request.url,o=(n.node.request.endTime-n.node.request.startTime)*1e3,p=!1):(r=n.node.transferSize,s=n.node.url,o=n.node.navStartToEndTime,p=!0,c=n.node.isLongest);let l=e.find(".lh-crc-node",i);l.setAttribute("title",s),c&&l.classList.add("lh-crc-node__longest");let m=e.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(g=>{let _=g?"lh-tree-marker lh-vert":"lh-tree-marker";m.append(e.createElement("span",_),e.createElement("span","lh-tree-marker"))});let d=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",h=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";m.append(e.createElement("span",d),e.createElement("span","lh-tree-marker lh-right"),e.createElement("span",h));let f=a.renderTextURL(s),C=e.find(".lh-crc-node__tree-value",i);if(C.append(f),!n.hasChildren||p){let g=e.createElement("span","lh-crc-node__chain-duration");g.textContent=" - "+b.i18n.formatMilliseconds(o)+", ";let _=e.createElement("span","lh-crc-node__chain-size");_.textContent=b.i18n.formatBytesToKiB(r,.01),C.append(g,_)}return i}static buildTree(e,n,a,i){if(a.append(De.createChainNode(e,n,i)),n.node.children)for(let o of Object.keys(n.node.children)){let r=De.createSegment(n.node.children,o,n.treeMarkers,n.isLastChild);De.buildTree(e,r,a,i)}}static render(e,n,a){let i=e.createComponent("crc"),o=e.find(".lh-crc",i);e.find(".lh-crc-initial-nav",i).textContent=b.strings.crcInitialNavigation,e.find(".lh-crc__longest_duration_label",i).textContent=b.strings.crcLongestDurationLabel,e.find(".lh-crc__longest_duration",i).textContent=b.i18n.formatMilliseconds(n.longestChain.duration);let r=n.chains;for(let s of Object.keys(r)){let p=De.createSegment(r,s);De.buildTree(e,p,o,a)}return e.find(".lh-crc-container",i)}},De=ze;function To(t,e){return e.left<=t.width&&0<=e.right&&e.top<=t.height&&0<=e.bottom}function ka(t,e,n){return t<e?e:t>n?n:t}function Uo(t){return{x:t.left+t.width/2,y:t.top+t.height/2}}var le=class t{static getScreenshotPositions(e,n,a){let i=Uo(e),o=ka(i.x-n.width/2,0,a.width-n.width),r=ka(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:e.left-o,top:e.top-r}}}static renderClipPathInScreenshot(e,n,a,i,o){let r=e.find("clipPath",n),s=`clip-${b.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,c=p+i.height/o.height,l=a.left/o.width,m=l+i.width/o.width,d=[`0,0 1,0 1,${p} 0,${p}`,`0,${c} 1,${c} 1,1 0,1`,`0,${p} ${l},${p} ${l},${c} 0,${c}`,`${m},${p} 1,${p} 1,${c} ${m},${c}`];for(let h of d){let f=e.createElementNS("http://www.w3.org/2000/svg","polygon");f.setAttribute("points",h),r.append(f)}}static installFullPageScreenshot(e,n){e.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(e){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=e,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let c=p.closest(".lh-node > .lh-element-screenshot");if(!c)return;let l=n.createElement("div","lh-element-screenshot__overlay");i.append(l);let m={width:l.clientWidth*.95,height:l.clientHeight*.8},d={width:Number(c.dataset.rectWidth),height:Number(c.dataset.rectHeight),left:Number(c.dataset.rectLeft),right:Number(c.dataset.rectLeft)+Number(c.dataset.rectWidth),top:Number(c.dataset.rectTop),bottom:Number(c.dataset.rectTop)+Number(c.dataset.rectHeight)},h=t.render(n,o.screenshot,d,m);if(!h){l.remove();return}l.append(h),l.addEventListener("click",()=>l.remove())}))}static _computeZoomFactor(e,n){let i={x:n.width/e.width,y:n.height/e.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(e,n,a,i){if(!To(n,a))return null;let o=e.createComponent("elementScreenshot"),r=e.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let c={width:p.width*s,height:p.height*s},l=t.getScreenshotPositions(a,p,{width:n.width,height:n.height}),m=e.find("div.lh-element-screenshot__image",r);m.style.width=c.width+"px",m.style.height=c.height+"px",m.style.backgroundPositionY=-(l.screenshot.top*s)+"px",m.style.backgroundPositionX=-(l.screenshot.left*s)+"px",m.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let d=e.find("div.lh-element-screenshot__element-marker",r);d.style.width=a.width*s+"px",d.style.height=a.height*s+"px",d.style.left=l.clip.left*s+"px",d.style.top=l.clip.top*s+"px";let h=e.find("div.lh-element-screenshot__mask",r);return h.style.width=c.width+"px",h.style.height=c.height+"px",t.renderClipPathInScreenshot(e,h,l.clip,a,p),r}};var Io=["http://","https://","data:"],Ro=["bytes","numeric","ms","timespanMs"],_e=class{constructor(e,n={}){this._dom=e,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(e){switch(e.type){case"filmstrip":return this._renderFilmstrip(e);case"list":return this._renderList(e);case"checklist":return this._renderChecklist(e);case"table":case"opportunity":return this._renderTable(e);case"network-tree":case"criticalrequestchain":return ze.render(this._dom,e,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(e.type,e)}}_renderBytes(e){let n=b.i18n.formatBytesToKiB(e.value,e.granularity||.1),a=this._renderText(n);return a.title=b.i18n.formatBytes(e.value),a}_renderMilliseconds(e){let n;return e.displayUnit==="duration"?n=b.i18n.formatDuration(e.value):n=b.i18n.formatMilliseconds(e.value,e.granularity||10),this._renderText(n)}renderTextURL(e){let n=e,a,i,o;try{let s=U.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._renderLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(e){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,e.url),!n.href){let a=this._renderText(e.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=e.text,n.classList.add("lh-link"),n}_renderText(e){let n=this._dom.createElement("div","lh-text");return n.textContent=e,n}_renderNumeric(e){let n=b.i18n.formatNumber(e.value,e.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(e){let n=this._dom.createElement("img","lh-thumbnail"),a=e;return n.src=a,n.title=a,n.alt="",n}_renderUnknown(e,n){console.error(`Unknown details type: ${e}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${e}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(e,n){if(e==null)return null;if(typeof e=="object")switch(e.type){case"code":return this._renderCode(e.value);case"link":return this._renderLink(e);case"node":return this.renderNode(e);case"numeric":return this._renderNumeric(e);case"text":return this._renderText(e.value);case"source-location":return this.renderSourceLocation(e);case"url":return this.renderTextURL(e.value);default:return this._renderUnknown(e.type,e)}switch(n.valueType){case"bytes":{let a=Number(e);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(e);return this._renderCode(a)}case"ms":{let a={value:Number(e),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(e);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(e);return this._renderText(a)}case"thumbnail":{let a=String(e);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(e);return this._renderMilliseconds({value:a})}case"url":{let a=String(e);return Io.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,e)}}_getDerivedSubItemsHeading(e){return e.subItemsHeading?{key:e.subItemsHeading.key||"",valueType:e.subItemsHeading.valueType||e.valueType,granularity:e.subItemsHeading.granularity||e.granularity,displayUnit:e.subItemsHeading.displayUnit||e.displayUnit,label:""}:null}_renderTableRow(e,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=e[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(e,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(e,n)),!e.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of e.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(e){let n=e.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",e);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=b.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");o.href=a.homepage,o.target="_blank",o.title=b.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o)}}_renderEntityGroupRow(e,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(e,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(e){let{items:n,headings:a,sortedBy:i}=e;if(!n.length||e.isEntityGrouped||!n.some(l=>l.entity))return[];let o=new Set(e.skipSumming||[]),r=[];for(let l of a)!l.key||o.has(l.key)||Ro.includes(l.valueType)&&r.push(l.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let l of n){let m=typeof l.entity=="string"?l.entity:void 0,d=p.get(m)||{[s]:m||b.strings.unattributable,entity:m};for(let h of r)d[h]=Number(d[h]||0)+Number(l[h]||0);p.set(m,d)}let c=[...p.values()];return i&&c.sort(A.getTableItemSortComparator(i)),c}_renderTable(e){if(!e.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of e.headings){let c=`lh-table-column--${s.valueType||"text"}`,l=this._dom.createElement("div","lh-text");l.textContent=s.label,this._dom.createChildOf(i,"th",c).append(l)}let o=this._getEntityGroupItems(e),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,c=this._renderEntityGroupRow(s,e.headings);for(let m of e.items.filter(d=>d.entity===p))c.append(this._renderTableRowsFromItem(m,e.headings));let l=this._dom.findAll("tr",c);p&&l.length&&(l.forEach(m=>m.dataset.entity=p),this._adornEntityGroupRow(l[0])),r.append(c)}else{let s=!0;for(let p of e.items){let c=this._renderTableRowsFromItem(p,e.headings),l=this._dom.findAll("tr",c),m=l[0];if(typeof p.entity=="string"&&(m.dataset.entity=p.entity),e.isEntityGrouped&&p.entity)m.classList.add("lh-row--group"),this._adornEntityGroupRow(m);else for(let d of l)d.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(c)}}return n}_renderListValue(e){return e.type==="node"?this.renderNode(e):e.type==="text"?this._renderText(e.value):this.render(e)}_renderList(e){let n=this._dom.createElement("div","lh-list");return e.items.forEach(a=>{if(a.type==="list-section"){let o=this._dom.createElement("div","lh-list-section");a.title&&this._dom.createChildOf(o,"div","lh-list-section__title").append(this._dom.convertMarkdownLinkSnippets(a.title)),a.description&&this._dom.createChildOf(o,"div","lh-list-section__description").append(this._dom.convertMarkdownLinkSnippets(a.description));let r=this._renderListValue(a.value);r&&o.append(r),n.append(o);return}let i=this._renderListValue(a);i&&n.append(i)}),n}_renderChecklist(e){let n=this._dom.createElement("ul","lh-checklist");return Object.values(e.items).forEach(a=>{let i=this._dom.createChildOf(n,"li","lh-checklist-item"),o=a.value?"lh-report-plain-icon--checklist-pass":"lh-report-plain-icon--checklist-fail";this._dom.createChildOf(i,"span",`lh-report-plain-icon ${o}`).textContent=a.label}),n}renderNode(e){let n=this._dom.createElement("span","lh-node");if(e.nodeLabel){let r=this._dom.createElement("div");r.textContent=e.nodeLabel,n.append(r)}if(e.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=e.snippet,n.append(r)}if(e.selector&&(n.title=e.selector),e.path&&n.setAttribute("data-path",e.path),e.selector&&n.setAttribute("data-selector",e.selector),e.snippet&&n.setAttribute("data-snippet",e.snippet),!this._fullPageScreenshot)return n;let a=e.lhId&&this._fullPageScreenshot.nodes[e.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=le.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(e){if(!e.url)return null;let n=`${e.url}:${e.line+1}:${e.column}`,a;e.original&&(a=`${e.original.file||"<unmapped>"}:${e.original.line+1}:${e.original.column}`);let i;if(e.urlProvider==="network"&&a)i=this._renderLink({url:e.url,text:a}),i.title=`maps to generated location ${n}`;else if(e.urlProvider==="network"&&!a)i=this.renderTextURL(e.url),this._dom.find(".lh-link",i).textContent+=`:${e.line+1}:${e.column}`;else if(e.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(e.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",e.url),i.setAttribute("data-source-line",String(e.line)),i.setAttribute("data-source-column",String(e.column)),i}_renderFilmstrip(e){let n=this._dom.createElement("div","lh-filmstrip");for(let a of e.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");o.src=a.data,o.alt="Screenshot"}return n}_renderCode(e){let n=this._dom.createElement("pre","lh-code");return n.textContent=e,n}};function Pa(t){let e=t.createComponent("explodeyGauge");return t.find(".lh-exp-gauge-component",e)}function Aa(t,e,n){let a=t.find("div.lh-exp-gauge__wrapper",e);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${A.calculateRating(n.score)}`),Do(t,a,n)}function No(t,e,n){n=n||t/32;let a=t/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,c=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(e*r)),getMetricArcLength:(l,m=!1)=>{let d=m?0:2*c;return Math.max(0,Number(l*p-i-d))},endDiffInner:s,endDiffOuter:c,strokeWidth:n,strokeGap:i}}function Do(t,e,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:c,getArcLength:l,getMetricArcLength:m,endDiffInner:d,endDiffOuter:h,strokeWidth:f,strokeGap:C}=No(128,o),g=t.find("svg.lh-exp-gauge",e);t.find(".lh-exp-gauge__label",g).textContent=n.title,g.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),g.style.setProperty("--stroke-width",`${f}px`),g.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let _=t.find("g.lh-exp-gauge__outer",e),v=t.find("g.lh-exp-gauge__inner",e),y=t.find("circle.lh-cover",_),w=t.find("circle.lh-exp-gauge__arc",v),P=t.find("text.lh-exp-gauge__percentage",v);_.style.setProperty("--scale-initial",String(r/s)),_.style.setProperty("--radius",`${s}px`),y.style.setProperty("--radius",`${.5*(r+s)}px`),y.setAttribute("stroke-width",String(C)),g.style.setProperty("--radius",`${r}px`),w.setAttribute("stroke-dasharray",`${l()} ${(p-l()).toFixed(4)}`),w.setAttribute("stroke-dashoffset",String(.25*p-d)),P.textContent=Math.round(o*100).toString();let L=s+f,R=s-f,M=n.auditRefs.filter(E=>E.group==="metrics"&&E.weight),G=M.reduce((E,z)=>E+=z.weight,0),Z=.25*c-h-.5*C,K=-.5*Math.PI;_.querySelectorAll(".metric").forEach(E=>{M.map(V=>`metric--${V.id}`).find(V=>E.classList.contains(V))||E.remove()}),M.forEach((E,z)=>{let H=E.acronym??E.id,V=!_.querySelector(`.metric--${H}`),O=t.maybeFind(`g.metric--${H}`,_)||t.createSVGElement("g"),de=t.maybeFind(`.metric--${H} circle.lh-exp-gauge--faded`,_)||t.createSVGElement("circle"),we=t.maybeFind(`.metric--${H} circle.lh-exp-gauge--miniarc`,_)||t.createSVGElement("circle"),me=t.maybeFind(`.metric--${H} circle.lh-exp-gauge-hovertarget`,_)||t.createSVGElement("circle"),W=t.maybeFind(`.metric--${H} text.metric__label`,_)||t.createSVGElement("text"),Y=t.maybeFind(`.metric--${H} text.metric__value`,_)||t.createSVGElement("text");O.classList.add("metric",`metric--${H}`),de.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),we.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),me.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let he=E.weight/G,Jt=m(he),Zt=E.result.score?E.result.score*he:0,Kt=m(Zt),ti=he*c,Xt=m(he,!0),Yt=A.calculateRating(E.result.score,E.result.scoreDisplayMode);O.style.setProperty("--metric-rating",Yt),O.style.setProperty("--metric-color",`var(--color-${Yt})`),O.style.setProperty("--metric-offset",`${Z}`),O.style.setProperty("--i",z.toString()),de.setAttribute("stroke-dasharray",`${Jt} ${c-Jt}`),we.style.setProperty("--metric-array",`${Kt} ${c-Kt}`),me.setAttribute("stroke-dasharray",`${Xt} ${c-Xt-h}`),W.classList.add("metric__label"),Y.classList.add("metric__value"),W.textContent=H,Y.textContent=`+${Math.round(Zt*100)}`;let Qt=K+he*Math.PI,xe=Math.cos(Qt),Se=Math.sin(Qt);switch(!0){case xe>0:Y.setAttribute("text-anchor","end");break;case xe<0:W.setAttribute("text-anchor","end");break;case xe===0:W.setAttribute("text-anchor","middle"),Y.setAttribute("text-anchor","middle");break}switch(!0){case Se>0:W.setAttribute("dominant-baseline","hanging");break;case Se<0:Y.setAttribute("dominant-baseline","hanging");break;case Se===0:W.setAttribute("dominant-baseline","middle"),Y.setAttribute("dominant-baseline","middle");break}W.setAttribute("x",(L*xe).toFixed(2)),W.setAttribute("y",(L*Se).toFixed(2)),Y.setAttribute("x",(R*xe).toFixed(2)),Y.setAttribute("y",(R*Se).toFixed(2)),V&&(O.appendChild(de),O.appendChild(we),O.appendChild(me),O.appendChild(W),O.appendChild(Y),_.appendChild(O)),Z-=ti,K+=he*2*Math.PI});let q=_.querySelector(".lh-exp-gauge-underhovertarget")||t.createSVGElement("circle");q.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let X=m(1,!0);if(q.setAttribute("stroke-dasharray",`${X} ${c-X-h}`),q.isConnected||_.prepend(q),g.dataset.listenersSetup)return;g.dataset.listenersSetup=!0,ei(g),g.addEventListener("pointerover",E=>{if(E.target===g&&g.classList.contains("state--expanded")){g.classList.remove("state--expanded"),g.classList.contains("state--highlight")&&(g.classList.remove("state--highlight"),t.find(".metric--highlight",g).classList.remove("metric--highlight"));return}if(!(E.target instanceof Element))return;let z=E.target.parentNode;if(z instanceof SVGElement){if(z&&z===v){g.classList.contains("state--expanded")?g.classList.contains("state--highlight")&&(g.classList.remove("state--highlight"),t.find(".metric--highlight",g).classList.remove("metric--highlight")):g.classList.add("state--expanded");return}if(z&&z.classList&&z.classList.contains("metric")){let H=z.style.getPropertyValue("--metric-rating");if(e.style.setProperty("--color-highlight",`var(--color-${H}-secondary)`),!g.classList.contains("state--highlight"))g.classList.add("state--highlight"),z.classList.add("metric--highlight");else{let V=t.find(".metric--highlight",g);z!==V&&(V.classList.remove("metric--highlight"),z.classList.add("metric--highlight"))}}}}),g.addEventListener("mouseleave",()=>{g.classList.remove("state--highlight"),g.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function ei(E){if(await new Promise(W=>setTimeout(W,1e3)),E.classList.contains("state--expanded"))return;let z=t.find(".lh-exp-gauge__inner",E),H=`uniq-${Math.random()}`;z.setAttribute("id",H);let V=t.createSVGElement("use");V.setAttribute("href",`#${H}`),E.appendChild(V);let O=2.5;E.style.setProperty("--peek-dur",`${O}s`),E.classList.add("state--peek","state--expanded");let de=()=>{E.classList.remove("state--peek","state--expanded"),V.remove()},we=setTimeout(()=>{E.removeEventListener("mouseenter",me),de()},O*1e3*1.5);function me(){clearTimeout(we),de()}E.addEventListener("mouseenter",me,{once:!0})}}var Ea="__lh__insights_audits_toggle_state_2",dt=class extends se{_memoryInsightToggleState="DEFAULT";_renderMetric(e){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=e.result.id;let i=A.calculateRating(e.result.score,e.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=e.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=e.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(e.result.description)),e.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=e.result.errorMessage||"Report error: no metric information"}else e.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(e){let n=e.filter(m=>m.group==="metrics"),a=e.find(m=>m.id==="interactive"),i=e.find(m=>m.id==="first-cpu-idle"),o=e.find(m=>m.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&typeof o.result.score=="number"&&n.push(o);let r=m=>Math.round(m*100)/100,p=[...n.map(m=>{let d;return typeof m.result.numericValue=="number"?(d=m.id==="cumulative-layout-shift"?r(m.result.numericValue):Math.round(m.result.numericValue),d=d.toString()):d="null",[m.acronym||m.id,d]})];b.reportJson&&(p.push(["device",b.reportJson.configSettings.formFactor]),p.push(["version",b.reportJson.lighthouseVersion]));let c=new URLSearchParams(p),l=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return l.hash=c.toString(),l.href}overallImpact(e,n){if(!e.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(e.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let c=r/p*s.weight;i+=c;let l=s.result.scoringOptions;if(!l)continue;let d=(U.computeLogNormalScore(l,p-r)-s.result.score)*s.weight;a+=d}return{overallImpact:a,overallLinearImpact:i}}_persistInsightToggleToStorage(e){try{window.localStorage.setItem(Ea,e)}finally{this._memoryInsightToggleState=e}}_getInsightToggleState(){let e=this._getRawInsightToggleState();return e==="DEFAULT"&&(e="INSIGHTS"),e}_getRawInsightToggleState(){try{let e=window.localStorage.getItem(Ea);if(e==="AUDITS"||e==="INSIGHTS")return e}catch{return this._memoryInsightToggleState}return"DEFAULT"}_setInsightToggleButtonText(e){let n=this._getInsightToggleState();e.innerText=n==="AUDITS"?b.strings.tryInsights:b.strings.goBackToAudits}_renderInsightsToggle(e){let n=this.dom.createChildOf(e,"div","lh-perf-insights-toggle"),a=this.dom.createChildOf(n,"span","lh-perf-toggle-text"),i=this.dom.createElement("span","lh-perf-insights-icon insights-icon-url");a.appendChild(i),a.appendChild(this.dom.convertMarkdownLinkSnippets(b.strings.insightsNotice));let r=this.dom.createChildOf(n,"button","lh-button lh-button-insight-toggle");this._setInsightToggleButtonText(r),r.addEventListener("click",s=>{s.preventDefault();let p=this.dom.maybeFind(".lh-perf-audits--swappable");p&&this.dom.swapSectionIfPossible(p);let l=this._getInsightToggleState()==="AUDITS"?"INSIGHTS":"AUDITS";this.dom.fireEventOn("lh-analytics",this.dom.document(),{name:"toggle_insights",data:{newState:l}}),this._persistInsightToggleToStorage(l),this._setInsightToggleButtonText(r)}),n.appendChild(r)}render(e,n,a){let i=b.strings,o=this.dom.createElement("div","lh-category");o.id=e.id,o.append(this.renderCategoryHeader(e,n,a));let r=e.auditRefs.filter(h=>h.group==="metrics");if(r.length){let[h,f]=this.renderAuditGroup(n.metrics),C=this.dom.createElement("input","lh-metrics-toggle__input"),g=`lh-metrics-toggle${b.getUniqueSuffix()}`;C.setAttribute("aria-label","Toggle the display of metric descriptions"),C.type="checkbox",C.id=g,h.prepend(C);let _=this.dom.find(".lh-audit-group__header",h),v=this.dom.createChildOf(_,"label","lh-metrics-toggle__label");v.htmlFor=g;let y=this.dom.createChildOf(v,"span","lh-metrics-toggle__labeltext--show"),w=this.dom.createChildOf(v,"span","lh-metrics-toggle__labeltext--hide");y.textContent=b.strings.expandView,w.textContent=b.strings.collapseView;let P=this.dom.createElement("div","lh-metrics-container");if(h.insertBefore(P,f),r.forEach(L=>{P.append(this._renderMetric(L))}),o.querySelector(".lh-gauge__wrapper")){let L=this.dom.find(".lh-category-header__description",o),R=this.dom.createChildOf(L,"div","lh-metrics__disclaimer"),M=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);R.append(M);let G=this.dom.createChildOf(R,"a","lh-calclink");G.target="_blank",G.textContent=i.calculatorLink,this.dom.safelySetHref(G,this._getScoringCalculatorHref(e.auditRefs))}h.classList.add("lh-audit-group--metrics"),o.append(h)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),c=e.auditRefs.find(h=>h.id==="screenshot-thumbnails")?.result;if(c?.details){s.id=c.id;let h=this.detailsRenderer.render(c.details);h&&s.append(h)}this._renderInsightsToggle(o);let l=this.renderFilterableSection(e,n,["diagnostics"],r);l?.classList.add("lh-perf-audits--swappable","lh-perf-audits--legacy");let m=this.renderFilterableSection(e,n,["insights","diagnostics"],r);if(m?.classList.add("lh-perf-audits--swappable","lh-perf-audits--experimental"),l&&(o.append(l),m&&this.dom.registerSwappableSections(l,m)),this._getInsightToggleState()==="INSIGHTS"&&requestAnimationFrame(()=>{let h=this.dom.maybeFind(".lh-perf-audits--swappable");h&&this.dom.swapSectionIfPossible(h)}),this.dom.fireEventOn("lh-analytics",this.dom.document(),{name:"initial_insights_state",data:{state:this._getRawInsightToggleState()}}),(!a||a?.gatherMode==="navigation")&&e.score!==null){let h=Pa(this.dom);Aa(this.dom,h,e),this.dom.find(".lh-score__gauge",o).replaceWith(h)}return o}renderFilterableSection(e,n,a,i){if(a.some(v=>!n[v]))return null;let o=this.dom.createElement("div"),r=new Set,s=v=>v.id.endsWith("-insight")?"insights":v.group??"",p=e.auditRefs.filter(v=>a.includes(s(v)));for(let v of p)v.result.replacesAudits?.forEach(y=>{r.add(y)});let c=p.filter(v=>!r.has(v.id)).map(v=>{let{overallImpact:y,overallLinearImpact:w}=this.overallImpact(v,i),P=v.result.guidanceLevel||1,L=this.renderAudit(v);return{auditRef:v,auditEl:L,overallImpact:y,overallLinearImpact:w,guidanceLevel:P}}),l=c.filter(v=>!A.showAsPassed(v.auditRef.result)),m=c.filter(v=>A.showAsPassed(v.auditRef.result)),d={};for(let v of a){let y=this.renderAuditGroup(n[v]);y[0].classList.add(`lh-audit-group--${v}`),d[v]=y}function h(v){for(let y of c)if(v==="All")y.auditEl.hidden=!1;else{let w=y.auditRef.result.metricSavings?.[v]===void 0;y.auditEl.hidden=w}l.sort((y,w)=>{let P=y.auditRef.result.score||0,L=w.auditRef.result.score||0;if(P!==L)return P-L;if(v!=="All"){let R=y.auditRef.result.metricSavings?.[v]??-1,M=w.auditRef.result.metricSavings?.[v]??-1;if(R!==M)return M-R}return y.overallImpact!==w.overallImpact?w.overallImpact*w.guidanceLevel-y.overallImpact*y.guidanceLevel:y.overallImpact===0&&w.overallImpact===0&&y.overallLinearImpact!==w.overallLinearImpact?w.overallLinearImpact*w.guidanceLevel-y.overallLinearImpact*y.guidanceLevel:w.guidanceLevel-y.guidanceLevel});for(let y of l){if(!y.auditRef.group)continue;let w=d[s(y.auditRef)];if(!w)continue;let[P,L]=w;P.insertBefore(y.auditEl,L)}}let f=new Set;for(let v of l){let y=v.auditRef.result.metricSavings||{};for(let[w,P]of Object.entries(y))typeof P=="number"&&f.add(w)}let C=i.filter(v=>v.acronym&&f.has(v.acronym));C.length&&this.renderMetricAuditFilter(C,o,h),h("All");for(let v of a)if(l.some(y=>s(y.auditRef)===v)){let y=d[v];if(!y)continue;o.append(y[0])}if(!m.length)return o;let g={auditRefsOrEls:m.map(v=>v.auditEl),groupDefinitions:n},_=this.renderClump("passed",g);return o.append(_),o}renderMetricAuditFilter(e,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=b.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...e],s=b.getUniqueSuffix();for(let p of r){let c=`metric-${p.acronym}-${s}`,l=this.dom.createChildOf(i,"input","lh-metricfilter__radio");l.type="radio",l.name=`metricsfilter-${s}`,l.id=c;let m=this.dom.createChildOf(i,"label","lh-metricfilter__label");m.htmlFor=c,m.title="result"in p?p.result.title:"",m.textContent=p.acronym||p.id,p.acronym==="All"&&(l.checked=!0,m.classList.add("lh-metricfilter__label--active")),n.append(i),l.addEventListener("input",d=>{for(let f of n.querySelectorAll("label.lh-metricfilter__label"))f.classList.toggle("lh-metricfilter__label--active",f.htmlFor===c);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let f of h){f.hidden=!1;let C=Array.from(f.querySelectorAll("div.lh-audit")),g=!!C.length&&C.every(_=>_.hidden);f.hidden=g}})}}};var mt=class{constructor(e){this._dom=e,this._opts={}}renderReport(e,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(e.configSettings.channel||"unknown");let i=A.prepareReportResult(e);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(e){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=e.finalDisplayedUrl,a.title=e.finalDisplayedUrl,this._dom.safelySetHref(a,e.finalDisplayedUrl),n}_renderReportHeader(){let e=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",e).replaceWith(n),e}_renderReportFooter(e){let n=this._dom.createComponent("footer");return this._renderMetaBlock(e,n),this._dom.find(".lh-footer__version_issue",n).textContent=b.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=e.lighthouseVersion,n}_renderMetaBlock(e,n){let a=A.getEmulationDescriptions(e.configSettings||{}),i=e.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=e.configSettings.channel,s=e.environment.benchmarkIndex.toFixed(0),p=e.environment.credits?.["axe-core"],c=[`${b.strings.runtimeSettingsBenchmark}: ${s}`,`${b.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&c.push(`${b.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&c.push(`${b.strings.runtimeSettingsAxeVersion}: ${p}`);let l=b.strings.runtimeAnalysisWindow;e.gatherMode==="timespan"?l=b.strings.runtimeAnalysisWindowTimespan:e.gatherMode==="snapshot"&&(l=b.strings.runtimeAnalysisWindowSnapshot);let m=[["date",`Captured at ${b.i18n.formatDateTime(e.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${e.lighthouseVersion}`,c.join(`
2877
+ `)],["samples-one",b.strings.runtimeSingleLoad,b.strings.runtimeSingleLoadTooltip],["stopwatch",l],["networkspeed",`${a.summary}`,`${b.strings.runtimeSettingsNetworkThrottling}: ${a.networkThrottling}`],["chrome",`Using ${o}`+(r?` with ${r}`:""),`${b.strings.runtimeSettingsUANetwork}: "${e.environment.networkUserAgent}"`]],d=this._dom.find(".lh-meta__items",n);for(let[h,f,C]of m){let g=this._dom.createChildOf(d,"li","lh-meta__item");if(g.textContent=f,C){g.classList.add("lh-tooltip-boundary");let _=this._dom.createChildOf(g,"div","lh-tooltip");_.textContent=C}g.classList.add("lh-report-icon",`lh-report-icon--${h}`)}}_renderReportWarnings(e){if(!e.runWarnings||e.runWarnings.length===0)return this._dom.createElement("div");let n=this._dom.createComponent("warningsToplevel"),a=this._dom.find(".lh-warnings__msg",n);a.textContent=b.strings.toplevelWarningsMessage;let i=[];for(let o of e.runWarnings){let r=this._dom.createElement("li");r.append(this._dom.convertMarkdownLinkSnippets(o)),i.push(r)}return this._dom.find("ul",n).append(...i),n}_renderScoreGauges(e,n,a){let i=[],o=[];for(let r of Object.values(e.categories)){let p=(a[r.id]||n).renderCategoryScore(r,e.categoryGroups||{},{gatherMode:e.gatherMode}),c=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",p);c&&(this._dom.safelySetHref(c,`#${r.id}`),c.addEventListener("click",l=>{if(!c.matches('[href^="#"]'))return;let m=c.getAttribute("href"),d=this._dom.rootEl;if(!m||!d)return;let h=this._dom.find(m,d);l.preventDefault(),h.scrollIntoView()}),this._opts.onPageAnchorRendered?.(c)),A.isPluginCategory(r.id)?o.push(p):i.push(p)}return[...i,...o]}_renderReport(e){b.apply({providedStrings:e.i18n.rendererFormattedStrings,i18n:new ce(e.configSettings.locale),reportJson:e});let n=new _e(this._dom,{fullPageScreenshot:e.fullPageScreenshot??void 0,entities:e.entities}),a=new se(this._dom,n),i={performance:new dt(this._dom,n)},o=this._dom.createElement("div");o.append(this._renderReportHeader());let r=this._dom.createElement("div","lh-container"),s=this._dom.createElement("div","lh-report");s.append(this._renderReportWarnings(e));let p;Object.keys(e.categories).length===1?o.classList.add("lh-header--solo-category"):p=this._dom.createElement("div","lh-scores-header");let l=this._dom.createElement("div");if(l.classList.add("lh-scorescale-wrap"),l.append(this._dom.createComponent("scorescale")),p){let f=this._dom.find(".lh-scores-container",o);p.append(...this._renderScoreGauges(e,a,i)),f.append(p,l);let C=this._dom.createElement("div","lh-sticky-header");C.append(...this._renderScoreGauges(e,a,i)),r.append(C)}let m=this._dom.createElement("div","lh-categories");s.append(m);let d={gatherMode:e.gatherMode};for(let f of Object.values(e.categories)){let C=i[f.id]||a;C.dom.createChildOf(m,"div","lh-category-wrapper").append(C.render(f,e.categoryGroups,d))}a.injectFinalScreenshot(m,e.audits,l);let h=this._dom.createFragment();return this._opts.omitGlobalStyles||h.append(this._dom.createComponent("styles")),this._opts.omitTopbar||h.append(this._renderReportTopbar(e)),h.append(r),s.append(this._renderReportFooter(e)),r.append(o,s),e.fullPageScreenshot&&le.installFullPageScreenshot(this._dom.rootEl,e.fullPageScreenshot.screenshot),h}};function Ce(t,e){let n=t.rootEl;typeof e>"u"?n.classList.toggle("lh-dark"):n.classList.toggle("lh-dark",e)}var zo=typeof btoa<"u"?btoa:t=>Buffer.from(t).toString("base64"),jo=typeof atob<"u"?atob:t=>Buffer.from(t,"base64").toString();async function Mo(t,e){let n=new TextEncoder().encode(t);if(e.gzip)if(typeof CompressionStream<"u"){let o=new CompressionStream("gzip"),r=o.writable.getWriter();r.write(n),r.close();let s=await new Response(o.readable).arrayBuffer();n=new Uint8Array(s)}else n=window.pako.gzip(t);let a="",i=5e3;for(let o=0;o<n.length;o+=i)a+=String.fromCharCode(...n.subarray(o,o+i));return zo(a)}function Ho(t,e){let n=jo(t),a=Uint8Array.from(n,i=>i.charCodeAt(0));return e.gzip?window.pako.ungzip(a,{to:"string"}):new TextDecoder().decode(a)}var La={toBase64:Mo,fromBase64:Ho};function Gt(){let t=window.location.host.endsWith(".vercel.app"),e=new URLSearchParams(window.location.search).has("dev");return t?`https://${window.location.host}/gh-pages`:e?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function Vt(t){let e=t.generatedTime,n=t.fetchTime||e;return`${t.lighthouseVersion}-${t.finalDisplayedUrl}-${n}`}function Fo(t,e,n){let a=new URL(e).origin;window.addEventListener("message",function o(r){r.origin===a&&i&&r.data.opened&&(i.postMessage(t,a),window.removeEventListener("message",o))});let i=window.open(e,n)}async function Ta(t,e,n){let a=new URL(e),i=!!window.CompressionStream;a.hash=await La.toBase64(JSON.stringify(t),{gzip:i}),i&&a.searchParams.set("gzip","1"),window.open(a.toString(),n)}async function Ua(t){let e="viewer-"+Vt(t),n=Gt()+"/viewer/";await Ta({lhr:t},n,e)}async function Ia(t){let e="viewer-"+Vt(t),n=Gt()+"/viewer/";Fo({lhr:t},n,e)}function Ra(t){if(!t.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let n={lhr:{mainDocumentUrl:t.mainDocumentUrl,finalUrl:t.finalUrl,finalDisplayedUrl:t.finalDisplayedUrl,audits:{"script-treemap-data":t.audits["script-treemap-data"]},configSettings:{locale:t.configSettings.locale}}},a=Gt()+"/treemap/",i="treemap-"+Vt(t);Ta(n,a,i)}var ht=class{constructor(e){this._dom=e,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(e){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventListener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",e)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(e){this._toggleEl.classList.contains("lh-active")?e.focus():this._menuEl.addEventListener("transitionend",()=>{e.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(e){switch(e.code){case"ArrowUp":e.preventDefault(),this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(e){let n=e.target;switch(e.code){case"ArrowUp":e.preventDefault(),this._getPreviousMenuItem(n).focus();break;case"ArrowDown":e.preventDefault(),this._getNextMenuItem(n).focus();break;case"Home":e.preventDefault(),this._getNextMenuItem().focus();break;case"End":e.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(e){e.keyCode===27&&this.close()}onMenuFocusOut(e){let n=e.relatedTarget;this._menuEl.contains(n)||this.close()}_getNextSelectableNode(e,n){let a=e.filter(o=>o instanceof HTMLElement).filter(o=>!(o.hasAttribute("disabled")||window.getComputedStyle(o).display==="none")),i=n?a.indexOf(n)+1:0;return i>=a.length&&(i=0),a[i]}_getNextMenuItem(e){let n=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(n,e)}_getPreviousMenuItem(e){let n=Array.from(this._menuEl.childNodes).reverse();return this._getNextSelectableNode(n,e)}};var gt=class{constructor(e,n){this.lhr,this._reportUIFeatures=e,this._dom=n,this._dropDownMenu=new ht(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(e){this.lhr=e,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>Ce(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(e){e.preventDefault();let n=e.target;if(!(!n||!n.hasAttribute("data-action"))){switch(n.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":this.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let a=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([a],{type:"application/json"}));break}case"save-html":{let a=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([a],{type:"text/html"}))}catch(i){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+i.message})}break}case"open-viewer":{this._dom.isDevTools()?Ua(this.lhr):Ia(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{Ce(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(e){this._copyAttempt&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied to clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{name:"copy"});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(e){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:e.message})}}onKeyUp(e){(e.ctrlKey||e.metaKey)&&e.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(e){let{overflowY:n}=window.getComputedStyle(e);return n!=="visible"&&n!=="hidden"?e:e.parentElement?this._getScrollParent(e.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(n=>{n.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),requestAnimationFrame(()=>requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let e=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));e.addEventListener("scroll",()=>this._updateStickyHeader());let n=e instanceof window.Document?document.documentElement:e;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(n)}))}_updateStickyHeader(){if(!this.stickyHeaderEl)return;let e=this.topbarEl.getBoundingClientRect().bottom,n=this.categoriesEl.getBoundingClientRect().top,a=e>=n,o=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(m=>m.getBoundingClientRect().top-window.innerHeight/2<0),r=o.length>0?o.length-1:0,s=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),p=s[r],c=s[0].getBoundingClientRect().left,l=p.getBoundingClientRect().left-c;this.highlightEl.style.transform=`translate(${l}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",a)}};function Na(t,e){let n=e?new Date(e):new Date,a=n.toLocaleTimeString("en-US",{hour12:!1}),i=n.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");i.unshift(i.pop());let o=i.join("-");return`${t}_${o}_${a}`.replace(/[/?<>\\:*|"]/g,"-")}function Da(t){let e=new URL(t.finalDisplayedUrl).hostname;return Na(e,t.fetchTime)}function za(t){let e=t.steps[0].lhr,n=t.name.replace(/\s/g,"-");return Na(n,e.fetchTime)}function Oo(t){return Array.from(t.tBodies[0].rows)}var ft=class{constructor(e,n={}){this.json,this._dom=e,this._opts=n,this._topbar=n.omitTopbar?null:new gt(this,e),this._tablesHandledFor3p=new WeakSet,this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(e){this.json=e,this._fullPageScreenshot=U.getFullPageScreenshot(e),this._topbar&&(this._topbar.enable(e),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl),this._dom._onSwap=()=>this._setupThirdPartyFilter();let n=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!n&&window.matchMedia("(prefers-color-scheme: dark)").matches&&Ce(this._dom,!0);let i=["performance","accessibility","best-practices","seo"].every(p=>{let c=e.categories[p];return c&&c.score===1}),o=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(i&&!o&&(this._enableFireworks(),n||Ce(this._dom,!0)),e.categories.performance&&e.categories.performance.auditRefs.some(p=>!!(p.group==="metrics"&&e.audits[p.id].errorMessage))){let p=this._dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);p.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:b.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Ra(this.json)}),this._opts.onViewTrace&&(e.configSettings.throttlingMethod==="simulate"?this._dom.find('a[data-action="view-unthrottled-trace"]',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:b.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find('a[data-action="save-html"]',this._dom.rootEl).classList.remove("lh-hidden");for(let p of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let l=p.getAttribute("data-i18n");p.textContent=b.strings[l]}}addButton(e){let n=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!n)return;let a=n.querySelector(".lh-buttons");a||(a=this._dom.createChildOf(n,"div","lh-buttons"));let i=["lh-button"];e.icon&&(i.push("lh-report-icon"),i.push(`lh-report-icon--${e.icon}`));let o=this._dom.createChildOf(a,"button",i.join(" "));return o.textContent=e.text,o.addEventListener("click",e.onClick),o}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let e=self.matchMedia("(max-width: 500px)");e.addListener(this.onMediaQueryChange),this.onMediaQueryChange(e)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(e){this._dom.rootEl.classList.toggle("lh-narrow",e.matches)}_setupThirdPartyFilter(){let e=["uses-rel-preconnect","third-party-facades","network-dependency-tree-insight"],n=["legacy-javascript","legacy-javascript-insight"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(o=>o.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(o=>{let r=o.closest(".lh-audit");if(!r)throw new Error(".lh-table not within audit");return!e.includes(r.id)}).forEach(o=>{if(this._tablesHandledFor3p.has(o))return;this._tablesHandledFor3p.add(o);let r=Oo(o),s=r.filter(g=>!g.classList.contains("lh-sub-item-row")),p=this._getThirdPartyRows(s,U.getFinalDisplayedUrl(this.json)),c=r.some(g=>g.classList.contains("lh-row--even")),l=this._dom.createComponent("3pFilter"),m=this._dom.find("input",l);m.addEventListener("change",g=>{let _=g.target instanceof HTMLInputElement&&!g.target.checked,v=!0,y=s[0];for(;y;){let w=_&&p.includes(y);do y.classList.toggle("lh-row--hidden",w),c&&(y.classList.toggle("lh-row--even",!w&&v),y.classList.toggle("lh-row--odd",!w&&!v)),y=y.nextElementSibling;while(y&&y.classList.contains("lh-sub-item-row"));w||(v=!v)}});let d=p.filter(g=>!g.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",l).textContent=`${d}`,this._dom.find(".lh-3p-ui-string",l).textContent=b.strings.thirdPartyResourcesLabel;let h=p.length===s.length,f=!p.length;if((h||f)&&(this._dom.find("div.lh-3p-filter",l).hidden=!0),!o.parentNode)return;o.parentNode.insertBefore(l,o);let C=o.closest(".lh-audit");if(!C)throw new Error(".lh-table not within audit");n.includes(C.id)&&!h&&m.click()})}_setupElementScreenshotOverlay(e){this._fullPageScreenshot&&le.installOverlayFeature({dom:this._dom,rootEl:e,overlayContainerEl:e,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(e,n){let a=U.getEntityFromUrl(n,this.json.entities),i=this.json.entities?.find(r=>r.isFirstParty===!0)?.name,o=[];for(let r of e){if(i){if(!r.dataset.entity||r.dataset.entity===i)continue}else{let s=r.querySelector("div.lh-text__url");if(!s)continue;let p=s.dataset.url;if(!p||!(U.getEntityFromUrl(p,this.json.entities)!==a))continue}o.push(r)}return o}_saveFile(e){let n=e.type.match("json")?".json":".html",a=Da({finalDisplayedUrl:U.getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+n;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(e,a):this._dom.saveFile(e,a)}};function ja(t,e={}){let n=document.createElement("article");n.classList.add("lh-root","lh-vars");let a=new re(n.ownerDocument,n),i=new mt(a);return e._onSwapHook&&(a._onSwapHook=e._onSwapHook),i.renderReport(t,n,e),new ft(a,e).initFeatures(t),n}function Ma(t,e){let n=new re(document,document.documentElement),a=new _e(n);return new se(n,a).renderCategoryScore(t,{},e)}function Ha(t,e){new re(document,document.documentElement).saveFile(t,e)}function Fa(t){return new re(document,document.documentElement).convertMarkdownCodeSnippets(t)}function Oa(){return new re(document,document.documentElement).createComponent("styles")}var Ba=({category:t,href:e,gatherMode:n})=>{let a=ie(()=>Ma(t,{gatherMode:n,omitLabel:!0,onPageAnchorRendered:i=>i.href=e}),[t,e]);return u("div",{ref:a,"data-testid":"CategoryScore"})};var Ga=({text:t})=>{let e=ie(()=>Fa(t),[t]);return u("span",{ref:e})};var Bo=2;function Go(t,e){switch(t){case"navigation":return e.navigationReport;case"timespan":return e.timespanReport;case"snapshot":return e.snapshotReport}}function Vo(t,e){switch(t){case"pass":return e.ratingPass;case"average":return e.ratingAverage;case"fail":return e.ratingFail;case"error":return e.ratingError}}function Va(t){return t.weight*(1-t.result.score)}var $o=({audit:t})=>{let e=A.calculateRating(t.result.score,t.result.scoreDisplayMode);return u("div",{className:`SummaryTooltipAudit SummaryTooltipAudit--${e}`,children:u(Ga,{text:t.result.title})})},qo=({category:t})=>{let e=D();function n(i){return i.result.score!==null&&i.group!=="metrics"&&i.group!=="hidden"&&(i.weight>0||i.group==="diagnostics")&&!A.showAsPassed(i.result)}let a=t.auditRefs.filter(n).sort((i,o)=>{let r=Va(i),s=Va(o);if(r!==s)return s-r;if(i.result.score!==o.result.score)return i.result.score-o.result.score;let p=i.result.metricSavings?.LCP||0;return(o.result.metricSavings?.LCP||0)-p}).splice(0,Bo);return a.length?u("div",{className:"SummaryTooltipAudits",children:[u("div",{className:"SummaryTooltipAudits__title",children:e.highestImpact}),a.map(i=>u($o,{audit:i},i.id))]}):null},Wo=({category:t,gatherMode:e,url:n})=>{let a=D(),i=ct(),{numPassed:o,numPassableAudits:r,numInformative:s,totalWeight:p}=A.calculateCategoryFraction(t),c=Ne(),l=A.shouldDisplayAsFraction(e),m=l?o/r:t.score,d=m===null?"error":A.calculateRating(m);return u("div",{className:"SummaryTooltip",children:[u("div",{className:"SummaryTooltip__title",children:Go(e,a)}),u("div",{className:"SummaryTooltip__url",children:n}),u($,{}),u("div",{className:"SummaryTooltip__category",children:[u("div",{className:"SummaryTooltip__category-title",children:t.title}),p!==0&&u("div",{className:`SummaryTooltip__rating SummaryTooltip__rating--${d}`,children:[u("span",{children:Vo(d,a)}),!l&&t.score!==null&&u(N,{children:[u("span",{children:" · "}),u("span",{children:c.formatter.formatInteger(t.score*100)})]})]})]}),u("div",{className:"SummaryTooltip__fraction",children:[u("span",{children:i(a.passedAuditCount,{numPassed:o})}),u("span",{children:" / "}),u("span",{children:i(a.passableAuditCount,{numPassableAudits:r})})]}),s!==0&&u("div",{className:"SummaryTooltip__informative",children:i(a.informativeAuditCount,{numInformative:s})}),u(qo,{category:t})]})},$a=({category:t,href:e,gatherMode:n,finalDisplayedUrl:a})=>u("div",{className:"SummaryCategory",children:t?u("div",{className:"SummaryCategory__content",children:[u(Ba,{category:t,href:e,gatherMode:n}),u(Wo,{category:t,gatherMode:n,url:a})]}):u("div",{className:"SummaryCategory__null","data-testid":"SummaryCategory__null"})});var Jo=["performance","accessibility","best-practices","seo"],Zo=40,Ko=({lhr:t})=>{let e=D();return u("div",{className:"SummaryNavigationHeader","data-testid":"SummaryNavigationHeader",children:[u(oe,{}),u("div",{className:"SummaryNavigationHeader__url",children:u("a",{rel:"noopener",target:"_blank",href:t.finalDisplayedUrl,children:t.finalDisplayedUrl})}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryPerformance}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryAccessibility}),u("div",{className:"SummaryNavigationHeader__category",children:e.categoryBestPractices}),u("div",{className:"SummaryNavigationHeader__category",children:e.categorySeo})]})},Xo=({lhr:t,label:e,hashIndex:n})=>{let a=Q(()=>A.prepareReportResult(t),[t]),i=D(),o=Ye(t.gatherMode,i);return u("div",{className:"SummaryFlowStep",children:[t.gatherMode==="navigation"||n===0?u(Ko,{lhr:t}):u("div",{className:"SummaryFlowStep__separator",children:[u(oe,{}),u($,{})]}),u(Qe,{lhr:t,width:Zo}),u(oe,{mode:t.gatherMode}),u("div",{className:"SummaryFlowStep__label",children:[u("div",{className:"SummaryFlowStep__mode",children:o}),u("a",{className:"SummaryFlowStep__link",href:`#index=${n}`,children:e})]}),Jo.map(r=>u($a,{category:a.categories[r],href:`#index=${n}&anchor=${r}`,gatherMode:t.gatherMode,finalDisplayedUrl:t.finalDisplayedUrl},r))]})},Yo=()=>{let t=B();return u("div",{className:"SummaryFlow",children:t.steps.map((e,n)=>u(Xo,{lhr:e.lhr,label:e.name,hashIndex:n},e.lhr.fetchTime))})},Qo=()=>{let t=B(),e=D(),n=ct(),a=0,i=0,o=0;for(let p of t.steps)switch(p.lhr.gatherMode){case"navigation":a++;break;case"timespan":i++;break;case"snapshot":o++;break}let r=[];a&&r.push(n(e.navigationReportCount,{numNavigation:a})),i&&r.push(n(e.timespanReportCount,{numTimespan:i})),o&&r.push(n(e.snapshotReportCount,{numSnapshot:o}));let s=r.join(" · ");return u("div",{className:"SummaryHeader",children:[u("div",{className:"SummaryHeader__title",children:e.summary}),u("div",{className:"SummaryHeader__subtitle",children:s})]})},er=({children:t})=>u("div",{className:"SummarySectionHeader",children:[u("div",{className:"SummarySectionHeader__content",children:t}),u($,{})]}),qa=()=>{let t=D();return u("div",{className:"Summary","data-testid":"Summary",children:[u(Qo,{}),u($,{}),u(er,{children:t.allReports}),u(Yo,{})]})};function tr(t,e){let n=t.cloneNode(!0);if(!n.hash)return n;let a=t.hash.substr(1);n.hash=`#index=${e}&anchor=${a}`,n.onclick=i=>{i.preventDefault();let o=document.getElementById(a);o&&o.scrollIntoView()},t.replaceWith(n)}var Wa=({hashState:t})=>{let e=ie(()=>ja(t.currentLhr,{disableFireworks:!0,disableDarkMode:!0,omitTopbar:!0,omitGlobalStyles:!0,onPageAnchorRendered:n=>tr(n,t.index)}),[t]);return u("div",{ref:e,"data-testid":"Report"})};var $t=t=>{let e=D();return u("div",{className:"HelpDialogColumn",children:[u("div",{className:"HelpDialogColumn__legend",children:[u("div",{className:"HelpDialogColumnTimeline",children:[t.icon,u("div",{className:"HelpDialogColumnTimeline__line"})]}),u("div",{className:"HelpDialogColumn__legend-label",children:t.userFriendlyModeLabel})]}),u("div",{className:"HelpDialogColumn__header",children:[u("div",{className:"HelpDialogColumn__header-title",children:t.lighthouseOfficialModeLabel}),u("p",{children:t.modeDescription})]}),u("div",{className:"HelpDialogColumn__use-cases",children:[u("p",{children:t.useCaseInstruction}),u("ul",{children:t.useCases.map((n,a)=>u("li",{children:n},a))})]}),u("div",{className:"HelpDialogColumn__categories",children:[u("p",{children:e.categories}),u("ul",{children:t.availableCategories.map((n,a)=>u("li",{children:n},a))})]})]})},Ja=({onClose:t})=>{let e=D();return u("div",{className:"HelpDialog",children:[u("div",{className:"HelpDialog__title",children:[u("div",{children:e.helpDialogTitle}),u("div",{style:{flexGrow:1}}),u("button",{className:"HelpDialog__close",onClick:t,children:u(Rn,{})})]}),u("div",{className:"HelpDialog__columns",children:[u($t,{icon:u(Ze,{}),userFriendlyModeLabel:e.navigationDescription,lighthouseOfficialModeLabel:e.navigationReport,modeDescription:e.navigationLongDescription,useCaseInstruction:e.helpUseCaseInstructionNavigation,useCases:[e.helpUseCaseNavigation1,e.helpUseCaseNavigation2,e.helpUseCaseNavigation3],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]}),u($t,{icon:u(Ke,{}),userFriendlyModeLabel:e.timespanDescription,lighthouseOfficialModeLabel:e.timespanReport,modeDescription:e.timespanLongDescription,useCaseInstruction:e.helpUseCaseInstructionTimespan,useCases:[e.helpUseCaseTimespan1,e.helpUseCaseTimespan2],availableCategories:[e.categoryPerformance,e.categoryBestPractices]}),u($t,{icon:u(Xe,{}),userFriendlyModeLabel:e.snapshotDescription,lighthouseOfficialModeLabel:e.snapshotReport,modeDescription:e.snapshotLongDescription,useCaseInstruction:e.helpUseCaseInstructionSnapshot,useCases:[e.helpUseCaseSnapshot1,e.helpUseCaseSnapshot2],availableCategories:[e.categoryPerformance,e.categoryAccessibility,e.categoryBestPractices,e.categorySeo]})]})]})};function qt(t,e){let n=new Blob([e],{type:"text/html"}),a=za(t)+".html";qt.saveFile(n,a)}qt.saveFile=Ha;var nr=()=>u("svg",{role:"img",class:"lh-topbar__logo",title:"Lighthouse logo",width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[u("path",{d:"m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z",fill:"#F63"}),u("path",{d:"M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z",fill:"#FFA385"}),u("path",{fill:"#FF3",d:"M20.5 10h7v7h-7z"})]}),vt=({onClick:t,label:e,children:n})=>u("button",{className:"TopbarButton",onClick:t,"aria-label":e,children:n}),Za=({onMenuClick:t})=>{let e=B(),n=D(),[a,i]=ae(!1),{getReportHtml:o,saveAsGist:r}=Bn();return u("div",{className:"Topbar",children:[u(vt,{onClick:t,label:"Button that opens and closes the sidebar",children:u(jn,{})}),u("div",{className:"Topbar__logo",children:u(nr,{})}),u("div",{className:"Topbar__title",children:n.title}),o&&u(vt,{onClick:()=>{let s=o(e);qt(e,s)},label:"Button that saves the report as HTML",children:n.save}),r&&u(vt,{onClick:()=>r(e),label:"Button that saves the report to a gist",children:n.dropdownSaveGist}),u("div",{style:{flexGrow:1}}),u(vt,{onClick:()=>i(s=>!s),label:"Button that toggles the help dialog",children:u("div",{className:"Topbar__help-label",children:[u(Mn,{}),n.helpLabel]})}),a?u(Ja,{onClose:()=>i(!1)}):null]})};var ar=80,ir=120,Wt=({lhr:t,position:e})=>{let n=e==="main"?ir:ar;return u("div",{className:`HeaderThumbnail HeaderThumbnail--${e}`,children:[u(Qe,{lhr:t,height:n}),u("div",{className:"HeaderThumbnail__icon",children:u(kt,{mode:t.gatherMode})})]})},Ka=({hashState:t})=>{let e=B(),{index:n}=t,a=e.steps[n],i=e.steps[n-1],o=e.steps[n+1],r=D(),s=Ye(a.lhr.gatherMode,r);return u("div",{className:"Header",children:[i&&u(N,{children:[e.steps[n-2]&&u("div",{className:"Header__segment"}),u("div",{className:"Header__prev-thumbnail",children:[u(Wt,{lhr:i.lhr,position:"prev"}),u("div",{className:"Header__segment"})]}),u("a",{className:"Header__prev-title",href:`#index=${n-1}`,children:i.name})]}),u("div",{className:"Header__current-thumbnail",children:u(Wt,{lhr:a.lhr,position:"main"})}),u("div",{className:"Header__current-title",children:[a.name,u("div",{className:"Header__current-description",children:s})]}),o&&u(N,{children:[u("div",{className:"Header__next-thumbnail",children:[u("div",{className:"Header__segment"}),u(Wt,{lhr:o.lhr,position:"next"})]}),u("a",{className:"Header__next-title",href:`#index=${n+1}`,children:o.name}),e.steps[n+2]&&u("div",{className:"Header__segment"})]})]})};var Xa=()=>{let t=ie(Oa);return u("div",{ref:t})};function or(t){return!t||!t.anchor?null:document.getElementById(t.anchor)}var rr=()=>{let t=be(),e=We(null);return qe(()=>{let n=or(t);n?n.scrollIntoView():e.current&&(e.current.scrollTop=0)},[t]),u("div",{ref:e,className:"Content",children:t?u(N,{children:[u(Ka,{hashState:t}),u(Wa,{hashState:t})]}):u(qa,{})})},Ya=({flowResult:t,options:e})=>{let[n,a]=ae(!1),i=Q(()=>e||{},[e]);return u(St.Provider,{value:i,children:u(xt.Provider,{value:t,children:u(Ca,{children:[u(Xa,{}),u("div",{className:ve("App",{"App--collapsed":n}),"data-testid":"App",children:[u(Za,{onMenuClick:()=>a(o=>!o)}),u(xa,{}),u(rr,{})]})]})})})};function Qa(t,e,n){e.classList.add("flow-vars","lh-vars","lh-root"),vn(yt(Ya,{flowResult:t,options:n}),e)}function sr(){let t=document.body.querySelector("main");if(!t)throw Error("Container element not found");Qa(window.__LIGHTHOUSE_FLOW_JSON__,t,{getReportHtml:()=>document.documentElement.outerHTML})}window.__initLighthouseFlowReport__=sr;window.__initLighthouseFlowReport__();})();
2876
2878
  /**
2877
2879
  * @license
2878
2880
  * Copyright 2017 Google LLC