@glimt/record 0.0.40 → 0.0.41

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.
@@ -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 ea=Object.defineProperty,ta=Object.defineProperties;var ra=Object.getOwnPropertyDescriptors;var It=Object.getOwnPropertySymbols;var Xs=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable;var Js=(s,e,t)=>e in s?ea(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Xs.call(e,t)&&Js(s,t,e[t]);if(It)for(var t of It(e))Ks.call(e,t)&&Js(s,t,e[t]);return s},ee=(s,e)=>ta(s,ra(e));var $e=(s,e)=>{var t={};for(var r in s)Xs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&It)for(var r of It(s))e.indexOf(r)<0&&Ks.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var sa=Object.defineProperty,ia=(s,e,t)=>e in s?sa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>ia(s,typeof e!="symbol"?e+"":e,t),Qs,E=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(E||{}),A=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(A||{}),K=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(K||{}),pe=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(pe||{}),Fe=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Fe||{}),ke=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(ke||{}),en=(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))(en||{});const qs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ei={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xt={},na=()=>!!globalThis.Zone;function vs(s){if(xt[s])return xt[s];const e=globalThis[s],t=e.prototype,r=s in qs?qs[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 ei?ei[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&&!na())return xt[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?xt[s]=c:t}catch(l){return t}}const Er={};function we(s,e,t){var r;const i=`${s}.${String(t)}`;if(Er[i])return Er[i].call(e);const n=vs(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Er[i]=a,a.call(e)):e[t]}const $r={};function tn(s,e,t){const r=`${s}.${String(t)}`;if($r[r])return $r[r].bind(e);const n=vs(s)[t];return typeof n!="function"?e[t]:($r[r]=n,n.bind(e))}function oa(s){return we("Node",s,"childNodes")}function aa(s){return we("Node",s,"parentNode")}function la(s){return we("Node",s,"parentElement")}function ua(s){return we("Node",s,"textContent")}function ca(s,e){return tn("Node",s,"contains")(e)}function ha(s){return tn("Node",s,"getRootNode")()}function fa(s){return!s||!("host"in s)?null:we("ShadowRoot",s,"host")}function pa(s){return s.styleSheets}function da(s){return!s||!("shadowRoot"in s)?null:we("Element",s,"shadowRoot")}function ma(s,e){return we("Element",s,"querySelector")(e)}function ga(s,e){return we("Element",s,"querySelectorAll")(e)}function rn(){return vs("MutationObserver").constructor}function Oe(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 x={childNodes:oa,parentNode:aa,parentElement:la,textContent:ua,contains:ca,getRootNode:ha,host:fa,styleSheets:pa,shadowRoot:da,querySelector:ma,querySelectorAll:ga,mutationObserver:rn,patch:Oe};var ya=Object.defineProperty,wa=(s,e,t)=>e in s?ya(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,_e=(s,e,t)=>wa(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 ti={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ri={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},At={},Sa=()=>!!globalThis.Zone;function Is(s){if(At[s])return At[s];const e=globalThis[s],t=e.prototype,r=s in ti?ti[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 ri?ri[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&&!Sa())return At[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?At[s]=c:t}catch(l){return t}}const Nr={};function Se(s,e,t){var r;const i=`${s}.${String(t)}`;if(Nr[i])return Nr[i].call(e);const n=Is(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Nr[i]=a,a.call(e)):e[t]}const kr={};function sn(s,e,t){const r=`${s}.${String(t)}`;if(kr[r])return kr[r].bind(e);const n=Is(s)[t];return typeof n!="function"?e[t]:(kr[r]=n,n.bind(e))}function ba(s){return Se("Node",s,"childNodes")}function Ca(s){return Se("Node",s,"parentNode")}function va(s){return Se("Node",s,"parentElement")}function Ia(s){return Se("Node",s,"textContent")}function xa(s,e){return sn("Node",s,"contains")(e)}function Aa(s){return sn("Node",s,"getRootNode")()}function Ra(s){return!s||!("host"in s)?null:Se("ShadowRoot",s,"host")}function Oa(s){return s.styleSheets}function Ma(s){return!s||!("shadowRoot"in s)?null:Se("Element",s,"shadowRoot")}function Ea(s,e){return Se("Element",s,"querySelector")(e)}function $a(s,e){return Se("Element",s,"querySelectorAll")(e)}function Na(){return Is("MutationObserver").constructor}function ka(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 Z={childNodes:ba,parentNode:Ca,parentElement:va,textContent:Ia,contains:xa,getRootNode:Aa,host:Ra,styleSheets:Oa,shadowRoot:Ma,querySelector:Ea,querySelectorAll:$a,mutationObserver:Na,patch:ka};function nn(s){return s.nodeType===s.ELEMENT_NODE}function et(s){const e=s&&"host"in s&&"mode"in s&&Z.host(s)||null;return!!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===s)}function tt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Ta(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 Pa(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 tr(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=>on(i,t)).join("");return Ta(r)}catch(e){return null}}function on(s,e){if(Da(s)){let t;try{t=tr(s.styleSheet)||Pa(s)}catch(r){t=s.cssText}return s.styleSheet.href?ir(t,s.styleSheet.href):t}else{let t=s.cssText;return _a(s)&&s.selectorText.includes(":")&&(t=La(t)),e?ir(t,e):t}}function La(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Da(s){return"styleSheet"in s}function _a(s){return"selectorText"in s}class an{constructor(){_e(this,"idNodeMap",new Map),_e(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 Fa(){return new an}function rr({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 si="__rrweb_original__",Ba=25e4;function Ua(s,e){if(s.width*s.height<Ba)return e!=null?e:s.getContext("2d");const t=document.createElement("canvas");t.width=s.width,t.height=s.height;const r=t.getContext("2d");return r&&r.drawImage(s,0,0),t.getContext("2d",{willReadFrequently:!0})}function Wa(s,e){if(s.width===0||s.height===0)return!0;const t=Ua(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=si in i?i[si]:i;for(let a=0;a<s.width;a+=r){const l=Math.min(r,s.width-a);for(let o=0;o<s.height;o+=r){const c=Math.min(r,s.height-o),u=new Uint32Array(n.call(t,a,o,l,c).data.buffer);for(let h=0;h<u.length;h++)if(u[h]!==0)return!1}}return!0}function sr(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Re(e):null}function ln(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 za(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Ga=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Va=/^(?:[a-z+]+:)?\/\//i,ja=/^www\..*/i,Ha=/^(data:)([^,]*),(.*)/i;function ir(s,e){return(s||"").replace(Ga,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(Va.test(o)||ja.test(o))return`url(${c}${o}${c})`;if(Ha.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${za(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 Rt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ya(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=Rt(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=Rt(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=Rt(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=Rt(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 Za(s,e){return Ya(s,e).join("/* rr_split */")}const Ja=1e3*60*5,un=class Ht{constructor(){if(_e(this,"currentHref",null),_e(this,"clones",{}),_e(this,"cleanTimeout",null),Ht.instance)return Ht.instance;Ht.instance=this}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;console.log("AsyncStylesheetManager, onLoad: href:",e);const t=Array.from(document.styleSheets);let r=null;document.head.removeChild(this.clones[e].clone);for(let n=t.length-1;n>=0;n--)if(t[n].href===e){r=t[n];break}if(!r)return;const i=tr(r);i&&(console.log("AsyncStylesheetManager, onLoad: success! did get new css text! forcing mutation..."),this.clones[e].cssText=i,this.clones[e].loaded=!0,this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||document.head.removeChild(this.clones[e].clone)}removeAllCloneElements(){for(const e of Object.values(this.clones))e&&document.head.removeChild(e.clone)}onCleanTimeout(){console.log("AsyncStylesheetManager, onCleanTimeout: cleaning up"),this.cleanTimeout=null,this.removeAllCloneElements()}blowCache(){console.log("AsyncStylesheetManager, blowCache: blowing cache"),this.clones={},this.removeAllCloneElements()}registerClone({forElement:e}){this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const t=e.href;if(console.log("AsyncStylesheetManager, registerClone: wants a clone for href:",t),!t||t in this.clones&&this.clones[t]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;console.log("AsyncStylesheetManager, registerClone: registering clone for href:",t);const r=e.cloneNode();r.setAttribute("crossorigin","anonymous"),r.setAttribute("data-rrweb-link-cloned","true"),document.head.appendChild(r),this.clones[t]={original:e,clone:r,loaded:!1,cssText:null},r.onload=()=>{this.onLoad(t)},r.onerror=()=>{this.onLoadError(t)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(this.onCleanTimeout,Ja)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?(console.log("AsyncStylesheetManager, getClonedCssTextIfAvailable: returning cloned cssText!"),this.clones[e].cssText):null}};_e(un,"instance");let Xa=un;const ii=new Xa;let Ka=1;const Qa=new RegExp("[^a-z0-9-_:]"),it=-2;function cn(){return Ka++}function qa(s){if(s instanceof HTMLFormElement)return"form";const e=Re(s.tagName);return Qa.test(e)?"div":e}let Ne,ni;const el=/^[^ \t\n\r\u000c]+/,tl=/^[, \t\n\r\u000c]+/;function rl(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(tl),!(t>=e.length);){let n=r(el);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 oi=new WeakMap;function Pe(s,e){return!e||e.trim()===""?e:xs(s,e)}function sl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function xs(s,e){let t=oi.get(s);if(t||(t=s.createElement("a"),oi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function hn(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"?rl(s,r):t==="style"?ir(r,xs(s)):e==="object"&&t==="data"?Pe(s,r):r)}function fn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function il(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 nr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?nr(Z.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?nr(Z.parentNode(s),e,t):!1}function pn(s,e,t,r){let i;if(nn(s)){if(i=s,!Z.childNodes(i).length)return!1}else{if(Z.parentElement(s)===null)return!1;i=Z.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(nr(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 nl(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 ol(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 al(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,S=ll(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:S};case s.ELEMENT_NODE:return hl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:S});case s.TEXT_NODE:return cl(s,{doc:t,needsMask:a,maskTextFn:c,rootId:S,cssCaptured:f});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:S};case s.COMMENT_NODE:return{type:H.Comment,textContent:Z.textContent(s)||"",rootId:S};default:return!1}}function ll(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}const ul=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)};function cl(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Z.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=Z.textContent(s),c&&o&&(o=ir(o,xs(e.doc)))),!c&&!u&&o&&t&&(o=r?r(o,Z.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function hl(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:a={},maskInputFn:l,dataURLOptions:o={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:d}=e,g=il(s,r,i),m=qa(s);let f={};const S=s.attributes.length;for(let y=0;y<S;y++){const C=s.attributes[y];fn(m,C.name,C.value)||(f[C.name]=hn(t,m,Re(C.name),C.value))}if(m==="link"&&n){const y=Array.from(t.styleSheets),C=y.findIndex(U=>U.href===s.href),$=y[C];let R=null;$&&(R=tr($)),R||(R=ii.getClonedCssTextIfAvailable(s.href)),R?(delete f.rel,delete f.href,f._cssText=R):ii.registerClone({forElement:s})}if(m==="style"&&s.sheet){let y=tr(s.sheet);y&&(s.childNodes.length>1&&(y=Za(y,s)),f._cssText=y)}if(m==="input"||m==="textarea"||m==="select"){const y=s.value,C=s.checked;f.type!=="radio"&&f.type!=="checkbox"&&f.type!=="submit"&&f.type!=="button"&&y?f.value=rr({element:s,type:sr(s),tagName:m,value:y,maskInputOptions:a,maskInputFn:l}):C&&(f.checked=C)}if(m==="option"&&(s.selected&&!a.select?f.selected=!0:delete f.selected),m==="dialog"&&s.open&&(f.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){let y="getContext"in s?s.getContext("2d"):null;if(y!=null)Wa(s,y)||(f.rr_dataURL=s.toDataURL(o.type,o.quality));else if(s.width!==0&&s.height!==0){const C=s.toDataURL(o.type,o.quality);f.rr_dataURL=C,ul(()=>{try{const $=t.createElement("canvas");$.width=s.width,$.height=s.height;const R=$.toDataURL(o.type,o.quality);C===R&&delete f.rr_dataURL}catch($){}})}}if(m==="img"&&c){Ne||(Ne=t.createElement("canvas"),ni=Ne.getContext("2d"));let y=s.cloneNode(!0);const C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",$=()=>{y=null},R=()=>{y.removeEventListener("load",R),y.removeEventListener("error",U);try{Ne.width=y.naturalWidth,Ne.height=y.naturalHeight,ni.drawImage(y,0,0),f.rr_dataURL=Ne.toDataURL(o.type,o.quality)}catch(L){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?R():(y.addEventListener("load",R),y.addEventListener("error",U));return}else console.warn(`Cannot inline img src=${C}! Error: ${L}`)}$()},U=()=>{y.removeEventListener("load",R),y.removeEventListener("error",U),$()};y.complete&&y.naturalWidth!==0?R():(y.addEventListener("load",R),y.addEventListener("error",U))}if(m==="audio"||m==="video"){const y=f;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(f.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(f.rr_scrollTop=s.scrollTop)),g){const{width:y,height:C}=s.getBoundingClientRect();f={class:f.class,rr_width:`${y}px`,rr_height:`${C}px`}}m==="iframe"&&!h(f.src)&&(s.contentDocument||(f.rr_src=f.src),delete f.src);let b;try{customElements.get(m)&&(b=!0)}catch(y){}return{type:H.Element,tagName:m,attributes:f,childNodes:[],isSVG:sl(s)||void 0,needBlock:g,rootId:d,isCustom:b}}function D(s){return s==null?"":s.toLowerCase()}function fl(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"&&ln(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(D(s.attributes.name).match(/^msapplication-tile(image|color)$/)||D(s.attributes.name)==="application-name"||D(s.attributes.rel)==="icon"||D(s.attributes.rel)==="apple-touch-icon"||D(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&D(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(D(s.attributes.property).match(/^(og|twitter|fb):/)||D(s.attributes.name).match(/^(og|twitter):/)||D(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(D(s.attributes.name)==="robots"||D(s.attributes.name)==="googlebot"||D(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(D(s.attributes.name)==="author"||D(s.attributes.name)==="generator"||D(s.attributes.name)==="framework"||D(s.attributes.name)==="publisher"||D(s.attributes.name)==="progid"||D(s.attributes.property).match(/^article:/)||D(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(D(s.attributes.name)==="google-site-verification"||D(s.attributes.name)==="yandex-verification"||D(s.attributes.name)==="csrf-token"||D(s.attributes.name)==="p:domain_verify"||D(s.attributes.name)==="verify-v1"||D(s.attributes.name)==="verification"||D(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:S,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:$=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:U=!1,cssCaptured:L=!1}=e;let{needsMask:G}=e,{preserveWhiteSpace:Y=!0}=e;G||(G=pn(s,a,l,G===void 0));const Q=al(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:R,newlyAddedElement:U,cssCaptured:L});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):fl(Q,d)||!Y&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=it:oe=cn();const N=Object.assign(Q,{id:oe});if(r.add(s,N),oe===it)return null;S&&S(s);let je=!o;if(N.type===H.Element){je=je&&!N.needBlock,delete N.needBlock;const j=Z.shadowRoot(s);j&&tt(j)&&(N.isShadowHost=!0)}if((N.type===H.Document||N.type===H.Element)&&je){d.headWhitespace&&N.type===H.Element&&N.tagName==="head"&&(Y=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R,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(Z.childNodes(s))){const ae=Le(ge,j);ae&&N.childNodes.push(ae)}}let q=null;if(nn(s)&&(q=Z.shadowRoot(s))){const ge=Z.childNodes(q);for(let ae=0;ae<ge.length;ae++){const St=ge[ae],Ce=Le(St,j);Ce&&(tt(q)&&(Ce.isShadow=!0),N.childNodes.push(Ce))}}}const He=Z.parentNode(s);return He&&et(He)&&tt(He)&&(N.isShadow=!0),N.type===H.Element&&N.tagName==="iframe"&&nl(s,()=>{const j=s.contentDocument;if(j&&b){const q=Le(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R});q&&b(s,q)}},y),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"&&ln(N.attributes.href)==="css")&&ol(s,()=>{if(C){const j=Le(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R});j&&C(s,j)}},$),N}function pl(s,e){const{mirror:t=new an,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:S,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:$=()=>!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:S,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:$,newlyAddedElement:!1})}function dl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ml(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 As={exports:{}},v=String,dn=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};As.exports=dn();As.exports.createColors=dn;var gl=As.exports;const yl={},wl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),ie=ml(wl);let ai=gl,li=ie,Gr=class mn 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,mn)}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=ai.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=ai.createColors(!0);i=d=>u(p(d)),r=d=>h(d),li&&(n=d=>li(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),S=Math.max(this.column+m,this.endColumn+m),b=u.slice(f,S),y=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
2
+ "use strict";var ea=Object.defineProperty,ta=Object.defineProperties;var ra=Object.getOwnPropertyDescriptors;var It=Object.getOwnPropertySymbols;var Xs=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable;var Js=(s,e,t)=>e in s?ea(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Xs.call(e,t)&&Js(s,t,e[t]);if(It)for(var t of It(e))Ks.call(e,t)&&Js(s,t,e[t]);return s},ee=(s,e)=>ta(s,ra(e));var $e=(s,e)=>{var t={};for(var r in s)Xs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&It)for(var r of It(s))e.indexOf(r)<0&&Ks.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var sa=Object.defineProperty,ia=(s,e,t)=>e in s?sa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>ia(s,typeof e!="symbol"?e+"":e,t),Qs,E=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(E||{}),A=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(A||{}),K=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(K||{}),pe=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(pe||{}),Fe=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Fe||{}),ke=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(ke||{}),en=(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))(en||{});const qs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ei={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xt={},na=()=>!!globalThis.Zone;function vs(s){if(xt[s])return xt[s];const e=globalThis[s],t=e.prototype,r=s in qs?qs[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 ei?ei[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&&!na())return xt[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?xt[s]=c:t}catch(l){return t}}const Er={};function we(s,e,t){var r;const i=`${s}.${String(t)}`;if(Er[i])return Er[i].call(e);const n=vs(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Er[i]=a,a.call(e)):e[t]}const $r={};function tn(s,e,t){const r=`${s}.${String(t)}`;if($r[r])return $r[r].bind(e);const n=vs(s)[t];return typeof n!="function"?e[t]:($r[r]=n,n.bind(e))}function oa(s){return we("Node",s,"childNodes")}function aa(s){return we("Node",s,"parentNode")}function la(s){return we("Node",s,"parentElement")}function ua(s){return we("Node",s,"textContent")}function ca(s,e){return tn("Node",s,"contains")(e)}function ha(s){return tn("Node",s,"getRootNode")()}function fa(s){return!s||!("host"in s)?null:we("ShadowRoot",s,"host")}function pa(s){return s.styleSheets}function da(s){return!s||!("shadowRoot"in s)?null:we("Element",s,"shadowRoot")}function ma(s,e){return we("Element",s,"querySelector")(e)}function ga(s,e){return we("Element",s,"querySelectorAll")(e)}function rn(){return vs("MutationObserver").constructor}function Oe(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 x={childNodes:oa,parentNode:aa,parentElement:la,textContent:ua,contains:ca,getRootNode:ha,host:fa,styleSheets:pa,shadowRoot:da,querySelector:ma,querySelectorAll:ga,mutationObserver:rn,patch:Oe};var ya=Object.defineProperty,wa=(s,e,t)=>e in s?ya(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,_e=(s,e,t)=>wa(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 ti={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ri={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},At={},Sa=()=>!!globalThis.Zone;function Is(s){if(At[s])return At[s];const e=globalThis[s],t=e.prototype,r=s in ti?ti[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 ri?ri[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&&!Sa())return At[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?At[s]=c:t}catch(l){return t}}const Nr={};function Se(s,e,t){var r;const i=`${s}.${String(t)}`;if(Nr[i])return Nr[i].call(e);const n=Is(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Nr[i]=a,a.call(e)):e[t]}const kr={};function sn(s,e,t){const r=`${s}.${String(t)}`;if(kr[r])return kr[r].bind(e);const n=Is(s)[t];return typeof n!="function"?e[t]:(kr[r]=n,n.bind(e))}function ba(s){return Se("Node",s,"childNodes")}function Ca(s){return Se("Node",s,"parentNode")}function va(s){return Se("Node",s,"parentElement")}function Ia(s){return Se("Node",s,"textContent")}function xa(s,e){return sn("Node",s,"contains")(e)}function Aa(s){return sn("Node",s,"getRootNode")()}function Ra(s){return!s||!("host"in s)?null:Se("ShadowRoot",s,"host")}function Oa(s){return s.styleSheets}function Ma(s){return!s||!("shadowRoot"in s)?null:Se("Element",s,"shadowRoot")}function Ea(s,e){return Se("Element",s,"querySelector")(e)}function $a(s,e){return Se("Element",s,"querySelectorAll")(e)}function Na(){return Is("MutationObserver").constructor}function ka(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 Z={childNodes:ba,parentNode:Ca,parentElement:va,textContent:Ia,contains:xa,getRootNode:Aa,host:Ra,styleSheets:Oa,shadowRoot:Ma,querySelector:Ea,querySelectorAll:$a,mutationObserver:Na,patch:ka};function nn(s){return s.nodeType===s.ELEMENT_NODE}function et(s){const e=s&&"host"in s&&"mode"in s&&Z.host(s)||null;return!!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===s)}function tt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Ta(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 Pa(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 tr(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=>on(i,t)).join("");return Ta(r)}catch(e){return console.log("stringifyStylesheet error:",e),null}}function on(s,e){if(Da(s)){let t;try{t=tr(s.styleSheet)||Pa(s)}catch(r){t=s.cssText}return s.styleSheet.href?ir(t,s.styleSheet.href):t}else{let t=s.cssText;return _a(s)&&s.selectorText.includes(":")&&(t=La(t)),e?ir(t,e):t}}function La(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Da(s){return"styleSheet"in s}function _a(s){return"selectorText"in s}class an{constructor(){_e(this,"idNodeMap",new Map),_e(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 Fa(){return new an}function rr({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 si="__rrweb_original__",Ba=25e4;function Ua(s,e){if(s.width*s.height<Ba)return e!=null?e:s.getContext("2d");const t=document.createElement("canvas");t.width=s.width,t.height=s.height;const r=t.getContext("2d");return r&&r.drawImage(s,0,0),t.getContext("2d",{willReadFrequently:!0})}function Wa(s,e){if(s.width===0||s.height===0)return!0;const t=Ua(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=si in i?i[si]:i;for(let a=0;a<s.width;a+=r){const l=Math.min(r,s.width-a);for(let o=0;o<s.height;o+=r){const c=Math.min(r,s.height-o),u=new Uint32Array(n.call(t,a,o,l,c).data.buffer);for(let h=0;h<u.length;h++)if(u[h]!==0)return!1}}return!0}function sr(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Re(e):null}function ln(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 za(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Ga=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Va=/^(?:[a-z+]+:)?\/\//i,ja=/^www\..*/i,Ha=/^(data:)([^,]*),(.*)/i;function ir(s,e){return(s||"").replace(Ga,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(Va.test(o)||ja.test(o))return`url(${c}${o}${c})`;if(Ha.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${za(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 Rt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ya(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=Rt(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=Rt(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=Rt(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=Rt(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 Za(s,e){return Ya(s,e).join("/* rr_split */")}const Ja=1e3*60*5,un=class Ht{constructor(){if(_e(this,"currentHref",null),_e(this,"clones",{}),_e(this,"cleanTimeout",null),Ht.instance)return Ht.instance;Ht.instance=this}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;console.log("AsyncStylesheetManager, onLoad: href:",e);const t=Array.from(document.styleSheets);let r=null;document.head.removeChild(this.clones[e].clone);for(let n=t.length-1;n>=0;n--)if(t[n].href===e){r=t[n];break}if(!r)return;const i=tr(r);i&&(console.log("AsyncStylesheetManager, onLoad: success! did get new css text! forcing mutation..."),this.clones[e].cssText=i,this.clones[e].loaded=!0,this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||document.head.removeChild(this.clones[e].clone)}removeAllCloneElements(){for(const e of Object.values(this.clones))e&&document.head.removeChild(e.clone)}onCleanTimeout(){console.log("AsyncStylesheetManager, onCleanTimeout: cleaning up"),this.cleanTimeout=null,this.removeAllCloneElements()}blowCache(){console.log("AsyncStylesheetManager, blowCache: blowing cache"),this.clones={},this.removeAllCloneElements()}registerClone({forElement:e}){this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const t=e.href;if(console.log("AsyncStylesheetManager, registerClone: wants a clone for href:",t),!t||t in this.clones&&this.clones[t]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;console.log("AsyncStylesheetManager, registerClone: registering clone for href:",t);const r=e.cloneNode();r.setAttribute("crossorigin","anonymous"),r.setAttribute("data-rrweb-link-cloned","true"),document.head.appendChild(r),this.clones[t]={original:e,clone:r,loaded:!1,cssText:null},r.onload=()=>{this.onLoad(t)},r.onerror=()=>{this.onLoadError(t)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(this.onCleanTimeout,Ja)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?(console.log("AsyncStylesheetManager, getClonedCssTextIfAvailable: returning cloned cssText!"),this.clones[e].cssText):null}};_e(un,"instance");let Xa=un;const ii=new Xa;let Ka=1;const Qa=new RegExp("[^a-z0-9-_:]"),it=-2;function cn(){return Ka++}function qa(s){if(s instanceof HTMLFormElement)return"form";const e=Re(s.tagName);return Qa.test(e)?"div":e}let Ne,ni;const el=/^[^ \t\n\r\u000c]+/,tl=/^[, \t\n\r\u000c]+/;function rl(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(tl),!(t>=e.length);){let n=r(el);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 oi=new WeakMap;function Pe(s,e){return!e||e.trim()===""?e:xs(s,e)}function sl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function xs(s,e){let t=oi.get(s);if(t||(t=s.createElement("a"),oi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function hn(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"?rl(s,r):t==="style"?ir(r,xs(s)):e==="object"&&t==="data"?Pe(s,r):r)}function fn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function il(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 nr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?nr(Z.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?nr(Z.parentNode(s),e,t):!1}function pn(s,e,t,r){let i;if(nn(s)){if(i=s,!Z.childNodes(i).length)return!1}else{if(Z.parentElement(s)===null)return!1;i=Z.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(nr(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 nl(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 ol(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 al(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,S=ll(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:S};case s.ELEMENT_NODE:return hl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:S});case s.TEXT_NODE:return cl(s,{doc:t,needsMask:a,maskTextFn:c,rootId:S,cssCaptured:f});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:S};case s.COMMENT_NODE:return{type:H.Comment,textContent:Z.textContent(s)||"",rootId:S};default:return!1}}function ll(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}const ul=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)};function cl(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Z.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=Z.textContent(s),c&&o&&(o=ir(o,xs(e.doc)))),!c&&!u&&o&&t&&(o=r?r(o,Z.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function hl(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:a={},maskInputFn:l,dataURLOptions:o={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:d}=e,g=il(s,r,i),m=qa(s);let f={};const S=s.attributes.length;for(let y=0;y<S;y++){const C=s.attributes[y];fn(m,C.name,C.value)||(f[C.name]=hn(t,m,Re(C.name),C.value))}if(m==="link"&&n){const y=Array.from(t.styleSheets),C=y.findIndex(U=>U.href===s.href),$=y[C];let R=null;$&&(R=tr($)),R||(R=ii.getClonedCssTextIfAvailable(s.href)),R?(delete f.rel,delete f.href,f._cssText=R):(console.log("missing cssText on first passthrough for href:",s.href),ii.registerClone({forElement:s}))}if(m==="style"&&s.sheet){let y=tr(s.sheet);y&&(s.childNodes.length>1&&(y=Za(y,s)),f._cssText=y)}if(m==="input"||m==="textarea"||m==="select"){const y=s.value,C=s.checked;f.type!=="radio"&&f.type!=="checkbox"&&f.type!=="submit"&&f.type!=="button"&&y?f.value=rr({element:s,type:sr(s),tagName:m,value:y,maskInputOptions:a,maskInputFn:l}):C&&(f.checked=C)}if(m==="option"&&(s.selected&&!a.select?f.selected=!0:delete f.selected),m==="dialog"&&s.open&&(f.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){let y="getContext"in s?s.getContext("2d"):null;if(y!=null)Wa(s,y)||(f.rr_dataURL=s.toDataURL(o.type,o.quality));else if(s.width!==0&&s.height!==0){const C=s.toDataURL(o.type,o.quality);f.rr_dataURL=C,ul(()=>{try{const $=t.createElement("canvas");$.width=s.width,$.height=s.height;const R=$.toDataURL(o.type,o.quality);C===R&&delete f.rr_dataURL}catch($){}})}}if(m==="img"&&c){Ne||(Ne=t.createElement("canvas"),ni=Ne.getContext("2d"));let y=s.cloneNode(!0);const C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",$=()=>{y=null},R=()=>{y.removeEventListener("load",R),y.removeEventListener("error",U);try{Ne.width=y.naturalWidth,Ne.height=y.naturalHeight,ni.drawImage(y,0,0),f.rr_dataURL=Ne.toDataURL(o.type,o.quality)}catch(L){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?R():(y.addEventListener("load",R),y.addEventListener("error",U));return}else console.warn(`Cannot inline img src=${C}! Error: ${L}`)}$()},U=()=>{y.removeEventListener("load",R),y.removeEventListener("error",U),$()};y.complete&&y.naturalWidth!==0?R():(y.addEventListener("load",R),y.addEventListener("error",U))}if(m==="audio"||m==="video"){const y=f;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(f.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(f.rr_scrollTop=s.scrollTop)),g){const{width:y,height:C}=s.getBoundingClientRect();f={class:f.class,rr_width:`${y}px`,rr_height:`${C}px`}}m==="iframe"&&!h(f.src)&&(s.contentDocument||(f.rr_src=f.src),delete f.src);let b;try{customElements.get(m)&&(b=!0)}catch(y){}return{type:H.Element,tagName:m,attributes:f,childNodes:[],isSVG:sl(s)||void 0,needBlock:g,rootId:d,isCustom:b}}function D(s){return s==null?"":s.toLowerCase()}function fl(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"&&ln(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(D(s.attributes.name).match(/^msapplication-tile(image|color)$/)||D(s.attributes.name)==="application-name"||D(s.attributes.rel)==="icon"||D(s.attributes.rel)==="apple-touch-icon"||D(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&D(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(D(s.attributes.property).match(/^(og|twitter|fb):/)||D(s.attributes.name).match(/^(og|twitter):/)||D(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(D(s.attributes.name)==="robots"||D(s.attributes.name)==="googlebot"||D(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(D(s.attributes.name)==="author"||D(s.attributes.name)==="generator"||D(s.attributes.name)==="framework"||D(s.attributes.name)==="publisher"||D(s.attributes.name)==="progid"||D(s.attributes.property).match(/^article:/)||D(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(D(s.attributes.name)==="google-site-verification"||D(s.attributes.name)==="yandex-verification"||D(s.attributes.name)==="csrf-token"||D(s.attributes.name)==="p:domain_verify"||D(s.attributes.name)==="verify-v1"||D(s.attributes.name)==="verification"||D(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:S,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:$=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:U=!1,cssCaptured:L=!1}=e;let{needsMask:G}=e,{preserveWhiteSpace:Y=!0}=e;G||(G=pn(s,a,l,G===void 0));const Q=al(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:R,newlyAddedElement:U,cssCaptured:L});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):fl(Q,d)||!Y&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=it:oe=cn();const N=Object.assign(Q,{id:oe});if(r.add(s,N),oe===it)return null;S&&S(s);let je=!o;if(N.type===H.Element){je=je&&!N.needBlock,delete N.needBlock;const j=Z.shadowRoot(s);j&&tt(j)&&(N.isShadowHost=!0)}if((N.type===H.Document||N.type===H.Element)&&je){d.headWhitespace&&N.type===H.Element&&N.tagName==="head"&&(Y=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R,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(Z.childNodes(s))){const ae=Le(ge,j);ae&&N.childNodes.push(ae)}}let q=null;if(nn(s)&&(q=Z.shadowRoot(s))){const ge=Z.childNodes(q);for(let ae=0;ae<ge.length;ae++){const St=ge[ae],Ce=Le(St,j);Ce&&(tt(q)&&(Ce.isShadow=!0),N.childNodes.push(Ce))}}}const He=Z.parentNode(s);return He&&et(He)&&tt(He)&&(N.isShadow=!0),N.type===H.Element&&N.tagName==="iframe"&&nl(s,()=>{const j=s.contentDocument;if(j&&b){const q=Le(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R});q&&b(s,q)}},y),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"&&ln(N.attributes.href)==="css")&&ol(s,()=>{if(C){const j=Le(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:G,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Y,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:$,keepIframeSrcFn:R});j&&C(s,j)}},$),N}function pl(s,e){const{mirror:t=new an,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:S,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:$=()=>!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:S,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:$,newlyAddedElement:!1})}function dl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ml(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 As={exports:{}},v=String,dn=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};As.exports=dn();As.exports.createColors=dn;var gl=As.exports;const yl={},wl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),ie=ml(wl);let ai=gl,li=ie,Gr=class mn 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,mn)}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=ai.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=ai.createColors(!0);i=d=>u(p(d)),r=d=>h(d),li&&(n=d=>li(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),S=Math.max(this.column+m,this.endColumn+m),b=u.slice(f,S),y=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
3
3
  `+y+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=`
@@ -26,7 +26,7 @@
26
26
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Yt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Fn(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ql&&Kl&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Zt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Zt({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Zt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,a;this.stringify(this.root,(l,o,c)=>{if(this.css+=l,o&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(e+=a.length,n=l.lastIndexOf(`
27
27
  `),t=l.length-n):t+=l.length,o&&c!=="start"){let u=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==u.last||u.raws.semicolon)&&(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Yt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Yt(Dn(r,this.mapOpts.annotation)));let i=Ln(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Xl(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(gi){let r=gi(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;_n==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Bn=ql;const Dr=39,yi=34,Mt=92,wi=47,Et=10,Ze=32,$t=12,Nt=9,kt=13,eu=91,tu=93,ru=40,su=41,iu=123,nu=125,ou=59,au=42,lu=58,uu=64,Tt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cu=/.[\r\n"'(/\\]/,Si=/[\da-f]/i;var hu=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,a,l,o,c,u,h,p,d,g,m=r.length,f=0,S=[],b=[];function y(){return f}function C(L){throw e.error("Unclosed "+L,f)}function $(){return b.length===0&&f>=m}function R(L){if(b.length)return b.pop();if(f>=m)return;let G=L?L.ignoreUnclosed:!1;switch(n=r.charCodeAt(f),n){case Et:case Ze:case Nt:case kt:case $t:{o=f;do o+=1,n=r.charCodeAt(o);while(n===Ze||n===Et||n===Nt||n===kt||n===$t);u=["space",r.slice(f,o)],f=o-1;break}case eu:case tu:case iu:case nu:case lu:case ou:case su:{let Y=String.fromCharCode(n);u=[Y,Y,f];break}case ru:{if(g=S.length?S.pop()[1]:"",d=r.charCodeAt(f+1),g==="url"&&d!==Dr&&d!==yi&&d!==Ze&&d!==Et&&d!==Nt&&d!==$t&&d!==kt){o=f;do{if(h=!1,o=r.indexOf(")",o+1),o===-1)if(i||G){o=f;break}else C("bracket");for(p=o;r.charCodeAt(p-1)===Mt;)p-=1,h=!h}while(h);u=["brackets",r.slice(f,o+1),f,o],f=o}else o=r.indexOf(")",f+1),a=r.slice(f,o+1),o===-1||cu.test(a)?u=["(","(",f]:(u=["brackets",a,f,o],f=o);break}case Dr:case yi:{c=n===Dr?"'":'"',o=f;do{if(h=!1,o=r.indexOf(c,o+1),o===-1)if(i||G){o=f+1;break}else C("string");for(p=o;r.charCodeAt(p-1)===Mt;)p-=1,h=!h}while(h);u=["string",r.slice(f,o+1),f,o],f=o;break}case uu:{Tt.lastIndex=f+1,Tt.test(r),Tt.lastIndex===0?o=r.length-1:o=Tt.lastIndex-2,u=["at-word",r.slice(f,o+1),f,o],f=o;break}case Mt:{for(o=f,l=!0;r.charCodeAt(o+1)===Mt;)o+=1,l=!l;if(n=r.charCodeAt(o+1),l&&n!==wi&&n!==Ze&&n!==Et&&n!==Nt&&n!==kt&&n!==$t&&(o+=1,Si.test(r.charAt(o)))){for(;Si.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===Ze&&(o+=1)}u=["word",r.slice(f,o+1),f,o],f=o;break}default:{n===wi&&r.charCodeAt(f+1)===au?(o=r.indexOf("*/",f+2)+1,o===0&&(i||G?o=r.length:C("comment")),u=["comment",r.slice(f,o+1),f,o],f=o):(Pt.lastIndex=f+1,Pt.test(r),Pt.lastIndex===0?o=r.length-1:o=Pt.lastIndex-2,u=["word",r.slice(f,o+1),f,o],S.push(u),f=o);break}}return f++,u}function U(L){b.push(L)}return{back:U,endOfFile:$,nextToken:R,position:y}};let fu=Es,pu=wr,du=Sr,mu=mt,bi=Ns,gu=hu;const Ci={empty:!0,space:!0};function yu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let wu=class{constructor(e){this.input=e,this.root=new mu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new fu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,a=!1,l=!1,o=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(o.length>0){for(n=o.length-1,i=o[n];i&&i[0]==="space";)i=o[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),a&&(e=o[o.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[a,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=i}return!1}comment(e){let t=new pu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=gu(this.input)}decl(e,t){let r=new du;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||yu(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let p=c;p>0;p--){let d=u[p][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new bi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,a=[],l=e[1].startsWith("--"),o=[],c=e;for(;c;){if(r=c[0],o.push(c),r==="("||r==="[")n||(n=c),a.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),a.push("}");else if(a.length===0)if(r===";")if(i){this.decl(o,l);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(i=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;o.length&&(c=o[o.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,l)}else this.unknownWord(o)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,a,l=r.length,o="",c=!0,u,h;for(let p=0;p<l;p+=1)n=r[p],a=n[0],a==="space"&&p===l-1&&!i?c=!1:a==="comment"?(h=r[p-1]?r[p-1][0]:"empty",u=r[p+1]?r[p+1][0]:"empty",!Ci[h]&&!Ci[u]?o.slice(-1)===","?c=!1:o+=n[1]:c=!1):o+=n[1];if(!c){let p=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:p,value:o}}e[t]=o}rule(e){e.pop();let t=new bi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Su=wu;let bu=Me,Cu=br,vu=Su;function ur(s,e){let t=new Cu(s,e),r=new vu(t);try{r.parse()}catch(i){throw i}return r.root}var ks=ur;ur.default=ur;bu.registerParse(ur);let qr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Un=qr;qr.default=qr;let Iu=Un,es=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Iu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Ts=es;es.default=es;let xu=Me,Au=$s,Ru=Bn,Ou=ks,vi=Ts,Mu=mt,Eu=gr,{isClean:le,my:$u}=dt;const Nu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ku={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Tu={Once:!0,postcssPlugin:!0,prepare:!0},Ue=0;function Je(s){return typeof s=="object"&&typeof s.then=="function"}function Wn(s){let e=!1,t=Nu[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Ue,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Ue,t+"Exit"]:[t,t+"Exit"]}function Ii(s){let e;return s.type==="document"?e=["Document",Ue,"DocumentExit"]:s.type==="root"?e=["Root",Ue,"RootExit"]:e=Wn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ts(s){return s[le]=!1,s.nodes&&s.nodes.forEach(e=>ts(e)),s}let rs={},We=class zn{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ts(t);else if(t instanceof zn||t instanceof vi)i=ts(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Ou;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(a){this.processed=!0,this.error=a}i&&!i[$u]&&xu.rebuild(i)}this.result=new vi(e,i,r),this.helpers=ee(O({},rs),{postcss:rs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?O(O({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!ku[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Tu[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(Je(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[le];){e[le]=!0;let t=[Ii(e)];for(;t.length>0;){let r=this.visitTick(t);if(Je(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return Je(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Eu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Ru(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Je(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[le];)e[le]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(a){throw this.handleError(a,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Je(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[a,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return l(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let a=t.iterator,l;for(;l=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!l[le]){l[le]=!0,e.push(Ii(l));return}t.iterator=0,delete r.indexes[a]}let n=t.events;for(;t.eventIndex<n.length;){let a=n[t.eventIndex];if(t.eventIndex+=1,a===Ue){r.nodes&&r.nodes.length&&(r[le]=!0,t.iterator=r.getIterator());return}else if(this.listeners[a]){t.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[le]=!0;let t=Wn(e);for(let r of t)if(r===Ue)e.nodes&&e.each(i=>{i[le]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};We.registerPostcss=s=>{rs=s};var Gn=We;We.default=We;Mu.registerLazyResult(We);Au.registerLazyResult(We);let Pu=Bn,Lu=ks;const Du=Ts;let _u=gr;let ss=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Lu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=_u;this.result=new Du(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new Pu(n,i,this._opts,t);if(l.isMap()){let[o,c]=l.generate();o&&(this.result.css=o),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var Fu=ss;ss.default=ss;let Bu=$s,Uu=Gn,Wu=Fu,zu=mt,lt=class{constructor(e=[]){this.version="8.5.4",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Wu(this,e,t):new Uu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Gu=lt;lt.default=lt;zu.registerProcessor(lt);Bu.registerProcessor(lt);let Vn=Es,jn=wr,Vu=Me,ju=Rs,Hn=Sr,Yn=$s,Hu=Jl,Yu=br,Zu=Gn,Ju=Tn,Xu=yr,Ku=ks,Ps=Gu,Qu=Ts,Zn=mt,Jn=Ns,qu=gr,ec=Un;function T(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ps(s)}T.plugin=function(e,t){let r=!1;function i(...a){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
29
- https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new Ps().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return T([i(o)]).process(a,l)},i};T.stringify=qu;T.parse=Ku;T.fromJSON=Hu;T.list=Ju;T.comment=s=>new jn(s);T.atRule=s=>new Vn(s);T.decl=s=>new Hn(s);T.rule=s=>new Jn(s);T.root=s=>new Zn(s);T.document=s=>new Yn(s);T.CssSyntaxError=ju;T.Declaration=Hn;T.Container=Vu;T.Processor=Ps;T.Document=Yn;T.Comment=jn;T.Warning=ec;T.AtRule=Vn;T.Result=Qu;T.Input=Yu;T.Rule=Jn;T.Root=Zn;T.Node=Xu;Zu.registerPostcss(T);var tc=T;T.default=T;const F=dl(tc);F.stringify;F.fromJSON;F.plugin;F.parse;F.list;F.document;F.comment;F.atRule;F.rule;F.decl;F.root;F.CssSyntaxError;F.Declaration;F.Container;F.Processor;F.Document;F.Comment;F.Warning;F.AtRule;F.Result;F.Input;F.Rule;F.Root;F.Node;var rc=Object.defineProperty,sc=(s,e,t)=>e in s?rc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,te=(s,e,t)=>sc(s,typeof e!="symbol"?e+"":e,t),ic=Object.defineProperty,nc=(s,e,t)=>e in s?ic(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Jt=(s,e,t)=>nc(s,typeof e!="symbol"?e+"":e,t);function oc(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 ac(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 Xn(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=>lc(i,t)).join("");return oc(r)}catch(e){return null}}function lc(s,e){if(cc(s)){let t;try{t=Xn(s.styleSheet)||ac(s)}catch(r){t=s.cssText}return s.styleSheet.href?xi(t,s.styleSheet.href):t}else{let t=s.cssText;return hc(s)&&s.selectorText.includes(":")&&(t=uc(t)),e?xi(t,e):t}}function uc(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function cc(s){return"styleSheet"in s}function hc(s){return"selectorText"in s}function fc(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const pc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dc=/^(?:[a-z+]+:)?\/\//i,mc=/^www\..*/i,gc=/^(data:)([^,]*),(.*)/i;function xi(s,e){return(s||"").replace(pc,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(dc.test(o)||mc.test(o))return`url(${c}${o}${c})`;if(gc.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${fc(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})`})}const yc=1e3*60*5,Kn=class Xt{constructor(){if(Jt(this,"currentHref",null),Jt(this,"clones",{}),Jt(this,"cleanTimeout",null),Xt.instance)return Xt.instance;Xt.instance=this}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;console.log("AsyncStylesheetManager, onLoad: href:",e);const t=Array.from(document.styleSheets);let r=null;document.head.removeChild(this.clones[e].clone);for(let n=t.length-1;n>=0;n--)if(t[n].href===e){r=t[n];break}if(!r)return;const i=Xn(r);i&&(console.log("AsyncStylesheetManager, onLoad: success! did get new css text! forcing mutation..."),this.clones[e].cssText=i,this.clones[e].loaded=!0,this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||document.head.removeChild(this.clones[e].clone)}removeAllCloneElements(){for(const e of Object.values(this.clones))e&&document.head.removeChild(e.clone)}onCleanTimeout(){console.log("AsyncStylesheetManager, onCleanTimeout: cleaning up"),this.cleanTimeout=null,this.removeAllCloneElements()}blowCache(){console.log("AsyncStylesheetManager, blowCache: blowing cache"),this.clones={},this.removeAllCloneElements()}registerClone({forElement:e}){this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const t=e.href;if(console.log("AsyncStylesheetManager, registerClone: wants a clone for href:",t),!t||t in this.clones&&this.clones[t]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;console.log("AsyncStylesheetManager, registerClone: registering clone for href:",t);const r=e.cloneNode();r.setAttribute("crossorigin","anonymous"),r.setAttribute("data-rrweb-link-cloned","true"),document.head.appendChild(r),this.clones[t]={original:e,clone:r,loaded:!1,cssText:null},r.onload=()=>{this.onLoad(t)},r.onerror=()=>{this.onLoadError(t)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(this.onCleanTimeout,yc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?(console.log("AsyncStylesheetManager, getClonedCssTextIfAvailable: returning cloned cssText!"),this.clones[e].cssText):null}};Jt(Kn,"instance");let wc=Kn;new wc;function Sc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function bc(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 Ls={exports:{}},I=String,Qn=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}};Ls.exports=Qn();Ls.exports.createColors=Qn;var Cc=Ls.exports;const vc={},Ic=Object.freeze(Object.defineProperty({__proto__:null,default:vc},Symbol.toStringTag,{value:"Module"})),ne=bc(Ic);let Ai=Cc,Ri=ne,is=class qn 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,qn)}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=Ai.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=Ai.createColors(!0);i=d=>u(p(d)),r=d=>h(d),Ri&&(n=d=>Ri(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),S=Math.max(this.column+m,this.endColumn+m),b=u.slice(f,S),y=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
29
+ https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new Ps().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return T([i(o)]).process(a,l)},i};T.stringify=qu;T.parse=Ku;T.fromJSON=Hu;T.list=Ju;T.comment=s=>new jn(s);T.atRule=s=>new Vn(s);T.decl=s=>new Hn(s);T.rule=s=>new Jn(s);T.root=s=>new Zn(s);T.document=s=>new Yn(s);T.CssSyntaxError=ju;T.Declaration=Hn;T.Container=Vu;T.Processor=Ps;T.Document=Yn;T.Comment=jn;T.Warning=ec;T.AtRule=Vn;T.Result=Qu;T.Input=Yu;T.Rule=Jn;T.Root=Zn;T.Node=Xu;Zu.registerPostcss(T);var tc=T;T.default=T;const F=dl(tc);F.stringify;F.fromJSON;F.plugin;F.parse;F.list;F.document;F.comment;F.atRule;F.rule;F.decl;F.root;F.CssSyntaxError;F.Declaration;F.Container;F.Processor;F.Document;F.Comment;F.Warning;F.AtRule;F.Result;F.Input;F.Rule;F.Root;F.Node;var rc=Object.defineProperty,sc=(s,e,t)=>e in s?rc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,te=(s,e,t)=>sc(s,typeof e!="symbol"?e+"":e,t),ic=Object.defineProperty,nc=(s,e,t)=>e in s?ic(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Jt=(s,e,t)=>nc(s,typeof e!="symbol"?e+"":e,t);function oc(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 ac(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 Xn(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=>lc(i,t)).join("");return oc(r)}catch(e){return console.log("stringifyStylesheet error:",e),null}}function lc(s,e){if(cc(s)){let t;try{t=Xn(s.styleSheet)||ac(s)}catch(r){t=s.cssText}return s.styleSheet.href?xi(t,s.styleSheet.href):t}else{let t=s.cssText;return hc(s)&&s.selectorText.includes(":")&&(t=uc(t)),e?xi(t,e):t}}function uc(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function cc(s){return"styleSheet"in s}function hc(s){return"selectorText"in s}function fc(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const pc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dc=/^(?:[a-z+]+:)?\/\//i,mc=/^www\..*/i,gc=/^(data:)([^,]*),(.*)/i;function xi(s,e){return(s||"").replace(pc,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(dc.test(o)||mc.test(o))return`url(${c}${o}${c})`;if(gc.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${fc(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})`})}const yc=1e3*60*5,Kn=class Xt{constructor(){if(Jt(this,"currentHref",null),Jt(this,"clones",{}),Jt(this,"cleanTimeout",null),Xt.instance)return Xt.instance;Xt.instance=this}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;console.log("AsyncStylesheetManager, onLoad: href:",e);const t=Array.from(document.styleSheets);let r=null;document.head.removeChild(this.clones[e].clone);for(let n=t.length-1;n>=0;n--)if(t[n].href===e){r=t[n];break}if(!r)return;const i=Xn(r);i&&(console.log("AsyncStylesheetManager, onLoad: success! did get new css text! forcing mutation..."),this.clones[e].cssText=i,this.clones[e].loaded=!0,this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||document.head.removeChild(this.clones[e].clone)}removeAllCloneElements(){for(const e of Object.values(this.clones))e&&document.head.removeChild(e.clone)}onCleanTimeout(){console.log("AsyncStylesheetManager, onCleanTimeout: cleaning up"),this.cleanTimeout=null,this.removeAllCloneElements()}blowCache(){console.log("AsyncStylesheetManager, blowCache: blowing cache"),this.clones={},this.removeAllCloneElements()}registerClone({forElement:e}){this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const t=e.href;if(console.log("AsyncStylesheetManager, registerClone: wants a clone for href:",t),!t||t in this.clones&&this.clones[t]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;console.log("AsyncStylesheetManager, registerClone: registering clone for href:",t);const r=e.cloneNode();r.setAttribute("crossorigin","anonymous"),r.setAttribute("data-rrweb-link-cloned","true"),document.head.appendChild(r),this.clones[t]={original:e,clone:r,loaded:!1,cssText:null},r.onload=()=>{this.onLoad(t)},r.onerror=()=>{this.onLoadError(t)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(this.onCleanTimeout,yc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?(console.log("AsyncStylesheetManager, getClonedCssTextIfAvailable: returning cloned cssText!"),this.clones[e].cssText):null}};Jt(Kn,"instance");let wc=Kn;new wc;function Sc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function bc(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 Ls={exports:{}},I=String,Qn=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}};Ls.exports=Qn();Ls.exports.createColors=Qn;var Cc=Ls.exports;const vc={},Ic=Object.freeze(Object.defineProperty({__proto__:null,default:vc},Symbol.toStringTag,{value:"Module"})),ne=bc(Ic);let Ai=Cc,Ri=ne,is=class qn 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,qn)}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=Ai.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:p}=Ai.createColors(!0);i=d=>u(p(d)),r=d=>h(d),Ri&&(n=d=>Ri(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),S=Math.max(this.column+m,this.endColumn+m),b=u.slice(f,S),y=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
30
30
  `+y+i("^")}let g=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+n(u)+`
31
31
  `+g+i("^")}return" "+r(d)+n(u)}).join(`
32
32
  `)}toString(){let e=this.showSourceCode();return e&&(e=`