replaywebpage 2.4.4 → 2.4.6

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/index.js CHANGED
@@ -66,7 +66,7 @@ class unsafe_html_e extends directive_i{constructor(e){if(super(e),this.it=T,e.t
66
66
  * Copyright 2017 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
68
  */
69
- class unsafe_svg_t extends unsafe_html_e{}unsafe_svg_t.directiveName="unsafeSVG",unsafe_svg_t.resultType=2;const unsafe_svg_o=directive_e(unsafe_svg_t),style_map_n="important",style_map_i=" !"+style_map_n,style_map_o=directive_e(class extends directive_i{constructor(e){if(super(e),e.type!==directive_t.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const o=t[e];if(null!=o){this.ft.add(e);const t="string"==typeof o&&o.endsWith(style_map_i);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?style_map_n:""):i[e]=o}}return w}});var main=__webpack_require__(989),_a;const apiPrefix="./w/api",replayPrefix="./w",allCss=r(main.A);function wrapCss(e){return[allCss,e]}const IS_APP=window.IS_APP||(null===(_a=window.electron)||void 0===_a?void 0:_a.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,VERSION="2.4.4";function clickOnSpacebarPress(e){" "==e.key&&(e.preventDefault(),e.target.click())}function updateFaviconLinks(e){const t=document.querySelector("head"),i=document.querySelectorAll("link[rel*='icon']");for(const e of i)t.removeChild(e);for(const i of e.icons){const e=document.createElement("link");e.rel=i.rel,e.href=i.href,t.appendChild(e)}}class FaIcon extends lit_element_s{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return i`
69
+ class unsafe_svg_t extends unsafe_html_e{}unsafe_svg_t.directiveName="unsafeSVG",unsafe_svg_t.resultType=2;const unsafe_svg_o=directive_e(unsafe_svg_t),style_map_n="important",style_map_i=" !"+style_map_n,style_map_o=directive_e(class extends directive_i{constructor(e){if(super(e),e.type!==directive_t.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const o=t[e];if(null!=o){this.ft.add(e);const t="string"==typeof o&&o.endsWith(style_map_i);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?style_map_n:""):i[e]=o}}return w}});var main=__webpack_require__(989),_a;const apiPrefix="./w/api",replayPrefix="./w",allCss=r(main.A);function wrapCss(e){return[allCss,e]}const IS_APP=window.IS_APP||(null===(_a=window.electron)||void 0===_a?void 0:_a.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,VERSION="2.4.6";function clickOnSpacebarPress(e){" "==e.key&&(e.preventDefault(),e.target.click())}function updateFaviconLinks(e){const t=document.querySelector("head"),i=document.querySelectorAll("link[rel*='icon']");for(const e of i)t.removeChild(e);for(const i of e.icons){const e=document.createElement("link");e.rel=i.rel,e.href=i.href,t.appendChild(e)}}class FaIcon extends lit_element_s{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return i`
70
70
  :host {
71
71
  display: inline-block;
72
72
  padding: 0;
@@ -2349,7 +2349,7 @@ function*map_o(e,t){if(void 0!==e){let i=0;for(const o of e)yield t(o,i++)}}cons
2349
2349
  ></progress>
2350
2350
  ${t?x`
2351
2351
  <label class="progress-label" for="progress"
2352
- >${t}%</label
2352
+ >${t.toFixed(2)}%</label
2353
2353
  >
2354
2354
  `:T}
2355
2355
  ${this.currentSize&&this.totalSize?x` <div class="loaded-prog">