@glimt/record 0.0.22 → 0.0.23
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/record.cjs +1 -0
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +1 -0
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +1 -0
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.umd.min.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrweb", [], f);} else if ("object" == typeof exports) {exports["rrweb"] = f();} else {g["rrweb"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
-
"use strict";var Wo=Object.defineProperty,Go=Object.defineProperties;var Vo=Object.getOwnPropertyDescriptors;var wt=Object.getOwnPropertySymbols;var Gs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var Ws=(s,e,t)=>e in s?Wo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))Gs.call(e,t)&&Ws(s,t,e[t]);if(wt)for(var t of wt(e))Vs.call(e,t)&&Ws(s,t,e[t]);return s},ee=(s,e)=>Go(s,Vo(e));var Ee=(s,e)=>{var t={};for(var r in s)Gs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&wt)for(var r of wt(s))e.indexOf(r)<0&&Vs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),js,Yo=Object.defineProperty,Zo=(s,e,t)=>e in s?Yo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Hs=(s,e,t)=>Zo(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const Ys={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bt={},Jo=()=>!!globalThis.Zone;function ms(s){if(bt[s])return bt[s];const e=globalThis[s],t=e.prototype,r=s in Ys?Ys[s]:void 0,i=!!(r&&r.every(l=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),n=s in Zs?Zs[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Jo())return bt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const c=o[s].prototype;return document.body.removeChild(l),c?bt[s]=c:t}catch(l){return t}}const Cr={};function we(s,e,t){var r;const i=`${s}.${String(t)}`;if(Cr[i])return Cr[i].call(e);const n=ms(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Cr[i]=a,a.call(e)):e[t]}const vr={};function Hi(s,e,t){const r=`${s}.${String(t)}`;if(vr[r])return vr[r].bind(e);const n=ms(s)[t];return typeof n!="function"?e[t]:(vr[r]=n,n.bind(e))}function Xo(s){return we("Node",s,"childNodes")}function Ko(s){return we("Node",s,"parentNode")}function Qo(s){return we("Node",s,"parentElement")}function qo(s){return we("Node",s,"textContent")}function ea(s,e){return Hi("Node",s,"contains")(e)}function ta(s){return Hi("Node",s,"getRootNode")()}function ra(s){return!s||!("host"in s)?null:we("ShadowRoot",s,"host")}function sa(s){return s.styleSheets}function ia(s){return!s||!("shadowRoot"in s)?null:we("Element",s,"shadowRoot")}function na(s,e){return we("Element",s,"querySelector")(e)}function oa(s,e){return we("Element",s,"querySelectorAll")(e)}function aa(){return ms("MutationObserver").constructor}function la(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Y={childNodes:Xo,parentNode:Ko,parentElement:Qo,textContent:qo,contains:ea,getRootNode:ta,host:ra,styleSheets:sa,shadowRoot:ia,querySelector:na,querySelectorAll:oa,mutationObserver:aa,patch:la};function Yi(s){return s.nodeType===s.ELEMENT_NODE}function Ke(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function Qe(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function _r(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Zi(i,t)).join("");return ua(r)}catch(e){return null}}function Zi(s,e){if(fa(s)){let t;try{t=_r(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?Jt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?Jt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Ji{constructor(){Hs(this,"idNodeMap",new Map),Hs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Ji}function Yt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&Re(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function Re(s){return s.toLowerCase()}const Js="__rrweb_original__",ma=25e4;function ga(s){if(s.width*s.height<ma)return s.getContext("2d");const e=document.createElement("canvas");e.width=s.width,e.height=s.height;const t=e.getContext("2d");return t&&t.drawImage(s,0,0),e.getContext("2d",{willReadFrequently:!0})}function ya(s){if(s.width===0||s.height===0)return!0;const e=ga(s);if(!e)return!0;const t=s.width>512||s.height>512?100:50,r=e.getImageData,i=Js in r?r[Js]:r;for(let n=0;n<s.width;n+=t){const a=Math.min(t,s.width-n);for(let l=0;l<s.height;l+=t){const o=Math.min(t,s.height-l),c=new Uint32Array(i.call(e,n,l,a,o).data.buffer);for(let u=0;u<c.length;u++)if(c[u]!==0)return!1}}return!0}function Zt(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Re(e):null}function Xi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function wa(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ba=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sa=/^(?:[a-z+]+:)?\/\//i,Ca=/^www\..*/i,va=/^(data:)([^,]*),(.*)/i;function Jt(s,e){return(s||"").replace(ba,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(Sa.test(o)||Ca.test(o))return`url(${c}${o}${c})`;if(va.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${wa(e)+o}${c})`;const u=e.split("/"),h=o.split("/");u.pop();for(const p of h)p!=="."&&(p===".."?u.pop():u.push(p));return`url(${c}${u.join("/")}${c})`})}function St(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ia(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=St(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const c=St(r[o].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let p=c.substring(0,h),d=a.split(p),g=-1;if(d.length===2)g=d[0].length;else if(d.length>2&&d[0]===""&&r[o-1].textContent!=="")g=a.indexOf(p,1);else if(d.length===1){if(p=p.substring(0,p.length-1),d=a.split(p),d.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=a.indexOf(p));if(d.length>=2&&h>u){const m=r[o-1].textContent;if(m&&typeof m=="string"){const f=St(m).length;g=a.indexOf(p,f)}g===-1&&(g=d[0].length)}if(g!==-1){let m=Math.floor(g/l);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const f=St(s.substring(0,m),t);if(f.length===g){i.push(s.substring(0,m)),s=s.substring(m),a=a.substring(g);break}else f.length<g?m+=Math.max(1,Math.floor((g-f.length)/l)):m-=Math.max(1,Math.floor((f.length-g)*l))}break}}}}return i.push(s),i}function xa(s,e){return Ia(s,e).join("/* rr_split */")}let Ra=1;const Oa=new RegExp("[^a-z0-9-_:]"),et=-2;function Ki(){return Ra++}function Aa(s){if(s instanceof HTMLFormElement)return"form";const e=Re(s.tagName);return Oa.test(e)?"div":e}let $e,Xs;const Ma=/^[^ \t\n\r\u000c]+/,Ea=/^[, \t\n\r\u000c]+/;function $a(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(Ea),!(t>=e.length);){let n=r(Ma);if(n.slice(-1)===",")n=Pe(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=Pe(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const Ks=new WeakMap;function Pe(s,e){return!e||e.trim()===""?e:gs(s,e)}function Na(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function gs(s,e){let t=Ks.get(s);if(t||(t=s.createElement("a"),Ks.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Qi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Pe(s,r):t==="srcset"?$a(s,r):t==="style"?Jt(r,gs(s)):e==="object"&&t==="data"?Pe(s,r):r)}function qi(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function ka(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Xt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Xt(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Xt(Y.parentNode(s),e,t):!1}function en(s,e,t,r){let i;if(Yi(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Xt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Pa(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function La(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function _a(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:a,inlineStylesheet:l,maskInputOptions:o={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:f=!1}=e,y=Da(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y};case s.ELEMENT_NODE:return Fa(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y});case s.TEXT_NODE:return Ta(s,{doc:t,needsMask:a,maskTextFn:c,rootId:y,cssCaptured:f});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:y};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:y};default:return!1}}function Da(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Ta(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Y.parentNode(s),l=a&&a.tagName;let o="";const c=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?o="SCRIPT_PLACEHOLDER":n||(o=Y.textContent(s),c&&o&&(o=Jt(o,gs(e.doc)))),!c&&!u&&o&&t&&(o=r?r(o,Y.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function Fa(s,e){const t=performance.now(),{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l={},maskInputFn:o,dataURLOptions:c={},inlineImages:u,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:d=!1,rootId:g}=e,m=ka(s,i,n),f=Aa(s);let y={};const S=s.attributes.length;for(let b=0;b<S;b++){const v=s.attributes[b];qi(f,v.name,v.value)||(y[v.name]=Qi(r,f,Re(v.name),v.value))}if(f==="link"&&a){const b=Array.from(r.styleSheets).find(W=>W.href===s.href);let v=null;b&&(v=_r(b)),v&&(delete y.rel,delete y.href,y._cssText=v)}if(f==="style"&&s.sheet){let b=_r(s.sheet);b&&(s.childNodes.length>1&&(b=xa(b,s)),y._cssText=b)}if(f==="input"||f==="textarea"||f==="select"){const b=s.value,v=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&b?y.value=Yt({element:s,type:Zt(s),tagName:f,value:b,maskInputOptions:l,maskInputFn:o}):v&&(y.checked=v)}if(f==="option"&&(s.selected&&!l.select?y.selected=!0:delete y.selected),f==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&h){if(s.__context==="2d")ya(s)||(y.rr_dataURL=s.toDataURL(c.type,c.quality));else if(!("__context"in s)){const b=s.toDataURL(c.type,c.quality),v=r.createElement("canvas");v.width=s.width,v.height=s.height;const W=v.toDataURL(c.type,c.quality);b!==W&&(y.rr_dataURL=b)}}if(f==="img"&&u){$e||($e=r.createElement("canvas"),Xs=$e.getContext("2d"));let b=s.cloneNode(!0);const v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",W=()=>{b=null},k=()=>{b.removeEventListener("load",k),b.removeEventListener("error",B);try{$e.width=b.naturalWidth,$e.height=b.naturalHeight,Xs.drawImage(b,0,0),y.rr_dataURL=$e.toDataURL(c.type,c.quality)}catch(V){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?k():(b.addEventListener("load",k),b.addEventListener("error",B));return}else console.warn(`Cannot inline img src=${v}! Error: ${V}`)}W()},B=()=>{b.removeEventListener("load",k),b.removeEventListener("error",B),W()};b.complete&&b.naturalWidth!==0?k():(b.addEventListener("load",k),b.addEventListener("error",B))}if(f==="audio"||f==="video"){const b=y;b.rr_mediaState=s.paused?"paused":"played",b.rr_mediaCurrentTime=s.currentTime,b.rr_mediaPlaybackRate=s.playbackRate,b.rr_mediaMuted=s.muted,b.rr_mediaLoop=s.loop,b.rr_mediaVolume=s.volume}if(d||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),m){const{width:b,height:v}=s.getBoundingClientRect();y={class:y.class,rr_width:`${b}px`,rr_height:`${v}px`}}f==="iframe"&&!p(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let C;try{customElements.get(f)&&(C=!0)}catch(b){}const T=performance.now()-t;return f in window.serialization_perf_map||(window.serialization_perf_map[f]={avg:0,times:[]}),window.serialization_perf_map[f].times.push(T),window.serialization_perf_map[f].times.length>1e3&&window.serialization_perf_map[f].times.shift(),window.serialization_perf_map[f].avg=window.serialization_perf_map[f].times.reduce((b,v)=>b+v,0)/window.serialization_perf_map[f].times.length,{type:H.Element,tagName:f,attributes:y,childNodes:[],isSVG:Na(s)||void 0,needBlock:m,rootId:g,isCustom:C}}function F(s){return s==null?"":s.toLowerCase()}function Ba(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Xi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(F(s.attributes.name).match(/^msapplication-tile(image|color)$/)||F(s.attributes.name)==="application-name"||F(s.attributes.rel)==="icon"||F(s.attributes.rel)==="apple-touch-icon"||F(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&F(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(F(s.attributes.property).match(/^(og|twitter|fb):/)||F(s.attributes.name).match(/^(og|twitter):/)||F(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(F(s.attributes.name)==="robots"||F(s.attributes.name)==="googlebot"||F(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(F(s.attributes.name)==="author"||F(s.attributes.name)==="generator"||F(s.attributes.name)==="framework"||F(s.attributes.name)==="publisher"||F(s.attributes.name)==="progid"||F(s.attributes.property).match(/^article:/)||F(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(F(s.attributes.name)==="google-site-verification"||F(s.attributes.name)==="yandex-verification"||F(s.attributes.name)==="csrf-token"||F(s.attributes.name)==="p:domain_verify"||F(s.attributes.name)==="verify-v1"||F(s.attributes.name)==="verification"||F(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Le(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:f=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:W=!1,cssCaptured:k=!1}=e;let{needsMask:B}=e,{preserveWhiteSpace:V=!0}=e;B||(B=en(s,a,l,B===void 0));const Q=_a(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:v,newlyAddedElement:W,cssCaptured:k});if(!Q)return console.warn(s,"not serialized"),null;let ne;r.hasNode(s)?ne=r.getId(s):Ba(Q,d)||!V&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?ne=et:ne=Ki();const N=Object.assign(Q,{id:ne});if(r.add(s,N),ne===et)return null;y&&y(s);let Ge=!o;if(N.type===H.Element){Ge=Ge&&!N.needBlock,delete N.needBlock;const j=Y.shadowRoot(s);j&&Qe(j)&&(N.isShadowHost=!0)}if((N.type===H.Document||N.type===H.Element)&&Ge){d.headWhitespace&&N.type===H.Element&&N.tagName==="head"&&(V=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v,cssCaptured:!1};if(!(N.type===H.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0)){N.type===H.Element&&N.attributes._cssText!==void 0&&typeof N.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const ge of Array.from(Y.childNodes(s))){const oe=Le(ge,j);oe&&N.childNodes.push(oe)}}let q=null;if(Yi(s)&&(q=Y.shadowRoot(s))){const ge=Y.childNodes(q);for(let oe=0;oe<ge.length;oe++){const mt=ge[oe],Ce=Le(mt,j);Ce&&(Qe(q)&&(Ce.isShadow=!0),N.childNodes.push(Ce))}}}const Ve=Y.parentNode(s);return Ve&&Ke(Ve)&&Qe(Ve)&&(N.isShadow=!0),N.type===H.Element&&N.tagName==="iframe"&&Pa(s,()=>{const j=s.contentDocument;if(j&&S){const q=Le(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v});q&&S(s,q)}},C),N.type===H.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Xi(N.attributes.href)==="css")&&La(s,()=>{if(T){const j=Le(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v});j&&T(s,j)}},b),N}function Ua(s,e){const{mirror:t=new Ji,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,inlineStylesheet:l=!0,inlineImages:o=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:p,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:b=()=>!1}=e||{};return Le(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:o,recordCanvas:c,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:b,newlyAddedElement:!1})}function za(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Wa(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ys={exports:{}},I=String,tn=function(){return{isColorSupported:!1,reset:I,bold:I,dim:I,italic:I,underline:I,inverse:I,hidden:I,strikethrough:I,black:I,red:I,green:I,yellow:I,blue:I,magenta:I,cyan:I,white:I,gray:I,bgBlack:I,bgRed:I,bgGreen:I,bgYellow:I,bgBlue:I,bgMagenta:I,bgCyan:I,bgWhite:I,blackBright:I,redBright:I,greenBright:I,yellowBright:I,blueBright:I,magentaBright:I,cyanBright:I,whiteBright:I,bgBlackBright:I,bgRedBright:I,bgGreenBright:I,bgYellowBright:I,bgBlueBright:I,bgMagentaBright:I,bgCyanBright:I,bgWhiteBright:I}};ys.exports=tn();ys.exports.createColors=tn;var Ga=ys.exports;const Va={},ja=Object.freeze(Object.defineProperty({__proto__:null,default:Va},Symbol.toStringTag,{value:"Module"})),se=Wa(ja);let Qs=Ga,qs=se,Dr=class rn extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,rn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Qs.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=Qs.createColors(!0);i=d=>u(p(d)),r=d=>h(d),qs&&(n=d=>qs(d))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),c=String(o).length;return a.slice(l,o).map((u,h)=>{let p=l+1+h,d=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(u.length>160){let m=20,f=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),S=u.slice(f,y),C=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(S)+`
|
|
2
|
+
"use strict";var Wo=Object.defineProperty,Go=Object.defineProperties;var Vo=Object.getOwnPropertyDescriptors;var wt=Object.getOwnPropertySymbols;var Gs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var Ws=(s,e,t)=>e in s?Wo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))Gs.call(e,t)&&Ws(s,t,e[t]);if(wt)for(var t of wt(e))Vs.call(e,t)&&Ws(s,t,e[t]);return s},ee=(s,e)=>Go(s,Vo(e));var Ee=(s,e)=>{var t={};for(var r in s)Gs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&wt)for(var r of wt(s))e.indexOf(r)<0&&Vs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),js,Yo=Object.defineProperty,Zo=(s,e,t)=>e in s?Yo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Hs=(s,e,t)=>Zo(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const Ys={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bt={},Jo=()=>!!globalThis.Zone;function ms(s){if(bt[s])return bt[s];const e=globalThis[s],t=e.prototype,r=s in Ys?Ys[s]:void 0,i=!!(r&&r.every(l=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),n=s in Zs?Zs[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Jo())return bt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const c=o[s].prototype;return document.body.removeChild(l),c?bt[s]=c:t}catch(l){return t}}const Cr={};function we(s,e,t){var r;const i=`${s}.${String(t)}`;if(Cr[i])return Cr[i].call(e);const n=ms(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Cr[i]=a,a.call(e)):e[t]}const vr={};function Hi(s,e,t){const r=`${s}.${String(t)}`;if(vr[r])return vr[r].bind(e);const n=ms(s)[t];return typeof n!="function"?e[t]:(vr[r]=n,n.bind(e))}function Xo(s){return we("Node",s,"childNodes")}function Ko(s){return we("Node",s,"parentNode")}function Qo(s){return we("Node",s,"parentElement")}function qo(s){return we("Node",s,"textContent")}function ea(s,e){return Hi("Node",s,"contains")(e)}function ta(s){return Hi("Node",s,"getRootNode")()}function ra(s){return!s||!("host"in s)?null:we("ShadowRoot",s,"host")}function sa(s){return s.styleSheets}function ia(s){return!s||!("shadowRoot"in s)?null:we("Element",s,"shadowRoot")}function na(s,e){return we("Element",s,"querySelector")(e)}function oa(s,e){return we("Element",s,"querySelectorAll")(e)}function aa(){return ms("MutationObserver").constructor}function la(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Y={childNodes:Xo,parentNode:Ko,parentElement:Qo,textContent:qo,contains:ea,getRootNode:ta,host:ra,styleSheets:sa,shadowRoot:ia,querySelector:na,querySelectorAll:oa,mutationObserver:aa,patch:la};function Yi(s){return s.nodeType===s.ELEMENT_NODE}function Ke(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function Qe(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function _r(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Zi(i,t)).join("");return ua(r)}catch(e){return null}}function Zi(s,e){if(fa(s)){let t;try{t=_r(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?Jt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?Jt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Ji{constructor(){Hs(this,"idNodeMap",new Map),Hs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Ji}function Yt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&Re(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function Re(s){return s.toLowerCase()}const Js="__rrweb_original__",ma=25e4;function ga(s){if(s.width*s.height<ma)return s.getContext("2d");const e=document.createElement("canvas");e.width=s.width,e.height=s.height;const t=e.getContext("2d");return t&&t.drawImage(s,0,0),e.getContext("2d",{willReadFrequently:!0})}function ya(s){if(s.width===0||s.height===0)return!0;const e=ga(s);if(!e)return!0;const t=s.width>512||s.height>512?100:50,r=e.getImageData,i=Js in r?r[Js]:r;for(let n=0;n<s.width;n+=t){const a=Math.min(t,s.width-n);for(let l=0;l<s.height;l+=t){const o=Math.min(t,s.height-l),c=new Uint32Array(i.call(e,n,l,a,o).data.buffer);for(let u=0;u<c.length;u++)if(c[u]!==0)return!1}}return!0}function Zt(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Re(e):null}function Xi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function wa(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ba=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sa=/^(?:[a-z+]+:)?\/\//i,Ca=/^www\..*/i,va=/^(data:)([^,]*),(.*)/i;function Jt(s,e){return(s||"").replace(ba,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(Sa.test(o)||Ca.test(o))return`url(${c}${o}${c})`;if(va.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${wa(e)+o}${c})`;const u=e.split("/"),h=o.split("/");u.pop();for(const p of h)p!=="."&&(p===".."?u.pop():u.push(p));return`url(${c}${u.join("/")}${c})`})}function St(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ia(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=St(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const c=St(r[o].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let p=c.substring(0,h),d=a.split(p),g=-1;if(d.length===2)g=d[0].length;else if(d.length>2&&d[0]===""&&r[o-1].textContent!=="")g=a.indexOf(p,1);else if(d.length===1){if(p=p.substring(0,p.length-1),d=a.split(p),d.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=a.indexOf(p));if(d.length>=2&&h>u){const m=r[o-1].textContent;if(m&&typeof m=="string"){const f=St(m).length;g=a.indexOf(p,f)}g===-1&&(g=d[0].length)}if(g!==-1){let m=Math.floor(g/l);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const f=St(s.substring(0,m),t);if(f.length===g){i.push(s.substring(0,m)),s=s.substring(m),a=a.substring(g);break}else f.length<g?m+=Math.max(1,Math.floor((g-f.length)/l)):m-=Math.max(1,Math.floor((f.length-g)*l))}break}}}}return i.push(s),i}function xa(s,e){return Ia(s,e).join("/* rr_split */")}let Ra=1;const Oa=new RegExp("[^a-z0-9-_:]"),et=-2;function Ki(){return Ra++}function Aa(s){if(s instanceof HTMLFormElement)return"form";const e=Re(s.tagName);return Oa.test(e)?"div":e}let $e,Xs;const Ma=/^[^ \t\n\r\u000c]+/,Ea=/^[, \t\n\r\u000c]+/;function $a(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(Ea),!(t>=e.length);){let n=r(Ma);if(n.slice(-1)===",")n=Pe(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=Pe(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const Ks=new WeakMap;function Pe(s,e){return!e||e.trim()===""?e:gs(s,e)}function Na(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function gs(s,e){let t=Ks.get(s);if(t||(t=s.createElement("a"),Ks.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Qi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Pe(s,r):t==="srcset"?$a(s,r):t==="style"?Jt(r,gs(s)):e==="object"&&t==="data"?Pe(s,r):r)}function qi(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function ka(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Xt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Xt(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Xt(Y.parentNode(s),e,t):!1}function en(s,e,t,r){let i;if(Yi(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Xt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Pa(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function La(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function _a(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:a,inlineStylesheet:l,maskInputOptions:o={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:f=!1}=e,y=Da(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y};case s.ELEMENT_NODE:return Fa(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y});case s.TEXT_NODE:return Ta(s,{doc:t,needsMask:a,maskTextFn:c,rootId:y,cssCaptured:f});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:y};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:y};default:return!1}}function Da(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Ta(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Y.parentNode(s),l=a&&a.tagName;let o="";const c=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?o="SCRIPT_PLACEHOLDER":n||(o=Y.textContent(s),c&&o&&(o=Jt(o,gs(e.doc)))),!c&&!u&&o&&t&&(o=r?r(o,Y.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function Fa(s,e){const t=performance.now(),{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l={},maskInputFn:o,dataURLOptions:c={},inlineImages:u,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:d=!1,rootId:g}=e,m=ka(s,i,n),f=Aa(s);let y={};const S=s.attributes.length;for(let b=0;b<S;b++){const v=s.attributes[b];qi(f,v.name,v.value)||(y[v.name]=Qi(r,f,Re(v.name),v.value))}if(f==="link"&&a){const b=Array.from(r.styleSheets).find(W=>W.href===s.href);let v=null;b&&(v=_r(b)),v&&(delete y.rel,delete y.href,y._cssText=v)}if(f==="style"&&s.sheet){let b=_r(s.sheet);b&&(s.childNodes.length>1&&(b=xa(b,s)),y._cssText=b)}if(f==="input"||f==="textarea"||f==="select"){const b=s.value,v=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&b?y.value=Yt({element:s,type:Zt(s),tagName:f,value:b,maskInputOptions:l,maskInputFn:o}):v&&(y.checked=v)}if(f==="option"&&(s.selected&&!l.select?y.selected=!0:delete y.selected),f==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&h){if(s.__context==="2d")ya(s)||(y.rr_dataURL=s.toDataURL(c.type,c.quality));else if(!("__context"in s)){const b=s.toDataURL(c.type,c.quality),v=r.createElement("canvas");v.width=s.width,v.height=s.height;const W=v.toDataURL(c.type,c.quality);b!==W&&(y.rr_dataURL=b)}}if(f==="img"&&u){$e||($e=r.createElement("canvas"),Xs=$e.getContext("2d"));let b=s.cloneNode(!0);const v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",W=()=>{b=null},k=()=>{b.removeEventListener("load",k),b.removeEventListener("error",B);try{$e.width=b.naturalWidth,$e.height=b.naturalHeight,Xs.drawImage(b,0,0),y.rr_dataURL=$e.toDataURL(c.type,c.quality)}catch(V){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?k():(b.addEventListener("load",k),b.addEventListener("error",B));return}else console.warn(`Cannot inline img src=${v}! Error: ${V}`)}W()},B=()=>{b.removeEventListener("load",k),b.removeEventListener("error",B),W()};b.complete&&b.naturalWidth!==0?k():(b.addEventListener("load",k),b.addEventListener("error",B))}if(f==="audio"||f==="video"){const b=y;b.rr_mediaState=s.paused?"paused":"played",b.rr_mediaCurrentTime=s.currentTime,b.rr_mediaPlaybackRate=s.playbackRate,b.rr_mediaMuted=s.muted,b.rr_mediaLoop=s.loop,b.rr_mediaVolume=s.volume}if(d||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),m){const{width:b,height:v}=s.getBoundingClientRect();y={class:y.class,rr_width:`${b}px`,rr_height:`${v}px`}}f==="iframe"&&!p(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let C;try{customElements.get(f)&&(C=!0)}catch(b){}const T=performance.now()-t;return window.serialization_perf_map||(window.serialization_perf_map={}),f in window.serialization_perf_map||(window.serialization_perf_map[f]={avg:0,times:[]}),window.serialization_perf_map[f].times.push(T),window.serialization_perf_map[f].times.length>1e3&&window.serialization_perf_map[f].times.shift(),window.serialization_perf_map[f].avg=window.serialization_perf_map[f].times.reduce((b,v)=>b+v,0)/window.serialization_perf_map[f].times.length,{type:H.Element,tagName:f,attributes:y,childNodes:[],isSVG:Na(s)||void 0,needBlock:m,rootId:g,isCustom:C}}function F(s){return s==null?"":s.toLowerCase()}function Ba(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Xi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(F(s.attributes.name).match(/^msapplication-tile(image|color)$/)||F(s.attributes.name)==="application-name"||F(s.attributes.rel)==="icon"||F(s.attributes.rel)==="apple-touch-icon"||F(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&F(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(F(s.attributes.property).match(/^(og|twitter|fb):/)||F(s.attributes.name).match(/^(og|twitter):/)||F(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(F(s.attributes.name)==="robots"||F(s.attributes.name)==="googlebot"||F(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(F(s.attributes.name)==="author"||F(s.attributes.name)==="generator"||F(s.attributes.name)==="framework"||F(s.attributes.name)==="publisher"||F(s.attributes.name)==="progid"||F(s.attributes.property).match(/^article:/)||F(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(F(s.attributes.name)==="google-site-verification"||F(s.attributes.name)==="yandex-verification"||F(s.attributes.name)==="csrf-token"||F(s.attributes.name)==="p:domain_verify"||F(s.attributes.name)==="verify-v1"||F(s.attributes.name)==="verification"||F(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Le(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:f=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:W=!1,cssCaptured:k=!1}=e;let{needsMask:B}=e,{preserveWhiteSpace:V=!0}=e;B||(B=en(s,a,l,B===void 0));const Q=_a(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:v,newlyAddedElement:W,cssCaptured:k});if(!Q)return console.warn(s,"not serialized"),null;let ne;r.hasNode(s)?ne=r.getId(s):Ba(Q,d)||!V&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?ne=et:ne=Ki();const N=Object.assign(Q,{id:ne});if(r.add(s,N),ne===et)return null;y&&y(s);let Ge=!o;if(N.type===H.Element){Ge=Ge&&!N.needBlock,delete N.needBlock;const j=Y.shadowRoot(s);j&&Qe(j)&&(N.isShadowHost=!0)}if((N.type===H.Document||N.type===H.Element)&&Ge){d.headWhitespace&&N.type===H.Element&&N.tagName==="head"&&(V=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v,cssCaptured:!1};if(!(N.type===H.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0)){N.type===H.Element&&N.attributes._cssText!==void 0&&typeof N.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const ge of Array.from(Y.childNodes(s))){const oe=Le(ge,j);oe&&N.childNodes.push(oe)}}let q=null;if(Yi(s)&&(q=Y.shadowRoot(s))){const ge=Y.childNodes(q);for(let oe=0;oe<ge.length;oe++){const mt=ge[oe],Ce=Le(mt,j);Ce&&(Qe(q)&&(Ce.isShadow=!0),N.childNodes.push(Ce))}}}const Ve=Y.parentNode(s);return Ve&&Ke(Ve)&&Qe(Ve)&&(N.isShadow=!0),N.type===H.Element&&N.tagName==="iframe"&&Pa(s,()=>{const j=s.contentDocument;if(j&&S){const q=Le(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v});q&&S(s,q)}},C),N.type===H.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Xi(N.attributes.href)==="css")&&La(s,()=>{if(T){const j=Le(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:B,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:V,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:T,stylesheetLoadTimeout:b,keepIframeSrcFn:v});j&&T(s,j)}},b),N}function Ua(s,e){const{mirror:t=new Ji,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,inlineStylesheet:l=!0,inlineImages:o=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:p,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:b=()=>!1}=e||{};return Le(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:o,recordCanvas:c,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:b,newlyAddedElement:!1})}function za(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Wa(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ys={exports:{}},I=String,tn=function(){return{isColorSupported:!1,reset:I,bold:I,dim:I,italic:I,underline:I,inverse:I,hidden:I,strikethrough:I,black:I,red:I,green:I,yellow:I,blue:I,magenta:I,cyan:I,white:I,gray:I,bgBlack:I,bgRed:I,bgGreen:I,bgYellow:I,bgBlue:I,bgMagenta:I,bgCyan:I,bgWhite:I,blackBright:I,redBright:I,greenBright:I,yellowBright:I,blueBright:I,magentaBright:I,cyanBright:I,whiteBright:I,bgBlackBright:I,bgRedBright:I,bgGreenBright:I,bgYellowBright:I,bgBlueBright:I,bgMagentaBright:I,bgCyanBright:I,bgWhiteBright:I}};ys.exports=tn();ys.exports.createColors=tn;var Ga=ys.exports;const Va={},ja=Object.freeze(Object.defineProperty({__proto__:null,default:Va},Symbol.toStringTag,{value:"Module"})),se=Wa(ja);let Qs=Ga,qs=se,Dr=class rn extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,rn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Qs.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=Qs.createColors(!0);i=d=>u(p(d)),r=d=>h(d),qs&&(n=d=>qs(d))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),c=String(o).length;return a.slice(l,o).map((u,h)=>{let p=l+1+h,d=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(u.length>160){let m=20,f=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),S=u.slice(f,y),C=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(S)+`
|
|
3
3
|
`+C+i("^")}let g=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+n(u)+`
|
|
4
4
|
`+g+i("^")}return" "+r(d)+n(u)}).join(`
|
|
5
5
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|