@lhci/viewer 0.7.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{favicon.87130de5.png → favicon.png} +0 -0
- package/dist/icons/apple-touch-icon-ipad.png +0 -0
- package/dist/icons/apple-touch-icon.png +0 -0
- package/dist/icons/favicon-16x16.png +0 -0
- package/dist/icons/favicon-196x196.png +0 -0
- package/dist/icons/favicon-32x32.png +0 -0
- package/dist/icons/favicon-48x48.png +0 -0
- package/dist/{confetti.881a10f8.svg → iife/assets/confetti.svg} +0 -0
- package/dist/{favicon.5ff0c208.svg → iife/assets/favicon.svg} +0 -0
- package/dist/{loading-spinner.6bfd50e7.svg → iife/assets/loading-spinner.svg} +0 -0
- package/dist/{logo.da01b9a5.svg → iife/assets/logo.svg} +0 -0
- package/dist/iife/assets/material-icons-base-400-normal.woff +0 -0
- package/dist/iife/assets/material-icons-base-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-all-400-normal.woff +0 -0
- package/dist/iife/assets/roboto-all-500-normal.woff +0 -0
- package/dist/iife/assets/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-cyrillic-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-greek-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-greek-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-greek-ext-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-latin-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-latin-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-latin-ext-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-all-400-normal.woff +0 -0
- package/dist/iife/assets/roboto-mono-all-500-normal.woff +0 -0
- package/dist/iife/assets/roboto-mono-cyrillic-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-cyrillic-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-greek-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-greek-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-latin-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-latin-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-vietnamese-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-mono-vietnamese-500-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/iife/assets/roboto-vietnamese-500-normal.woff2 +0 -0
- package/dist/iife/entry-77FYTTM2.js +12 -0
- package/dist/iife/entry-77FYTTM2.js.map +7 -0
- package/dist/iife/entry-BLH6UFNZ.css +12 -0
- package/dist/iife/entry-BLH6UFNZ.css.map +7 -0
- package/dist/index.html +25 -1
- package/package.json +8 -5
- package/src/ui/.eslintrc.js +10 -0
- package/src/ui/components/lhci-components.jsx +4 -2
- package/src/ui/entry.jsx +7 -0
- package/src/ui/index.html +2 -10
- package/dist/entry.422a7b40.css +0 -2
- package/dist/entry.422a7b40.css.map +0 -1
- package/dist/entry.ab5c8873.js +0 -90
- package/dist/entry.ab5c8873.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["icons.css","tooltips.css","app.css","landing.css","loading-spinner.css","paper.css","lhr-viewer-link.css","lhr-viewer-button.css","report-upload-box.css","comparison.css","dropdown.css","audit-detail-pane.css","table-details.css","simple-details.css","numeric-diff.css","lhr-comparison-scores.css","gauge.css","pwa-gauge.css","score-delta-badge.css","audit-group.css","lhr-comparison-legend.css","lhr-comparison.css","modal.css","lhr-comparison-runtime-diff.css","toast.css"],"names":[],"mappings":"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","file":"entry.422a7b40.css","sourceRoot":"../src/ui","sourcesContent":["/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\ni.lh-score-fail {\n display: block;\n width: var(--base-icon-size);\n height: var(--base-icon-size);\n}\n\ni.lh-score-fail polygon {\n /* the SVG is on a 120x120 viewBox, so scale up the strokeWidth */\n stroke: var(--fail-color);\n stroke-width: 15px;\n fill: none;\n}\n\ni.lh-score-average {\n display: block;\n width: var(--base-icon-size);\n height: var(--base-icon-size);\n border: 2px solid var(--average-color);\n}\n\ni.lh-score-pass {\n display: block;\n width: var(--base-icon-size);\n height: var(--base-icon-size);\n border-radius: 100%;\n border: 2px solid var(--pass-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n/* Element to receive the tooltip on hover */\n[data-tooltip] {\n --tooltip-arrow-size: 6px;\n --tooltip-max-content-size: 120px;\n position: relative;\n}\n\n[data-tooltip]:before,\n[data-tooltip]:after {\n position: absolute;\n pointer-events: none;\n\n visibility: hidden;\n opacity: 0;\n\n transform: translate(0, 0);\n transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;\n transition-delay: 300ms;\n}\n\n/* Tooltip arrow */\n[data-tooltip]:before {\n z-index: 10001;\n bottom: calc(100% - 2 * var(--tooltip-arrow-size));\n left: calc(50% - var(--tooltip-arrow-size));\n\n border: var(--tooltip-arrow-size) solid transparent;\n border-top-color: var(--inverted-background-color);\n\n background: transparent;\n content: '';\n}\n\n/* Tooltip content */\n[data-tooltip]:after {\n z-index: 10000;\n bottom: 100%;\n left: 50%; /* start out the content in the middle of the hover element */\n transform: translateX(-50%); /* then shift it by 50% of tooltip width to center it */\n overflow: hidden;\n text-overflow: ellipsis;\n\n width: max-content;\n max-width: var(--tooltip-max-content-size);\n padding: calc(var(--base-spacing) / 2);\n\n background-color: var(--inverted-background-color);\n color: var(--inverted-text-color);\n\n content: attr(data-tooltip);\n /* consistent text in tooltip since parent varies */\n font-size: var(--subtext-font-size);\n font-family: var(--base-font-family);\n white-space: normal;\n text-align: center;\n}\n\n/* Slide up and fade in arrow on hover */\n[data-tooltip]:hover:before,\n[data-tooltip]:focus:before {\n visibility: visible;\n opacity: 1;\n transform: translateY(calc(-2 * var(--tooltip-arrow-size)));\n}\n\n/* Slide up and fade in content on hover */\n[data-tooltip]:hover:after,\n[data-tooltip]:focus:after {\n visibility: visible;\n opacity: 1;\n transform: translate(-50%, calc(-2 * var(--tooltip-arrow-size)));\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n@import './icons.css';\n@import './tooltips.css';\n\n:root {\n /** Material colors https://www.materialui.co/colors */\n --color-gray-0: #ffffff;\n --color-gray-50: #fafafa;\n --color-gray-100: #f5f5f5;\n --color-gray-200: #e0e0e0;\n --color-gray-400: #bdbdbd;\n --color-gray-500: #9e9e9e;\n --color-gray-600: #757575;\n --color-gray-800: #424242;\n --color-gray-900: #212121;\n --color-red-500: #ff4e42;\n --color-red-700: #eb0f00;\n --color-green-500: #0cce6b;\n --color-green-700: #018642;\n --color-blue-100: #eaefff;\n --color-blue-200: #d4e0ff;\n --color-blue-500: #3e72ff;\n --color-cyan-500: #00bcd4;\n --color-cyan-700: #078190;\n --color-magenta-500: #ff4081;\n --color-magenta-700: #e31f62;\n --color-orange-500: #ffa400;\n --color-orange-700: #d04900;\n\n /** Themematic constants */\n --base-text-color: var(--color-gray-900);\n --secondary-text-color: var(--color-gray-500);\n --inverted-text-color: var(--color-gray-50);\n --inverted-secondary-text-color: var(--color-gray-500);\n\n --base-background-color: var(--color-gray-50);\n --secondary-background-color: var(--color-gray-100);\n --highlighted-background-color: var(--color-gray-0);\n --inverted-background-color: var(--color-gray-900);\n\n --base-border-color: var(--color-gray-200);\n --strong-border-color: var(--color-gray-900);\n --inverted-border-color: var(--color-gray-800);\n\n --pass-color: var(--color-green-500);\n --average-color: var(--color-orange-500);\n --fail-color: var(--color-red-500);\n\n --improvement-color: var(--color-cyan-500);\n --improvement-text-color: var(--color-cyan-700);\n --neutral-color: var(--color-gray-800);\n --neutral-highlight-color: var(--color-gray-200);\n --neutral-secondary-highlight-color: var(--color-gray-100);\n --regression-color: var(--color-magenta-500);\n --regression-text-color: var(--color-magenta-700);\n\n --compare-color: var(--color-blue-500);\n --compare-highlight-color: var(--color-blue-200);\n --compare-secondary-highlight-color: var(--color-blue-100);\n --dev-branch-color: var(--color-gray-600);\n --master-branch-color: var(--color-gray-800);\n\n --base-font-family: 'Roboto', Arial, Helvetica, sans-serif;\n --base-font-weight: 400;\n --medium-font-weight: 500;\n --monospace-font-family: 'Roboto Mono', 'Menlo', 'dejavu sans mono', 'Consolas', 'Lucida Console',\n monospace;\n\n --gauge-number-font-size: 24px;\n --gauge-title-font-size: 18px; /* this is 20px in the spec, but simply does not look like the design at 20px */\n --title-font-size: 24px;\n --header-font-size: 20px;\n --base-font-size: 16px;\n --monospace-font-size: 15px;\n --smaller-font-size: 14px;\n --subtext-font-size: 12px;\n\n --base-icon-size: 14px;\n --arrow-icon-size: 20px;\n --large-icon-size: 24px;\n\n --base-spacing: 12px;\n --paper-padding: 16px;\n\n /** Element-specific constants */\n --page-header-height: 56px;\n --page-header-vertical-padding: var(--base-spacing);\n --page-header-horizontal-padding: calc(var(--base-spacing) * 2);\n --page-header-content-height: calc(\n var(--page-header-height) - 2 * var(--page-header-vertical-padding)\n );\n\n --page-sidebar-width: 260px;\n --page-sidebar-nav-item-height: 24px;\n\n --gauge-size: 82px;\n --gauge-stroke-width: 7px;\n\n --build-score-delta-badge-height: 24px;\n\n --pill-height: 26px;\n --pill-content-height: calc(var(--pill-height) - 6px);\n --pill-spacing: calc(var(--base-spacing) / 2);\n\n --avatar-image-size: 25px;\n\n --lhr-viewer-button-size: 20px;\n\n --audit-group-audit-height: 36px;\n\n --paper-min-width: 200px;\n\n --dashboard-graph-min-height: 300px;\n --dashboard-donut-graph-size: 60px;\n\n --warning-message-icon-height: 40px;\n}\n\nhtml,\nbody {\n font-size: var(--base-font-size);\n font-family: var(--base-font-family);\n font-weight: var(--base-font-weight);\n color: var(--base-text-color);\n background: var(--base-background-color);\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.lhci {\n position: relative;\n}\n\n.page-body {\n padding: var(--base-spacing);\n padding-top: calc(var(--base-spacing) + var(--page-header-height));\n}\n\n.container {\n width: 100%;\n max-width: 762px;\n min-width: 300px;\n margin: 0 auto;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: var(--header-font-size);\n font-weight: var(--base-font-weight);\n}\n\n.v-spacer {\n display: block;\n height: var(--base-spacing);\n}\n\n.h-spacer {\n display: inline-block;\n width: var(--base-spacing);\n}\n\n.flex-row {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.text--center {\n text-align: center;\n}\n\n.text--secondary {\n color: var(--secondary-text-color);\n}\n\n.text--improvement {\n color: var(--improvement-color);\n}\n\n.text--regression {\n color: var(--regression-color);\n}\n\n.text--pass {\n color: var(--pass-color);\n}\n\n.text--average {\n color: var(--average-color);\n}\n\n.text--fail {\n color: var(--fail-color);\n}\n\n.text--smaller {\n font-size: var(--smaller-font-size);\n}\n\na {\n text-decoration: none;\n}\n\na .material-icons {\n color: var(--base-text-color);\n}\n\n.position-relative {\n position: relative;\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.landing {\n position: relative;\n width: 100vw;\n height: 100vh;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.landing__background {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n}\n\n.landing__background img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.paper.landing__paper {\n position: relative;\n z-index: 10;\n width: 80vw;\n max-width: 1000px;\n padding: 0;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.landing__logo {\n height: 70px;\n width: 70px;\n margin-top: calc(var(--base-spacing) * 2);\n margin-bottom: var(--base-spacing);\n}\n\n.landing__info-icon {\n position: absolute;\n top: var(--base-spacing);\n right: var(--base-spacing);\n}\n\n.landing h1 {\n font-size: 28px;\n}\n\n.landing__error {\n color: var(--fail-color);\n margin-top: var(--base-spacing);\n}\n\n.landing__upload {\n width: 100%;\n display: flex;\n flex-direction: row;\n\n margin-top: calc(var(--base-spacing) * 2);\n border-top: 1px solid var(--base-border-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.loading-spinner--container {\n width: 100%;\n min-height: 300px;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.loading-spinner img {\n width: 80px;\n height: 80px;\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.paper {\n background: var(--highlighted-background-color);\n border: 1px solid var(--base-border-color);\n padding: var(--paper-padding);\n margin: var(--base-spacing);\n overflow: visible;\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-viewer-link--loading {\n opacity: 0.5;\n cursor: not-allowed;\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-viewer-button {\n background: var(--highlighted-background-color);\n border-radius: 3px;\n padding: calc(var(--base-spacing) / 2);\n margin-right: var(--base-spacing);\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n cursor: pointer;\n color: var(--base-text-color);\n font-weight: var(--medium-font-weight);\n overflow: hidden;\n white-space: nowrap;\n}\n\n.lhr-viewer-button img {\n height: var(--lhr-viewer-button-size);\n width: var(--lhr-viewer-button-size);\n}\n\n.lhr-viewer-button span {\n margin-left: calc(var(--base-spacing) / 2);\n padding-right: calc(var(--base-spacing) / 2);\n}\n\n@media (max-width: 1000px) {\n .lhr-viewer-button {\n border-radius: 100%;\n }\n .lhr-viewer-button span {\n display: none;\n }\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.report-upload-box {\n width: 50%;\n height: var(--page-header-height);\n padding: var(--base-spacing);\n\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-size: var(--smaller-font-size);\n font-weight: var(--medium-font-weight);\n}\n\n.report-upload-box:first-child {\n border-right: 1px solid var(--base-border-color);\n}\n\n.report-upload-box--drop .report-upload-box__drop-outline {\n display: flex;\n}\n\n.report-upload-box__drop-outline {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n display: none;\n align-items: center;\n justify-content: center;\n\n z-index: 10;\n background: rgba(255, 255, 255, 0.8);\n border: 3px dashed var(--base-border-color);\n}\n\n.report-upload-box--compare .report-upload-box__label {\n color: var(--compare-color);\n}\n\n.report-upload-box__file {\n flex-shrink: 1;\n font-family: var(--monospace-font-family);\n max-width: calc(100% - 140px);\n\n margin: 0 var(--base-spacing);\n padding: 0 calc(var(--base-spacing) / 2);\n border-radius: 10000px;\n background: var(--neutral-highlight-color);\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.report-upload-box--compare .report-upload-box__file {\n background: var(--compare-highlight-color);\n}\n\n.report-upload-box__lhr-link {\n display: none;\n}\n\n.report-upload-box:hover .report-upload-box__lhr-link {\n display: block;\n}\n\n.report-upload-box .lhr-viewer-button:hover {\n background: var(--compare-highlight-color);\n}\n\n.report-upload-box__spacer {\n flex-grow: 1;\n}\n\n.report-upload-box__upload {\n width: max-content;\n text-transform: uppercase;\n white-space: nowrap;\n cursor: pointer;\n\n border-radius: 3px;\n padding: calc(var(--base-spacing) / 2);\n background: var(--highlighted-background-color);\n}\n\n.report-upload-box__upload:hover {\n background: var(--compare-highlight-color);\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.comparison {\n position: relative;\n width: 100vw;\n min-height: 100vh;\n\n overflow: hidden;\n}\n\n.comparison-header {\n position: relative;\n height: var(--page-header-height);\n\n display: flex;\n flex-direction: row;\n\n background: var(--highlighted-background-color);\n border-bottom: 1px solid var(--base-border-color);\n}\n\n.comparison-header__logo {\n width: var(--page-header-height);\n\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n border-right: 1px solid var(--base-border-color);\n}\n\n.comparison-header__upload {\n max-width: calc(100vw - var(--page-header-height) * 2);\n flex-grow: 1;\n display: flex;\n flex-direction: row;\n}\n\n.comparison-header__switcher {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n z-index: 5;\n border-radius: 100%;\n background: var(--highlighted-background-color);\n cursor: pointer;\n}\n\n.comparison-header__info {\n width: var(--page-header-height);\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n border-left: 1px solid var(--base-border-color);\n}\n\n.comparison-body {\n padding-top: var(--base-spacing);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.dropdown {\n border-bottom: 1px solid var(--strong-border-color);\n padding: calc(var(--base-spacing) / 2) 0;\n\n font-family: var(--base-font-family);\n font-size: var(--base-font-size);\n font-weight: var(--medium-font-weight);\n}\n\n.dropdown__label {\n color: var(--secondary-text-color);\n margin-right: calc(var(--base-spacing) / 2);\n}\n\n.dropdown select {\n position: relative;\n background: none;\n border: none;\n border-radius: 0;\n -webkit-appearance: none;\n\n padding-right: 25px;\n cursor: pointer;\n z-index: 2;\n\n font-family: var(--base-font-family);\n font-size: var(--base-font-size);\n font-weight: var(--medium-font-weight);\n}\n\n.dropdown__chevron {\n position: absolute;\n top: 5px;\n right: calc(var(--base-spacing) / 4);\n\n z-index: 1;\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.audit-detail-pane {\n position: fixed;\n top: var(--page-header-height);\n right: 0;\n left: 40%;\n bottom: 0;\n z-index: 5;\n padding-bottom: 70vh;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: var(--highlighted-background-color);\n border-left: 1px solid var(--base-border-color);\n}\n\n#storybook-test-root .audit-detail-pane {\n position: absolute;\n top: 0;\n left: 0;\n bottom: initial;\n height: max-content;\n overflow-y: visible;\n}\n\n.audit-detail-pane__close {\n position: fixed;\n z-index: 10;\n top: calc(var(--page-header-height) + 10px);\n right: 20px;\n\n height: 30px;\n width: 30px;\n border-radius: 30px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: var(--secondary-background-color);\n cursor: pointer;\n}\n\n#storybook-test-root .audit-detail-pane__close {\n top: 10px;\n}\n\n.audit-detail-pane__close i.material-icons {\n font-size: 22px;\n}\n\n.audit-detail-pane__audit {\n position: relative;\n padding: calc(2 * var(--base-spacing));\n padding-left: calc(3 * var(--base-spacing));\n\n border-bottom: 1px solid var(--base-border-color);\n}\n\n.audit-detail-pane__score {\n position: absolute;\n left: var(--base-spacing);\n top: calc(2 * var(--base-spacing) + var(--header-font-size) / 4);\n}\n\n.audit-detail-pane__audit-title {\n font-size: var(--header-font-size);\n}\n\n.audit-detail-pane__audit-description {\n color: var(--secondary-text-color);\n margin-top: calc(var(--base-spacing) / 2);\n}\n\n.audit-detail-pane__audit-details {\n margin-top: var(--base-spacing);\n}\n\n.audit-detail-pane__audit-details-summary {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: var(--base-spacing) 0;\n}\n\n.audit-detail-pane__audit-details-summary .audit-numeric-diff {\n width: 100%;\n}\n\n.audit-detail-pane__audit-details-summary .audit-numeric-diff__bar {\n flex-grow: 1;\n}\n\n.audit-detail-pane__audit-details--binary {\n display: flex;\n flex-direction: row;\n align-items: center;\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.table-details table {\n border-collapse: collapse;\n width: calc(100% - var(--base-spacing));\n}\n\n.table-details thead th {\n font-weight: normal;\n color: var(--color-gray-600);\n word-break: normal;\n}\n\n.table-details tbody tr:nth-child(odd) {\n background-color: var(--color-gray-100);\n}\n\n.table-details th,\n.table-details td {\n padding: 8px 6px;\n}\n.table-details th:first-child {\n padding-left: 0;\n}\n.table-details th:last-child {\n padding-right: 0;\n}\n\n.table-column--text,\n.table-column--url,\n/* .table-column--thumbnail, */\n/* .table-column--empty,*/\n.table-column--code,\n.table-column--node {\n text-align: left;\n max-width: 30vw;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.table-column--bytes,\n.table-column--timespanMs,\n.table-column--ms,\n.table-column--numeric {\n text-align: right;\n word-break: normal;\n}\n\n.table-details .table-column--thumbnail {\n width: var(--image-preview-size);\n padding: 0;\n}\n\n.table-column--url {\n min-width: 250px;\n}\n\n/* Keep columns narrow if they follow the URL column */\n/* 12% was determined to be a decent narrow width, but wide enough for column headings */\n.table-column--url + th.table-column--bytes,\n.table-column--url + .table-column--bytes + th.table-column--bytes,\n.table-column--url + .table-column--ms,\n.table-column--url + .table-column--ms + th.table-column--bytes,\n.table-column--url + .table-column--bytes + th.table-column--timespanMs {\n width: 12%;\n}\n\n.table-column--row-label {\n color: var(--secondary-text-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.simple-details--improvement {\n color: var(--improvement-text-color);\n}\n\n.simple-details--regression {\n color: var(--regression-text-color);\n}\n\n.simple-details__url-hostname {\n color: var(--secondary-text-color);\n margin-left: calc(var(--base-spacing) / 2);\n font-size: var(--subtext-font-size);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.audit-numeric-diff {\n --numeric-diff-bar-height: calc(var(--base-font-size) + 8px);\n\n display: flex;\n flex-direction: row;\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n}\n\n.audit-numeric-diff__bar {\n position: relative;\n min-width: 300px;\n background: var(--secondary-background-color);\n margin: 0 var(--base-spacing);\n}\n\n@media (max-width: 600px) {\n .audit-numeric-diff__bar {\n min-width: 200px;\n }\n}\n\n.audit-numeric-diff__box {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--highlighted-background-color);\n\n transition: left 1s, right 1s;\n}\n\n.audit-numeric-diff__box--improvement {\n color: var(--improvement-text-color);\n background: repeating-linear-gradient(\n 60deg,\n var(--improvement-color),\n var(--improvement-color) 1px,\n var(--secondary-background-color) 1px,\n var(--secondary-background-color) 3px\n );\n}\n.audit-numeric-diff__box--regression {\n color: var(--regression-text-color);\n background: repeating-linear-gradient(\n 60deg,\n var(--regression-color),\n var(--regression-color) 1px,\n var(--secondary-background-color) 1px,\n var(--secondary-background-color) 3px\n );\n}\n\n.audit-numeric-diff__now {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 2px;\n}\n\n.audit-numeric-diff__delta-label {\n position: absolute;\n top: 0;\n bottom: 0;\n padding: 0 calc(var(--base-spacing) / 2);\n\n line-height: var(--numeric-diff-bar-height);\n white-space: nowrap;\n font-weight: var(--medium-font-weight);\n text-shadow: 1px 1px 0px var(--secondary-background-color),\n -1px -1px 0px var(--secondary-background-color), -1px 1px 0px var(--secondary-background-color),\n 1px -1px 0px var(--secondary-background-color);\n\n display: flex;\n flex-direction: row;\n align-items: center;\n\n transition: left 1s, right 1s;\n}\n\n.audit-numeric-diff__delta-label--narrow-left {\n left: 2px;\n right: initial !important;\n}\n\n.audit-numeric-diff__delta-label--narrow-right {\n left: initial !important;\n right: 2px;\n}\n\n.audit-numeric-diff__left-label,\n.audit-numeric-diff__right-label {\n width: 40px;\n color: var(--secondary-text-color);\n font-size: var(--subtext-font-size);\n line-height: var(--numeric-diff-bar-height);\n}\n\n.audit-numeric-diff__left-label {\n text-align: right;\n}\n\n.audit-numeric-diff__box--improvement .audit-numeric-diff__now {\n background: var(--improvement-color);\n}\n.audit-numeric-diff__box--regression .audit-numeric-diff__now {\n background: var(--regression-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-comparison-scores {\n display: flex;\n width: 100%;\n margin-top: var(--base-spacing);\n}\n\n.lhr-comparison-scores-item {\n /* properties that affect how it's rendered within its parent */\n flex-basis: 0;\n flex-grow: 1;\n\n /* properties that affect how its children are rendered */\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.lhr-comparison-scores-item__label {\n margin-top: var(--base-spacing);\n font-size: var(--gauge-title-font-size);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.lhr-comparison-scores-item__delta {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n margin-top: var(--base-spacing);\n padding: 0 var(--base-spacing);\n height: var(--build-score-delta-badge-height);\n border-radius: calc(var(--build-score-delta-badge-height) / 2);\n line-height: var(--build-score-delta-badge-height);\n\n background: var(--neutral-color);\n color: var(--inverted-text-color);\n\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n text-align: center;\n}\n\n.lhr-comparison-scores-item__delta > .pwa-icon {\n margin-right: calc(var(--base-spacing) / 2);\n}\n\n.lhr-comparison-scores-item__delta > .pwa-icon:last-child {\n margin-right: 0;\n}\n\n.lhr-comparison-scores-item--pwa .lhr-comparison-scores-item__delta {\n background-color: var(--secondary-background-color);\n color: var(--base-text-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.gauge {\n position: relative;\n\n width: var(--gauge-size);\n height: var(--gauge-size);\n border-radius: calc(var(--gauge-size) / 2);\n line-height: var(--gauge-size);\n\n background: var(--secondary-background-color);\n color: var(--neutral-color);\n\n font-family: var(--monospace-font-family);\n font-size: var(--gauge-number-font-size);\n font-weight: var(--medium-font-weight);\n text-align: center;\n}\n\n.gauge-arc {\n position: absolute;\n width: var(--gauge-size);\n height: var(--gauge-size);\n}\n\n.gauge-arc__arc {\n fill: none;\n stroke: var(--neutral-color);\n stroke-linecap: round;\n stroke-width: var(--gauge-stroke-width);\n\n transition: stroke-dasharray 0.5s;\n}\n\n.gauge-arc__indicator {\n --indicator-width: 3px;\n --indicator-height: 12px;\n\n position: absolute;\n left: calc(50% - var(--indicator-width) / 2);\n top: calc(var(--indicator-height) / -4);\n\n width: var(--indicator-width);\n height: var(--indicator-height);\n border-radius: 25%;\n\n background: var(--neutral-color);\n}\n\n.gauge-arc__indicator-wrapper,\n.gauge-arc__delta-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n transform-origin: center;\n\n transition: transform 0.5s;\n}\n\n.gauge--improvement .gauge-arc__indicator {\n background: var(--improvement-color);\n}\n\n.gauge--regression .gauge-arc__indicator {\n background: var(--regression-color);\n}\n\n.gauge--improvement .gauge-arc__delta-wrapper .gauge-arc__arc {\n stroke: var(--improvement-color);\n}\n\n.gauge--regression .gauge-arc__delta-wrapper .gauge-arc__arc {\n stroke: var(--regression-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.pwa-icon {\n width: 18px;\n height: 18px;\n}\n\n.pwa-icon__background {\n fill: var(--neutral-color);\n}\n\n.pwa-icon--improvement .pwa-icon__background {\n fill: var(--improvement-color);\n}\n\n.pwa-icon--regression .pwa-icon__background {\n fill: var(--regression-color);\n}\n\n.pwa-gauge {\n width: var(--gauge-size);\n height: var(--gauge-size);\n}\n\n/* Turn off all components by default and only enable what is active */\n.pwa-gauge .pwa-gauge__component {\n display: none;\n}\n\n.pwa-gauge:not(.pwa-gauge--all) .pwa-gauge__logo > path {\n /* Gray logo unless everything is passing. */\n fill: #b0b0b0;\n}\n\n.pwa-gauge__disc {\n fill: var(--secondary-background-color);\n}\n\n.pwa-gauge__logo--primary-color {\n fill: #304ffe;\n}\n\n.pwa-gauge__logo--secondary-color {\n fill: #3d3d3d;\n}\n\n/* No passing groups. */\n.pwa-gauge:not([class*='pwa-gauge--']) .pwa-gauge__na-line {\n display: inline;\n}\n\n/* Just optimized. Same n/a line as no passing groups. */\n.pwa-gauge.pwa-gauge--pwa-optimized:not(.pwa-gauge--pwa-installable):not(.pwa-gauge--pwa-fast-reliable)\n .pwa-gauge__na-line {\n display: inline;\n}\n\n/* Just fast and reliable. */\n.pwa-gauge.pwa-gauge--pwa-fast-reliable:not(.pwa-gauge--pwa-installable)\n .pwa-gauge__fast-reliable-badge {\n display: inline;\n}\n\n/* Just installable. */\n.pwa-gauge.pwa-gauge--pwa-installable:not(.pwa-gauge--pwa-fast-reliable)\n .pwa-gauge__installable-badge {\n display: inline;\n}\n\n/* Fast and reliable and installable. */\n.pwa-gauge.pwa-gauge--pwa-fast-reliable.pwa-gauge--pwa-installable\n .pwa-gauge__fast-reliable-installable-badges {\n display: inline;\n}\n\n/* All passing groups. */\n.pwa-gauge.pwa-gauge--all .pwa-gauge__check-circle {\n display: inline;\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.score-delta-badge {\n height: var(--build-score-delta-badge-height);\n padding: 0 var(--base-spacing);\n border-radius: calc(var(--build-score-delta-badge-height) / 2);\n line-height: var(--build-score-delta-badge-height);\n\n background: var(--neutral-color);\n color: var(--inverted-text-color);\n\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n text-align: center;\n}\n\n.score-delta-badge.score-delta-badge--improvement {\n background-color: var(--improvement-color);\n}\n\n.score-delta-badge.score-delta-badge--regression {\n background-color: var(--regression-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.audit-group {\n margin: calc(2 * var(--base-spacing));\n}\n\n.audit-group__header {\n display: flex;\n flex-direction: row;\n}\n\n.audit-group__title {\n font-size: var(--header-font-size);\n margin-bottom: calc(var(--base-spacing) / 2);\n flex-grow: 1;\n}\n\n.audit-group__big-picture-tabs {\n width: 380px;\n display: flex;\n flex-direction: row;\n margin-right: calc(var(--base-spacing) / 2);\n}\n\n.big-picture-tabs__tab {\n flex-grow: 1;\n\n cursor: pointer;\n\n font-size: var(--smaller-font-size);\n text-align: center;\n text-transform: uppercase;\n color: var(--secondary-text-color);\n font-weight: var(--medium-font-weight);\n\n border-bottom: 1px solid var(--base-border-color);\n margin-bottom: calc(var(--base-spacing) / 2);\n}\n\n.big-picture-tabs__tab--selected {\n color: var(--base-text-color);\n border-bottom: 1px solid var(--strong-border-color);\n}\n\n.audit-group__audit {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n height: var(--audit-group-audit-height);\n margin: 0 calc(var(--base-spacing) * -1);\n padding: 0 var(--base-spacing);\n}\n\n.audit-group__audit:hover {\n cursor: pointer;\n background: var(--secondary-background-color);\n}\n\n.audit-group__expand-toggle {\n display: none;\n cursor: pointer;\n}\n\n.audit-group__expand-toggle i {\n transform: rotate(90deg);\n}\n\n.audit-group__audit-title {\n margin-left: var(--base-spacing);\n font-weight: var(--medium-font-weight);\n min-width: 25px;\n max-width: 70%;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.audit-group__audit-diff {\n flex-grow: 1;\n\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n}\n\n.audit-group__error-message {\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.audit-group__error-message i {\n margin-right: calc(var(--base-spacing) / 2);\n}\n\n.audit-group__diff-arrow {\n color: var(--secondary-text-color);\n font-size: var(--arrow-icon-size);\n line-height: var(--large-icon-size);\n margin: 0 var(--base-spacing);\n}\n\n.audit-group__diff-arrow--regression {\n color: var(--regression-color);\n}\n\n.audit-group__diff-arrow--improvement {\n color: var(--improvement-color);\n}\n\n.audit-group__diff-badge-group {\n --badge-height: 16px;\n\n position: relative;\n height: var(--large-icon-size);\n}\n\n.audit-group__diff-badge-group:last-child {\n margin-right: 20px;\n}\n\n.audit-group__diff-badges {\n position: absolute;\n top: calc(-1 * var(--badge-height) / 5);\n left: calc(100% - var(--badge-height) * 4 / 5);\n\n height: var(--badge-height);\n\n display: flex;\n flex-direction: row;\n}\n\n.audit-group__diff-badge {\n display: inline-block;\n\n height: var(--badge-height);\n min-width: var(--badge-height);\n border-radius: calc(var(--badge-height) * 2);\n\n padding: 0 calc(var(--badge-height) / 4);\n margin-right: calc(-1 * var(--badge-height) / 4);\n\n line-height: var(--badge-height);\n font-size: var(--subtext-font-size);\n text-align: center;\n\n background: var(--neutral-highlight-color);\n color: var(--secondary-text-color);\n}\n\n.audit-group__diff-badge-group--multiple .audit-group__diff-badge:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n margin-right: 0;\n}\n\n.audit-group__diff-badge-group--multiple .audit-group__diff-badge:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.audit-group__diff-badge--regression {\n background: var(--regression-color);\n color: var(--inverted-text-color);\n\n z-index: 1;\n}\n\n.audit-group__diff-badge--improvement {\n background: var(--improvement-color);\n color: var(--inverted-text-color);\n}\n\n.audit-group--unchanged .audit-group__header {\n cursor: pointer;\n}\n\n.audit-group--unchanged .audit-group__audit-diff {\n display: none;\n}\n\n.audit-group--unchanged .audit-group__audit:hover .audit-group__audit-diff {\n display: flex;\n}\n\n.audit-group--unchanged .audit-group__expand-toggle {\n display: block;\n}\n\n.audit-group--expanded .audit-group__expand-toggle i {\n transform: rotate(-90deg);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-comparison-legend {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n margin-right: var(--base-spacing);\n width: fit-content;\n padding: var(--base-spacing) calc(var(--base-spacing) * 1.5);\n\n background: var(--highlighted-background-color);\n border: 1px solid var(--base-border-color);\n border-radius: 9999px; /* force fully rounded corners */\n}\n\n.lhr-comparison-legend__label {\n font-family: var(--monospace-font-family);\n font-size: var(--monospace-font-size);\n margin-left: calc(var(--base-spacing) / 2);\n margin-right: calc(var(--base-spacing) * 1.5);\n}\n\n.lhr-comparison-legend__label:last-child {\n margin-right: 0;\n}\n\n.lhr-comparison-legend__chip {\n display: 'block';\n width: var(--base-icon-size);\n height: var(--base-icon-size);\n border-radius: 2px;\n}\n\n.lhr-comparison-legend__chip--regression {\n background: var(--regression-color);\n}\n\n.lhr-comparison-legend__chip--improvement {\n background: var(--improvement-color);\n}\n","/**\n * @license Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-comparison--with-audit-selection {\n width: 40%;\n}\n\n.lhr-comparison__scores-and-dropdowns {\n height: 260px;\n width: calc(100% + 2 * var(--base-spacing));\n padding: var(--base-spacing);\n margin: calc(-1 * var(--base-spacing));\n margin-bottom: var(--base-spacing);\n\n background: var(--highlighted-background-color);\n border-bottom: 1px solid var(--base-border-color);\n}\n\n.lhr-comparison--with-audit-selection .lhr-comparison__scores-and-dropdowns {\n background: none;\n border-bottom: none;\n height: auto;\n margin-bottom: 0;\n padding-bottom: 0;\n}\n\n.lhr-comparison--with-audit-selection .lhr-comparison__dropdowns {\n margin-bottom: 0;\n}\n\n.lhr-comparison__scores-and-dropdowns .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.lhr-comparison__dropdowns {\n display: flex;\n flex-direction: row;\n justify-content: center;\n\n margin-top: calc(var(--base-spacing) / 2);\n margin-bottom: var(--base-spacing);\n}\n\n.lhr-comparison__dropdowns .dropdown {\n margin-right: var(--base-spacing);\n}\n\n.lhr-comparison__legend-container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n}\n\n.lhr-comparison__warning {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n min-height: calc(var(--warning-message-icon-height) * 2);\n margin-bottom: calc(var(--base-spacing) * 2);\n}\n\n.lhr-comparison__warning i {\n font-size: var(--warning-message-icon-height);\n margin: 0 var(--base-spacing);\n}\n\n.lhr-comparison__warning div {\n line-height: 1.5;\n}\n\n.lhr-comparison__warning__lhr-link {\n cursor: pointer;\n color: var(--improvement-color);\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 10000;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: rgb(0, 0, 0, 0.7);\n}\n\n.modal {\n position: relative;\n width: 60vw;\n min-width: 400px;\n max-width: 800px;\n background: var(--highlighted-background-color);\n padding: var(--base-spacing);\n padding-right: calc(var(--base-spacing) * 2);\n}\n\n.modal__close {\n position: absolute;\n top: calc(var(--base-spacing) / 2);\n right: calc(var(--base-spacing) / 2);\n cursor: pointer;\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.lhr-comparison-runtime-diff {\n position: relative;\n}\n\n.lhr-comparison-runtime-diff .lhr-comparison__warning {\n margin-bottom: 0;\n}\n\n.lhr-comparison-runtime-diff__diffs {\n --table-margin: calc(var(--warning-message-icon-height) + 2 * var(--base-spacing));\n\n width: calc(100% - var(--table-margin));\n text-align: left;\n\n margin-left: var(--table-margin);\n}\n\n.lhr-comparison-runtime-diff__close {\n position: absolute;\n top: calc(var(--base-spacing) / 2);\n right: calc(var(--base-spacing) / 2);\n cursor: pointer;\n}\n\n.lhr-comparison-runtime-diff table {\n width: 100%;\n border-collapse: collapse;\n}\n\n.lhr-comparison-runtime-diff table th {\n font-weight: var(--medium-font-weight);\n}\n\n.lhr-comparison-runtime-diff table tbody td {\n padding: calc(var(--base-spacing) / 2);\n}\n\n.lhr-comparison-runtime-diff table tbody tr:nth-child(even) {\n background: var(--secondary-background-color);\n}\n","/**\n * @license Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n */\n\n.toast {\n padding: calc(var(--base-spacing));\n background: var(--neutral-color);\n color: var(--inverted-text-color);\n}\n\n.toast--error {\n color: var(--fail-color);\n}\n"]}
|
package/dist/entry.ab5c8873.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"PBm5":[function(require,module,exports) {
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.render=M,exports.hydrate=A,exports.h=exports.createElement=f,exports.Fragment=h,exports.createRef=d,exports.Component=y,exports.cloneElement=F,exports.createContext=R,exports.toChildArray=C,exports._unmount=W,exports.options=exports.isValidElement=void 0;var e,t,n,l,o,r,_,u={},i=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function c(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var l,o,r,_,u=arguments;if(t=p({},t),arguments.length>3)for(n=[n],l=3;l<arguments.length;l++)n.push(u[l]);if(null!=n&&(t.children=n),null!=e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===t[o]&&(t[o]=e.defaultProps[o]);return _=t.key,null!=(r=t.ref)&&delete t.ref,null!=_&&delete t.key,a(e,t,_,r)}function a(t,n,l,o){var r={type:t,props:n,key:l,ref:o,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return e.vnode&&e.vnode(r),r}function d(){return{}}function h(e){return e.children}function v(e){if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return a(null,e,null,null);if(null!=e.__e||null!=e.__c){var t=a(e.type,e.props,e.key,null);return t.__e=e.__e,t}return e}function y(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__p?m(e.__p,e.__p.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function k(e){var t,n;if(null!=(e=e.__p)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return k(e)}}function g(t){(!t.__d&&(t.__d=!0)&&1===n.push(t)||o!==e.debounceRendering)&&(o=e.debounceRendering,(e.debounceRendering||l)(x))}function x(){var e,t,l,o,r,_,u;for(n.sort(function(e,t){return t.__v.__b-e.__v.__b});e=n.pop();)e.__d&&(l=void 0,o=void 0,_=(r=(t=e).__v).__e,(u=t.__P)&&(l=[],o=U(u,r,p({},r),t.__n,void 0!==u.ownerSVGElement,null,l,null==_?m(r):_),N(l,r),o!=_&&k(r)))}function b(e,t,n,l,o,r,_,s,p){var f,a,d,h,v,y,k,g=n&&n.__k||i,x=g.length;if(s==u&&(s=null!=r?r[0]:x?m(n,0):null),f=0,t.__k=C(t.__k,function(n){if(null!=n){if(n.__p=t,n.__b=t.__b+1,null===(d=g[f])||d&&n.key==d.key&&n.type===d.type)g[f]=void 0;else for(a=0;a<x;a++){if((d=g[a])&&n.key==d.key&&n.type===d.type){g[a]=void 0;break}d=null}if(h=U(e,n,d=d||u,l,o,r,_,s,p),(a=n.ref)&&d.ref!=a&&(k||(k=[])).push(a,n.__c||h,n),null!=h){if(null==y&&(y=h),null!=n.l)h=n.l,n.l=null;else if(r==d||h!=s||null==h.parentNode){e:if(null==s||s.parentNode!==e)e.appendChild(h);else{for(v=s,a=0;(v=v.nextSibling)&&a<x;a+=2)if(v==h)break e;e.insertBefore(h,s)}"option"==t.type&&(e.value="")}s=h.nextSibling,"function"==typeof t.type&&(t.l=h)}}return f++,n}),t.__e=y,null!=r&&"function"!=typeof t.type)for(f=r.length;f--;)null!=r[f]&&c(r[f]);for(f=x;f--;)null!=g[f]&&W(g[f],g[f]);if(k)for(f=0;f<k.length;f++)T(k[f],k[++f],k[++f])}function C(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var l=0;l<e.length;l++)C(e[l],t,n);else n.push(t?t(v(e)):e);return n}function w(e,t,n,l,o){var r;for(r in n)r in t||P(e,r,null,n[r],l);for(r in t)o&&"function"!=typeof t[r]||"value"===r||"checked"===r||n[r]===t[r]||P(e,r,t[r],n[r],l)}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===s.test(t)?n+"px":null==n?"":n}function P(e,t,n,l,o){var r,_,u,i,s;if("key"===(t=o?"className"===t?"class":t:"class"===t?"className":t)||"children"===t);else if("style"===t)if(r=e.style,"string"==typeof n)r.cssText=n;else{if("string"==typeof l&&(r.cssText="",l=null),l)for(_ in l)n&&_ in n||S(r,_,"");if(n)for(u in n)l&&n[u]===l[u]||S(r,u,n[u])}else"o"===t[0]&&"n"===t[1]?(i=t!==(t=t.replace(/Capture$/,"")),s=t.toLowerCase(),t=(s in e?s:t).slice(2),n?(l||e.addEventListener(t,E,i),(e.u||(e.u={}))[t]=n):e.removeEventListener(t,E,i)):"list"!==t&&"tagName"!==t&&"form"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n))}function E(t){return this.u[t.type](e.event?e.event(t):t)}function U(t,n,l,o,r,_,u,i,s){var c,f,a,d,v,m,k,g,x,w,S=n.type;if(void 0!==n.constructor)return null;(c=e.__b)&&c(n);try{e:if("function"==typeof S){if(g=n.props,x=(c=S.contextType)&&o[c.__c],w=c?x?x.props.value:c.__p:o,l.__c?k=(f=n.__c=l.__c).__p=f.__E:("prototype"in S&&S.prototype.render?n.__c=f=new S(g,w):(n.__c=f=new y(g,w),f.constructor=S,f.render=L),x&&x.sub(f),f.props=g,f.state||(f.state={}),f.context=w,f.__n=o,a=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&p(f.__s==f.state?f.__s=p({},f.__s):f.__s,S.getDerivedStateFromProps(g,f.__s)),a)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&u.push(f);else{if(null==S.getDerivedStateFromProps&&null==f.t&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,w),!f.t&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,w)){for(f.props=g,f.state=f.__s,f.__d=!1,f.__v=n,n.__e=l.__e,n.__k=l.__k,c=0;c<n.__k.length;c++)n.__k[c]&&(n.__k[c].__p=n);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,w)}d=f.props,v=f.state,f.context=w,f.props=g,f.state=f.__s,(c=e.__r)&&c(n),f.__d=!1,f.__v=n,f.__P=t,c=f.render(f.props,f.state,f.context),n.__k=C(null!=c&&c.type==h&&null==c.key?c.props.children:c),null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),a||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(d,v)),b(t,n,l,o,r,_,u,i,s),f.base=n.__e,c=f.__h,f.__h=[],c.some(function(e){e.call(f)}),a||null==d||null==f.componentDidUpdate||f.componentDidUpdate(d,v,m),k&&(f.__E=f.__p=null),f.t=null}else n.__e=D(l.__e,n,l,o,r,_,u,s);(c=e.diffed)&&c(n)}catch(t){e.__e(t,n,l)}return n.__e}function N(t,n){for(var l;l=t.pop();)try{l.componentDidMount()}catch(t){e.__e(t,l.__v)}e.__c&&e.__c(n)}function D(e,t,n,l,o,r,_,s){var p,c,f,a,d,h=n.props,v=t.props;if(o="svg"===t.type||o,null==e&&null!=r)for(p=0;p<r.length;p++)if(null!=(c=r[p])&&(null===t.type?3===c.nodeType:c.localName===t.type)){e=c,r[p]=null;break}if(null==e){if(null===t.type)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),r=null}if(null===t.type)null!=r&&(r[r.indexOf(e)]=null),h!==v&&(e.data=v);else if(t!==n){if(null!=r&&(r=i.slice.call(e.childNodes)),f=(h=n.props||u).dangerouslySetInnerHTML,a=v.dangerouslySetInnerHTML,!s){if(h===u)for(h={},d=0;d<e.attributes.length;d++)h[e.attributes[d].name]=e.attributes[d].value;(a||f)&&(a&&f&&a.__html==f.__html||(e.innerHTML=a&&a.__html||""))}w(e,v,h,o,s),t.__k=t.props.children,a||b(e,t,n,l,"foreignObject"!==t.type&&o,r,_,u,s),s||("value"in v&&void 0!==v.value&&v.value!==e.value&&(e.value=null==v.value?"":v.value),"checked"in v&&void 0!==v.checked&&v.checked!==e.checked&&(e.checked=v.checked))}return e}function T(t,n,l){try{"function"==typeof t?t(n):t.current=n}catch(t){e.__e(t,l)}}function W(t,n,l){var o,r,_;if(e.unmount&&e.unmount(t),(o=t.ref)&&T(o,null,n),l||"function"==typeof t.type||(l=null!=(r=t.__e)),t.__e=t.l=null,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){e.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(_=0;_<o.length;_++)o[_]&&W(o[_],n,l);null!=r&&c(r)}function L(e,t,n){return this.constructor(e,n)}function M(t,n,l){var o,_,s;e.__p&&e.__p(t,n),_=(o=l===r)?null:l&&l.__k||n.__k,t=f(h,null,[t]),s=[],U(n,o?n.__k=t:(l||n).__k=t,_||u,u,void 0!==n.ownerSVGElement,l&&!o?[l]:_?null:i.slice.call(n.childNodes),s,l||u,o),N(s,t)}function A(e,t){M(e,t,r)}function F(e,t){return t=p(p({},e.props),t),arguments.length>2&&(t.children=i.slice.call(arguments,2)),a(e.type,t,t.key||e.key,t.ref||e.ref)}function R(e){var t={},n={__c:"__cC"+_++,__p:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var l,o=this;return this.getChildContext||(l=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(t){e.value!==t.value&&l.some(function(e){e.__P&&(e.context=t.value,g(e))})},this.sub=function(e){l.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){l.splice(l.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n}exports.isValidElement=t,exports.options=e,exports.options=e={},exports.isValidElement=t=function(e){return null!=e&&void 0===e.constructor},y.prototype.setState=function(e,t){var n=this.__s!==this.state&&this.__s||(this.__s=p({},this.state));("function"!=typeof e||(e=e(n,this.props)))&&p(n,e),null!=e&&this.__v&&(this.t=!1,t&&this.__h.push(t),g(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.t=!0,e&&this.__h.push(e),g(this))},y.prototype.render=h,n=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=e.debounceRendering,e.__e=function(e,t,n){for(var l;t=t.__p;)if((l=t.__c)&&!l.__p)try{if(l.constructor&&null!=l.constructor.getDerivedStateFromError)l.setState(l.constructor.getDerivedStateFromError(e));else{if(null==l.componentDidCatch)continue;l.componentDidCatch(e)}return g(l.__E=l)}catch(t){e=t}throw e},r=u,_=0;
|
|
3
|
-
},{}],"o0eE":[function(require,module,exports) {
|
|
4
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useState=c,exports.useReducer=f,exports.useEffect=a,exports.useLayoutEffect=_,exports.useRef=p,exports.useImperativeHandle=v,exports.useMemo=m,exports.useCallback=l,exports.useContext=H,exports.useDebugValue=d;var n,t,e=require("preact"),o=[],u=e.options.__r;e.options.__r=function(e){u&&u(e),n=0,(t=e.__c).__H&&(t.__H.t=q(t.__H.t))};var r=e.options.diffed;e.options.diffed=function(n){r&&r(n);var t=n.__c;if(t){var e=t.__H;e&&(e.u=(e.u.some(function(n){n.ref&&(n.ref.current=n.createHandle())}),[]),e.i=q(e.i))}};var i=e.options.unmount;function s(n){e.options.__h&&e.options.__h(t);var o=t.__H||(t.__H={o:[],t:[],i:[],u:[]});return n>=o.o.length&&o.o.push({}),o.o[n]}function c(n){return f(E,n)}function f(e,o,u){var r=s(n++);return r.__c||(r.__c=t,r.v=[u?u(o):E(void 0,o),function(n){var t=e(r.v[0],n);r.v[0]!==t&&(r.v[0]=t,r.__c.setState({}))}]),r.v}function a(e,o){var u=s(n++);y(u.m,o)&&(u.v=e,u.m=o,t.__H.t.push(u),x(t))}function _(e,o){var u=s(n++);y(u.m,o)&&(u.v=e,u.m=o,t.__H.i.push(u))}function p(n){return m(function(){return{current:n}},[])}function v(e,o,u){var r=s(n++);y(r.m,u)&&(r.m=u,t.__H.u.push({ref:e,createHandle:o}))}function m(t,e){var o=s(n++);return y(o.m,e)?(o.m=e,o.p=t,o.v=t()):o.v}function l(n,t){return m(function(){return n},t)}function H(e){var o=t.context[e.__c];if(!o)return e.__p;var u=s(n++);return null==u.v&&(u.v=!0,o.sub(t)),o.props.value}function d(n,t){e.options.useDebugValue&&e.options.useDebugValue(t?t(n):n)}e.options.unmount=function(n){i&&i(n);var t=n.__c;if(t){var e=t.__H;e&&e.o.forEach(function(n){return n.l&&n.l()})}};var x=function(){};function h(){o.some(function(n){n.s=!1,n.__P&&(n.__H.t=q(n.__H.t))}),o=[]}if("undefined"!=typeof window){var b=e.options.requestAnimationFrame;x=function(n){(!n.s&&(n.s=!0)&&1===o.push(n)||b!==e.options.requestAnimationFrame)&&(b=e.options.requestAnimationFrame,(e.options.requestAnimationFrame||function(n){var t=function(){clearTimeout(e),cancelAnimationFrame(o),setTimeout(n)},e=setTimeout(t,100),o=requestAnimationFrame(t)})(h))}}function q(n){return n.forEach(A),n.forEach(F),[]}function A(n){n.l&&n.l()}function F(n){var t=n.v();"function"==typeof t&&(n.l=t)}function y(n,t){return!n||t.some(function(t,e){return t!==n[e]})}function E(n,t){return"function"==typeof t?t(n):t}
|
|
5
|
-
},{"preact":"PBm5"}],"QBQU":[function(require,module,exports) {
|
|
6
|
-
|
|
7
|
-
},{}],"WFRN":[function(require,module,exports) {
|
|
8
|
-
|
|
9
|
-
},{"./icons.css":"QBQU","./tooltips.css":"QBQU"}],"bvnL":[function(require,module,exports) {
|
|
10
|
-
"use strict";function e(t){var o,r,f="";if(t)if("object"==typeof t)if(t.push)for(o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(f&&(f+=" "),f+=r);else for(o in t)t[o]&&(r=e(o))&&(f&&(f+=" "),f+=r);else"boolean"==typeof t||t.call||(f&&(f+=" "),f+=t);return f}function t(){for(var t,o=0,r="";o<arguments.length;)(t=e(arguments[o++]))&&(r&&(r+=" "),r+=t);return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
|
|
11
|
-
},{}],"ifIv":[function(require,module,exports) {
|
|
12
|
-
module.exports="loading-spinner.6bfd50e7.svg";
|
|
13
|
-
},{}],"KfNQ":[function(require,module,exports) {
|
|
14
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoadingSpinner=void 0;var e=require("preact"),n=r(require("clsx"));function r(e){return e&&e.__esModule?e:{default:e}}require("./loading-spinner.css");const i=require("./loading-spinner.svg"),s=()=>(0,e.h)("img",{src:i,alt:"Loading spinner"}),o=r=>(0,e.h)("div",{className:(0,n.default)("loading-spinner",{"loading-spinner--container":!r.solo})},(0,e.h)(s,null));exports.LoadingSpinner=o;
|
|
15
|
-
},{"preact":"PBm5","clsx":"bvnL","./loading-spinner.css":"QBQU","./loading-spinner.svg":"ifIv"}],"ri7X":[function(require,module,exports) {
|
|
16
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Paper=void 0;var e=require("preact"),r=s(require("clsx"));function s(e){return e&&e.__esModule?e:{default:e}}require("./paper.css");const t=s=>{const{children:t}=s;return(0,e.h)("div",{className:(0,r.default)("paper",s.className)},t)};exports.Paper=t;
|
|
17
|
-
},{"preact":"PBm5","clsx":"bvnL","./paper.css":"QBQU"}],"lMFQ":[function(require,module,exports) {
|
|
18
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.openLhrInClassicViewer=o,exports.LhrViewerLink=void 0;var e=require("preact"),r=n(require("clsx")),t=require("preact/hooks");function n(e){return e&&e.__esModule?e:{default:e}}function o(e){const r="https://googlechrome.github.io";window.addEventListener("message",function t(n){n.origin===r&&o&&n.data.opened&&(o.postMessage({lhresults:e},r),window.removeEventListener("message",t))});const t=e.fetchTime,n="".concat(e.lighthouseVersion,"-").concat(e.requestedUrl,"-").concat(t),o=window.open("".concat(r,"/lighthouse/viewer"),n)}require("./lhr-viewer-link.css");const i=n=>{const{children:i,lhr:s}=n,[a,c]=(0,t.useState)(!1);return(0,e.h)("span",{className:(0,r.default)("lhr-viewer-link",n.className,{"lhr-viewer-link--loading":a}),onClick:async e=>{if(e.preventDefault(),e.stopImmediatePropagation(),a)return;if("object"==typeof s)return o(s);c(!0);const r=await s();c(!1),o(r)}},i)};exports.LhrViewerLink=i;
|
|
19
|
-
},{"preact":"PBm5","clsx":"bvnL","preact/hooks":"o0eE","./lhr-viewer-link.css":"QBQU"}],"CeqS":[function(require,module,exports) {
|
|
20
|
-
module.exports="favicon.5ff0c208.svg";
|
|
21
|
-
},{}],"E4rS":[function(require,module,exports) {
|
|
22
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LhrViewerButton=void 0;var e=require("preact"),r=require("./lhr-viewer-link");require("./lhr-viewer-button.css");const t=require("../favicon.svg"),i=i=>{const{lhr:o,label:n="Open Report"}=i;return(0,e.h)(r.LhrViewerLink,{lhr:o},(0,e.h)("div",{className:"lhr-viewer-button",role:"button"},(0,e.h)("img",{src:t})," ",(0,e.h)("span",null,n)))};exports.LhrViewerButton=i;
|
|
23
|
-
},{"preact":"PBm5","./lhr-viewer-link":"lMFQ","./lhr-viewer-button.css":"QBQU","../favicon.svg":"CeqS"}],"Lgp9":[function(require,module,exports) {
|
|
24
|
-
module.exports="confetti.881a10f8.svg";
|
|
25
|
-
},{}],"OozT":[function(require,module,exports) {
|
|
26
|
-
module.exports="logo.da01b9a5.svg";
|
|
27
|
-
},{}],"jSTM":[function(require,module,exports) {
|
|
28
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"LoadingSpinner",{enumerable:!0,get:function(){return r.LoadingSpinner}}),Object.defineProperty(exports,"Paper",{enumerable:!0,get:function(){return t.Paper}}),Object.defineProperty(exports,"LhrViewerButton",{enumerable:!0,get:function(){return n.LhrViewerButton}}),exports.LH_LOGO_PATH=exports.CONFETTI_PATH=void 0;var e=require("preact"),r=require("../../../../server/src/ui/components/loading-spinner.jsx"),t=require("../../../../server/src/ui/components/paper.jsx"),n=require("../../../../server/src/ui/components/lhr-viewer-button.jsx");const o=require("../../../../server/src/ui/routes/project-list/confetti.svg");exports.CONFETTI_PATH=o;const s=require("../../../../server/src/ui/logo.svg");exports.LH_LOGO_PATH=s;
|
|
29
|
-
},{"preact":"PBm5","../../../../server/src/ui/components/loading-spinner.jsx":"KfNQ","../../../../server/src/ui/components/paper.jsx":"ri7X","../../../../server/src/ui/components/lhr-viewer-button.jsx":"E4rS","../../../../server/src/ui/routes/project-list/confetti.svg":"Lgp9","../../../../server/src/ui/logo.svg":"OozT"}],"RqHV":[function(require,module,exports) {
|
|
30
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseStringAsLhr=n,exports.computeBestDisplayType=s,exports.ReportUploadBox=void 0;var e=require("preact");require("./report-upload-box.css");var t=require("./lhci-components"),r=require("preact/hooks"),a=o(require("clsx"));function o(e){return e&&e.__esModule?e:{default:e}}function n(e){if(e.includes("<script>window.__LIGHTHOUSE_JSON__ = ")){const t=e.match(/window\.__LIGHTHOUSE_JSON__ = (.*?});<\/script>/);t&&(e=t[1])}if("{"===e.trim().charAt(0))try{const r=JSON.parse(e);return r.lighthouseVersion?r:new Error("JSON did not contain a lighthouseVersion")}catch(t){return new Error("File was not valid JSON (".concat(t.message,")"))}return new Error("File was not a valid report")}function s(e,t){const r=new URL(e.finalUrl),a=new URL(t.finalUrl);return r.hostname!==a.hostname?"hostname":r.pathname!==a.pathname?"pathname":r.search!==a.search?"path":r.pathname.length<5?"timestamp-hostname":"timestamp-pathname"}const p=t=>{const{filename:r,lhr:a}=t.report,o=new URL(a.finalUrl),n=new Date(a.fetchTime).toLocaleString(),s={filename:r,hostname:o.hostname,pathname:o.pathname,path:"".concat(o.pathname).concat(o.search),"timestamp-hostname":"".concat(n," (").concat(o.hostname,")"),"timestamp-pathname":"".concat(n," (").concat(o.pathname,")")},p="".concat(o.href," at ").concat(n);return(0,e.h)("span",{title:p},s[t.displayType])};function i(e,t){const r=t[0].name,a=new FileReader;a.readAsText(t[0],"utf-8"),a.addEventListener("load",()=>{if("string"!=typeof a.result)return void e.addToast({message:"File was not readable as text!",level:"error"});const t=n(a.result);t instanceof Error?e.addToast({message:"Invalid file: ".concat(t.message),level:"error"}):e.setReport({filename:r,data:a.result,lhr:t})}),a.addEventListener("error",()=>{e.addToast({message:"File was not readable!",level:"error"})})}function l(e,t,r,a){a.target instanceof HTMLElement&&(a.stopPropagation(),a.preventDefault(),r(!0),t.current=a.target)}function d(e,t,r,a){a.target===t.current&&(a.stopPropagation(),a.preventDefault(),r(!1),t.current=void 0)}function c(e,t,r,a){t.current&&(a.stopPropagation(),a.preventDefault())}function u(e,t,r,a){t.current&&a instanceof DragEvent&&a.dataTransfer&&(a.stopPropagation(),a.preventDefault(),r(!1),t.current=void 0,i(e,a.dataTransfer.files))}const m=o=>{const[n,s]=(0,r.useState)(!1),m=(0,r.useRef)(void 0),h=e=>l(o,m,s,e),v=e=>d(o,m,s,e),f=e=>c(o,m,s,e),g=e=>u(o,m,s,e);return(0,r.useEffect)(()=>{if("document"===o.dragTarget)return document.addEventListener("dragenter",h),document.addEventListener("dragleave",v),document.addEventListener("dragover",f),document.addEventListener("drop",g),()=>{document.removeEventListener("dragenter",h),document.removeEventListener("dragleave",v),document.removeEventListener("dragover",f),document.removeEventListener("drop",g)}},[o.dragTarget,o.addToast,o.setReport,m.current]),(0,e.h)("div",{className:(0,a.default)("report-upload-box report-upload-box--".concat(o.variant),{"report-upload-box--drop":n,"report-upload-box--document-target":"document"===o.dragTarget}),onDragEnter:h,onDragLeave:v,onDragOver:f,onDrop:g},(0,e.h)("div",{className:"report-upload-box__drop-outline"},"Drop your report to upload"),(0,e.h)("span",{className:"report-upload-box__label"},"base"===o.variant?"Base":"Compare"),(0,e.h)("div",{className:"report-upload-box__file"},o.report?(0,e.h)(p,{report:o.report,displayType:o.displayType}):(0,e.h)(e.Fragment,null)),(0,e.h)("div",{className:"report-upload-box__lhr-link"},o.report&&o.showOpenLhrLink?(0,e.h)(t.LhrViewerButton,{lhr:o.report.lhr,label:"View Report"}):null),(0,e.h)("div",{className:"report-upload-box__spacer"}),(0,e.h)("label",{className:"report-upload-box__upload"},"Upload",(0,e.h)("input",{type:"file",style:{display:"none"},onChange:e=>{const t=e.target;if(!(t instanceof HTMLInputElement))return;const r=t.files;r&&1===r.length&&i(o,r)}})))};exports.ReportUploadBox=m;
|
|
31
|
-
},{"preact":"PBm5","./report-upload-box.css":"QBQU","./lhci-components":"jSTM","preact/hooks":"o0eE","clsx":"bvnL"}],"tQKP":[function(require,module,exports) {
|
|
32
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LandingRoute=void 0;var e=require("preact");require("./landing.css");var a=require("../../components/lhci-components.jsx"),o=require("../../components/report-upload-box");const r=r=>(0,e.h)("div",{className:"landing"},(0,e.h)("div",{className:"landing__background"},(0,e.h)("img",{src:a.CONFETTI_PATH,alt:"Lighthouse CI Background Image"})),(0,e.h)(a.Paper,{className:"landing__paper"},(0,e.h)("a",{className:"landing__info-icon",href:"https://github.com/GoogleChrome/lighthouse-ci",target:"_blank",rel:"noopener noreferrer"},(0,e.h)("i",{className:"material-icons"},"info")),(0,e.h)("img",{className:"landing__logo",src:a.LH_LOGO_PATH,alt:"Lighthouse Logo"}),(0,e.h)("h1",null,"Lighthouse CI Diff"),(0,e.h)("span",null,"Drag or upload two Lighthouse reports to start comparing!"),(0,e.h)("div",{className:"landing__upload"},(0,e.h)(o.ReportUploadBox,{variant:"base",report:r.baseReport,setReport:r.setBaseReport,addToast:r.addToast,displayType:"filename",dragTarget:r.baseReport?"self":"document"}),(0,e.h)(o.ReportUploadBox,{variant:"compare",report:r.compareReport,setReport:r.setCompareReport,addToast:r.addToast,displayType:"filename",dragTarget:r.baseReport?"document":"self"}))));exports.LandingRoute=r;
|
|
33
|
-
},{"preact":"PBm5","./landing.css":"QBQU","../../components/lhci-components.jsx":"jSTM","../../components/report-upload-box":"RqHV"}],"OuB2":[function(require,module,exports) {
|
|
34
|
-
"use strict";function e(t,r){if(Array.isArray(t)){if(!Array.isArray(r))return r;for(let n=0;n<Math.max(t.length,r.length);n++)t[n]=n<r.length?e(t[n],r[n]):t[n];return t}if("object"==typeof t&&null!==t){if("object"!=typeof r||null===r)return r;const n=t,s=r,o=new Set(Object.keys(n)),i=new Set(Object.keys(s));for(const t of new Set([...o,...i]))n[t]=t in s?e(n[t],s[t]):n[t];return t}return r}function t(e,t){let r=e.replace(/([a-z])([A-Z])/g,"$1-$2");return t&&t.alphanumericOnly&&(r=r.replace(/[^a-z0-9]+/gi,"-").replace(/-+/g,"-").replace(/(^-|-$)/g,"")),r.toLowerCase()}function r(e,t){const r=new Map;for(const n of e){const e=t(n),s=r.get(e)||[];s.push(n),r.set(e,s)}return r}function n(e,t){let r;const n=(...n)=>{r&&clearTimeout(r),r=setTimeout(()=>e(...n),t)};return n.cancel=(()=>{r&&clearTimeout(r),r=void 0}),n}module.exports={merge:e,kebabCase:t,debounce:n,range(e,t,r=1){const n=[];for(let s=e;s<t;s+=r)n.push(s);return n},startCase:e=>t(e).split("-").map(e=>`${e.slice(0,1).toUpperCase()}${e.slice(1)}`).join(" "),padStart:(e,t,r=" ")=>e.length>=t?e:`${r.repeat(t)}${e}`.slice(-t),padEnd:(e,t,r=" ")=>e.length>=t?e:`${e}${r.repeat(t)}`.slice(0,t),isEqual(e,t,r=0){if(r>100)return!1;if(typeof e!=typeof t)return!1;if(Number.isNaN(e)&&Number.isNaN(t))return!0;if("object"!=typeof e)return e===t;if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e))return!!Array.isArray(t)&&(e.every((e,r)=>this.isEqual(e,t[r]))&&e.length===t.length);const n=Object.keys(e).sort(),s=Object.keys(t).sort();return n.every(n=>this.isEqual(e[n],t[n],r+1))&&this.isEqual(n,s)},cloneDeep:e=>JSON.parse(JSON.stringify(e)),uniqBy(e,t){const r=new Set,n=[];for(const s of e){const e=t(s);r.has(e)||(r.add(e),n.push(s))}return n},groupBy:(e,t)=>[...r(e,t).values()],groupIntoMap:r,maxBy(e,t){let r=void 0,n=-1/0;for(const s of e){const e=t(s);e>n&&(r=s,n=e)}return r},minBy(e,t){return this.maxBy(e,e=>-t(e))},sortBy:(e,t)=>e.slice().sort((e,r)=>t(e)-t(r)),pick(e,t){const r={};for(const[n,s]of Object.entries(e)){const e=n;t.includes(e)&&(r[e]=s)}return r},omit(e,t,r={}){const n={};for(const[s,o]of Object.entries(e)){const e=s;t.includes(e)||(r.dropUndefined&&void 0===o||(n[e]=o))}return n},shortId:e=>e.replace(/-/g,"").slice(0,12),pluralize:(e,t,r)=>(r=r||`${e}s`,1===t?e:r),uniqueId:(()=>{let e=1;return()=>e++})()};
|
|
35
|
-
},{}],"On24":[function(require,module,exports) {
|
|
36
|
-
"use strict";const e=require("./lodash.js");function t(e,t="audit"){if(0===e)return"neutral";let r=e<0;return"score"===t&&(r=e>0),r?"improvement":"regression"}function r(e){switch(e.type){case"error":return"regression";case"score":return t(c(e).delta,"score");case"numericValue":case"itemCount":case"itemDelta":return t(c(e).delta,"audit");case"itemAddition":return"regression";case"itemRemoval":return"improvement";default:return"neutral"}}function a(e){if(!e.length)return"no change";if(e.some(e=>"itemAddition"===e.type))return"added";if(e.some(e=>"itemRemoval"===e.type))return"removed";const t=e.filter(e=>"itemDelta"===e.type);return t.every(e=>e.compareValue>e.baseValue)?"worse":t.every(e=>e.compareValue<e.baseValue)?"better":t.length?"ambiguous":"no change"}function n(e,t,r){return e.filter(e=>{const a="compareItemIndex"in e?e.compareItemIndex:void 0,n="baseItemIndex"in e?e.baseItemIndex:void 0;return"number"==typeof a?a===t:"number"==typeof n&&n===r})}function i(e,t,r){return a(n(e,t,r))}function o(e,t,r){const a=n(e,t,r).filter(u);if(a.length)return Math.max(...a.map(e=>c(e).delta))}function s(e){return e.some(e=>"regression"===e)?"regression":e.some(e=>"neutral"===e)?"neutral":"improvement"}function u(e){return["score","numericValue","itemCount","itemDelta"].includes(e.type)}function m(e){return"number"!=typeof e?"error":e>=.9?"pass":e>=.5?"average":"fail"}function p(e,t){return"number"!=typeof e?"error":e<=t[0]?"pass":e<=t[1]?"average":"fail"}function l(e){const t=u(e)?c(e).absoluteDelta:0;return"error"===e.type?1e12:"score"===e.type?1e10*t:"numericValue"===e.type?1e8*Math.max(t/1e3,1):"itemCount"===e.type?1e6*t:"itemAddition"===e.type?1e5:"itemRemoval"===e.type?1e5:"itemDelta"===e.type?Math.min(Math.max(t/100,1),99999):0}function c(e){const{baseValue:t,compareValue:r}=e,a=r-t,n=Math.abs(a);if(0===a)return{delta:a,absoluteDelta:n,percentDelta:0,percentAbsoluteDelta:0};const i=t?a/t:1;return{delta:a,absoluteDelta:n,percentDelta:i,percentAbsoluteDelta:Math.abs(i)}}function d(e){const{auditId:t,type:r,baseValue:a,compareValue:n,baseItemIndex:i,compareItemIndex:o,itemKey:s}=e;if("itemAddition"===r){if("number"!=typeof o)throw new Error("compareItemIndex is not set");return{auditId:t,type:r,compareItemIndex:o}}if("itemRemoval"===r){if("number"!=typeof i)throw new Error("baseItemIndex is not set");return{auditId:t,type:r,baseItemIndex:i}}if("displayValue"===r)throw new Error("Do not use createAuditDiff for displayValue, just manually create");if("number"!=typeof n||"number"!=typeof a||!Number.isFinite(a)||!Number.isFinite(n)||"error"===r)return{auditId:t,type:"error",attemptedType:r,baseValue:a||NaN,compareValue:n||NaN};const u={auditId:t,type:"score",baseValue:a,compareValue:n};if("itemDelta"===r){if("string"!=typeof s)throw new Error("itemKey is not set");if("number"!=typeof i&&"number"!=typeof o)throw new Error("Either baseItemIndex or compareItemIndex must be set");return{...u,type:"itemDelta",baseItemIndex:i,compareItemIndex:o,itemKey:s}}return{...u,type:r}}function f(e,t,r,a){const n=[];for(const i of Object.keys(t.item)){const o=t.item[i],s=r.item[i];"number"==typeof o&&"number"==typeof s&&(a.some(e=>e.key===i)&&n.push(d({auditId:e,type:"itemDelta",itemKey:i,baseItemIndex:t.index,compareItemIndex:r.index,baseValue:o,compareValue:s})))}return n}function y(e,t,r){const a=[];for(const n of e){if("itemAddition"!==n.type&&"itemRemoval"!==n.type)continue;const e="itemAddition"===n.type?r[n.compareItemIndex]:t[n.baseItemIndex];for(const t of Object.keys(e)){const r="itemAddition"===n.type?0:e[t],i="itemAddition"===n.type?e[t]:0;if("number"!=typeof i||"number"!=typeof r)continue;const o="itemAddition"===n.type?"compareItemIndex":"baseItemIndex",s="itemAddition"===n.type?n.compareItemIndex:n.baseItemIndex;a.push(d({auditId:n.auditId,type:"itemDelta",itemKey:t,[o]:s,baseValue:r,compareValue:i}))}}return a}function b(e){if(e.startsWith("http")&&e.includes("?"))try{const r=new URL(e);r.search="",e=r.href}catch(t){}return e.replace(/www-embed-player-[0-9a-z]+/i,"www-embed-player").replace(/player_ias-[0-9a-z]+/i,"player_ias").replace(/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,"UUID").replace(/:[0-9]{3,5}\//,":PORT/").replace(/(\.|-)[0-9a-f]{6,8}\.(js|css|woff|html|png|jpeg|jpg|svg)/i,"$1HASH.$2")}function I(e){if("string"==typeof e.url&&e.url)return e.url;const t=e.source;return"string"==typeof t?t:t&&t.url?`${t.url}:${t.line}:${t.column}`:"string"==typeof e.label?e.label:"string"==typeof e.groupLabel?e.groupLabel:"string"==typeof e.name?e.name:"string"==typeof e.statistic?e.statistic:e.entity&&"string"==typeof e.entity.text?e.entity.text:JSON.stringify(e)}function g(t,r){const a=e.groupIntoMap([...t.map((e,t)=>({item:e,kind:"base",index:t})),...r.map((e,t)=>({item:e,kind:"compare",index:t}))],e=>b(I(e.item))),n=[];for(const e of a.values()){const t=e.filter(e=>"base"===e.kind),r=e.filter(e=>"compare"===e.kind);if(t.length>1||r.length>1)for(const a of e)n.push({[a.kind]:a});else n.push({base:t[0],compare:r[0]})}return n}function h(e,t){const r=["added","worse","ambiguous","removed","better","no change"];return t.map(t=>({...t,diffs:n(e,t.compare&&t.compare.index,t.base&&t.base.index)})).sort((t,a)=>{const n=t.compare&&t.compare.index,s=t.base&&t.base.index,u=a.compare&&a.compare.index,m=a.base&&a.base.index,p=r.indexOf(i(e,n,s)),l=r.indexOf(i(e,u,m)),c=I(t.compare&&t.compare.item||t.base&&t.base.item||{}),d=I(a.compare&&a.compare.item||a.base&&a.base.item||{}),f=o(e,n,s),y=o(e,u,m);return p===l?"number"==typeof f&&"number"==typeof y?y-f:c.localeCompare(d):p-l})}function V(e,t,r,a){const n=[];for(const{base:i,compare:o}of g(t,r))if(i&&o)n.push(...f(e,i,o,a));else if(o)n.push({type:"itemAddition",auditId:e,compareItemIndex:o.index});else{if(!i)throw new Error("Impossible");n.push({type:"itemRemoval",auditId:e,baseItemIndex:i.index})}return n}function x(e){return"notApplicable"===e.scoreDisplayMode?1:"informative"===e.scoreDisplayMode?0:e.score}function D(e){return"number"!=typeof e.numericValue&&e.details&&"number"==typeof e.details.overallSavingsMs?e.details.overallSavingsMs:e.numericValue}function v(e){return"notApplicable"===e.scoreDisplayMode?0:D(e)}function w(e){return e.details?{items:e.details.items||[],headings:e.details.headings||[]}:{items:[],headings:[]}}function A(e,t,r={}){const a=e.id||"",{percentAbsoluteDeltaThreshold:n=0}=r,i=[];"number"!=typeof e.score&&"number"!=typeof t.score||i.push(d({auditId:a,type:"score",baseValue:x(e),compareValue:x(t)})),"number"!=typeof D(e)&&"number"!=typeof D(t)||i.push(d({auditId:a,type:"numericValue",baseValue:v(e),compareValue:v(t)})),"string"!=typeof e.displayValue&&"string"!=typeof t.displayValue||i.push({auditId:a,type:"displayValue",baseValue:e.displayValue||"",compareValue:t.displayValue||""});let o=!1;if(e.details&&e.details.items||t.details&&t.details.items){o=!0;const{items:n,headings:s}=w(e),{items:u,headings:m}=w(t),p=s.concat(m);i.push(d({auditId:a,type:"itemCount",baseValue:n.length,compareValue:u.length})),i.push(...V(a,n,u,p)),r.synthesizeItemKeyDiffs&&i.push(...y(i,n,u))}const s=i.filter(e=>"error"===e.type||("itemAddition"===e.type||"itemRemoval"===e.type||("score"!==e.type||r.forceAllScoreDiffs?"displayValue"===e.type?e.baseValue!==e.compareValue&&!r.skipDisplayValueDiffs:c(e).percentAbsoluteDelta>n:m(e.baseValue)!==m(e.compareValue))));if(1===s.length&&"displayValue"===s[0].type)return[];const u=1===t.score&&1===e.score;return s.every(e=>"displayValue"===e.type||"numericValue"===e.type)&&(u||o)?[]:s}module.exports={findAuditDiffs:A,getDiffSeverity:l,getDeltaLabel:t,getDeltaStats:c,getDiffLabel:r,getRowLabel:a,getRowLabelForIndex:i,getMostSevereDiffLabel:s,getMetricScoreLevel:p,zipBaseAndCompareItems:g,synthesizeItemKeyDiffs:y,sortZippedBaseAndCompareItems:h,replaceNondeterministicStrings:b};
|
|
37
|
-
},{"./lodash.js":"OuB2"}],"ShaH":[function(require,module,exports) {
|
|
38
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dropdown=void 0;var e=require("preact"),l=a(require("clsx"));function a(e){return e&&e.__esModule?e:{default:e}}require("./dropdown.css");const o=a=>{const{options:o,value:t,setValue:r,className:s,title:n,label:u}=a,d=o.some(e=>e.value===t)?o:[...o,{value:t,label:t}];return(0,e.h)("div",{className:(0,l.default)("dropdown",s),style:{position:"relative"},"data-tooltip":n},(0,e.h)("label",null,u?(0,e.h)("span",{className:"dropdown__label"},u):(0,e.h)(e.Fragment,null),(0,e.h)("select",{onChange:e=>{e.target instanceof HTMLSelectElement&&r(e.target.value)}},d.map(l=>(0,e.h)("option",{key:l.value,value:l.value,selected:l.value===t},l.label)))),(0,e.h)("div",{className:"dropdown__chevron"},(0,e.h)("i",{className:"material-icons"},"arrow_drop_down")))};exports.Dropdown=o;
|
|
39
|
-
},{"preact":"PBm5","clsx":"bvnL","./dropdown.css":"QBQU"}],"duil":[function(require,module,exports) {
|
|
40
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.usePreviousValue=r;var e=require("preact/hooks");function r(r){const t=(0,e.useRef)(void 0);return(0,e.useEffect)(()=>{t.current=r},[r]),t.current}
|
|
41
|
-
},{"preact/hooks":"o0eE"}],"MBdz":[function(require,module,exports) {
|
|
42
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScoreWord=exports.ScoreIcon=void 0;var s=require("preact");const e=e=>{const o=e.score;return o>=.9?(0,s.h)("i",{className:"lh-score-pass"}):o>=.5?(0,s.h)("i",{className:"lh-score-average"}):(0,s.h)("i",{className:"lh-score-fail"},(0,s.h)("svg",{viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("polygon",{points:"10,110 60,10 110,110"})))};exports.ScoreIcon=e;const o=e=>{return(e.audit.score||0)>=.9?(0,s.h)("span",{className:"lh-score-word"},"Pass"):(0,s.h)("span",{className:"lh-score-word"},"Fail")};exports.ScoreWord=o;
|
|
43
|
-
},{"preact":"PBm5"}],"sCii":[function(require,module,exports) {
|
|
44
|
-
"use strict";function t(t){const s=[],i=t.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;i.length;){const[t,n,e]=i.splice(0,3);t&&s.push({isLink:!1,text:t}),n&&e&&s.push({isLink:!0,text:n,linkHref:e})}return s}module.exports={splitMarkdownLink:t};
|
|
45
|
-
},{}],"AHSu":[function(require,module,exports) {
|
|
46
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Markdown=void 0;var e=require("preact"),r=require("@lhci/utils/src/markdown.js");const t=t=>{const s=(0,r.splitMarkdownLink)(t.text);return(0,e.h)(e.Fragment,null,s.map((r,t)=>{if(!r.isLink)return(0,e.h)("span",{key:t},r.text);const s=new URL(r.linkHref);return["https://developers.google.com","https://web.dev"].includes(s.origin)&&(s.searchParams.set("utm_source","lighthouse"),s.searchParams.set("utm_medium","ci")),(0,e.h)("a",{key:t,href:s.href,target:"_blank",rel:"noopener noreferrer"},r.text)}))};exports.Markdown=t;
|
|
47
|
-
},{"preact":"PBm5","@lhci/utils/src/markdown.js":"sCii"}],"g7r1":[function(require,module,exports) {
|
|
48
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Nbsp=void 0;var e=require("preact");const s=()=>(0,e.h)("span",{style:{display:"inline-block",width:4,height:1}});exports.Nbsp=s;
|
|
49
|
-
},{"preact":"PBm5"}],"qL7o":[function(require,module,exports) {
|
|
50
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleDetails=void 0;var e=require("preact"),t=require("../../../components/nbsp");require("./simple-details.css");var a=require("@lhci/utils/src/audit-diff-finder.js");const r=r=>{let s=r.type;const{compareValue:n,baseValue:l,diff:i}=r,o=void 0===n?l:n;"object"==typeof o&&o.type&&(s=o.type);const c=i?(0,a.getDiffLabel)(i):"neutral",u=Number.isFinite(l)?l:0,p=Number.isFinite(n)?n:0,m="Base Value: ".concat(Math.round(u).toLocaleString()),h="Compare Value: ".concat(Math.round(p).toLocaleString()),d="".concat(m,", ").concat(h),A=i&&1!==(0,a.getDeltaStats)(i).percentAbsoluteDelta?" (".concat((100*(0,a.getDeltaStats)(i).percentAbsoluteDelta).toLocaleString(void 0,{maximumFractionDigits:0}),"%)"):"";switch(s){case"bytes":{const a=Math.abs((p-u)/1024);return(0,e.h)("pre",{className:"simple-details--".concat(c),"data-tooltip":d},p>=u?"+":"-",a.toLocaleString(void 0,{maximumFractionDigits:Math.abs(a)<1?1:0}),(0,e.h)(t.Nbsp,null),"KB",A)}case"ms":case"timespanMs":{const a=Math.abs(Math.round(p-u));return(0,e.h)("pre",{className:"simple-details--".concat(c),"data-tooltip":d},p>=u?"+":"-",a.toLocaleString(),(0,e.h)(t.Nbsp,null),"ms",A)}case"thumbnail":return(0,e.h)("img",{style:{width:48,height:48,objectFit:"cover"},src:"asdfasjdfoiasjdfosdj",onError:e=>{const t=e.srcElement;t instanceof HTMLImageElement&&(t.onerror=null,t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")}});case"url":{let t=o,a="";try{const e=new URL(o);t=e.pathname,a=e.hostname}catch(b){}return(0,e.h)("span",{title:o},t,a?(0,e.h)("span",{className:"simple-details__url-hostname"},"(",a,")"):"")}case"link":return o.url?(0,e.h)("a",{target:"_blank",rel:"noopener noreferrer",href:o.url},o.text):(0,e.h)("span",null,o.text);case"code":return(0,e.h)("pre",null,o);case"numeric":return(0,e.h)("pre",{className:"simple-details--".concat(c)},p>=u?"+":"-",Math.abs(p-u).toLocaleString(),A);case"text":return(0,e.h)("span",null,o);case"node":return(0,e.h)("pre",null,o.snippet);case"source-location":{if(!o.url)return(0,e.h)("pre",null,JSON.stringify(o));const{url:t,line:a,column:r}=o;return(0,e.h)("pre",null,t,":",a,":",r)}default:{const t=JSON.stringify(r);return(0,e.h)("pre",{"data-tooltip":t},t.slice(0,20))}}};exports.SimpleDetails=r;
|
|
51
|
-
},{"preact":"PBm5","../../../components/nbsp":"g7r1","./simple-details.css":"QBQU","@lhci/utils/src/audit-diff-finder.js":"On24"}],"TGiw":[function(require,module,exports) {
|
|
52
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableDetails=void 0;var e=require("preact");require("./table-details.css");var t=require("./simple-details"),a=require("@lhci/utils/src/audit-diff-finder");function l(e){switch(e){case"bytes":case"ms":case"timespanMs":case"numeric":return!0;default:return!1}}const n=n=>{const{audit:s,baseAudit:i,diffs:r}=n.pair;if(!s.details)return(0,e.h)(e.Fragment,null);const{headings:u,items:d}=s.details;if(!u||!d)return(0,e.h)(e.Fragment,null);const c=i&&i.details&&i.details.headings||[],m=i&&i.details&&i.details.items||[],o=(0,a.zipBaseAndCompareItems)(m,d),p=(0,a.sortZippedBaseAndCompareItems)(r,o),h=u.length?u:c;let y=h.findIndex(e=>l(e.valueType||e.itemType||"unknown"))-1;return y<0&&(y=h.length-1),(0,e.h)("div",{className:"table-details"},(0,e.h)("table",null,(0,e.h)("thead",null,(0,e.h)("tr",null,h.map((t,a)=>{const l=t.valueType||t.itemType||"unknown";return(0,e.h)(e.Fragment,{key:a},(0,e.h)("th",{className:"table-column--".concat(l)},t.label||t.text),y===a?(0,e.h)("th",null):null)}))),(0,e.h)("tbody",null,p.map(({base:l,compare:n,diffs:s})=>{if(!(n||l))return null;const i="".concat(l&&l.index,"-").concat(n&&n.index),u=(0,a.getRowLabelForIndex)(r,n&&n.index,l&&l.index);return(0,e.h)("tr",{key:i},h.map((a,i)=>{const r=a.valueType||a.itemType||"unknown",d=s.find(e=>"itemDelta"===e.type&&e.itemKey===a.key);return(0,e.h)(e.Fragment,{key:i},(0,e.h)("td",{className:"table-column--".concat(r)},(0,e.h)(t.SimpleDetails,{type:r,compareValue:n&&n.item[a.key],baseValue:l&&l.item[a.key],diff:d})),y===i?(0,e.h)("td",{className:"table-column--row-label"},"added"===u||"removed"===u?u:""):null)}))}))))};exports.TableDetails=n;
|
|
53
|
-
},{"preact":"PBm5","./table-details.css":"QBQU","./simple-details":"qL7o","@lhci/utils/src/audit-diff-finder":"On24"}],"nXMS":[function(require,module,exports) {
|
|
54
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NumericDiff=void 0;var e=require("preact"),t=require("@lhci/utils/src/audit-diff-finder"),i=a(require("clsx")),n=require("../../../components/nbsp");function a(e){return e&&e.__esModule?e:{default:e}}require("./numeric-diff.css");const r={"first-contentful-paint":[0,1e4],"first-meaningful-paint":[0,1e4],"largest-contentful-paint":[0,15e3],"speed-index":[0,15e3],"first-cpu-idle":[0,15e3],interactive:[0,2e4],"estimated-input-latency":[0,1500],"max-potential-fid":[0,1500],"total-blocking-time":[0,1500],"cumulative-layout-shift":[0,1],__default__:[0,3e4]},s=(e,t)=>{const i=e&&e.id||"";return(r[i]||r.__default__)["lower"===t?0:1]},u=(e,t)=>{const i="up"===t?Math.ceil:Math.floor;return e<10?i(e):e<100?10*i(e/10):e<1e3?100*i(e/100):e<1e4?1e3*i(e/1e3):2500*i(e/2500)},l=(e,t)=>{if(e&&"cumulative-layout-shift"===e.id)return"none";if("metrics"===t)return"ms";if("load-opportunities"===t)return"ms";if(!e)return"none";if(e.details){if(e.details.overallSavingsMs)return"ms"}const i=e.displayValue||"";return/[0-9,.]+\s(ms|s)$/.test(i)?"ms":/[0-9,.]+\s(KB|MB)$/.test(i)?"bytes":"none"},o=(t,i)=>{const{asDelta:a=!1,withSuffix:r=!1,unit:s="none"}=i;let u=Math.round(t),l=0,o="";"ms"===s&&(o="ms",Math.abs(u)>=1e3&&!i.preventSecondsConversion&&(u/=1e3,l=1,o="s")),"bytes"===s&&(o="KB",u/=1024,Math.abs(u)>=500&&(u/=1024,l=1,o="MB")),"none"===s&&(Math.abs(u)<10&&(u=t,l=1),Math.abs(u)>=50&&(u/=1e3,l=1,o="K"));const f=u.toLocaleString(void 0,{minimumFractionDigits:l,maximumFractionDigits:l}),d=a&&u>=0?"+":"",c=d+f+(r?o:"");return{element:(0,e.h)("span",null,d,f,r?(0,e.h)(e.Fragment,null,(0,e.h)(n.Nbsp,null),o):""),string:c,length:c.length}},f=n=>{const{diff:a,audit:r,groupId:f}=n,d=l(r,f),c=a.compareValue,m=a.baseValue;if("number"!=typeof m||"number"!=typeof c)return(0,e.h)("span",null,"No diff available");const h=c-m,p=Math.min(c,m),_=Math.max(c,m),v=n.showAsBigPicture?s(r,"lower"):u(.8*p,"down"),g=n.showAsBigPicture?s(r,"upper"):u(1.2*_,"up"),b=g-v,x=100*(Math.min(Math.max(p,v),g)-v)/b,M=100-100*(Math.min(Math.max(_,v),g)-v)/b,w=(0,t.getDeltaLabel)(h,"audit"),N=p===c,y="".concat(o(m,{unit:d,withSuffix:!0}).string," to ").concat(o(c,{withSuffix:!0,unit:d}).string);if(n.showAsNarrow)return(0,e.h)("div",{className:(0,i.default)("audit-numeric-diff","text--".concat(w)),"data-tooltip":y},o(h,{asDelta:!0,withSuffix:!0,preventSecondsConversion:!0,unit:d}).element);const{element:S,length:D}=o(h,{asDelta:!0,withSuffix:!0,preventSecondsConversion:!0,unit:d}),B=10*D*100/300;return(0,e.h)(e.Fragment,null,(0,e.h)("div",{className:"audit-numeric-diff"},(0,e.h)("div",{className:"audit-numeric-diff__left-label"},o(v,{unit:d}).element),(0,e.h)("div",{className:"audit-numeric-diff__bar"},(0,e.h)("div",{className:(0,i.default)("audit-numeric-diff__box",{"audit-numeric-diff__box--improvement":"improvement"===w,"audit-numeric-diff__box--regression":"regression"===w}),style:{left:"".concat(x,"%"),right:"".concat(M,"%")},"data-tooltip":y},(0,e.h)("div",{className:"audit-numeric-diff__now",style:{left:N?"0%":"100%"}}),(0,e.h)("div",{className:(0,i.default)("audit-numeric-diff__delta-label",{"audit-numeric-diff__delta-label--narrow-left":"improvement"===w&&x<B,"audit-numeric-diff__delta-label--narrow-right":"regression"===w&&M<B}),style:{[N?"right":"left"]:"100%"}},S))),(0,e.h)("div",{className:"audit-numeric-diff__right-label"},o(g,{unit:d}).element)))};exports.NumericDiff=f;
|
|
55
|
-
},{"preact":"PBm5","@lhci/utils/src/audit-diff-finder":"On24","clsx":"bvnL","../../../components/nbsp":"g7r1","./numeric-diff.css":"QBQU"}],"tobq":[function(require,module,exports) {
|
|
56
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuditDiff=exports.ItemDiff=void 0;var e=d(require("@lhci/utils/src/lodash")),r=require("preact"),t=require("../../../components/score-icon"),a=require("./numeric-diff"),i=require("@lhci/utils/src/audit-diff-finder"),o=u(require("clsx"));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s();if(r&&r.has(e))return r.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,r&&r.set(e,t),t}const n={"font-display":"font_download","uses-rel-preconnect":"language","user-timings":"timer","bootup-time":"speed","mainthread-work-breakdown":"speed","third-party-summary":"language",deprecations:"error","errors-in-console":"error","font-sizes":"format_size"},f=e=>{const t=e.audit.id||"",a=e.groupId||"";let i="";return a.includes("opportunities")&&(i="web_asset"),a.includes("a11y")&&(i="code"),t.includes("image")&&(i="photo"),i=n[t]||i||"list_alt",(0,r.h)("i",{className:"material-icons"},i)},l=e=>(0,r.h)(r.Fragment,null,(0,r.h)(t.ScoreWord,{audit:e.baseAudit}),(0,r.h)("i",{className:"material-icons audit-group__diff-arrow audit-group__diff-arrow--".concat((0,i.getDiffLabel)(e.diff))},"arrow_forward"),(0,r.h)(t.ScoreWord,{audit:e.audit})),c=e=>(0,r.h)(r.Fragment,null,(0,r.h)("span",null,e.diff.baseValue),(0,r.h)("i",{className:"material-icons audit-group__diff-arrow audit-group__diff-arrow--".concat((0,i.getDiffLabel)(e.diff))},"arrow_forward"),(0,r.h)("span",null,e.diff.compareValue));function p(e){switch(e){case"added":case"worse":case"ambiguous":return"regression";case"removed":case"better":return"improvement";case"no change":return"neutral"}}function m(r){return e.uniqBy(r.map(e=>({base:"baseItemIndex"in e?e.baseItemIndex:void 0,compare:"compareItemIndex"in e?e.compareItemIndex:void 0})).filter(e=>"number"==typeof e.base||"number"==typeof e.compare),e=>"".concat(e.base,"-").concat(e.compare))}const g=e=>{const{diffs:t,baseAudit:a,groupId:u}=e,s=a.details&&a.details.items||[],d=m(t).map(e=>(0,i.getRowLabelForIndex)(t,e.compare,e.base)).map(p),n=d.filter(e=>"regression"===e).length,l=d.filter(e=>"improvement"===e).length,c=(0,r.h)(r.Fragment,null,(0,r.h)("div",{className:"audit-group__diff-badge-group"},(0,r.h)(f,{audit:e.audit,groupId:u}),(0,r.h)("div",{className:"audit-group__diff-badges"},(0,r.h)("span",{className:"audit-group__diff-badge"},s.length))),(0,r.h)("i",{className:"material-icons audit-group__diff-arrow audit-group__diff-arrow--".concat(l>n?"improvement":"regression")},"arrow_forward"));return(0,r.h)(r.Fragment,null,e.showAsNarrow?(0,r.h)(r.Fragment,null):c,(0,r.h)("div",{className:(0,o.default)("audit-group__diff-badge-group")},(0,r.h)(f,{audit:e.audit,groupId:u}),(0,r.h)("div",{className:(0,o.default)("audit-group__diff-badges",{"audit-group__diff-badge-group--multiple":Boolean(n&&l)})},n?(0,r.h)("span",{className:"audit-group__diff-badge audit-group__diff-badge--regression"},n):null,l?(0,r.h)("span",{className:"audit-group__diff-badge audit-group__diff-badge--improvement"},l):null)))};exports.ItemDiff=g;const h=()=>(0,r.h)("div",{className:"audit-group__error-message","data-tooltip":"Audit did not run in the base report"},(0,r.h)("i",{className:"material-icons"},"error_outline")," Audit Missing"),_=e=>{let t="An unknown error occurred while trying to compare the audit results.";return"error"===e.audit.scoreDisplayMode?t="Audit in compare report errored: ".concat(e.audit.errorMessage):"error"===e.baseAudit.scoreDisplayMode&&(t="Audit in base report errored: ".concat(e.baseAudit.errorMessage)),(0,r.h)("div",{className:"audit-group__error-message","data-tooltip":t},(0,r.h)("i",{className:"material-icons"},"error_outline")," Audit Error")},b=e=>{const{audit:t,baseAudit:i,diffs:o,group:u}=e.pair,s=(0,r.h)("span",null,"No diff available");if(!i)return(0,r.h)(h,null);if(o.find(e=>"error"===e.type))return(0,r.h)(_,{audit:t,baseAudit:i});const d=o.find(e=>"numericValue"===e.type);if(d&&"numericValue"===d.type)return(0,r.h)(a.NumericDiff,{diff:d,audit:t,groupId:u.id,showAsBigPicture:e.showAsBigPicture,showAsNarrow:e.showAsNarrow});if(o.some(e=>"itemAddition"===e.type||"itemRemoval"===e.type||"itemDelta"===e.type))return(0,r.h)(g,{diffs:o,audit:t,baseAudit:i,groupId:u.id,showAsNarrow:e.showAsNarrow});const n=o.find(e=>"score"===e.type);if(n)return(0,r.h)(l,{diff:n,audit:t,baseAudit:i});const f=o.find(e=>"displayValue"===e.type);return f&&"displayValue"===f.type?(0,r.h)(c,{diff:f,audit:t,baseAudit:i}):s};exports.AuditDiff=b;
|
|
57
|
-
},{"@lhci/utils/src/lodash":"OuB2","preact":"PBm5","../../../components/score-icon":"MBdz","./numeric-diff":"nXMS","@lhci/utils/src/audit-diff-finder":"On24","clsx":"bvnL"}],"YgnJ":[function(require,module,exports) {
|
|
58
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuditDetail=void 0;var e=require("preact"),i=n(require("clsx")),a=require("../../../components/score-icon"),t=require("../../../components/markdown"),r=require("./table-details"),d=require("../audit-list/numeric-diff"),u=require("../audit-list/audit-diff"),s=require("@lhci/utils/src/audit-diff-finder");function n(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}const l=i=>{const{audit:t,baseAudit:r}=i.pair;return r?(0,e.h)("div",{className:"audit-detail-pane__audit-details--binary"},(0,e.h)(a.ScoreWord,{audit:r}),(0,e.h)("i",{className:"material-icons audit-group__diff-arrow audit-group__diff-arrow--".concat((0,s.getDiffLabel)(i.diff))},"arrow_forward"),(0,e.h)(a.ScoreWord,{audit:t})):null},p=i=>{const a="error"===i.pair.audit.scoreDisplayMode?i.pair.audit:i.pair.baseAudit;return a?(0,e.h)(e.Fragment,null,(0,e.h)("div",{className:"audit-detail-pane__audit-details-summary"},"Error occurred in the"," ",a===i.pair.baseAudit?"base report:":"compare report:"),(0,e.h)("pre",null,a.errorMessage||"Unknown error")):null},c=i=>{const{pair:a}=i,t=a.audit.details||{type:"unknown"},s=a.baseAudit&&a.baseAudit.details||{type:"unknown"},n=Boolean((t.items||[]).length||(s.items||[]).length);let c=void 0,f=void 0,h=void 0;if(a.audit.errorMessage||a.baseAudit&&a.baseAudit.errorMessage)return(0,e.h)(p,{pair:a});"table"!==t.type&&"opportunity"!==t.type||!n||(f=(0,e.h)(r.TableDetails,{pair:a}),a.baseAudit&&(c=(0,e.h)(u.ItemDiff,o({},a,{baseAudit:a.baseAudit,groupId:a.group.id}))));const m=a.diffs.find(e=>"numericValue"===e.type);if(m&&"numericValue"===m.type&&(h=(0,e.h)(d.NumericDiff,{diff:m,audit:a.audit})),f||m)return(0,e.h)(e.Fragment,null,(0,e.h)("div",{className:"audit-detail-pane__audit-details-summary"},h||c),f);const _=a.diffs.find(e=>"score"===e.type);return _&&"score"===_.type?(0,e.h)(l,{diff:_,pair:i.pair}):(0,e.h)("pre",null,JSON.stringify(i.pair,null,2))},f=r=>{const{audit:d}=r.pair;return(0,e.h)("div",{id:"audit-detail-pane-audit--".concat(d.id),className:(0,i.default)("audit-detail-pane__audit")},(0,e.h)("div",{className:"audit-detail-pane__score"},(0,e.h)(a.ScoreIcon,{score:d.score||0})),(0,e.h)("div",{className:"audit-detail-pane__audit-title"},d.title),(0,e.h)("div",{className:"audit-detail-pane__audit-description"},(0,e.h)(t.Markdown,{text:d.description||""})),(0,e.h)("div",{className:"audit-detail-pane__audit-details"},(0,e.h)(c,{pair:r.pair})))};exports.AuditDetail=f;
|
|
59
|
-
},{"preact":"PBm5","clsx":"bvnL","../../../components/score-icon":"MBdz","../../../components/markdown":"AHSu","./table-details":"TGiw","../audit-list/numeric-diff":"nXMS","../audit-list/audit-diff":"tobq","@lhci/utils/src/audit-diff-finder":"On24"}],"qAQt":[function(require,module,exports) {
|
|
60
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuditDetailPane=void 0;var e=require("preact");require("./audit-detail-pane.css");var t=require("../../../hooks/use-previous-value.jsx"),i=require("preact/hooks"),a=require("./audit-detail");const r=r=>{const s=(0,i.useRef)(void 0),u=(0,t.usePreviousValue)(r.selectedAuditId);return(0,i.useEffect)(()=>{const e=r.selectedAuditId,t=s.current;if(!t||!e||e===u)return;const i=t.querySelector("#audit-detail-pane-audit--".concat(e));i&&i instanceof HTMLElement&&t.scrollTo(0,i.offsetTop)},[r.selectedAuditId,u]),(0,e.h)("div",{className:"audit-detail-pane",ref:e=>s.current=e},(0,e.h)("div",{className:"audit-detail-pane__close",onClick:()=>r.setSelectedAuditId(null)},(0,e.h)("i",{className:"material-icons"},"close")),r.pairs.map(t=>{const{audit:i}=t;if(i.id)return(0,e.h)(a.AuditDetail,{key:i.id,pair:t})}))};exports.AuditDetailPane=r;
|
|
61
|
-
},{"preact":"PBm5","./audit-detail-pane.css":"QBQU","../../../hooks/use-previous-value.jsx":"duil","preact/hooks":"o0eE","./audit-detail":"YgnJ"}],"nbB7":[function(require,module,exports) {
|
|
62
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Gauge=void 0;var a=require("preact"),e=t(require("clsx"));require("./gauge.css");var r=require("@lhci/utils/src/audit-diff-finder");function t(a){return a&&a.__esModule?a:{default:a}}const c=t=>{const c=Math.round(100*t.score),s=t.diff?t.diff.baseValue:t.score,o=Math.round(100*s),i=t.diff?(0,r.getDiffLabel)(t.diff):"neutral",u=Math.max(0,352*t.score-2),l="".concat(u," 352"),n=Math.abs(o-c),d=Math.max(0,n/100*352-2),g="".concat(d," 352"),f="rotate(".concat(Math.min(c,o)/100*360,"deg)"),h="rotate(".concat(360*t.score,"deg)");return(0,a.h)("div",{className:(0,e.default)("gauge","gauge--".concat(i))},(0,a.h)("div",{className:"gauge-arc"},(0,a.h)("svg",{viewBox:"0 0 120 120"},(0,a.h)("circle",{className:"gauge-arc__arc",transform:"rotate(-90 60 60)",r:"56",cx:"60",cy:"60",style:{strokeDasharray:l}})),(0,a.h)("div",{className:"gauge-arc__delta-wrapper",style:{transform:f,display:d<1?"none":"block"}},(0,a.h)("svg",{viewBox:"0 0 120 120"},(0,a.h)("circle",{className:"gauge-arc__arc",transform:"rotate(-90 60 60)",r:"56",cx:"60",cy:"60",style:{strokeDasharray:g}}))),(0,a.h)("div",{className:"gauge-arc__indicator-wrapper",style:{transform:h}},(0,a.h)("div",{className:"gauge-arc__indicator"}))),(0,a.h)("span",null,c))};exports.Gauge=c;
|
|
63
|
-
},{"preact":"PBm5","clsx":"bvnL","./gauge.css":"QBQU","@lhci/utils/src/audit-diff-finder":"On24"}],"RLWB":[function(require,module,exports) {
|
|
64
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getBadgeDiffType=c,exports.getBadgeStatus=g,exports.PWAGauge=exports.OptimizedIcon=exports.InstallableIcon=exports.FastReliableIcon=void 0;var e=require("preact"),a=o(require("clsx")),l=r(require("@lhci/utils/src/lodash.js"));function t(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return t=function(){return e},e}function r(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=t();if(a&&a.has(e))return a.get(e);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(l,o,s):l[o]=e[o]}return l.default=e,a&&a.set(e,l),l}function o(e){return e&&e.__esModule?e:{default:e}}require("./pwa-gauge.css");const s=a=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:"pwa-icon pwa-icon--".concat(a.deltaType)},(0,e.h)("g",{"fill-rule":"nonzero",fill:"none"},(0,e.h)("circle",{class:"pwa-icon__background",cx:"12",cy:"12",r:"12"}),(0,e.h)("path",{d:"M12 4.3l6.3 2.8v4.2c0 3.88-2.69 7.52-6.3 8.4-3.61-.88-6.3-4.51-6.3-8.4V7.1L12 4.3zm-.56 12.88l3.3-5.79.04-.08c.05-.1.01-.29-.26-.29h-1.96l.56-3.92h-.56L9.3 12.82c0 .03.07-.12-.03.07-.11.2-.12.37.2.37h1.97l-.56 3.92h.56z",fill:"#FFF"})));exports.FastReliableIcon=s;const i=a=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:"pwa-icon pwa-icon--".concat(a.deltaType)},(0,e.h)("g",{"fill-rule":"nonzero",fill:"none"},(0,e.h)("circle",{class:"pwa-icon__background",cx:"12",cy:"12",r:"12"}),(0,e.h)("path",{d:"M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm3.5 7.7h-2.8v2.8h-1.4v-2.8H8.5v-1.4h2.8V8.5h1.4v2.8h2.8v1.4z",fill:"#FFF"})));exports.InstallableIcon=i;const n=a=>(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:"pwa-icon pwa-icon--".concat(a.deltaType)},(0,e.h)("g",{fill:"none","fill-rule":"evenodd"},(0,e.h)("rect",{class:"pwa-icon__background",width:"24",height:"24",rx:"12"}),(0,e.h)("path",{d:"M5 5h14v14H5z"}),(0,e.h)("path",{fill:"#FFF",d:"M12 15.07l3.6 2.18-.95-4.1 3.18-2.76-4.2-.36L12 6.17l-1.64 3.86-4.2.36 3.2 2.76-.96 4.1z"})));function c(e,a,l){return e[l]===a[l]?"neutral":a[l]?"improvement":"regression"}function g(e){const a=e.categories.pwa,t=l.groupIntoMap(a.auditRefs,e=>e.group),r=(a=[])=>a.map(a=>e.audits[a.id]).every(e=>e&&1===e.score);return{optimized:r(t.get("pwa-optimized")||[]),installable:r(t.get("pwa-installable")||[]),fastAndReliable:r(t.get("pwa-fast-reliable")||[])}}exports.OptimizedIcon=n;const p=l=>{const{status:t}=l,r=t.optimized&&t.installable&&t.fastAndReliable;return(0,e.h)("div",{className:(0,a.default)("pwa-gauge",{"pwa-gauge--all":r,"pwa-gauge--pwa-optimized":!r&&t.optimized,"pwa-gauge--pwa-installable":!r&&t.installable,"pwa-gauge--pwa-fast-reliable":!r&&t.fastAndReliable})},(0,e.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},(0,e.h)("defs",null,(0,e.h)("linearGradient",{id:"pwa-gauge__check-circle__gradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%"},(0,e.h)("stop",{"stop-color":"#00C852",offset:"0%"}),(0,e.h)("stop",{"stop-color":"#009688",offset:"100%"})),(0,e.h)("linearGradient",{id:"pwa-gauge__installable__shadow-gradient",x1:"76.056%",x2:"24.111%",y1:"82.995%",y2:"24.735%"},(0,e.h)("stop",{"stop-color":"#A5D6A7",offset:"0%"}),(0,e.h)("stop",{"stop-color":"#80CBC4",offset:"100%"})),(0,e.h)("linearGradient",{id:"pwa-gauge__fast-reliable__shadow-gradient",x1:"76.056%",y1:"82.995%",x2:"25.678%",y2:"26.493%"},(0,e.h)("stop",{"stop-color":"#64B5F6",offset:"0%"}),(0,e.h)("stop",{"stop-color":"#2979FF",offset:"100%"})),(0,e.h)("g",{id:"pwa-gauge__fast-reliable-badge"},(0,e.h)("circle",{fill:"#FFFFFF",cx:"10",cy:"10",r:"10"}),(0,e.h)("path",{fill:"#304FFE",d:"M10 3.58l5.25 2.34v3.5c0 3.23-2.24 6.26-5.25 7-3.01-.74-5.25-3.77-5.25-7v-3.5L10 3.58zm-.47 10.74l2.76-4.83.03-.07c.04-.08 0-.24-.22-.24h-1.64l.47-3.26h-.47l-2.7 4.77c-.02.01.05-.1-.04.05-.09.16-.1.31.18.31h1.63l-.47 3.27h.47z"})),(0,e.h)("g",{id:"pwa-gauge__installable-badge"},(0,e.h)("circle",{fill:"#FFFFFF",cx:"10",cy:"10",r:"10"}),(0,e.h)("path",{fill:"#009688",d:"M10 4.167A5.835 5.835 0 0 0 4.167 10 5.835 5.835 0 0 0 10 15.833 5.835 5.835 0 0 0 15.833 10 5.835 5.835 0 0 0 10 4.167zm2.917 6.416h-2.334v2.334H9.417v-2.334H7.083V9.417h2.334V7.083h1.166v2.334h2.334v1.166z"}))),(0,e.h)("g",{stroke:"none","fill-rule":"nonzero"},(0,e.h)("circle",{class:"pwa-gauge__disc",cx:"30",cy:"30",r:"30"}),(0,e.h)("g",{class:"pwa-gauge__logo"},(0,e.h)("path",{class:"pwa-gauge__logo--secondary-color",d:"M35.66 19.39l.7-1.75h2L37.4 15 38.6 12l3.4 9h-2.51l-.58-1.61z"}),(0,e.h)("path",{class:"pwa-gauge__logo--primary-color",d:"M33.52 21l3.65-9h-2.42l-2.5 5.82L30.5 12h-1.86l-1.9 5.82-1.35-2.65-1.21 3.72L25.4 21h2.38l1.72-5.2 1.64 5.2z"}),(0,e.h)("path",{class:"pwa-gauge__logo--secondary-color","fill-rule":"nonzero",d:"M20.3 17.91h1.48c.45 0 .85-.05 1.2-.15l.39-1.18 1.07-3.3a2.64 2.64 0 0 0-.28-.37c-.55-.6-1.36-.91-2.42-.91H18v9h2.3V17.9zm1.96-3.84c.22.22.33.5.33.87 0 .36-.1.65-.29.87-.2.23-.59.35-1.15.35h-.86v-2.41h.87c.52 0 .89.1 1.1.32z"})),(0,e.h)("rect",{class:"pwa-gauge__component pwa-gauge__na-line",fill:"#FFFFFF",x:"20",y:"32",width:"20",height:"4",rx:"2"}),(0,e.h)("g",{class:"pwa-gauge__component pwa-gauge__fast-reliable-badge",transform:"translate(20, 29)"},(0,e.h)("path",{fill:"url(#pwa-gauge__fast-reliable__shadow-gradient)",d:"M33.63 19.49A30 30 0 0 1 16.2 30.36L3 17.14 17.14 3l16.49 16.49z"}),(0,e.h)("use",{href:"#pwa-gauge__fast-reliable-badge"})),(0,e.h)("g",{class:"pwa-gauge__component pwa-gauge__installable-badge",transform:"translate(20, 29)"},(0,e.h)("path",{fill:"url(#pwa-gauge__installable__shadow-gradient)",d:"M33.629 19.487c-4.272 5.453-10.391 9.39-17.415 10.869L3 17.142 17.142 3 33.63 19.487z"}),(0,e.h)("use",{href:"#pwa-gauge__installable-badge"})),(0,e.h)("g",{class:"pwa-gauge__component pwa-gauge__fast-reliable-installable-badges"},(0,e.h)("g",{transform:"translate(8, 29)"},(0,e.h)("path",{fill:"url(#pwa-gauge__fast-reliable__shadow-gradient)",d:"M16.321 30.463L3 17.143 17.142 3l22.365 22.365A29.864 29.864 0 0 1 22 31c-1.942 0-3.84-.184-5.679-.537z"}),(0,e.h)("use",{href:"#pwa-gauge__fast-reliable-badge"})),(0,e.h)("g",{transform:"translate(32, 29)"},(0,e.h)("path",{fill:"url(#pwa-gauge__installable__shadow-gradient)",d:"M25.982 11.84a30.107 30.107 0 0 1-13.08 15.203L3 17.143 17.142 3l8.84 8.84z"}),(0,e.h)("use",{href:"#pwa-gauge__installable-badge"}))),(0,e.h)("g",{class:"pwa-gauge__component pwa-gauge__check-circle",transform:"translate(18, 28)"},(0,e.h)("circle",{fill:"#FFFFFF",cx:"12",cy:"12",r:"12"}),(0,e.h)("path",{fill:"url(#pwa-gauge__check-circle__gradient)",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))))};exports.PWAGauge=p;
|
|
65
|
-
},{"preact":"PBm5","clsx":"bvnL","@lhci/utils/src/lodash.js":"OuB2","./pwa-gauge.css":"QBQU"}],"h0GT":[function(require,module,exports) {
|
|
66
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScoreDeltaBadge=void 0;var e=require("preact");require("./score-delta-badge.css");var r=require("@lhci/utils/src/audit-diff-finder"),a=t(require("clsx"));function t(e){return e&&e.__esModule?e:{default:e}}const c=t=>{const c=Math.round(100*(t.diff.compareValue-t.diff.baseValue));return(0,e.h)("div",{className:(0,a.default)("score-delta-badge","score-delta-badge--".concat((0,r.getDiffLabel)(t.diff)),t.className)},c<0?c:"+".concat(c))};exports.ScoreDeltaBadge=c;
|
|
67
|
-
},{"preact":"PBm5","./score-delta-badge.css":"QBQU","@lhci/utils/src/audit-diff-finder":"On24","clsx":"bvnL"}],"Np95":[function(require,module,exports) {
|
|
68
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LhrComparisonScores=void 0;var e=require("preact");require("./lhr-comparison-scores.css");var a=l(require("clsx")),r=require("../../components/gauge"),s=require("../../components/pwa-gauge"),t=require("../../components/score-delta-badge");function l(e){return e&&e.__esModule?e:{default:e}}const o=s=>{const{lhr:l,baseLhr:o,categoryId:i}=s,c=l.categories[i],n=o&&o.categories[i],d=n&&{auditId:"",type:"score",baseValue:n.score,compareValue:c.score};return(0,e.h)("div",{key:i,className:(0,a.default)("lhr-comparison-scores-item")},(0,e.h)(r.Gauge,{score:c.score,diff:d}),(0,e.h)("div",{className:"lhr-comparison-scores-item__label"},c.title),d?(0,e.h)(t.ScoreDeltaBadge,{diff:d,className:"lhr-comparison-scores-item__delta"}):null)},i=r=>{const{lhr:t,baseLhr:l,categoryId:o}=r,i=(0,s.getBadgeStatus)(t);let c;if(l){const r=(0,s.getBadgeStatus)(l),t={fastAndReliable:(0,s.getBadgeDiffType)(r,i,"fastAndReliable"),installable:(0,s.getBadgeDiffType)(r,i,"installable"),optimized:(0,s.getBadgeDiffType)(r,i,"optimized")},o=Object.values(t).every(e=>"neutral"===e),n=(0,e.h)(e.Fragment,null,"neutral"===t.fastAndReliable?(0,e.h)(e.Fragment,null):(0,e.h)(s.FastReliableIcon,{deltaType:t.fastAndReliable}),"neutral"===t.installable?(0,e.h)(e.Fragment,null):(0,e.h)(s.InstallableIcon,{deltaType:t.installable}),"neutral"===t.optimized?(0,e.h)(e.Fragment,null):(0,e.h)(s.OptimizedIcon,{deltaType:t.optimized}));c=(0,e.h)("div",{className:(0,a.default)("lhr-comparison-scores-item__delta")},o?"-":n)}return(0,e.h)("div",{key:o,className:(0,a.default)("lhr-comparison-scores-item","lhr-comparison-scores-item--pwa","lhr-comparison-scores-item--".concat("neutral"))},(0,e.h)(s.PWAGauge,{status:i}),(0,e.h)("div",{className:"lhr-comparison-scores-item__label"},"PWA"),c)},c=a=>{const{lhr:r,baseLhr:s}=a;if(!r)return null;const t=Object.keys(r.categories);return(0,e.h)("div",{className:"lhr-comparison-scores"},t.sort((e,a)=>{return("pwa"===e?1/0:t.indexOf(e))-("pwa"===a?1/0:t.indexOf(a))}).map(a=>"pwa"===a?(0,e.h)(i,{lhr:r,baseLhr:s,categoryId:a}):(0,e.h)(o,{lhr:r,baseLhr:s,categoryId:a})))};exports.LhrComparisonScores=c;
|
|
69
|
-
},{"preact":"PBm5","./lhr-comparison-scores.css":"QBQU","clsx":"bvnL","../../components/gauge":"nbB7","../../components/pwa-gauge":"RLWB","../../components/score-delta-badge":"h0GT"}],"PPje":[function(require,module,exports) {
|
|
70
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuditGroup=void 0;var e=require("preact");require("./audit-group.css");var t=require("../../../components/paper"),i=require("../../../components/score-icon"),a=o(require("clsx")),r=require("./audit-diff"),s=require("preact/hooks"),u=require("../../../components/lhr-viewer-link");function o(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}const c=t=>(0,e.h)("div",{className:"audit-group__big-picture-tabs"},(0,e.h)("span",{className:(0,a.default)("big-picture-tabs__tab",{"big-picture-tabs__tab--selected":t.showAsBigPicture}),onClick:()=>t.setShowAsBigPicture(!0)},"Overview"),(0,e.h)("span",{className:(0,a.default)("big-picture-tabs__tab",{"big-picture-tabs__tab--selected":!t.showAsBigPicture}),onClick:()=>t.setShowAsBigPicture(!1)},"Magnified")),n=t=>(0,e.h)(e.Fragment,null,t.pairs.map(s=>{const{audit:u}=s;return"metrics"!==t.group.id&&(s={...s,diffs:s.diffs.filter(e=>"numericValue"!==e.type)}),(0,e.h)("div",{key:u.id,className:(0,a.default)("audit-group__audit"),onClick:()=>t.setSelectedAuditId(u.id||null)},(0,e.h)("div",{className:"audit-group__audit-score"},(0,e.h)(i.ScoreIcon,{score:u.score||0})),(0,e.h)("div",{className:"audit-group__audit-title"},u.title),(0,e.h)("div",{className:"audit-group__audit-diff"},(0,e.h)(r.AuditDiff,{pair:s,showAsBigPicture:t.showAsBigPicture,showAsNarrow:t.showAsNarrow})))})),l=t=>{const r=t.baseLhr;return r&&t.expanded?(0,e.h)(e.Fragment,null,t.pairs.map(t=>{const{audit:s}=t;return(0,e.h)("div",{key:s.id,className:(0,a.default)("audit-group__audit","audit-group__audit--unchanged"),onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,u.openLhrInClassicViewer)(r)}},(0,e.h)("div",{className:"audit-group__audit-score"},(0,e.h)(i.ScoreIcon,{score:s.score||0})),(0,e.h)("div",{className:"audit-group__audit-title"},s.title),(0,e.h)("div",{className:"audit-group__audit-diff"},"Open Report"))})):(0,e.h)(e.Fragment,null)},p=i=>{const{group:r}=i,[u,o]=(0,s.useState)("metrics"===r.id),[p,h]=(0,s.useState)(!1);return(0,e.h)(t.Paper,{className:(0,a.default)("audit-group",{"audit-group--expanded":p,"audit-group--unchanged":i.showAsUnchanged})},(0,e.h)("div",{className:"audit-group__header",onClick:()=>h(!p)},(0,e.h)("div",{className:"audit-group__title"},r.title," ",i.showAsUnchanged?"(".concat(i.pairs.length,")"):""),(0,e.h)("div",{className:"audit-group__expand-toggle"},(0,e.h)("i",{className:"material-icons"},"chevron_right")),"metrics"!==r.id||i.showAsNarrow?(0,e.h)(e.Fragment,null):(0,e.h)(c,d({},i,{showAsBigPicture:u,setShowAsBigPicture:o}))),(0,e.h)("div",{className:"audit-group__audits"},i.showAsUnchanged?(0,e.h)(l,d({},i,{expanded:p})):(0,e.h)(n,d({},i,{showAsBigPicture:u}))))};exports.AuditGroup=p;
|
|
71
|
-
},{"preact":"PBm5","./audit-group.css":"QBQU","../../../components/paper":"ri7X","../../../components/score-icon":"MBdz","clsx":"bvnL","./audit-diff":"tobq","preact/hooks":"o0eE","../../../components/lhr-viewer-link":"lMFQ"}],"HjsZ":[function(require,module,exports) {
|
|
72
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LhrComparisonLegend=void 0;var e=require("preact");require("./lhr-comparison-legend.css");var r=require("../../components/score-icon");const s=()=>(0,e.h)("div",{className:"lhr-comparison-legend"},(0,e.h)(r.ScoreIcon,{score:0}),(0,e.h)("span",{className:"lhr-comparison-legend__label"},"0-49"),(0,e.h)(r.ScoreIcon,{score:.5}),(0,e.h)("span",{className:"lhr-comparison-legend__label"},"50-89"),(0,e.h)(r.ScoreIcon,{score:1}),(0,e.h)("span",{className:"lhr-comparison-legend__label"},"90-100"),(0,e.h)("i",{className:"lhr-comparison-legend__chip lhr-comparison-legend__chip--regression"}),(0,e.h)("span",{className:"lhr-comparison-legend__label"},"Regression"),(0,e.h)("i",{className:"lhr-comparison-legend__chip lhr-comparison-legend__chip--improvement"}),(0,e.h)("span",{className:"lhr-comparison-legend__label"},"Improvement"));exports.LhrComparisonLegend=s;
|
|
73
|
-
},{"preact":"PBm5","./lhr-comparison-legend.css":"QBQU","../../components/score-icon":"MBdz"}],"IPZK":[function(require,module,exports) {
|
|
74
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={version:!0,Children:!0,render:!0,hydrate:!0,unmountComponentAtNode:!0,createPortal:!0,createElement:!0,createFactory:!0,cloneElement:!0,isValidElement:!0,findDOMNode:!0,PureComponent:!0,memo:!0,forwardRef:!0,unstable_batchedUpdates:!0,Suspense:!0,lazy:!0,createContext:!0,createRef:!0,Fragment:!0,Component:!0};exports.hydrate=exports.render=f,exports.unmountComponentAtNode=g,exports.createPortal=_,exports.createElement=y,exports.createFactory=s,exports.cloneElement=b,exports.isValidElement=x,exports.findDOMNode=E,exports.memo=R,exports.forwardRef=A,exports.Suspense=a,exports.lazy=u,Object.defineProperty(exports,"createContext",{enumerable:!0,get:function(){return n.createContext}}),Object.defineProperty(exports,"createRef",{enumerable:!0,get:function(){return n.createRef}}),Object.defineProperty(exports,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(exports,"Component",{enumerable:!0,get:function(){return n.Component}}),exports.unstable_batchedUpdates=exports.PureComponent=exports.Children=exports.version=exports.default=void 0;var t=require("preact/hooks");Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(exports,n,{enumerable:!0,get:function(){return t[n]}}))});var n=require("preact");function r(e){var t=e.parentNode;t&&t.removeChild(e)}var o=n.options.__e;function a(){this.t=[]}function u(e){var t,r,o;function a(a){if(t||(t=e()).then(function(e){r=e.default},function(e){o=e}),o)throw o;if(!r)throw t;return(0,n.createElement)(r,a)}return a.displayName="Lazy",a.o=!0,a}n.options.__e=function(e,t,n){if(e.then&&n)for(var r,a=t;a=a.__p;)if((r=a.__c)&&r.u)return n&&(t.__e=n.__e,t.__k=n.__k),void r.u(e);o(e,t,n)},(a.prototype=new n.Component).u=function(e){var t=this;t.t.push(e);var o=function(){t.t[t.t.indexOf(e)]=t.t[t.t.length-1],t.t.pop(),0==t.t.length&&((0,n._unmount)(t.props.fallback),t.__v.__e=null,t.__v.__k=t.state.i,t.setState({i:null}))};null==t.state.i&&(t.setState({i:t.__v.__k}),function e(t){for(var n=0;n<t.length;n++){var o=t[n];null!=o&&("function"!=typeof o.type&&o.__e?r(o.__e):o.__k&&e(o.__k))}}(t.__v.__k),t.__v.__k=[]),e.then(o,o)},a.prototype.render=function(e,t){return t.i?e.fallback:e.children};var i="16.8.0",l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,p=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,c=n.options.event;function s(e){return y.bind(null,e)}function f(e,t,o){if(null==t.__k)for(;t.firstChild;)r(t.firstChild);return(0,n.render)(e,t),"function"==typeof o&&o(),e?e.__c:null}exports.version=i,n.options.event=function(e){return c&&(e=c(e)),e.persist=function(){},e.nativeEvent=e};var d=function(){};function m(e){var t=this,r=e.container,o=(0,n.h)(d,{context:t.context},e.vnode);return t.l&&t.l!==r&&(t.s.parentNode&&t.l.removeChild(t.s),(0,n._unmount)(t.v),t.p=!1),e.vnode?t.p?(r.__k=t.__k,(0,n.render)(o,r),t.__k=r.__k):(t.s=document.createTextNode(""),(0,n.hydrate)("",r),r.appendChild(t.s),t.p=!0,t.l=r,(0,n.render)(o,r,t.s),t.__k=this.s.__k):t.p&&(t.s.parentNode&&t.l.removeChild(t.s),(0,n._unmount)(t.v)),t.v=o,t.componentWillUnmount=function(){t.s.parentNode&&t.l.removeChild(t.s),(0,n._unmount)(t.v)},null}function _(e,t){return(0,n.h)(m,{vnode:e,container:t})}d.prototype.getChildContext=function(){return this.props.context},d.prototype.render=function(e){return e.children};var h=function(e,t){return e?(0,n.toChildArray)(e).map(t):null},v={map:h,forEach:h,count:function(e){return e?(0,n.toChildArray)(e).length:0},only:function(e){if(1!==(e=(0,n.toChildArray)(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:n.toChildArray};function y(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=n.h.apply(void 0,e),o=r.type,a=r.props;return"function"!=typeof o&&(a.defaultValue&&(a.value||0===a.value||(a.value=a.defaultValue),delete a.defaultValue),Array.isArray(a.value)&&a.multiple&&"select"===o&&((0,n.toChildArray)(a.children).forEach(function(e){-1!=a.value.indexOf(e.props.value)&&(e.props.selected=!0)}),delete a.value),function(e,t){var n,r,o;for(o in t)if(n=p.test(o))break;if(n)for(o in r=e.props={},t)r[p.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o]}(r,a)),r.preactCompatNormalized=!1,C(r)}function C(e){return e.preactCompatNormalized=!0,function(e){var t=e.props;(t.class||t.className)&&(k.enumerable="className"in t,t.className&&(t.class=t.className),Object.defineProperty(t,"className",k))}(e),e}function b(e){return x(e)?C(n.cloneElement.apply(null,arguments)):e}function x(e){return!!e&&e.$$typeof===l}function g(e){return!!e.__k&&((0,n.render)(null,e),!0)}exports.Children=v;var k={configurable:!0,get:function(){return this.class}};function N(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function E(e){return e&&(e.base||1===e.nodeType&&e)||null}var P=function(e){function t(t){e.call(this,t),this.isPureReactComponent=!0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.shouldComponentUpdate=function(e,t){return N(this.props,e)||N(this.state,t)},t}(n.Component);function R(e,t){function r(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),(t?!t(this.props,e):N(this.props,e))||!r}function o(t){return this.shouldComponentUpdate=r,(0,n.h)(e,function(e,t){for(var n in t)e[n]=t[n];return e}({},t))}return o.prototype.isReactComponent=!0,o.displayName="Memo("+(e.displayName||e.name)+")",o.o=!0,o}function A(e){function t(t){var n=t.ref;return delete t.ref,e(t,n)}return t.prototype.isReactComponent=!0,t.o=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function O(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{configurable:!1,get:function(){return this["UNSAFE_"+t]},set:function(e){this["UNSAFE_"+t]=e}})}exports.PureComponent=P,n.Component.prototype.isReactComponent={};var w=n.options.vnode;n.options.vnode=function(e){e.$$typeof=l,function(t){var n=e.type,r=e.props;if(r&&"string"==typeof n){var o={};for(var a in r)/^on(Ani|Tra)/.test(a)&&(r[a.toLowerCase()]=r[a],delete r[a]),o[a.toLowerCase()]=a;if(o.ondoubleclick&&(r.ondblclick=r[o.ondoubleclick],delete r[o.ondoubleclick]),o.onbeforeinput&&(r.onbeforeinput=r[o.onbeforeinput],delete r[o.onbeforeinput]),o.onchange&&("textarea"===n||"input"===n.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var u=o.oninput||"oninput";r[u]||(r[u]=r[o.onchange],delete r[o.onchange])}}}();var t=e.type;t&&t.o&&e.ref&&(e.props.ref=e.ref,e.ref=null),"function"==typeof t&&!t.m&&t.prototype&&(O(t.prototype,"componentWillMount"),O(t.prototype,"componentWillReceiveProps"),O(t.prototype,"componentWillUpdate"),t.m=!0),w&&w(e)};var S=function(e,t){return e(t)};exports.unstable_batchedUpdates=S;var F={useState:t.useState,useReducer:t.useReducer,useEffect:t.useEffect,useLayoutEffect:t.useLayoutEffect,useRef:t.useRef,useImperativeHandle:t.useImperativeHandle,useMemo:t.useMemo,useCallback:t.useCallback,useContext:t.useContext,useDebugValue:t.useDebugValue,version:"16.8.0",Children:v,render:f,hydrate:f,unmountComponentAtNode:g,createPortal:_,createElement:y,createContext:n.createContext,createFactory:s,cloneElement:b,createRef:n.createRef,Fragment:n.Fragment,isValidElement:x,findDOMNode:E,Component:n.Component,PureComponent:P,memo:R,forwardRef:A,unstable_batchedUpdates:S,Suspense:a,lazy:u};exports.default=F;
|
|
75
|
-
},{"preact/hooks":"o0eE","preact":"PBm5"}],"PJ2U":[function(require,module,exports) {
|
|
76
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Modal=void 0;var e=require("preact"),r=require("preact/compat"),o=t(require("clsx"));function t(e){return e&&e.__esModule?e:{default:e}}require("./modal.css");const a=t=>{const a=(0,r.useRef)(document.getElementById("preact-modal-root")||document.createElement("div"));return(0,r.useEffect)(()=>(a.current.id="preact-modal-root",document.body.appendChild(a.current),()=>document.body.removeChild(a.current)),[]),(0,r.createPortal)((0,e.h)("div",{className:"modal-backdrop"},(0,e.h)("div",{className:(0,o.default)("modal",t.className),style:{position:"relative"}},t.children,(0,e.h)("div",{className:"modal__close",onClick:t.onClose},(0,e.h)("i",{className:"material-icons"},"close")))),a.current)};exports.Modal=a;
|
|
77
|
-
},{"preact":"PBm5","preact/compat":"IPZK","clsx":"bvnL","./modal.css":"QBQU"}],"TOME":[function(require,module,exports) {
|
|
78
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.computeRuntimeDiffs=n,exports.LhrRuntimeDiff=void 0;var e=require("preact");require("./lhr-comparison-runtime-diff.css");var t=r(require("clsx"));function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"string"==typeof e?e:"number"==typeof e?e.toString():void 0===e?"Unset":"boolean"==typeof e?e?"Enabled":"Disabled":Array.isArray(e)?e.join(", "):"Unknown"}function n(e,t){if(!t)return[];const r=[],{benchmarkIndex:n}=e.environment,{benchmarkIndex:i}=t.environment,s=Math.abs(n-i)/Math.min(n,i);s>1.5&&r.push({label:"CPU/Memory Power",base:t.environment.benchmarkIndex.toString(),compare:e.environment.benchmarkIndex.toString(),severity:s>2?"error":"warn"});const a=e.configSettings,h=t.configSettings,l=a.throttling||{},u=a.throttling||{},c=[["Lighthouse Version",t.lighthouseVersion,e.lighthouseVersion],["Storage Reset",h.disableStorageReset,a.disableStorageReset],["Emulated Form Factor",h.emulatedFormFactor,a.emulatedFormFactor],["Throttling Method",h.throttlingMethod,a.throttlingMethod],["CPU Throttling",u.cpuSlowdownMultiplier,l.cpuSlowdownMultiplier],["Network RTT",u.rttMs,l.rttMs],["Network Throughput",u.throughputKbps,l.throughputKbps],["Network RTT",u.requestLatencyMs,l.requestLatencyMs],["Network Throughput (Up)",u.uploadThroughputKbps,l.uploadThroughputKbps],["Network Throughput (Down)",u.downloadThroughputKbps,l.downloadThroughputKbps]];for(const[d,m,p]of c){const e=o(m),t=o(p);e!==t&&r.push({label:d,base:e,compare:t,severity:"error"})}return r}const i=r=>{const{diffs:o}=r;return(0,e.h)("div",{className:(0,t.default)("lhr-comparison-runtime-diff","lhr-comparison-runtime-diff--".concat(r.variant))},(0,e.h)("div",{className:"lhr-comparison__warning"},(0,e.h)("i",{className:"material-icons"},"info"),(0,e.h)("div",null,"Changes of runtime settings or the environment can substantially affect your Lighthouse scores and might be the reason for the differences here.")),(0,e.h)("div",{className:"lhr-comparison-runtime-diff__diffs"},"The following runtime differences were detected:",(0,e.h)("table",null,(0,e.h)("thead",null,(0,e.h)("tr",null,(0,e.h)("th",null),(0,e.h)("th",null,"Base"),(0,e.h)("th",null,"Compare"))),(0,e.h)("tbody",null,o.map(t=>(0,e.h)("tr",{key:t.label},(0,e.h)("td",null,t.label),(0,e.h)("td",null,t.base),(0,e.h)("td",null,t.compare)))))))};exports.LhrRuntimeDiff=i;
|
|
79
|
-
},{"preact":"PBm5","./lhr-comparison-runtime-diff.css":"QBQU","clsx":"bvnL"}],"IOic":[function(require,module,exports) {
|
|
80
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.computeAuditGroups=g,exports.LhrComparison=void 0;var e=require("preact"),r=require("preact/hooks"),s=m(require("clsx")),t=m(require("@lhci/utils/src/lodash")),i=require("@lhci/utils/src/audit-diff-finder"),o=require("../../components/dropdown"),a=require("./audit-detail/audit-detail-pane"),n=require("./lhr-comparison-scores"),l=require("./audit-list/audit-group"),d=require("./lhr-comparison-legend"),u=require("../../components/paper"),c=require("../../components/lhr-viewer-link");require("./lhr-comparison.css");var h=require("../../components/modal"),p=require("./lhr-comparison-runtime-diff");function m(e){return e&&e.__esModule?e:{default:e}}function f(e){const s=e=>new Promise(r=>setTimeout(r,e));(0,r.useEffect)(()=>{window.location.hash.length<=1||Promise.resolve().then(async()=>{await(async e=>{let r=0;for(;!document.querySelector(e)&&r<10;)await s(500),r++})(".lhr-comparison__audit-groups"),e(window.location.hash.slice(1))})},[])}function g(e,r,s){const o=[];for(const[a,n]of Object.entries(e.categories)){const l={title:n.title,description:n.description},d=t.default.groupBy(n.auditRefs,e=>e.group),u="unchanged:".concat(a),c={id:u,group:{id:u,title:"Unchanged Audits - ".concat(n.title)},pairs:[],showAsUnchanged:!0};for(const t of d){let n=t[0].group||"",u=e.categoryGroups&&e.categoryGroups[n];if(!u){if(1!==d.length)continue;n="category:".concat(a),u=l}const h={...u,id:n},p=t.map(t=>{const o={...e.audits[t.id],id:t.id},a=r&&r.audits[o.id||""],n=a?(0,i.findAuditDiffs)(a,o,{...s,synthesizeItemKeyDiffs:!0}):[],l=Math.max(...n.map(i.getDiffSeverity),0);return{audit:o,baseAudit:a,diffs:n,maxSeverity:l,group:h}}).sort((e,r)=>(e.audit.score||0)-(r.audit.score||0)),m=p.filter(e=>!e.baseAudit||e.diffs.length),f=p.filter(e=>e.baseAudit&&!e.diffs.length);m.length&&o.push({id:n,group:h,pairs:m,showAsUnchanged:!1}),f.length&&c.pairs.push(...f)}c.pairs.length&&o.push(c)}return o}const w=r=>(0,e.h)("div",{className:"lhr-comparison__scores-and-dropdowns"},(0,e.h)("div",{className:"container"},(0,e.h)("div",{className:"lhr-comparison__dropdowns"},r.hookElements.dropdowns,(0,e.h)(o.Dropdown,{label:"Threshold",value:r.percentAbsoluteDeltaThreshold.toString(),setValue:e=>{r.setPercentAbsoluteDeltaThreshold(Number(e))},options:[{value:"0",label:"0%"},{value:"0.05",label:"5%"},{value:"0.1",label:"10%"},{value:"0.15",label:"15%"},{value:"0.25",label:"25%"}]})),r.selectedAuditId?(0,e.h)(e.Fragment,null):(0,e.h)(n.LhrComparisonScores,r))),_=r=>(0,e.h)("div",{className:"lhr-comparison__audit-groups"},r.auditGroups.map(s=>{if(s)return(0,e.h)(l.AuditGroup,{key:s.id,showAsNarrow:r.showAsNarrow,showAsUnchanged:s.showAsUnchanged,pairs:s.pairs,group:s.group,baseLhr:r.baseLhr,selectedAuditId:r.selectedAuditId,setSelectedAuditId:r.setSelectedAuditId})})),A=t=>{const{lhr:i,baseLhr:o}=t,[n,l]=(0,r.useState)(.05),[m,A]=(0,r.useState)(null),[v,b]=(0,r.useState)("none");f(A),(0,r.useEffect)(()=>{window.__LHR__=i,window.__BASE_LHR__=o},[i,o]);const L=(0,p.computeRuntimeDiffs)(i,o),N=L.some(e=>"error"===e.severity),q=g(i,o,{percentAbsoluteDeltaThreshold:n});return(0,e.h)(e.Fragment,null,"none"===v&&N?(0,e.h)(h.Modal,{onClose:()=>b("acknowledged")},(0,e.h)(p.LhrRuntimeDiff,{diffs:L,variant:"full"})):null,m?(0,e.h)(a.AuditDetailPane,{selectedAuditId:m,setSelectedAuditId:A,pairs:q.filter(e=>!e.showAsUnchanged).map(e=>e.pairs).reduce((e,r)=>e.concat(r)),baseLhr:o}):(0,e.h)(e.Fragment,null),(0,e.h)("div",{className:(0,s.default)("lhr-comparison",t.className,{"lhr-comparison--with-audit-selection":!!m})},(0,e.h)(w,{lhr:i,baseLhr:o,selectedAuditId:m,hookElements:t.hookElements,percentAbsoluteDeltaThreshold:n,setPercentAbsoluteDeltaThreshold:l}),(0,e.h)("div",{className:"container"},t.hookElements.warnings,"closed"!==v&&L.length?(0,e.h)(u.Paper,{className:"position-relative"},(0,e.h)(p.LhrRuntimeDiff,{diffs:L,variant:"mini"}),(0,e.h)("div",{className:"lhr-comparison-runtime-diff__close",onClick:()=>b("closed")},(0,e.h)("i",{className:"material-icons"},"close"))):null,q.length&&o?(0,e.h)(e.Fragment,null,m?null:(0,e.h)("div",{className:"lhr-comparison__legend-container"},(0,e.h)(d.LhrComparisonLegend,null)),(0,e.h)(_,{showAsNarrow:!!m,auditGroups:q,baseLhr:o,selectedAuditId:m,setSelectedAuditId:A})):t.hookElements.warnings?null:(0,e.h)(u.Paper,{className:"lhr-comparison__warning"},(0,e.h)("i",{className:"material-icons"},"sentiment_satisfied_alt"),(0,e.h)("div",null,"Woah, no differences found! Switch base builds to explore other differences, or"," ",(0,e.h)(c.LhrViewerLink,{className:"lhr-comparison__warning__lhr-link",lhr:t.lhr},"jump straight to the Lighthouse report."))))))};exports.LhrComparison=A;
|
|
81
|
-
},{"preact":"PBm5","preact/hooks":"o0eE","clsx":"bvnL","@lhci/utils/src/lodash":"OuB2","@lhci/utils/src/audit-diff-finder":"On24","../../components/dropdown":"ShaH","./audit-detail/audit-detail-pane":"qAQt","./lhr-comparison-scores":"Np95","./audit-list/audit-group":"PPje","./lhr-comparison-legend":"HjsZ","../../components/paper":"ri7X","../../components/lhr-viewer-link":"lMFQ","./lhr-comparison.css":"QBQU","../../components/modal":"PJ2U","./lhr-comparison-runtime-diff":"TOME"}],"ROJz":[function(require,module,exports) {
|
|
82
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComparisonRoute=void 0;var e=require("preact");require("./comparison.css");var o=require("../../components/lhci-components.jsx"),r=require("../../components/report-upload-box"),a=require("../../../../../server/src/ui/routes/build-view/lhr-comparison");const s=s=>{const t=(0,r.computeBestDisplayType)(s.baseReport.lhr,s.compareReport.lhr);return(0,e.h)("div",{className:"comparison"},(0,e.h)("div",{className:"comparison-header"},(0,e.h)("div",{className:"comparison-header__switcher",onClick:()=>{s.setBaseReport(s.compareReport),s.setCompareReport(s.baseReport)}},(0,e.h)("i",{className:"material-icons"},"swap_horiz")),(0,e.h)("div",{className:"comparison-header__logo"},(0,e.h)("img",{src:o.LH_LOGO_PATH,alt:"Lighthouse Logo",onClick:()=>{s.setBaseReport(void 0),s.setCompareReport(void 0)}})),(0,e.h)("div",{className:"comparison-header__upload"},(0,e.h)(r.ReportUploadBox,{variant:"base",dragTarget:"self",report:s.baseReport,setReport:s.setBaseReport,addToast:s.addToast,displayType:t,showOpenLhrLink:!0}),(0,e.h)(r.ReportUploadBox,{variant:"compare",dragTarget:"self",report:s.compareReport,setReport:s.setCompareReport,addToast:s.addToast,displayType:t,showOpenLhrLink:!0})),(0,e.h)("a",{className:"comparison-header__info",href:"https://github.com/GoogleChrome/lighthouse-ci"},(0,e.h)("i",{className:"material-icons"},"info"))),(0,e.h)("div",{className:"comparison-body"},(0,e.h)(a.LhrComparison,{lhr:s.compareReport.lhr,baseLhr:s.baseReport.lhr,hookElements:{}})))};exports.ComparisonRoute=s;
|
|
83
|
-
},{"preact":"PBm5","./comparison.css":"QBQU","../../components/lhci-components.jsx":"jSTM","../../components/report-upload-box":"RqHV","../../../../../server/src/ui/routes/build-view/lhr-comparison":"IOic"}],"QAPf":[function(require,module,exports) {
|
|
84
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Toast=void 0;var e=require("preact");require("./toast.css");var t=require("preact/hooks");const s=s=>{const r=s.setToasts,{message:o,level:a="info"}=s.toast;return(0,t.useEffect)(()=>{const e=setTimeout(()=>r(e=>e.filter(e=>e!==s.toast)),5e3);return()=>clearInterval(e)},[]),(0,e.h)("div",{className:"toast toast--".concat(a)},o)};exports.Toast=s;
|
|
85
|
-
},{"preact":"PBm5","./toast.css":"QBQU","preact/hooks":"o0eE"}],"pRI3":[function(require,module,exports) {
|
|
86
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.App=void 0;var e=require("preact"),t=require("preact/hooks");require("../../../server/src/ui/app.css"),require("./app.css");var a=require("./routes/landing/landing.jsx"),o=require("./routes/comparison/comparison.jsx"),r=require("./components/lhci-components.jsx"),s=require("./components/report-upload-box.jsx"),n=require("./components/toast.jsx");const i=new URLSearchParams(location.search),c=i.get("baseReport"),p=i.get("compareReport");async function l(e,t){const a=new URL(e).pathname.split("/").slice(-1)[0]||"Unknown",o=await fetch(e),r=await o.text(),n=(0,s.parseStringAsLhr)(r);if(n instanceof Error)throw n;t({filename:a,data:r,lhr:n})}async function m(e,t,a,o){if("localhost"===window.location.hostname){const a=localStorage.getItem("lastBaseReport"),o=localStorage.getItem("lastCompareReport");a&&e(JSON.parse(a)),o&&t(JSON.parse(o))}const r=[c&&l(c,e),p&&l(p,t)].filter(e=>!!e);r.length&&(a(!0),await Promise.all(r.map(e=>e.catch(e=>{console.error(e),o({message:"Failed loading report from URL: ".concat(e.message),level:"error"})}))),a(!1))}const u=()=>{const[s,i]=(0,t.useState)(!1),[c,p]=(0,t.useState)(void 0),[l,u]=(0,t.useState)(void 0),[d,g]=(0,t.useState)([]),h=(0,t.useCallback)(e=>g(t=>[...t,e]),[g]);return(0,t.useEffect)(()=>{m(p,u,i,h)},[]),(0,t.useEffect)(()=>{localStorage.setItem("lastBaseReport",JSON.stringify(c)),localStorage.setItem("lastCompareReport",JSON.stringify(l))},[c,l]),(0,e.h)("div",{className:"lhci-viewer"},s?(0,e.h)("div",{className:"loading-container"},(0,e.h)(r.LoadingSpinner,null)):(0,e.h)(e.Fragment,null),(0,e.h)("div",{className:"toast-container"},d.map(t=>(0,e.h)(n.Toast,{key:t.message,toast:t,setToasts:g}))),c&&l?(0,e.h)(o.ComparisonRoute,{baseReport:c,setBaseReport:p,compareReport:l,setCompareReport:u,addToast:h}):(0,e.h)(a.LandingRoute,{baseReport:c,setBaseReport:p,compareReport:l,setCompareReport:u,addToast:h}))};exports.App=u;
|
|
87
|
-
},{"preact":"PBm5","preact/hooks":"o0eE","../../../server/src/ui/app.css":"WFRN","./app.css":"QBQU","./routes/landing/landing.jsx":"tQKP","./routes/comparison/comparison.jsx":"ROJz","./components/lhci-components.jsx":"jSTM","./components/report-upload-box.jsx":"RqHV","./components/toast.jsx":"QAPf"}],"OHmn":[function(require,module,exports) {
|
|
88
|
-
"use strict";var r=require("preact"),e=require("./app.jsx");const t=document.getElementById("preact-root");if(!t)throw new Error("Missing #preact-root");(0,r.render)((0,r.h)(e.App,null),t);
|
|
89
|
-
},{"preact":"PBm5","./app.jsx":"pRI3"}]},{},["OHmn"], null)
|
|
90
|
-
//# sourceMappingURL=entry.ab5c8873.js.map
|