@betterbugs/rrweb 2.0.0-alpha.19 → 2.0.0-alpha.21

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.
@@ -0,0 +1,173 @@
1
+ (function (g, f) {
2
+ if ("object" == typeof exports && "object" == typeof module) {
3
+ module.exports = f();
4
+ } else if ("function" == typeof define && define.amd) {
5
+ define("rrweb", [], f);
6
+ } else if ("object" == typeof exports) {
7
+ exports["rrweb"] = f();
8
+ } else {
9
+ g["rrweb"] = f();
10
+ }
11
+ }(this, () => {
12
+ var exports = {};
13
+ var module = { exports };
14
+ "use strict";var No=Object.defineProperty,Oo=Object.defineProperties;var Io=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var qs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var zs=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))qs.call(t,r)&&zs(e,r,t[r]);if(ut)for(var r of ut(t))Vs.call(t,r)&&zs(e,r,t[r]);return e},se=(e,t)=>Oo(e,Io(t));var Ue=(e,t)=>{var r={};for(var s in e)qs.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&ut)for(var s of ut(e))t.indexOf(s)<0&&Vs.call(e,s)&&(r[s]=e[s]);return r};var Do=Object.defineProperty,Ao=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t,r)=>Ao(e,typeof t!="symbol"?t+"":t,r),js;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var To=Object.defineProperty,_o=(e,t,r)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gs=(e,t,r)=>_o(e,typeof t!="symbol"?t+"":t,r),U=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(U||{});const Hs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ys={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ct={},ko=()=>!!globalThis.Zone;function as(e){if(ct[e])return ct[e];const t=globalThis[e],r=t.prototype,s=e in Hs?Hs[e]:void 0,i=!!(s&&s.every(u=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(r,u))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),a=e in Ys?Ys[e]:void 0,l=!!(a&&a.every(u=>{var o;return typeof r[u]=="function"&&((o=r[u])==null?void 0:o.toString().includes("[native code]"))}));if(i&&l&&!ko())return ct[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const o=u.contentWindow;if(!o)return t.prototype;const c=o[e].prototype;return document.body.removeChild(u),c?ct[e]=c:r}catch(u){return r}}const Yt={};function Ee(e,t,r){var s;const i=`${e}.${String(r)}`;if(Yt[i])return Yt[i].call(t);const a=as(e),l=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return l?(Yt[i]=l,l.call(t)):t[r]}const Jt={};function In(e,t,r){const s=`${e}.${String(r)}`;if(Jt[s])return Jt[s].bind(t);const a=as(e)[r];return typeof a!="function"?t[r]:(Jt[s]=a,a.bind(t))}function Po(e){return Ee("Node",e,"ownerDocument")}function Lo(e){return Ee("Node",e,"childNodes")}function Fo(e){return Ee("Node",e,"parentNode")}function Uo(e){return Ee("Node",e,"parentElement")}function Bo(e){return Ee("Node",e,"textContent")}function $o(e,t){return In("Node",e,"contains")(t)}function Wo(e){return In("Node",e,"getRootNode")()}function zo(e){return!e||!("host"in e)?null:Ee("ShadowRoot",e,"host")}function qo(e){return e.styleSheets}function Vo(e){return!e||!("shadowRoot"in e)?null:Ee("Element",e,"shadowRoot")}function jo(e,t){return Ee("Element",e,"querySelector")(t)}function Go(e,t){return Ee("Element",e,"querySelectorAll")(t)}function Ho(){return as("MutationObserver").constructor}function Yo(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const ie={ownerDocument:Po,childNodes:Lo,parentNode:Fo,parentElement:Uo,textContent:Bo,contains:$o,getRootNode:Wo,host:zo,styleSheets:qo,shadowRoot:Vo,querySelector:jo,querySelectorAll:Go,mutationObserver:Ho,patch:Yo};function ls(e){return e.nodeType===e.ELEMENT_NODE}function Ke(e){const t=e&&"host"in e&&"mode"in e&&ie.host(e)||null;return!!(t&&"shadowRoot"in t&&ie.shadowRoot(t)===e)}function et(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Jo(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Xo(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function ts(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);const s=Array.from(t,i=>Dn(i,r)).join("");return Jo(s)}catch(t){return null}}function Dn(e,t){if(Zo(e)){let r;try{r=ts(e.styleSheet)||Xo(e)}catch(s){r=e.cssText}return e.styleSheet.href?Mt(r,e.styleSheet.href):r}else{let r=e.cssText;return Ko(e)&&e.selectorText.includes(":")&&(r=Qo(r)),t?Mt(r,t):r}}function Qo(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Zo(e){return"styleSheet"in e}function Ko(e){return"selectorText"in e}class us{constructor(){Gs(this,"idNodeMap",new Map),Gs(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function An(){return new us}function xt({element:e,maskInputOptions:t,tagName:r,type:s,value:i,maskInputFn:a}){let l=i||"";const u=s&&Ae(s);return(t[r.toLowerCase()]||u&&t[u])&&(a?l=a(l,e):l="*".repeat(l.length)),l}function Ae(e){return e.toLowerCase()}const Js="__rrweb_original__";function ea(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let s=0;s<e.width;s+=r)for(let i=0;i<e.height;i+=r){const a=t.getImageData,l=Js in a?a[Js]:a;if(new Uint32Array(l.call(t,s,i,Math.min(r,e.width-s),Math.min(r,e.height-i)).data.buffer).some(o=>o!==0))return!1}return!0}function ta(e,t){return!e||!t||e.type!==t.type?!1:e.type===U.Document?e.compatMode===t.compatMode:e.type===U.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===U.Comment||e.type===U.Text||e.type===U.CDATA?e.textContent===t.textContent:e.type===U.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Rt(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ae(t):null}function cs(e,t){var a;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(l){return null}const s=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(s);return(a=i==null?void 0:i[1])!=null?a:null}function ra(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const sa=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ia=/^(?:[a-z+]+:)?\/\//i,na=/^www\..*/i,oa=/^(data:)([^,]*),(.*)/i;function Mt(e,t){return(e||"").replace(sa,(r,s,i,a,l,u)=>{const o=i||l||u,c=s||a||"";if(!o)return r;if(ia.test(o)||na.test(o))return`url(${c}${o}${c})`;if(oa.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${ra(t)+o}${c})`;const n=t.split("/"),d=o.split("/");n.pop();for(const h of d)h!=="."&&(h===".."?n.pop():n.push(h));return`url(${c}${n.join("/")}${c})`})}function ht(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function aa(e,t,r=!1){const s=Array.from(t.childNodes),i=[];let a=0;if(s.length>1&&e&&typeof e=="string"){let l=ht(e,r);const u=l.length/e.length;for(let o=1;o<s.length;o++)if(s[o].textContent&&typeof s[o].textContent=="string"){const c=ht(s[o].textContent,r),n=100;let d=3;for(;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,d),1)!==-1);d++);for(;d<c.length;d++){let h=c.substring(0,d),f=l.split(h),m=-1;if(f.length===2)m=f[0].length;else if(f.length>2&&f[0]===""&&s[o-1].textContent!=="")m=l.indexOf(h,1);else if(f.length===1){if(h=h.substring(0,h.length-1),f=l.split(h),f.length<=1)return i.push(e),i;d=n+1}else d===c.length-1&&(m=l.indexOf(h));if(f.length>=2&&d>n){const p=s[o-1].textContent;if(p&&typeof p=="string"){const g=ht(p).length;m=l.indexOf(h,g)}m===-1&&(m=f[0].length)}if(m!==-1){let p=Math.floor(m/u);for(;p>0&&p<e.length;){if(a+=1,a>50*s.length)return i.push(e),i;const g=ht(e.substring(0,p),r);if(g.length===m){i.push(e.substring(0,p)),e=e.substring(p),l=l.substring(m);break}else g.length<m?p+=Math.max(1,Math.floor((m-g.length)/u)):p-=Math.max(1,Math.floor((g.length-m)*u))}break}}}}return i.push(e),i}function la(e,t){return aa(e,t).join("/* rr_split */")}let ua=1;const ca=new RegExp("[^a-z0-9-_:]"),st=-2;function Tn(){return ua++}function ha(e){if(e instanceof HTMLFormElement)return"form";const t=Ae(e.tagName);return ca.test(t)?"div":t}let Be,Xs;const fa=/^[^ \t\n\r\u000c]+/,da=/^[, \t\n\r\u000c]+/;function pa(e,t){if(t.trim()==="")return t;let r=0;function s(a){let l;const u=a.exec(t.substring(r));return u?(l=u[0],r+=l.length,l):""}const i=[];for(;s(da),!(r>=t.length);){let a=s(fa);if(a.slice(-1)===",")a=qe(e,a.substring(0,a.length-1)),i.push(a);else{let l="";a=qe(e,a);let u=!1;for(;;){const o=t.charAt(r);if(o===""){i.push((a+l).trim());break}else if(u)o===")"&&(u=!1);else if(o===","){r+=1,i.push((a+l).trim());break}else o==="("&&(u=!0);l+=o,r+=1}}}return i.join(", ")}const Qs=new WeakMap;function qe(e,t){return!t||t.trim()===""?t:hs(e,t)}function ma(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function hs(e,t){let r=Qs.get(e);if(r||(r=e.createElement("a"),Qs.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function _n(e,t,r,s){return s&&(r==="src"||r==="href"&&!(t==="use"&&s[0]==="#")||r==="xlink:href"&&s[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?qe(e,s):r==="srcset"?pa(e,s):r==="style"?Mt(s,hs(e)):t==="object"&&r==="data"?qe(e,s):s)}function kn(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function ga(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(r)return e.matches(r)}catch(s){}return!1}function Nt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Nt(ie.parentNode(e),t,r):!1;for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}return r?Nt(ie.parentNode(e),t,r):!1}function Pn(e,t,r,s){let i;if(ls(e)){if(i=e,!ie.childNodes(i).length)return!1}else{if(ie.parentElement(e)===null)return!1;i=ie.parentElement(e)}try{if(typeof t=="string"){if(s){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(Nt(i,t,s))return!0;if(r){if(s){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(a){}return!1}function ya(e,t,r){const s=e.contentWindow;if(!s)return;let i=!1,a;try{a=s.document.readyState}catch(u){return}if(a!=="complete"){const u=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),i=!0,t()});return}const l="about:blank";if(s.location.href!==l||e.src===l||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function wa(e,t,r){let s=!1,i;try{i=e.sheet}catch(l){return}if(i)return;const a=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),s=!0,t()})}function ba(e,t){const{doc:r,mirror:s,blockClass:i,blockSelector:a,needsMask:l,inlineStylesheet:u,maskInputOptions:o={},maskTextFn:c,maskInputFn:n,dataURLOptions:d={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:p=!1,cssCaptured:g=!1}=t,w=va(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:U.Document,childNodes:[],compatMode:e.compatMode}:{type:U.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:U.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return Ca(e,{doc:r,blockClass:i,blockSelector:a,inlineStylesheet:u,maskInputOptions:o,maskInputFn:n,dataURLOptions:d,inlineImages:h,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:p,rootId:w});case e.TEXT_NODE:return Sa(e,{doc:r,needsMask:l,maskTextFn:c,rootId:w,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:U.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:U.Comment,textContent:ie.textContent(e)||"",rootId:w};default:return!1}}function va(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Sa(e,t){const{needsMask:r,maskTextFn:s,rootId:i,cssCaptured:a}=t,l=ie.parentNode(e),u=l&&l.tagName;let o="";const c=u==="STYLE"?!0:void 0,n=u==="SCRIPT"?!0:void 0;return n?o="SCRIPT_PLACEHOLDER":a||(o=ie.textContent(e),c&&o&&(o=Mt(o,hs(t.doc)))),!c&&!n&&o&&r&&(o=s?s(o,ie.parentElement(e)):o.replace(/[\S]/g,"*")),{type:U.Text,textContent:o||"",rootId:i}}function Ca(e,t){const{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l={},maskInputFn:u,dataURLOptions:o={},inlineImages:c,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:h=!1,rootId:f}=t,m=ga(e,s,i),p=ha(e);let g={};const w=e.attributes.length;for(let y=0;y<w;y++){const C=e.attributes[y];kn(p,C.name,C.value)||(g[C.name]=_n(r,p,Ae(C.name),C.value))}if(p==="link"&&a){const y=Array.from(r.styleSheets).find(v=>v.href===e.href);let C=null;y&&(C=ts(y)),C&&(delete g.rel,delete g.href,g._cssText=C)}if(p==="style"&&e.sheet){let y=ts(e.sheet);y&&(e.childNodes.length>1&&(y=la(y,e)),g._cssText=y)}if(["input","textarea","select"].includes(p)){const y=e.value,C=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=xt({element:e,type:Rt(e),tagName:p,value:y,maskInputOptions:l,maskInputFn:u}):C&&(g.checked=C)}if(p==="option"&&(e.selected&&!l.select?g.selected=!0:delete g.selected),p==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&n){if(e.__context==="2d")ea(e)||(g.rr_dataURL=e.toDataURL(o.type,o.quality));else if(!("__context"in e)){const y=e.toDataURL(o.type,o.quality),C=r.createElement("canvas");C.width=e.width,C.height=e.height;const v=C.toDataURL(o.type,o.quality);y!==v&&(g.rr_dataURL=y)}}if(p==="img"&&c){Be||(Be=r.createElement("canvas"),Xs=Be.getContext("2d"));const y=e,C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",v=y.crossOrigin,S=()=>{y.removeEventListener("load",S);try{Be.width=y.naturalWidth,Be.height=y.naturalHeight,Xs.drawImage(y,0,0),g.rr_dataURL=Be.toDataURL(o.type,o.quality)}catch(E){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?S():y.addEventListener("load",S);return}else console.warn(`Cannot inline img src=${C}! Error: ${E}`)}y.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?S():y.addEventListener("load",S)}if(["audio","video"].includes(p)){const y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){const{width:y,height:C}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${C}px`}}p==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(p)&&(b=!0)}catch(y){}return{type:U.Element,tagName:p,attributes:g,childNodes:[],isSVG:ma(e)||void 0,needBlock:m,rootId:f,isCustom:b}}function Y(e){return e==null?"":e.toLowerCase()}function Ln(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Ea(e,t){if(t.comment&&e.type===U.Comment)return!0;if(e.type===U.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&cs(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(e.attributes.name)==="application-name"||Y(e.attributes.rel)==="icon"||Y(e.attributes.rel)==="apple-touch-icon"||Y(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||Y(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Y(e.attributes.name)==="robots"||Y(e.attributes.name)==="googlebot"||Y(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Y(e.attributes.name)==="author"||Y(e.attributes.name)==="generator"||Y(e.attributes.name)==="framework"||Y(e.attributes.name)==="publisher"||Y(e.attributes.name)==="progid"||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Y(e.attributes.name)==="google-site-verification"||Y(e.attributes.name)==="yandex-verification"||Y(e.attributes.name)==="csrf-token"||Y(e.attributes.name)==="p:domain_verify"||Y(e.attributes.name)==="verify-v1"||Y(e.attributes.name)==="verification"||Y(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ve(e,t){const{doc:r,mirror:s,blockClass:i,blockSelector:a,maskTextClass:l,maskTextSelector:u,skipChild:o=!1,inlineStylesheet:c=!0,maskInputOptions:n={},maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m={},inlineImages:p=!1,recordCanvas:g=!1,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:E=!1,cssCaptured:R=!1}=t;let{needsMask:I}=t,{preserveWhiteSpace:N=!0}=t;I||(I=Pn(e,l,u,I===void 0));const F=ba(e,{doc:r,mirror:s,blockClass:i,blockSelector:a,needsMask:I,inlineStylesheet:c,maskInputOptions:n,maskTextFn:d,maskInputFn:h,dataURLOptions:m,inlineImages:p,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:E,cssCaptured:R});if(!F)return console.warn(e,"not serialized"),null;let T;s.hasNode(e)?T=s.getId(e):Ea(F,f)||!N&&F.type===U.Text&&!F.textContent.replace(/^\s+|\s+$/gm,"").length?T=st:T=Tn();const x=Object.assign(F,{id:T});if(s.add(e,x),T===st)return null;w&&w(e);let ue=!o;if(x.type===U.Element){ue=ue&&!x.needBlock,delete x.needBlock;const V=ie.shadowRoot(e);V&&et(V)&&(x.isShadowHost=!0)}if((x.type===U.Document||x.type===U.Element)&&ue){f.headWhitespace&&x.type===U.Element&&x.tagName==="head"&&(N=!1);const V={doc:r,mirror:s,blockClass:i,blockSelector:a,needsMask:I,maskTextClass:l,maskTextSelector:u,skipChild:o,inlineStylesheet:c,maskInputOptions:n,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S,cssCaptured:!1};if(!(x.type===U.Element&&x.tagName==="textarea"&&x.attributes.value!==void 0)){x.type===U.Element&&x.attributes._cssText!==void 0&&typeof x.attributes._cssText=="string"&&(V.cssCaptured=!0);for(const J of Array.from(ie.childNodes(e))){const te=Ve(J,V);te&&x.childNodes.push(te)}}let k=null;if(ls(e)&&(k=ie.shadowRoot(e)))for(const J of Array.from(ie.childNodes(k))){const te=Ve(J,V);te&&(et(k)&&(te.isShadow=!0),x.childNodes.push(te))}}const ae=ie.parentNode(e);return ae&&Ke(ae)&&et(ae)&&(x.isShadow=!0),x.type===U.Element&&x.tagName==="iframe"&&ya(e,()=>{const V=e.contentDocument;if(V&&b){const k=Ve(V,{doc:V,mirror:s,blockClass:i,blockSelector:a,needsMask:I,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:n,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S});k&&b(e,k)}},y),x.type===U.Element&&x.tagName==="link"&&typeof x.attributes.rel=="string"&&(x.attributes.rel==="stylesheet"||x.attributes.rel==="preload"&&typeof x.attributes.href=="string"&&cs(x.attributes.href)==="css")&&wa(e,()=>{if(C){const V=Ve(e,{doc:r,mirror:s,blockClass:i,blockSelector:a,needsMask:I,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:n,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:p,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:v,keepIframeSrcFn:S});V&&C(e,V)}},v),x}function xa(e,t){const{mirror:r=new us,blockClass:s="rr-block",blockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:l=null,inlineStylesheet:u=!0,inlineImages:o=!1,recordCanvas:c=!1,maskAllInputs:n=!1,maskTextFn:d,maskInputFn:h,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:v=()=>!1}=t,S=n===!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}:n===!1?{password:!0}:n,E=Ln(f);return Ve(e,{doc:e,mirror:r,blockClass:s,blockSelector:i,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:S,maskTextFn:d,maskInputFn:h,slimDOMOptions:E,dataURLOptions:m,inlineImages:o,recordCanvas:c,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:v,newlyAddedElement:!1})}const Ra=/(max|min)-device-(width|height)/,Zs=new RegExp(Ra.source,"g"),Ma={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Zs)&&(e.params=e.params.replace(Zs,"$1-$2"))}}}},Na={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
15
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ia(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var ft={exports:{}},Ks;function Da(){if(Ks)return ft.exports;Ks=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ft.exports=t(),ft.exports.createColors=t,ft.exports}const Aa={},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"})),me=Ia(Ta);var Xt,ei;function fs(){if(ei)return Xt;ei=1;let e=Da(),t=me;class r extends Error{constructor(i,a,l,u,o,c){super(i),this.name="CssSyntaxError",this.reason=i,o&&(this.file=o),u&&(this.source=u),c&&(this.plugin=c),typeof a!="undefined"&&typeof l!="undefined"&&(typeof a=="number"?(this.line=a,this.column=l):(this.line=a.line,this.column=a.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported),t&&i&&(a=t(a));let l=a.split(/\r?\n/),u=Math.max(this.line-3,0),o=Math.min(this.line+2,l.length),c=String(o).length,n,d;if(i){let{bold:h,gray:f,red:m}=e.createColors(!0);n=p=>h(m(p)),d=p=>f(p)}else n=d=h=>h;return l.slice(u,o).map((h,f)=>{let m=u+1+f,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(p)+h+`
16
+ `+g+n("^")}return" "+d(p)+h}).join(`
17
+ `)}toString(){let i=this.showSourceCode();return i&&(i=`
18
+
19
+ `+i+`
20
+ `),this.name+": "+this.message+i}}return Xt=r,r.default=r,Xt}var dt={},ti;function ds(){return ti||(ti=1,dt.isClean=Symbol("isClean"),dt.my=Symbol("my")),dt}var Qt,ri;function Fn(){if(ri)return Qt;ri=1;const e={after:`
21
+ `,beforeClose:`
22
+ `,beforeComment:`
23
+ `,beforeDecl:`
24
+ `,beforeOpen:" ",beforeRule:`
25
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let l="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?l+=i.raws.afterName:u&&(l+=" "),i.nodes)this.block(i,l+u);else{let o=(i.raws.between||"")+(a?";":"");this.builder(l+u+o,i)}}beforeAfter(i,a){let l;i.type==="decl"?l=this.raw(i,null,"beforeDecl"):i.type==="comment"?l=this.raw(i,null,"beforeComment"):a==="before"?l=this.raw(i,null,"beforeRule"):l=this.raw(i,null,"beforeClose");let u=i.parent,o=0;for(;u&&u.type!=="root";)o+=1,u=u.parent;if(l.includes(`
26
+ `)){let c=this.raw(i,null,"indent");if(c.length)for(let n=0;n<o;n++)l+=c}return l}block(i,a){let l=this.raw(i,"between","beforeOpen");this.builder(a+l+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let l=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let o=i.nodes[u],c=this.raw(o,"before");c&&this.builder(c),this.stringify(o,a!==u||l)}}comment(i){let a=this.raw(i,"left","commentLeft"),l=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+l+"*/",i)}decl(i,a){let l=this.raw(i,"between","colon"),u=i.prop+l+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),a&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,a,l){let u;if(l||(l=a),a&&(u=i.raws[a],typeof u!="undefined"))return u;let o=i.parent;if(l==="before"&&(!o||o.type==="root"&&o.first===i||o&&o.type==="document"))return"";if(!o)return e[l];let c=i.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[l]!="undefined")return c.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(i,l);{let n="raw"+t(l);this[n]?u=this[n](c,i):c.walk(d=>{if(u=d.raws[a],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[l]),c.rawCache[l]=u,u}rawBeforeClose(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after!="undefined")return a=l.raws.after,a.includes(`
27
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let l;return i.walkComments(u=>{if(typeof u.raws.before!="undefined")return l=u.raws.before,l.includes(`
28
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l=="undefined"?l=this.raw(a,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(i,a){let l;return i.walkDecls(u=>{if(typeof u.raws.before!="undefined")return l=u.raws.before,l.includes(`
29
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l=="undefined"?l=this.raw(a,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(i){let a;return i.walk(l=>{if(l.type!=="decl"&&(a=l.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(l=>{if(l.nodes&&(l.parent!==i||i.first!==l)&&typeof l.raws.before!="undefined")return a=l.raws.before,a.includes(`
30
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(l=>{if(typeof l.raws.between!="undefined")return a=l.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length===0&&(a=l.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(l=>{let u=l.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof l.raws.before!="undefined"){let o=l.raws.before.split(`
31
+ `);return a=o[o.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(a=l.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let l=i[a],u=i.raws[a];return u&&u.value===l?u.raw:l}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Qt=r,r.default=r,Qt}var Zt,si;function kt(){if(si)return Zt;si=1;let e=Fn();function t(r,s){new e(s).stringify(r)}return Zt=t,t.default=t,Zt}var Kt,ii;function Pt(){if(ii)return Kt;ii=1;let{isClean:e,my:t}=ds(),r=fs(),s=Fn(),i=kt();function a(u,o){let c=new u.constructor;for(let n in u){if(!Object.prototype.hasOwnProperty.call(u,n)||n==="proxyCache")continue;let d=u[n],h=typeof d;n==="parent"&&h==="object"?o&&(c[n]=o):n==="source"?c[n]=d:Array.isArray(d)?c[n]=d.map(f=>a(f,c)):(h==="object"&&d!==null&&(d=a(d)),c[n]=d)}return c}class l{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in o)if(c==="nodes"){this.nodes=[];for(let n of o[c])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[c]=o[c]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let c=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let c in o)this[c]=o[c];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let c=a(this);for(let n in o)c[n]=o[n];return c}cloneAfter(o={}){let c=this.clone(o);return this.parent.insertAfter(this,c),c}cloneBefore(o={}){let c=this.clone(o);return this.parent.insertBefore(this,c),c}error(o,c={}){if(this.source){let{end:n,start:d}=this.rangeBy(c);return this.source.input.error(o,{column:d.column,line:d.line},{column:n.column,line:n.line},c)}return new r(o)}getProxyProcessor(){return{get(o,c){return c==="proxyOf"?o:c==="root"?()=>o.root().toProxy():o[c]},set(o,c,n){return o[c]===n||(o[c]=n,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,c){let n=this.source.start;if(o.index)n=this.positionInside(o.index,c);else if(o.word){c=this.toString();let d=c.indexOf(o.word);d!==-1&&(n=this.positionInside(d,c))}return n}positionInside(o,c){let n=c||this.toString(),d=this.source.start.column,h=this.source.start.line;for(let f=0;f<o;f++)n[f]===`
32
+ `?(d=1,h+=1):d+=1;return{column:d,line:h}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let c={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(o.word){let d=this.toString(),h=d.indexOf(o.word);h!==-1&&(c=this.positionInside(h,d),n=this.positionInside(h+o.word.length,d))}else o.start?c={column:o.start.column,line:o.start.line}:o.index&&(c=this.positionInside(o.index)),o.end?n={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?n=this.positionInside(o.endIndex):o.index&&(n=this.positionInside(o.index+1));return(n.line<c.line||n.line===c.line&&n.column<=c.column)&&(n={column:c.column+1,line:c.line}),{end:n,start:c}}raw(o,c){return new s().raw(this,o,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let c=this,n=!1;for(let d of o)d===this?n=!0:n?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);n||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,c){let n={},d=c==null;c=c||new Map;let h=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))n[f]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)n[f]=m.toJSON(null,c);else if(f==="source"){let p=c.get(m.input);p==null&&(p=h,c.set(m.input,h),h++),n[f]={end:m.end,inputId:p,start:m.start}}else n[f]=m}return d&&(n.inputs=[...c.keys()].map(f=>f.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=i){o.stringify&&(o=o.stringify);let c="";return o(this,n=>{c+=n}),c}warn(o,c,n){let d={node:this};for(let h in n)d[h]=n[h];return o.warn(c,d)}get proxyOf(){return this}}return Kt=l,l.default=l,Kt}var er,ni;function Lt(){if(ni)return er;ni=1;let e=Pt();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=se(P({},s),{value:String(s.value)})),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return er=t,t.default=t,er}var tr,oi;function _a(){if(oi)return tr;oi=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tr={nanoid:(s=21)=>{let i="",a=s;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let l="",u=a;for(;u--;)l+=s[Math.random()*s.length|0];return l}},tr}var rr,ai;function Un(){if(ai)return rr;ai=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{existsSync:r,readFileSync:s}=me,{dirname:i,join:a}=me;function l(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class u{constructor(c,n){if(n.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,h=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),h&&(this.text=h)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,h=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(h.test(c)||f.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(n.test(c)||d.test(c))return l(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let n=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=c.lastIndexOf(n.pop()),h=c.indexOf("*/",d);d>-1&&h>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,h)))}loadFile(c){if(this.root=i(c),r(c))return this.mapFile=c,s(c,"utf-8").toString().trim()}loadMap(c,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(c);if(d){let h=this.loadFile(d);if(!h)throw new Error("Unable to load previous source map: "+d.toString());return h}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=a(i(c),d)),this.loadFile(d)}}}startWith(c,n){return c?c.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rr=u,u.default=u,rr}var sr,li;function Ft(){if(li)return sr;li=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{fileURLToPath:r,pathToFileURL:s}=me,{isAbsolute:i,resolve:a}=me,{nanoid:l}=_a(),u=me,o=fs(),c=Un(),n=Symbol("fromOffsetCache"),d=!!(e&&t),h=!!(a&&i);class f{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!h||/^\w+:\/\//.test(g.from)||i(g.from)?this.file=g.from:this.file=a(g.from)),h&&d){let w=new c(this.css,g);if(w.text){this.map=w;let b=w.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+l(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,w,b={}){let y,C,v;if(g&&typeof g=="object"){let E=g,R=w;if(typeof E.offset=="number"){let I=this.fromOffset(E.offset);g=I.line,w=I.col}else g=E.line,w=E.column;if(typeof R.offset=="number"){let I=this.fromOffset(R.offset);C=I.line,v=I.col}else C=R.line,v=R.column}else if(!w){let E=this.fromOffset(g);g=E.line,w=E.col}let S=this.origin(g,w,C,v);return S?y=new o(p,S.endLine===void 0?S.line:{column:S.column,line:S.line},S.endLine===void 0?S.column:{column:S.endColumn,line:S.endLine},S.source,S.file,b.plugin):y=new o(p,C===void 0?g:{column:w,line:g},C===void 0?w:{column:v,line:C},this.css,this.file,b.plugin),y.input={column:w,endColumn:v,endLine:C,line:g,source:this.css},this.file&&(s&&(y.input.url=s(this.file).toString()),y.input.file=this.file),y}fromOffset(p){let g,w;if(this[n])w=this[n];else{let y=this.css.split(`
33
+ `);w=new Array(y.length);let C=0;for(let v=0,S=y.length;v<S;v++)w[v]=C,C+=y[v].length+1;this[n]=w}g=w[w.length-1];let b=0;if(p>=g)b=w.length-1;else{let y=w.length-2,C;for(;b<y;)if(C=b+(y-b>>1),p<w[C])y=C-1;else if(p>=w[C+1])b=C+1;else{b=C;break}}return{col:p-w[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:a(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,w,b){if(!this.map)return!1;let y=this.map.consumer(),C=y.originalPositionFor({column:g,line:p});if(!C.source)return!1;let v;typeof w=="number"&&(v=y.originalPositionFor({column:b,line:w}));let S;i(C.source)?S=s(C.source):S=new URL(C.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let E={column:C.column,endColumn:v&&v.column,endLine:v&&v.line,line:C.line,url:S.toString()};if(S.protocol==="file:")if(r)E.file=r(S);else throw new Error("file: protocol is not available in this PostCSS build");let R=y.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=P({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return sr=f,f.default=f,u&&u.registerInput&&u.registerInput(f),sr}var ir,ui;function Bn(){if(ui)return ir;ui=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=me,{dirname:r,relative:s,resolve:i,sep:a}=me,{pathToFileURL:l}=me,u=Ft(),o=!!(e&&t),c=!!(r&&i&&s&&a);class n{constructor(h,f,m,p){this.stringify=h,this.mapOpts=m.map||{},this.root=f,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let h;this.isInline()?h="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?h=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?h=this.mapOpts.annotation(this.opts.to,this.root):h=this.outputFile()+".map";let f=`
34
+ `;this.css.includes(`\r
35
+ `)&&(f=`\r
36
+ `),this.css+=f+"/*# sourceMappingURL="+h+" */"}applyPrevMaps(){for(let h of this.previous()){let f=this.toUrl(this.path(h.file)),m=h.root||r(h.file),p;this.mapOpts.sourcesContent===!1?(p=new e(h.text),p.sourcesContent&&(p.sourcesContent=null)):p=h.consumer(),this.map.applySourceMap(p,f,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let h;for(let f=this.root.nodes.length-1;f>=0;f--)h=this.root.nodes[f],h.type==="comment"&&h.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&o&&this.isMap())return this.generateMap();{let h="";return this.stringify(this.root,f=>{h+=f}),[h]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let h=this.previous()[0].consumer();h.file=this.outputFile(),this.map=t.fromSourceMap(h,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let h=1,f=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(b,y,C)=>{if(this.css+=b,y&&C!=="end"&&(p.generated.line=h,p.generated.column=f-1,y.source&&y.source.start?(p.source=this.sourcePath(y),p.original.line=y.source.start.line,p.original.column=y.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=b.match(/\n/g),g?(h+=g.length,w=b.lastIndexOf(`
37
+ `),f=b.length-w):f+=b.length,y&&C!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(p.source=this.sourcePath(y),p.original.line=y.source.end.line,p.original.column=y.source.end.column-1,p.generated.line=h,p.generated.column=f-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=h,p.generated.column=f-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(h=>h.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let h=this.mapOpts.annotation;return typeof h!="undefined"&&h!==!0?!1:this.previous().length?this.previous().some(f=>f.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(h=>h.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(h){if(this.mapOpts.absolute||h.charCodeAt(0)===60||/^\w+:\/\//.test(h))return h;let f=this.memoizedPaths.get(h);if(f)return f;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(i(m,this.mapOpts.annotation)));let p=s(m,h);return this.memoizedPaths.set(h,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(h=>{if(h.source&&h.source.input.map){let f=h.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let h=new u(this.originalCSS,this.opts);h.map&&this.previousMaps.push(h.map)}return this.previousMaps}setSourcesContent(){let h={};if(this.root)this.root.walk(f=>{if(f.source){let m=f.source.input.from;if(m&&!h[m]){h[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(h){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(h.source.input.from):this.toUrl(this.path(h.source.input.from))}toBase64(h){return Buffer?Buffer.from(h).toString("base64"):window.btoa(unescape(encodeURIComponent(h)))}toFileUrl(h){let f=this.memoizedFileURLs.get(h);if(f)return f;if(l){let m=l(h).toString();return this.memoizedFileURLs.set(h,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(h){let f=this.memoizedURLs.get(h);if(f)return f;a==="\\"&&(h=h.replace(/\\/g,"/"));let m=encodeURI(h).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(h,m),m}}return ir=n,ir}var nr,ci;function Ut(){if(ci)return nr;ci=1;let e=Pt();class t extends e{constructor(s){super(s),this.type="comment"}}return nr=t,t.default=t,nr}var or,hi;function Pe(){if(hi)return or;hi=1;let{isClean:e,my:t}=ds(),r=Lt(),s=Ut(),i=Pt(),a,l,u,o;function c(h){return h.map(f=>(f.nodes&&(f.nodes=c(f.nodes)),delete f.source,f))}function n(h){if(h[e]=!1,h.proxyOf.nodes)for(let f of h.proxyOf.nodes)n(f)}class d extends i{append(...f){for(let m of f){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let m of this.nodes)m.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=f(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,m){return m==="proxyOf"?f:f[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>f[m](...p.map(g=>typeof g=="function"?(w,b)=>g(w.toProxy(),b):g)):m==="every"||m==="some"?p=>f[m]((g,...w)=>p(g.toProxy(),...w)):m==="root"?()=>f.root().toProxy():m==="nodes"?f.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?f[m].toProxy():f[m]:f[m]},set(f,m,p){return f[m]===p||(f[m]=p,(m==="name"||m==="params"||m==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,m){let p=this.index(f),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(f);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let w;for(let b in this.indexes)w=this.indexes[b],p<w&&(this.indexes[b]=w+g.length);return this.markDirty(),this}insertBefore(f,m){let p=this.index(f),g=p===0?"prepend":!1,w=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(f);for(let y of w)this.proxyOf.nodes.splice(p,0,y);let b;for(let y in this.indexes)b=this.indexes[y],p<=b&&(this.indexes[y]=b+w.length);return this.markDirty(),this}normalize(f,m){if(typeof f=="string")f=c(a(f).nodes);else if(typeof f=="undefined")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value=="undefined")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new l(f)];else if(f.name)f=[new u(f)];else if(f.text)f=[new s(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...f){f=f.reverse();for(let m of f){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=f&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(f,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(f,p))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((m,p)=>{let g;try{g=f(m,p)}catch(w){throw m.addToError(w)}return g!==!1&&m.walk&&(g=m.walk(f)),g})}walkAtRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&f.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(f){return this.walk((m,p)=>{if(m.type==="comment")return f(m,p)})}walkDecls(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&f.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&f.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=h=>{a=h},d.registerRule=h=>{l=h},d.registerAtRule=h=>{u=h},d.registerRoot=h=>{o=h},or=d,d.default=d,d.rebuild=h=>{h.type==="atrule"?Object.setPrototypeOf(h,u.prototype):h.type==="rule"?Object.setPrototypeOf(h,l.prototype):h.type==="decl"?Object.setPrototypeOf(h,r.prototype):h.type==="comment"?Object.setPrototypeOf(h,s.prototype):h.type==="root"&&Object.setPrototypeOf(h,o.prototype),h[t]=!0,h.nodes&&h.nodes.forEach(f=>{d.rebuild(f)})},or}var ar,fi;function ps(){if(fi)return ar;fi=1;let e=Pe(),t,r;class s extends e{constructor(a){super(P({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},ar=s,s.default=s,ar}var lr,di;function $n(){if(di)return lr;di=1;let e={};return lr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},lr}var ur,pi;function Wn(){if(pi)return ur;pi=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}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}}return ur=e,e.default=e,ur}var cr,mi;function ms(){if(mi)return cr;mi=1;let e=Wn();class t{constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return cr=t,t.default=t,cr}var hr,gi;function ka(){if(gi)return hr;gi=1;const e=39,t=34,r=92,s=47,i=10,a=32,l=12,u=9,o=13,c=91,n=93,d=40,h=41,f=123,m=125,p=59,g=42,w=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return hr=function(R,I={}){let N=R.css.valueOf(),F=I.ignoreErrors,T,x,ue,ae,V,k,J,te,Z,j,Re=N.length,O=0,we=[],fe=[];function Qe(){return O}function le(L){throw R.error("Unclosed "+L,O)}function de(){return fe.length===0&&O>=Re}function _e(L){if(fe.length)return fe.pop();if(O>=Re)return;let re=L?L.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case i:case a:case u:case o:case l:{x=O;do x+=1,T=N.charCodeAt(x);while(T===a||T===i||T===u||T===o||T===l);j=["space",N.slice(O,x)],O=x-1;break}case c:case n:case f:case m:case w:case p:case h:{let G=String.fromCharCode(T);j=[G,G,O];break}case d:{if(te=we.length?we.pop()[1]:"",Z=N.charCodeAt(O+1),te==="url"&&Z!==e&&Z!==t&&Z!==a&&Z!==i&&Z!==u&&Z!==l&&Z!==o){x=O;do{if(k=!1,x=N.indexOf(")",x+1),x===-1)if(F||re){x=O;break}else le("bracket");for(J=x;N.charCodeAt(J-1)===r;)J-=1,k=!k}while(k);j=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ae=N.slice(O,x+1),x===-1||v.test(ae)?j=["(","(",O]:(j=["brackets",ae,O,x],O=x);break}case e:case t:{ue=T===e?"'":'"',x=O;do{if(k=!1,x=N.indexOf(ue,x+1),x===-1)if(F||re){x=O+1;break}else le("string");for(J=x;N.charCodeAt(J-1)===r;)J-=1,k=!k}while(k);j=["string",N.slice(O,x+1),O,x],O=x;break}case b:{y.lastIndex=O+1,y.test(N),y.lastIndex===0?x=N.length-1:x=y.lastIndex-2,j=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,V=!0;N.charCodeAt(x+1)===r;)x+=1,V=!V;if(T=N.charCodeAt(x+1),V&&T!==s&&T!==a&&T!==i&&T!==u&&T!==o&&T!==l&&(x+=1,S.test(N.charAt(x)))){for(;S.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===a&&(x+=1)}j=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===s&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(F||re?x=N.length:le("comment")),j=["comment",N.slice(O,x+1),O,x],O=x):(C.lastIndex=O+1,C.test(N),C.lastIndex===0?x=N.length-1:x=C.lastIndex-2,j=["word",N.slice(O,x+1),O,x],we.push(j),O=x);break}}return O++,j}function Me(L){fe.push(L)}return{back:Me,endOfFile:de,nextToken:_e,position:Qe}},hr}var fr,yi;function gs(){if(yi)return fr;yi=1;let e=Pe();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return fr=t,t.default=t,e.registerAtRule(t),fr}var dr,wi;function nt(){if(wi)return dr;wi=1;let e=Pe(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,l,u){let o=super.normalize(a);if(l){if(u==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let c of o)c.raws.before=l.raws.before}return o}removeChild(a,l){let u=this.index(a);return!l&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},dr=s,s.default=s,e.registerRoot(s),dr}var pr,bi;function zn(){if(bi)return pr;bi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
38
+ `," "];return e.split(t,r)},split(t,r,s){let i=[],a="",l=!1,u=0,o=!1,c="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:o?d===c&&(o=!1):d==='"'||d==="'"?(o=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(l=!0),l?(a!==""&&i.push(a.trim()),a="",l=!1):a+=d;return(s||a!=="")&&i.push(a.trim()),i}};return pr=e,e.default=e,pr}var mr,vi;function ys(){if(vi)return mr;vi=1;let e=Pe(),t=zn();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,l=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(l)}}return mr=r,r.default=r,e.registerRule(r),mr}var gr,Si;function Pa(){if(Si)return gr;Si=1;let e=Lt(),t=ka(),r=Ut(),s=gs(),i=nt(),a=ys();const l={empty:!0,space:!0};function u(c){for(let n=c.length-1;n>=0;n--){let d=c[n],h=d[3]||d[2];if(h)return h}}class o{constructor(n){this.input=n,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new s;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let h,f,m,p=!1,g=!1,w=[],b=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),h=n[0],h==="("||h==="["?b.push(h==="("?")":"]"):h==="{"&&b.length>0?b.push("}"):h===b[b.length-1]&&b.pop(),b.length===0)if(h===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){g=!0;break}else if(h==="}"){if(w.length>0){for(m=w.length-1,f=w[m];f&&f[0]==="space";)f=w[--m];f&&(d.source.end=this.getPosition(f[3]||f[2]),d.source.end.offset++)}this.end(n);break}else w.push(n);else w.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(d.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(d,"params",w),p&&(n=w[w.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let h=0,f;for(let m=d-1;m>=0&&(f=n[m],!(f[0]!=="space"&&(h+=1,h===2)));m--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(n){let d=0,h,f,m;for(let[p,g]of n.entries()){if(h=g,f=h[0],f==="("&&(d+=1),f===")"&&(d-=1),d===0&&f===":")if(!m)this.doubleColon(h);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=h}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let h=n[1].slice(2,-2);if(/^\s*$/.test(h))d.text="",d.raws.left=h,d.raws.right="";else{let f=h.match(/^(\s*)([^]*\S)(\s*)$/);d.text=f[2],d.raws.left=f[1],d.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let h=new e;this.init(h,n[0][2]);let f=n[n.length-1];for(f[0]===";"&&(this.semicolon=!0,n.pop()),h.source.end=this.getPosition(f[3]||f[2]||u(n)),h.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),h.raws.before+=n.shift()[1];for(h.source.start=this.getPosition(n[0][2]),h.prop="";n.length;){let b=n[0][0];if(b===":"||b==="space"||b==="comment")break;h.prop+=n.shift()[1]}h.raws.between="";let m;for(;n.length;)if(m=n.shift(),m[0]===":"){h.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),h.raws.between+=m[1];(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let p=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let b=n.length-1;b>=0;b--){if(m=n[b],m[1].toLowerCase()==="!important"){h.important=!0;let y=this.stringFrom(n,b);y=this.spacesFromEnd(n)+y,y!==" !important"&&(h.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=n.slice(0),C="";for(let v=b;v>0;v--){let S=y[v][0];if(C.trim().indexOf("!")===0&&S!=="space")break;C=y.pop()[1]+C}C.trim().indexOf("!")===0&&(h.important=!0,h.raws.important=C,n=y)}if(m[0]!=="space"&&m[0]!=="comment")break}n.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(h.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(h,"value",p.concat(n),d),h.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,h=null,f=!1,m=null,p=[],g=n[1].startsWith("--"),w=[],b=n;for(;b;){if(h=b[0],w.push(b),h==="("||h==="[")m||(m=b),p.push(h==="("?")":"]");else if(g&&f&&h==="{")m||(m=b),p.push("}");else if(p.length===0)if(h===";")if(f){this.decl(w,g);return}else break;else if(h==="{"){this.rule(w);return}else if(h==="}"){this.tokenizer.back(w.pop()),d=!0;break}else h===":"&&(f=!0);else h===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&f){if(!g)for(;w.length&&(b=w[w.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,h,f){let m,p,g=h.length,w="",b=!0,y,C;for(let v=0;v<g;v+=1)m=h[v],p=m[0],p==="space"&&v===g-1&&!f?b=!1:p==="comment"?(C=h[v-1]?h[v-1][0]:"empty",y=h[v+1]?h[v+1][0]:"empty",!l[C]&&!l[y]?w.slice(-1)===","?b=!1:w+=m[1]:b=!1):w+=m[1];if(!b){let v=h.reduce((S,E)=>S+E[1],"");n.raws[d]={raw:v,value:w}}n[d]=w}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,h="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)h=n.pop()[1]+h;return h}spacesAndCommentsFromStart(n){let d,h="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)h+=n.shift()[1];return h}spacesFromEnd(n){let d,h="";for(;n.length&&(d=n[n.length-1][0],d==="space");)h=n.pop()[1]+h;return h}stringFrom(n,d){let h="";for(let f=d;f<n.length;f++)h+=n[f][1];return n.splice(d,n.length-d),h}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return gr=o,gr}var yr,Ci;function ws(){if(Ci)return yr;Ci=1;let e=Pe(),t=Pa(),r=Ft();function s(i,a){let l=new r(i,a),u=new t(l);try{u.parse()}catch(o){throw o}return u.root}return yr=s,s.default=s,e.registerParse(s),yr}var wr,Ei;function qn(){if(Ei)return wr;Ei=1;let{isClean:e,my:t}=ds(),r=Bn(),s=kt(),i=Pe(),a=ps(),l=$n(),u=ms(),o=ws(),c=nt();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},h={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function p(C){let v=!1,S=n[C.type];return C.type==="decl"?v=C.prop.toLowerCase():C.type==="atrule"&&(v=C.name.toLowerCase()),v&&C.append?[S,S+"-"+v,f,S+"Exit",S+"Exit-"+v]:v?[S,S+"-"+v,S+"Exit",S+"Exit-"+v]:C.append?[S,f,S+"Exit"]:[S,S+"Exit"]}function g(C){let v;return C.type==="document"?v=["Document",f,"DocumentExit"]:C.type==="root"?v=["Root",f,"RootExit"]:v=p(C),{eventIndex:0,events:v,iterator:0,node:C,visitorIndex:0,visitors:[]}}function w(C){return C[e]=!1,C.nodes&&C.nodes.forEach(v=>w(v)),C}let b={};class y{constructor(v,S,E){this.stringified=!1,this.processed=!1;let R;if(typeof S=="object"&&S!==null&&(S.type==="root"||S.type==="document"))R=w(S);else if(S instanceof y||S instanceof u)R=w(S.root),S.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=S.map);else{let I=o;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{R=I(S,E)}catch(N){this.processed=!0,this.error=N}R&&!R[t]&&i.rebuild(R)}this.result=new u(v,R,E),this.helpers=se(P({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?P(P({},I),I.prepare(this.result)):I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,S){let E=this.result.lastPlugin;try{S&&S.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return v}prepareVisitors(){this.listeners={};let v=(S,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([S,R])};for(let S of this.plugins)if(typeof S=="object")for(let E in S){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[E])if(typeof S[E]=="object")for(let R in S[E])R==="*"?v(S,E,S[E][R]):v(S,E+"-"+R.toLowerCase(),S[E][R]);else typeof S[E]=="function"&&v(S,E,S[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let S=this.plugins[v],E=this.runOnRoot(S);if(m(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let S=[g(v)];for(;S.length>0;){let E=this.visitTick(S);if(m(E))try{await E}catch(R){let I=S[S.length-1].node;throw this.handleError(R,I)}}}if(this.listeners.OnceExit)for(let[S,E]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(v.type==="document"){let R=v.nodes.map(I=>E(I,this.helpers));await Promise.all(R)}else await E(v,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(S[0])?Promise.all(S):S}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(S){throw this.handleError(S)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,S=s;v.syntax&&(S=v.syntax.stringify),v.stringifier&&(S=v.stringifier),S.stringify&&(S=S.stringify);let R=new r(S,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 v of this.plugins){let S=this.runOnRoot(v);if(m(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let S of v.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,S){return this.async().then(v,S)}toString(){return this.css}visitSync(v,S){for(let[E,R]of v){this.result.lastPlugin=E;let I;try{I=R(S,this.helpers)}catch(N){throw this.handleError(N,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(v){let S=v[v.length-1],{node:E,visitors:R}=S;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(R.length>0&&S.visitorIndex<R.length){let[N,F]=R[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===R.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=N;try{return F(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(S.iterator!==0){let N=S.iterator,F;for(;F=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!F[e]){F[e]=!0,v.push(g(F));return}S.iterator=0,delete E.indexes[N]}let I=S.events;for(;S.eventIndex<I.length;){let N=I[S.eventIndex];if(S.eventIndex+=1,N===f){E.nodes&&E.nodes.length&&(E[e]=!0,S.iterator=E.getIterator());return}else if(this.listeners[N]){S.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let S=p(v);for(let E of S)if(E===f)v.nodes&&v.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[E];if(R&&this.visitSync(R,v.toProxy()))return}}warnings(){return this.sync().warnings()}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"}}return y.registerPostcss=C=>{b=C},wr=y,y.default=y,c.registerLazyResult(y),a.registerLazyResult(y),wr}var br,xi;function La(){if(xi)return br;xi=1;let e=Bn(),t=kt(),r=$n(),s=ws();const i=ms();class a{constructor(u,o,c){o=o.toString(),this.stringified=!1,this._processor=u,this._css=o,this._opts=c,this._map=void 0;let n,d=t;this.result=new i(this._processor,n,this._opts),this.result.css=o;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let f=new e(d,n,this._opts,o);if(f.isMap()){let[m,p]=f.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,o){return this.async().then(u,o)}toString(){return this._css}warnings(){return[]}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 u,o=s;try{u=o(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return br=a,a.default=a,br}var vr,Ri;function Fa(){if(Ri)return vr;Ri=1;let e=La(),t=qn(),r=ps(),s=nt();class i{constructor(l=[]){this.version="8.4.38",this.plugins=this.normalize(l)}normalize(l){let u=[];for(let o of l)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))u=u.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)u.push(o);else if(typeof o=="function")u.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return u}process(l,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,l,u):new t(this,l,u)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return vr=i,i.default=i,s.registerProcessor(i),r.registerProcessor(i),vr}var Sr,Mi;function Ua(){if(Mi)return Sr;Mi=1;let e=Lt(),t=Un(),r=Ut(),s=gs(),i=Ft(),a=nt(),l=ys();function u(o,c){if(Array.isArray(o))return o.map(m=>u(m));let h=o,{inputs:n}=h,d=Ue(h,["inputs"]);if(n){c=[];for(let m of n){let p=se(P({},m),{__proto__:i.prototype});p.map&&(p.map=se(P({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=o.nodes.map(m=>u(m,c))),d.source){let f=d.source,{inputId:m}=f,p=Ue(f,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new l(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+o.type)}return Sr=u,u.default=u,Sr}var Cr,Ni;function Ba(){if(Ni)return Cr;Ni=1;let e=fs(),t=Lt(),r=qn(),s=Pe(),i=Fa(),a=kt(),l=Ua(),u=ps(),o=Wn(),c=Ut(),n=gs(),d=ms(),h=Ft(),f=ws(),m=zn(),p=ys(),g=nt(),w=Pt();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new i(y)}return b.plugin=function(C,v){let S=!1;function E(...I){console&&console.warn&&!S&&(S=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
39
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
40
+ https://www.w3ctech.com/topic/2226`));let N=v(...I);return N.postcssPlugin=C,N.postcssVersion=new i().version,N}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(I,N,F){return b([E(F)]).process(I,N)},E},b.stringify=a,b.parse=f,b.fromJSON=l,b.list=m,b.comment=y=>new c(y),b.atRule=y=>new n(y),b.decl=y=>new t(y),b.rule=y=>new p(y),b.root=y=>new g(y),b.document=y=>new u(y),b.CssSyntaxError=e,b.Declaration=t,b.Container=s,b.Processor=i,b.Document=u,b.Comment=c,b.Warning=o,b.AtRule=n,b.Result=d,b.Input=h,b.Rule=p,b.Root=g,b.Node=w,r.registerPostcss(b),Cr=b,b.default=b,Cr}var $a=Ba();const X=Oa($a);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;const Oi={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Wa(e){let t=Oi[e.tagName]?Oi[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Bt(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let s=e;try{s=X([Ma,Na]).process(e).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,s),s}function Ii(){return{stylesWithHoverClass:new Map}}function za(e,t,r,s){const i=[];for(const o of e.childNodes)o.type===U.Text&&i.push(o);const a=t.split("/* rr_split */");for(;a.length>1&&a.length>i.length;)a.splice(-2,2,a.slice(-2).join(""));let l="";r&&(l=Bt(a.join(""),s));let u=0;for(let o=0;o<i.length&&o!==a.length;o++){const c=i[o];if(!r)c.textContent=a[o];else if(o<a.length-1){let n=u,d=a[o+1].length;d=Math.min(d,30);let h=!1;for(;d>2;d--){const f=a[o+1].substring(0,d),m=l.substring(u).indexOf(f);if(h=m!==-1,h){n+=m;break}}h||(n+=a[o].length),c.textContent=l.substring(u,n),u=n}else c.textContent=l.substring(u)}}function qa(e,t,r,s){const{doc:i,hackCss:a,cache:l}=s;e.childNodes.length?za(e,r,a,l):(a&&(r=Bt(r,l)),t.appendChild(i.createTextNode(r)))}function Va(e,t){var r;const{doc:s,hackCss:i,cache:a}=t;switch(e.type){case U.Document:return s.implementation.createDocument(null,"",null);case U.DocumentType:return s.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case U.Element:{const l=Wa(e);let u;e.isSVG?u=s.createElementNS("http://www.w3.org/2000/svg",l):(e.isCustom&&((r=s.defaultView)!=null&&r.customElements)&&!s.defaultView.customElements.get(e.tagName)&&s.defaultView.customElements.define(e.tagName,class extends s.defaultView.HTMLElement{}),u=s.createElement(l));const o={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let n=e.attributes[c];if(!(l==="option"&&c==="selected"&&n===!1)&&n!==null){if(n===!0&&(n=""),c.startsWith("rr_")){o[c]=n;continue}if(typeof n=="string"){if(l==="style"&&c==="_cssText"){qa(e,u,n,t);continue}else if(l==="textarea"&&c==="value"){u.appendChild(s.createTextNode(n)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",c,n.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")u.setAttribute("_"+c,n.toString());else if(l==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){u.setAttribute("csp-content",n.toString());continue}else l==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||l==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&cs(e.attributes.href)==="js"||(l==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(c,n.toString()))}catch(d){}}}for(const c in o){const n=o[c];if(l==="canvas"&&c==="rr_dataURL"){const d=s.createElement("img");d.onload=()=>{const h=u.getContext("2d");h&&h.drawImage(d,0,0,d.width,d.height)},d.src=n.toString(),u.RRNodeType&&(u.rr_dataURL=n.toString())}else if(l==="img"&&c==="rr_dataURL"){const d=u;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=n.toString())}if(c==="rr_width")u.style.setProperty("width",n.toString());else if(c==="rr_height")u.style.setProperty("height",n.toString());else if(c==="rr_mediaCurrentTime"&&typeof n=="number")u.currentTime=n;else if(c==="rr_mediaState")switch(n){case"played":u.play().catch(d=>console.warn("media playback error",d));break;case"paused":u.pause();break}else c==="rr_mediaPlaybackRate"&&typeof n=="number"?u.playbackRate=n:c==="rr_mediaMuted"&&typeof n=="boolean"?u.muted=n:c==="rr_mediaLoop"&&typeof n=="boolean"?u.loop=n:c==="rr_mediaVolume"&&typeof n=="number"?u.volume=n:c==="rr_open_mode"&&u.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case U.Text:return e.isStyle&&i?s.createTextNode(Bt(e.textContent,a)):s.createTextNode(e.textContent);case U.CDATA:return s.createCDATASection(e.textContent);case U.Comment:return s.createComment(e.textContent);default:return null}}function tt(e,t){const{doc:r,mirror:s,skipChild:i=!1,hackCss:a=!0,afterAppend:l,cache:u}=t;if(s.has(e.id)){const c=s.getNode(e.id),n=s.getMeta(c);if(ta(n,e))return s.getNode(e.id)}let o=Va(e,{doc:r,hackCss:a,cache:u});if(!o)return null;if(e.rootId&&s.getNode(e.rootId)!==r&&s.replace(e.rootId,r),e.type===U.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==U.DocumentType&&(e.childNodes[0].type===U.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),o=r),s.add(o,e),(e.type===U.Document||e.type===U.Element)&&!i)for(const c of e.childNodes){const n=tt(c,{doc:r,mirror:s,skipChild:!1,hackCss:a,afterAppend:l,cache:u});if(!n){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&ls(o)&&o.shadowRoot)o.shadowRoot.appendChild(n);else if(e.type===U.Document&&c.type==U.Element){const d=n;let h=null;d.childNodes.forEach(f=>{f.nodeName==="BODY"&&(h=f)}),h?(d.removeChild(h),o.appendChild(n),d.appendChild(h)):o.appendChild(n)}else o.appendChild(n);l&&l(n,c.id)}return o}function ja(e,t){function r(s){t(s)}for(const s of e.getIds())e.has(s)&&r(e.getNode(s))}function Ga(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==U.Element)return;const s=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(s.scrollLeft=a),i==="rr_scrollTop"&&(s.scrollTop=a)}}function Ha(e,t){const{doc:r,onVisit:s,hackCss:i=!0,afterAppend:a,cache:l,mirror:u=new us}=t,o=tt(e,{doc:r,mirror:u,skipChild:!1,hackCss:i,afterAppend:a,cache:l});return ja(u,c=>{s&&s(c),Ga(c,u)}),o}var Ya=Object.defineProperty,Ja=(e,t,r)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>Ja(e,typeof t!="symbol"?t+"":t,r),Xa=Object.defineProperty,Qa=(e,t,r)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t,r)=>Qa(e,typeof t!="symbol"?t+"":t,r);let Za=class{constructor(){Di(this,"idNodeMap",new Map),Di(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ka(){return new Za}function el(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var pt={exports:{}},Ai;function rl(){if(Ai)return pt.exports;Ai=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return pt.exports=t(),pt.exports.createColors=t,pt.exports}const sl={},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ge=tl(il);var Er,Ti;function bs(){if(Ti)return Er;Ti=1;let e=rl(),t=ge;class r extends Error{constructor(i,a,l,u,o,c){super(i),this.name="CssSyntaxError",this.reason=i,o&&(this.file=o),u&&(this.source=u),c&&(this.plugin=c),typeof a!="undefined"&&typeof l!="undefined"&&(typeof a=="number"?(this.line=a,this.column=l):(this.line=a.line,this.column=a.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported),t&&i&&(a=t(a));let l=a.split(/\r?\n/),u=Math.max(this.line-3,0),o=Math.min(this.line+2,l.length),c=String(o).length,n,d;if(i){let{bold:h,gray:f,red:m}=e.createColors(!0);n=p=>h(m(p)),d=p=>f(p)}else n=d=h=>h;return l.slice(u,o).map((h,f)=>{let m=u+1+f,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+d(p)+h+`
41
+ `+g+n("^")}return" "+d(p)+h}).join(`
42
+ `)}toString(){let i=this.showSourceCode();return i&&(i=`
43
+
44
+ `+i+`
45
+ `),this.name+": "+this.message+i}}return Er=r,r.default=r,Er}var mt={},_i;function vs(){return _i||(_i=1,mt.isClean=Symbol("isClean"),mt.my=Symbol("my")),mt}var xr,ki;function Vn(){if(ki)return xr;ki=1;const e={after:`
46
+ `,beforeClose:`
47
+ `,beforeComment:`
48
+ `,beforeDecl:`
49
+ `,beforeOpen:" ",beforeRule:`
50
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let l="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?l+=i.raws.afterName:u&&(l+=" "),i.nodes)this.block(i,l+u);else{let o=(i.raws.between||"")+(a?";":"");this.builder(l+u+o,i)}}beforeAfter(i,a){let l;i.type==="decl"?l=this.raw(i,null,"beforeDecl"):i.type==="comment"?l=this.raw(i,null,"beforeComment"):a==="before"?l=this.raw(i,null,"beforeRule"):l=this.raw(i,null,"beforeClose");let u=i.parent,o=0;for(;u&&u.type!=="root";)o+=1,u=u.parent;if(l.includes(`
51
+ `)){let c=this.raw(i,null,"indent");if(c.length)for(let n=0;n<o;n++)l+=c}return l}block(i,a){let l=this.raw(i,"between","beforeOpen");this.builder(a+l+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let l=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let o=i.nodes[u],c=this.raw(o,"before");c&&this.builder(c),this.stringify(o,a!==u||l)}}comment(i){let a=this.raw(i,"left","commentLeft"),l=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+l+"*/",i)}decl(i,a){let l=this.raw(i,"between","colon"),u=i.prop+l+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),a&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,a,l){let u;if(l||(l=a),a&&(u=i.raws[a],typeof u!="undefined"))return u;let o=i.parent;if(l==="before"&&(!o||o.type==="root"&&o.first===i||o&&o.type==="document"))return"";if(!o)return e[l];let c=i.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[l]!="undefined")return c.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(i,l);{let n="raw"+t(l);this[n]?u=this[n](c,i):c.walk(d=>{if(u=d.raws[a],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[l]),c.rawCache[l]=u,u}rawBeforeClose(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after!="undefined")return a=l.raws.after,a.includes(`
52
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let l;return i.walkComments(u=>{if(typeof u.raws.before!="undefined")return l=u.raws.before,l.includes(`
53
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l=="undefined"?l=this.raw(a,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(i,a){let l;return i.walkDecls(u=>{if(typeof u.raws.before!="undefined")return l=u.raws.before,l.includes(`
54
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l=="undefined"?l=this.raw(a,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(i){let a;return i.walk(l=>{if(l.type!=="decl"&&(a=l.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(l=>{if(l.nodes&&(l.parent!==i||i.first!==l)&&typeof l.raws.before!="undefined")return a=l.raws.before,a.includes(`
55
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(l=>{if(typeof l.raws.between!="undefined")return a=l.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length===0&&(a=l.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(l=>{let u=l.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof l.raws.before!="undefined"){let o=l.raws.before.split(`
56
+ `);return a=o[o.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(a=l.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let l=i[a],u=i.raws[a];return u&&u.value===l?u.raw:l}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return xr=r,r.default=r,xr}var Rr,Pi;function $t(){if(Pi)return Rr;Pi=1;let e=Vn();function t(r,s){new e(s).stringify(r)}return Rr=t,t.default=t,Rr}var Mr,Li;function Wt(){if(Li)return Mr;Li=1;let{isClean:e,my:t}=vs(),r=bs(),s=Vn(),i=$t();function a(u,o){let c=new u.constructor;for(let n in u){if(!Object.prototype.hasOwnProperty.call(u,n)||n==="proxyCache")continue;let d=u[n],h=typeof d;n==="parent"&&h==="object"?o&&(c[n]=o):n==="source"?c[n]=d:Array.isArray(d)?c[n]=d.map(f=>a(f,c)):(h==="object"&&d!==null&&(d=a(d)),c[n]=d)}return c}class l{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in o)if(c==="nodes"){this.nodes=[];for(let n of o[c])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[c]=o[c]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let c=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let c in o)this[c]=o[c];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let c=a(this);for(let n in o)c[n]=o[n];return c}cloneAfter(o={}){let c=this.clone(o);return this.parent.insertAfter(this,c),c}cloneBefore(o={}){let c=this.clone(o);return this.parent.insertBefore(this,c),c}error(o,c={}){if(this.source){let{end:n,start:d}=this.rangeBy(c);return this.source.input.error(o,{column:d.column,line:d.line},{column:n.column,line:n.line},c)}return new r(o)}getProxyProcessor(){return{get(o,c){return c==="proxyOf"?o:c==="root"?()=>o.root().toProxy():o[c]},set(o,c,n){return o[c]===n||(o[c]=n,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,c){let n=this.source.start;if(o.index)n=this.positionInside(o.index,c);else if(o.word){c=this.toString();let d=c.indexOf(o.word);d!==-1&&(n=this.positionInside(d,c))}return n}positionInside(o,c){let n=c||this.toString(),d=this.source.start.column,h=this.source.start.line;for(let f=0;f<o;f++)n[f]===`
57
+ `?(d=1,h+=1):d+=1;return{column:d,line:h}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let c={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(o.word){let d=this.toString(),h=d.indexOf(o.word);h!==-1&&(c=this.positionInside(h,d),n=this.positionInside(h+o.word.length,d))}else o.start?c={column:o.start.column,line:o.start.line}:o.index&&(c=this.positionInside(o.index)),o.end?n={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?n=this.positionInside(o.endIndex):o.index&&(n=this.positionInside(o.index+1));return(n.line<c.line||n.line===c.line&&n.column<=c.column)&&(n={column:c.column+1,line:c.line}),{end:n,start:c}}raw(o,c){return new s().raw(this,o,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let c=this,n=!1;for(let d of o)d===this?n=!0:n?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);n||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,c){let n={},d=c==null;c=c||new Map;let h=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))n[f]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)n[f]=m.toJSON(null,c);else if(f==="source"){let p=c.get(m.input);p==null&&(p=h,c.set(m.input,h),h++),n[f]={end:m.end,inputId:p,start:m.start}}else n[f]=m}return d&&(n.inputs=[...c.keys()].map(f=>f.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=i){o.stringify&&(o=o.stringify);let c="";return o(this,n=>{c+=n}),c}warn(o,c,n){let d={node:this};for(let h in n)d[h]=n[h];return o.warn(c,d)}get proxyOf(){return this}}return Mr=l,l.default=l,Mr}var Nr,Fi;function zt(){if(Fi)return Nr;Fi=1;let e=Wt();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s=se(P({},s),{value:String(s.value)})),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Nr=t,t.default=t,Nr}var Or,Ui;function nl(){if(Ui)return Or;Ui=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Or={nanoid:(s=21)=>{let i="",a=s;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(s,i=21)=>(a=i)=>{let l="",u=a;for(;u--;)l+=s[Math.random()*s.length|0];return l}},Or}var Ir,Bi;function jn(){if(Bi)return Ir;Bi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{existsSync:r,readFileSync:s}=ge,{dirname:i,join:a}=ge;function l(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class u{constructor(c,n){if(n.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=n.map?n.map.prev:void 0,h=this.loadMap(n.from,d);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),h&&(this.text=h)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let n=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,h=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(h.test(c)||f.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(n.test(c)||d.test(c))return l(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let n=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let d=c.lastIndexOf(n.pop()),h=c.indexOf("*/",d);d>-1&&h>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,h)))}loadFile(c){if(this.root=i(c),r(c))return this.mapFile=c,s(c,"utf-8").toString().trim()}loadMap(c,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let d=n(c);if(d){let h=this.loadFile(d);if(!h)throw new Error("Unable to load previous source map: "+d.toString());return h}}else{if(n instanceof e)return t.fromSourceMap(n).toString();if(n instanceof t)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=a(i(c),d)),this.loadFile(d)}}}startWith(c,n){return c?c.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ir=u,u.default=u,Ir}var Dr,$i;function qt(){if($i)return Dr;$i=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{fileURLToPath:r,pathToFileURL:s}=ge,{isAbsolute:i,resolve:a}=ge,{nanoid:l}=nl(),u=ge,o=bs(),c=jn(),n=Symbol("fromOffsetCache"),d=!!(e&&t),h=!!(a&&i);class f{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!h||/^\w+:\/\//.test(g.from)||i(g.from)?this.file=g.from:this.file=a(g.from)),h&&d){let w=new c(this.css,g);if(w.text){this.map=w;let b=w.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+l(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,w,b={}){let y,C,v;if(g&&typeof g=="object"){let E=g,R=w;if(typeof E.offset=="number"){let I=this.fromOffset(E.offset);g=I.line,w=I.col}else g=E.line,w=E.column;if(typeof R.offset=="number"){let I=this.fromOffset(R.offset);C=I.line,v=I.col}else C=R.line,v=R.column}else if(!w){let E=this.fromOffset(g);g=E.line,w=E.col}let S=this.origin(g,w,C,v);return S?y=new o(p,S.endLine===void 0?S.line:{column:S.column,line:S.line},S.endLine===void 0?S.column:{column:S.endColumn,line:S.endLine},S.source,S.file,b.plugin):y=new o(p,C===void 0?g:{column:w,line:g},C===void 0?w:{column:v,line:C},this.css,this.file,b.plugin),y.input={column:w,endColumn:v,endLine:C,line:g,source:this.css},this.file&&(s&&(y.input.url=s(this.file).toString()),y.input.file=this.file),y}fromOffset(p){let g,w;if(this[n])w=this[n];else{let y=this.css.split(`
58
+ `);w=new Array(y.length);let C=0;for(let v=0,S=y.length;v<S;v++)w[v]=C,C+=y[v].length+1;this[n]=w}g=w[w.length-1];let b=0;if(p>=g)b=w.length-1;else{let y=w.length-2,C;for(;b<y;)if(C=b+(y-b>>1),p<w[C])y=C-1;else if(p>=w[C+1])b=C+1;else{b=C;break}}return{col:p-w[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:a(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,w,b){if(!this.map)return!1;let y=this.map.consumer(),C=y.originalPositionFor({column:g,line:p});if(!C.source)return!1;let v;typeof w=="number"&&(v=y.originalPositionFor({column:b,line:w}));let S;i(C.source)?S=s(C.source):S=new URL(C.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let E={column:C.column,endColumn:v&&v.column,endLine:v&&v.line,line:C.line,url:S.toString()};if(S.protocol==="file:")if(r)E.file=r(S);else throw new Error("file: protocol is not available in this PostCSS build");let R=y.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=P({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Dr=f,f.default=f,u&&u.registerInput&&u.registerInput(f),Dr}var Ar,Wi;function Gn(){if(Wi)return Ar;Wi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{dirname:r,relative:s,resolve:i,sep:a}=ge,{pathToFileURL:l}=ge,u=qt(),o=!!(e&&t),c=!!(r&&i&&s&&a);class n{constructor(h,f,m,p){this.stringify=h,this.mapOpts=m.map||{},this.root=f,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let h;this.isInline()?h="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?h=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?h=this.mapOpts.annotation(this.opts.to,this.root):h=this.outputFile()+".map";let f=`
59
+ `;this.css.includes(`\r
60
+ `)&&(f=`\r
61
+ `),this.css+=f+"/*# sourceMappingURL="+h+" */"}applyPrevMaps(){for(let h of this.previous()){let f=this.toUrl(this.path(h.file)),m=h.root||r(h.file),p;this.mapOpts.sourcesContent===!1?(p=new e(h.text),p.sourcesContent&&(p.sourcesContent=null)):p=h.consumer(),this.map.applySourceMap(p,f,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let h;for(let f=this.root.nodes.length-1;f>=0;f--)h=this.root.nodes[f],h.type==="comment"&&h.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&o&&this.isMap())return this.generateMap();{let h="";return this.stringify(this.root,f=>{h+=f}),[h]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let h=this.previous()[0].consumer();h.file=this.outputFile(),this.map=t.fromSourceMap(h,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let h=1,f=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(b,y,C)=>{if(this.css+=b,y&&C!=="end"&&(p.generated.line=h,p.generated.column=f-1,y.source&&y.source.start?(p.source=this.sourcePath(y),p.original.line=y.source.start.line,p.original.column=y.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=b.match(/\n/g),g?(h+=g.length,w=b.lastIndexOf(`
62
+ `),f=b.length-w):f+=b.length,y&&C!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(p.source=this.sourcePath(y),p.original.line=y.source.end.line,p.original.column=y.source.end.column-1,p.generated.line=h,p.generated.column=f-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=h,p.generated.column=f-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(h=>h.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let h=this.mapOpts.annotation;return typeof h!="undefined"&&h!==!0?!1:this.previous().length?this.previous().some(f=>f.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(h=>h.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(h){if(this.mapOpts.absolute||h.charCodeAt(0)===60||/^\w+:\/\//.test(h))return h;let f=this.memoizedPaths.get(h);if(f)return f;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(i(m,this.mapOpts.annotation)));let p=s(m,h);return this.memoizedPaths.set(h,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(h=>{if(h.source&&h.source.input.map){let f=h.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let h=new u(this.originalCSS,this.opts);h.map&&this.previousMaps.push(h.map)}return this.previousMaps}setSourcesContent(){let h={};if(this.root)this.root.walk(f=>{if(f.source){let m=f.source.input.from;if(m&&!h[m]){h[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(h){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(h.source.input.from):this.toUrl(this.path(h.source.input.from))}toBase64(h){return Buffer?Buffer.from(h).toString("base64"):window.btoa(unescape(encodeURIComponent(h)))}toFileUrl(h){let f=this.memoizedFileURLs.get(h);if(f)return f;if(l){let m=l(h).toString();return this.memoizedFileURLs.set(h,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(h){let f=this.memoizedURLs.get(h);if(f)return f;a==="\\"&&(h=h.replace(/\\/g,"/"));let m=encodeURI(h).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(h,m),m}}return Ar=n,Ar}var Tr,zi;function Vt(){if(zi)return Tr;zi=1;let e=Wt();class t extends e{constructor(s){super(s),this.type="comment"}}return Tr=t,t.default=t,Tr}var _r,qi;function Le(){if(qi)return _r;qi=1;let{isClean:e,my:t}=vs(),r=zt(),s=Vt(),i=Wt(),a,l,u,o;function c(h){return h.map(f=>(f.nodes&&(f.nodes=c(f.nodes)),delete f.source,f))}function n(h){if(h[e]=!1,h.proxyOf.nodes)for(let f of h.proxyOf.nodes)n(f)}class d extends i{append(...f){for(let m of f){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let m of this.nodes)m.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=f(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,m){return m==="proxyOf"?f:f[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>f[m](...p.map(g=>typeof g=="function"?(w,b)=>g(w.toProxy(),b):g)):m==="every"||m==="some"?p=>f[m]((g,...w)=>p(g.toProxy(),...w)):m==="root"?()=>f.root().toProxy():m==="nodes"?f.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?f[m].toProxy():f[m]:f[m]},set(f,m,p){return f[m]===p||(f[m]=p,(m==="name"||m==="params"||m==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,m){let p=this.index(f),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(f);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let w;for(let b in this.indexes)w=this.indexes[b],p<w&&(this.indexes[b]=w+g.length);return this.markDirty(),this}insertBefore(f,m){let p=this.index(f),g=p===0?"prepend":!1,w=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(f);for(let y of w)this.proxyOf.nodes.splice(p,0,y);let b;for(let y in this.indexes)b=this.indexes[y],p<=b&&(this.indexes[y]=b+w.length);return this.markDirty(),this}normalize(f,m){if(typeof f=="string")f=c(a(f).nodes);else if(typeof f=="undefined")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value=="undefined")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new l(f)];else if(f.name)f=[new u(f)];else if(f.text)f=[new s(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&n(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...f){f=f.reverse();for(let m of f){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=f&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(f,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(f,p))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((m,p)=>{let g;try{g=f(m,p)}catch(w){throw m.addToError(w)}return g!==!1&&m.walk&&(g=m.walk(f)),g})}walkAtRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&f.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(f){return this.walk((m,p)=>{if(m.type==="comment")return f(m,p)})}walkDecls(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&f.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(f,m){return m?f instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&f.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===f)return m(p,g)}):(m=f,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=h=>{a=h},d.registerRule=h=>{l=h},d.registerAtRule=h=>{u=h},d.registerRoot=h=>{o=h},_r=d,d.default=d,d.rebuild=h=>{h.type==="atrule"?Object.setPrototypeOf(h,u.prototype):h.type==="rule"?Object.setPrototypeOf(h,l.prototype):h.type==="decl"?Object.setPrototypeOf(h,r.prototype):h.type==="comment"?Object.setPrototypeOf(h,s.prototype):h.type==="root"&&Object.setPrototypeOf(h,o.prototype),h[t]=!0,h.nodes&&h.nodes.forEach(f=>{d.rebuild(f)})},_r}var kr,Vi;function Ss(){if(Vi)return kr;Vi=1;let e=Le(),t,r;class s extends e{constructor(a){super(P({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},kr=s,s.default=s,kr}var Pr,ji;function Hn(){if(ji)return Pr;ji=1;let e={};return Pr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Pr}var Lr,Gi;function Yn(){if(Gi)return Lr;Gi=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}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}}return Lr=e,e.default=e,Lr}var Fr,Hi;function Cs(){if(Hi)return Fr;Hi=1;let e=Yn();class t{constructor(s,i,a){this.processor=s,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(s,i);return this.messages.push(a),a}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Fr=t,t.default=t,Fr}var Ur,Yi;function ol(){if(Yi)return Ur;Yi=1;const e=39,t=34,r=92,s=47,i=10,a=32,l=12,u=9,o=13,c=91,n=93,d=40,h=41,f=123,m=125,p=59,g=42,w=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Ur=function(R,I={}){let N=R.css.valueOf(),F=I.ignoreErrors,T,x,ue,ae,V,k,J,te,Z,j,Re=N.length,O=0,we=[],fe=[];function Qe(){return O}function le(L){throw R.error("Unclosed "+L,O)}function de(){return fe.length===0&&O>=Re}function _e(L){if(fe.length)return fe.pop();if(O>=Re)return;let re=L?L.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case i:case a:case u:case o:case l:{x=O;do x+=1,T=N.charCodeAt(x);while(T===a||T===i||T===u||T===o||T===l);j=["space",N.slice(O,x)],O=x-1;break}case c:case n:case f:case m:case w:case p:case h:{let G=String.fromCharCode(T);j=[G,G,O];break}case d:{if(te=we.length?we.pop()[1]:"",Z=N.charCodeAt(O+1),te==="url"&&Z!==e&&Z!==t&&Z!==a&&Z!==i&&Z!==u&&Z!==l&&Z!==o){x=O;do{if(k=!1,x=N.indexOf(")",x+1),x===-1)if(F||re){x=O;break}else le("bracket");for(J=x;N.charCodeAt(J-1)===r;)J-=1,k=!k}while(k);j=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ae=N.slice(O,x+1),x===-1||v.test(ae)?j=["(","(",O]:(j=["brackets",ae,O,x],O=x);break}case e:case t:{ue=T===e?"'":'"',x=O;do{if(k=!1,x=N.indexOf(ue,x+1),x===-1)if(F||re){x=O+1;break}else le("string");for(J=x;N.charCodeAt(J-1)===r;)J-=1,k=!k}while(k);j=["string",N.slice(O,x+1),O,x],O=x;break}case b:{y.lastIndex=O+1,y.test(N),y.lastIndex===0?x=N.length-1:x=y.lastIndex-2,j=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,V=!0;N.charCodeAt(x+1)===r;)x+=1,V=!V;if(T=N.charCodeAt(x+1),V&&T!==s&&T!==a&&T!==i&&T!==u&&T!==o&&T!==l&&(x+=1,S.test(N.charAt(x)))){for(;S.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===a&&(x+=1)}j=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===s&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(F||re?x=N.length:le("comment")),j=["comment",N.slice(O,x+1),O,x],O=x):(C.lastIndex=O+1,C.test(N),C.lastIndex===0?x=N.length-1:x=C.lastIndex-2,j=["word",N.slice(O,x+1),O,x],we.push(j),O=x);break}}return O++,j}function Me(L){fe.push(L)}return{back:Me,endOfFile:de,nextToken:_e,position:Qe}},Ur}var Br,Ji;function Es(){if(Ji)return Br;Ji=1;let e=Le();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Br=t,t.default=t,e.registerAtRule(t),Br}var $r,Xi;function ot(){if(Xi)return $r;Xi=1;let e=Le(),t,r;class s extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,l,u){let o=super.normalize(a);if(l){if(u==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let c of o)c.raws.before=l.raws.before}return o}removeChild(a,l){let u=this.index(a);return!l&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return s.registerLazyResult=i=>{t=i},s.registerProcessor=i=>{r=i},$r=s,s.default=s,e.registerRoot(s),$r}var Wr,Qi;function Jn(){if(Qi)return Wr;Qi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
63
+ `," "];return e.split(t,r)},split(t,r,s){let i=[],a="",l=!1,u=0,o=!1,c="",n=!1;for(let d of t)n?n=!1:d==="\\"?n=!0:o?d===c&&(o=!1):d==='"'||d==="'"?(o=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(l=!0),l?(a!==""&&i.push(a.trim()),a="",l=!1):a+=d;return(s||a!=="")&&i.push(a.trim()),i}};return Wr=e,e.default=e,Wr}var zr,Zi;function xs(){if(Zi)return zr;Zi=1;let e=Le(),t=Jn();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,l=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(l)}}return zr=r,r.default=r,e.registerRule(r),zr}var qr,Ki;function al(){if(Ki)return qr;Ki=1;let e=zt(),t=ol(),r=Vt(),s=Es(),i=ot(),a=xs();const l={empty:!0,space:!0};function u(c){for(let n=c.length-1;n>=0;n--){let d=c[n],h=d[3]||d[2];if(h)return h}}class o{constructor(n){this.input=n,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let d=new s;d.name=n[1].slice(1),d.name===""&&this.unnamedAtrule(d,n),this.init(d,n[2]);let h,f,m,p=!1,g=!1,w=[],b=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),h=n[0],h==="("||h==="["?b.push(h==="("?")":"]"):h==="{"&&b.length>0?b.push("}"):h===b[b.length-1]&&b.pop(),b.length===0)if(h===";"){d.source.end=this.getPosition(n[2]),d.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){g=!0;break}else if(h==="}"){if(w.length>0){for(m=w.length-1,f=w[m];f&&f[0]==="space";)f=w[--m];f&&(d.source.end=this.getPosition(f[3]||f[2]),d.source.end.offset++)}this.end(n);break}else w.push(n);else w.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(d.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(d,"params",w),p&&(n=w[w.length-1],d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(n){let d=this.colon(n);if(d===!1)return;let h=0,f;for(let m=d-1;m>=0&&(f=n[m],!(f[0]!=="space"&&(h+=1,h===2)));m--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(n){let d=0,h,f,m;for(let[p,g]of n.entries()){if(h=g,f=h[0],f==="("&&(d+=1),f===")"&&(d-=1),d===0&&f===":")if(!m)this.doubleColon(h);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=h}return!1}comment(n){let d=new r;this.init(d,n[2]),d.source.end=this.getPosition(n[3]||n[2]),d.source.end.offset++;let h=n[1].slice(2,-2);if(/^\s*$/.test(h))d.text="",d.raws.left=h,d.raws.right="";else{let f=h.match(/^(\s*)([^]*\S)(\s*)$/);d.text=f[2],d.raws.left=f[1],d.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(n,d){let h=new e;this.init(h,n[0][2]);let f=n[n.length-1];for(f[0]===";"&&(this.semicolon=!0,n.pop()),h.source.end=this.getPosition(f[3]||f[2]||u(n)),h.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),h.raws.before+=n.shift()[1];for(h.source.start=this.getPosition(n[0][2]),h.prop="";n.length;){let b=n[0][0];if(b===":"||b==="space"||b==="comment")break;h.prop+=n.shift()[1]}h.raws.between="";let m;for(;n.length;)if(m=n.shift(),m[0]===":"){h.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),h.raws.between+=m[1];(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let p=[],g;for(;n.length&&(g=n[0][0],!(g!=="space"&&g!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let b=n.length-1;b>=0;b--){if(m=n[b],m[1].toLowerCase()==="!important"){h.important=!0;let y=this.stringFrom(n,b);y=this.spacesFromEnd(n)+y,y!==" !important"&&(h.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=n.slice(0),C="";for(let v=b;v>0;v--){let S=y[v][0];if(C.trim().indexOf("!")===0&&S!=="space")break;C=y.pop()[1]+C}C.trim().indexOf("!")===0&&(h.important=!0,h.raws.important=C,n=y)}if(m[0]!=="space"&&m[0]!=="comment")break}n.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(h.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(h,"value",p.concat(n),d),h.value.includes(":")&&!d&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let d=new a;this.init(d,n[2]),d.selector="",d.raws.between="",this.current=d}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(n){let d=this.input.fromOffset(n);return{column:d.col,line:d.line,offset:n}}init(n,d){this.current.push(n),n.source={input:this.input,start:this.getPosition(d)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let d=!1,h=null,f=!1,m=null,p=[],g=n[1].startsWith("--"),w=[],b=n;for(;b;){if(h=b[0],w.push(b),h==="("||h==="[")m||(m=b),p.push(h==="("?")":"]");else if(g&&f&&h==="{")m||(m=b),p.push("}");else if(p.length===0)if(h===";")if(f){this.decl(w,g);return}else break;else if(h==="{"){this.rule(w);return}else if(h==="}"){this.tokenizer.back(w.pop()),d=!0;break}else h===":"&&(f=!0);else h===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&f){if(!g)for(;w.length&&(b=w[w.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}else this.unknownWord(w)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,d,h,f){let m,p,g=h.length,w="",b=!0,y,C;for(let v=0;v<g;v+=1)m=h[v],p=m[0],p==="space"&&v===g-1&&!f?b=!1:p==="comment"?(C=h[v-1]?h[v-1][0]:"empty",y=h[v+1]?h[v+1][0]:"empty",!l[C]&&!l[y]?w.slice(-1)===","?b=!1:w+=m[1]:b=!1):w+=m[1];if(!b){let v=h.reduce((S,E)=>S+E[1],"");n.raws[d]={raw:v,value:w}}n[d]=w}rule(n){n.pop();let d=new a;this.init(d,n[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(d,"selector",n),this.current=d}spacesAndCommentsFromEnd(n){let d,h="";for(;n.length&&(d=n[n.length-1][0],!(d!=="space"&&d!=="comment"));)h=n.pop()[1]+h;return h}spacesAndCommentsFromStart(n){let d,h="";for(;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)h+=n.shift()[1];return h}spacesFromEnd(n){let d,h="";for(;n.length&&(d=n[n.length-1][0],d==="space");)h=n.pop()[1]+h;return h}stringFrom(n,d){let h="";for(let f=d;f<n.length;f++)h+=n[f][1];return n.splice(d,n.length-d),h}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return qr=o,qr}var Vr,en;function Rs(){if(en)return Vr;en=1;let e=Le(),t=al(),r=qt();function s(i,a){let l=new r(i,a),u=new t(l);try{u.parse()}catch(o){throw o}return u.root}return Vr=s,s.default=s,e.registerParse(s),Vr}var jr,tn;function Xn(){if(tn)return jr;tn=1;let{isClean:e,my:t}=vs(),r=Gn(),s=$t(),i=Le(),a=Ss(),l=Hn(),u=Cs(),o=Rs(),c=ot();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},h={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function p(C){let v=!1,S=n[C.type];return C.type==="decl"?v=C.prop.toLowerCase():C.type==="atrule"&&(v=C.name.toLowerCase()),v&&C.append?[S,S+"-"+v,f,S+"Exit",S+"Exit-"+v]:v?[S,S+"-"+v,S+"Exit",S+"Exit-"+v]:C.append?[S,f,S+"Exit"]:[S,S+"Exit"]}function g(C){let v;return C.type==="document"?v=["Document",f,"DocumentExit"]:C.type==="root"?v=["Root",f,"RootExit"]:v=p(C),{eventIndex:0,events:v,iterator:0,node:C,visitorIndex:0,visitors:[]}}function w(C){return C[e]=!1,C.nodes&&C.nodes.forEach(v=>w(v)),C}let b={};class y{constructor(v,S,E){this.stringified=!1,this.processed=!1;let R;if(typeof S=="object"&&S!==null&&(S.type==="root"||S.type==="document"))R=w(S);else if(S instanceof y||S instanceof u)R=w(S.root),S.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=S.map);else{let I=o;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{R=I(S,E)}catch(N){this.processed=!0,this.error=N}R&&!R[t]&&i.rebuild(R)}this.result=new u(v,R,E),this.helpers=se(P({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?P(P({},I),I.prepare(this.result)):I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,S){let E=this.result.lastPlugin;try{S&&S.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return v}prepareVisitors(){this.listeners={};let v=(S,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([S,R])};for(let S of this.plugins)if(typeof S=="object")for(let E in S){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[E])if(typeof S[E]=="object")for(let R in S[E])R==="*"?v(S,E,S[E][R]):v(S,E+"-"+R.toLowerCase(),S[E][R]);else typeof S[E]=="function"&&v(S,E,S[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let S=this.plugins[v],E=this.runOnRoot(S);if(m(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let S=[g(v)];for(;S.length>0;){let E=this.visitTick(S);if(m(E))try{await E}catch(R){let I=S[S.length-1].node;throw this.handleError(R,I)}}}if(this.listeners.OnceExit)for(let[S,E]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(v.type==="document"){let R=v.nodes.map(I=>E(I,this.helpers));await Promise.all(R)}else await E(v,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(S[0])?Promise.all(S):S}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(S){throw this.handleError(S)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,S=s;v.syntax&&(S=v.syntax.stringify),v.stringifier&&(S=v.stringifier),S.stringify&&(S=S.stringify);let R=new r(S,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 v of this.plugins){let S=this.runOnRoot(v);if(m(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let S of v.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,S){return this.async().then(v,S)}toString(){return this.css}visitSync(v,S){for(let[E,R]of v){this.result.lastPlugin=E;let I;try{I=R(S,this.helpers)}catch(N){throw this.handleError(N,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(v){let S=v[v.length-1],{node:E,visitors:R}=S;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(R.length>0&&S.visitorIndex<R.length){let[N,F]=R[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===R.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=N;try{return F(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(S.iterator!==0){let N=S.iterator,F;for(;F=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!F[e]){F[e]=!0,v.push(g(F));return}S.iterator=0,delete E.indexes[N]}let I=S.events;for(;S.eventIndex<I.length;){let N=I[S.eventIndex];if(S.eventIndex+=1,N===f){E.nodes&&E.nodes.length&&(E[e]=!0,S.iterator=E.getIterator());return}else if(this.listeners[N]){S.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let S=p(v);for(let E of S)if(E===f)v.nodes&&v.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[E];if(R&&this.visitSync(R,v.toProxy()))return}}warnings(){return this.sync().warnings()}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"}}return y.registerPostcss=C=>{b=C},jr=y,y.default=y,c.registerLazyResult(y),a.registerLazyResult(y),jr}var Gr,rn;function ll(){if(rn)return Gr;rn=1;let e=Gn(),t=$t(),r=Hn(),s=Rs();const i=Cs();class a{constructor(u,o,c){o=o.toString(),this.stringified=!1,this._processor=u,this._css=o,this._opts=c,this._map=void 0;let n,d=t;this.result=new i(this._processor,n,this._opts),this.result.css=o;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let f=new e(d,n,this._opts,o);if(f.isMap()){let[m,p]=f.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,o){return this.async().then(u,o)}toString(){return this._css}warnings(){return[]}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 u,o=s;try{u=o(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gr=a,a.default=a,Gr}var Hr,sn;function ul(){if(sn)return Hr;sn=1;let e=ll(),t=Xn(),r=Ss(),s=ot();class i{constructor(l=[]){this.version="8.4.38",this.plugins=this.normalize(l)}normalize(l){let u=[];for(let o of l)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))u=u.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)u.push(o);else if(typeof o=="function")u.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return u}process(l,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,l,u):new t(this,l,u)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return Hr=i,i.default=i,s.registerProcessor(i),r.registerProcessor(i),Hr}var Yr,nn;function cl(){if(nn)return Yr;nn=1;let e=zt(),t=jn(),r=Vt(),s=Es(),i=qt(),a=ot(),l=xs();function u(o,c){if(Array.isArray(o))return o.map(m=>u(m));let h=o,{inputs:n}=h,d=Ue(h,["inputs"]);if(n){c=[];for(let m of n){let p=se(P({},m),{__proto__:i.prototype});p.map&&(p.map=se(P({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=o.nodes.map(m=>u(m,c))),d.source){let f=d.source,{inputId:m}=f,p=Ue(f,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new l(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+o.type)}return Yr=u,u.default=u,Yr}var Jr,on;function hl(){if(on)return Jr;on=1;let e=bs(),t=zt(),r=Xn(),s=Le(),i=ul(),a=$t(),l=cl(),u=Ss(),o=Yn(),c=Vt(),n=Es(),d=Cs(),h=qt(),f=Rs(),m=Jn(),p=xs(),g=ot(),w=Wt();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new i(y)}return b.plugin=function(C,v){let S=!1;function E(...I){console&&console.warn&&!S&&(S=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
64
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
65
+ https://www.w3ctech.com/topic/2226`));let N=v(...I);return N.postcssPlugin=C,N.postcssVersion=new i().version,N}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(I,N,F){return b([E(F)]).process(I,N)},E},b.stringify=a,b.parse=f,b.fromJSON=l,b.list=m,b.comment=y=>new c(y),b.atRule=y=>new n(y),b.decl=y=>new t(y),b.rule=y=>new p(y),b.root=y=>new g(y),b.document=y=>new u(y),b.CssSyntaxError=e,b.Declaration=t,b.Container=s,b.Processor=i,b.Document=u,b.Comment=c,b.Warning=o,b.AtRule=n,b.Result=d,b.Input=h,b.Rule=p,b.Root=g,b.Node=w,r.registerPostcss(b),Jr=b,b.default=b,Jr}var fl=hl();const Q=el(fl);Q.stringify;Q.fromJSON;Q.plugin;Q.parse;Q.list;Q.document;Q.comment;Q.atRule;Q.rule;Q.decl;Q.root;Q.CssSyntaxError;Q.Declaration;Q.Container;Q.Processor;Q.Document;Q.Comment;Q.Warning;Q.AtRule;Q.Result;Q.Input;Q.Rule;Q.Root;Q.Node;var $=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))($||{});function dl(e){const t={},r=/;(?![^(]*\))/g,s=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(a){if(a){const l=a.split(s);l.length>1&&(t[rs(l[0].trim())]=l[1].trim())}}),t}function an(e){const t=[];for(const r in e){const s=e[r];if(typeof s!="string")continue;const i=yl(r);t.push(`${i}: ${s};`)}return t.join(" ")}const pl=/-([a-z])/g,ml=/^--[a-zA-Z0-9-]+$/,rs=e=>ml.test(e)?e:e.replace(pl,(t,r)=>r?r.toUpperCase():""),gl=/\B([A-Z])/g,yl=e=>e.replace(gl,"-$1").toLowerCase();class ye{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof ye){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Ms extends ye{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",$.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===$.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===$.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===$.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===$.Element||r===$.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===$.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=Ns(this,t);return s.parentElement=null,s}insertBefore(t,r){const s=t.RRNodeType;if((s===$.Element||s===$.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===$.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=to(this,t,r);return i.parentElement=null,i}removeChild(t){return ro(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const s=this.createDocumentType("html",r,"");this.open(),this.appendChild(s)}}createDocument(t,r,s){return new Ms}createDocumentType(t,r,s){const i=new Qn(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=new jt(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new Zn(t);return r.ownerDocument=this,r}createComment(t){const r=new Kn(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new eo(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Qn extends ye{constructor(t,r,s){super(),D(this,"nodeType",10),D(this,"RRNodeType",$.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=s,this.nodeName=t}toString(){return"RRDocumentType"}}class jt extends ye{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",$.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new vl(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?dl(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(s,i,a)=>{if(r.test(s))return;const l=rs(s);i?t[l]=i:delete t[l],a==="important"&&(t[l]+=" !important"),this.attributes.style=an(t)},t.removeProperty=s=>{if(r.test(s))return"";const i=rs(s),a=t[i]||"";return delete t[i],this.attributes.style=an(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,s){this.setAttribute(r,s)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Ns(this,t)}insertBefore(t,r){return to(this,t,r)}removeChild(t){return ro(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class wl extends jt{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class bl extends jt{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class Zn extends ye{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",$.Text),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Kn extends ye{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",$.Comment),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class eo extends ye{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",$.CDATA),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class vl{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(this,"add",(...s)=>{for(const i of s){const a=String(i);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),D(this,"remove",(...s)=>{this.classes=this.classes.filter(i=>s.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const s=t.trim().split(/\s+/);this.classes.push(...s)}this.onChange=r}}function Ns(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function to(e,t,r){if(!r)return Ns(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function ro(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var he=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(he||{});const ss={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Sl={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let be=null;function Ot(e,t,r,s=t.mirror||t.ownerDocument.mirror){e=Cl(e,t,r,s),so(e,t,r,s),El(e,t,r)}function Cl(e,t,r,s){var i;if(r.afterAppend&&!be&&(be=new WeakSet,setTimeout(()=>{be=null},0)),!Os(e,t)){const a=It(t,r.mirror,s);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case $.Document:{if(!$e(e,t,r.mirror,s)){const a=s.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),be==null||be.add(e))}break}case $.Element:{const a=e,l=t;switch(l.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Ot(u,t.contentDocument,r,s);break}}l.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),so(a.shadowRoot,l.shadowRoot,r,s)),xl(a,l,s);break}}return e}function El(e,t,r){var s;switch(t.RRNodeType){case $.Document:{const i=t.scrollData;i&&r.applyScroll(i,!0);break}case $.Element:{const i=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{const l=e,u=a;u.paused!==void 0&&(u.paused?l.pause():l.play()),u.muted!==void 0&&(l.muted=u.muted),u.volume!==void 0&&(l.volume=u.volume),u.currentTime!==void 0&&(l.currentTime=u.currentTime),u.playbackRate!==void 0&&(l.playbackRate=u.playbackRate),u.loop!==void 0&&(l.loop=u.loop);break}case"CANVAS":{const l=t;if(l.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const o=i.getContext("2d");o&&o.drawImage(u,0,0,u.width,u.height)},u.src=l.rr_dataURL}l.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const l=i.sheet;l&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,l));break}case"DIALOG":{const l=i,u=a,o=l.open,c=l.matches("dialog:modal"),n=u.open,d=u.isModal,h=c!==d,f=o!==n;if((h||o&&f)&&l.close(),n&&(f||h))try{d?l.showModal():l.show()}catch(m){console.warn(m)}break}}break}case $.Text:case $.Comment:case $.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}be!=null&&be.has(e)&&(be.delete(e),(s=r.afterAppend)==null||s.call(r,e,r.mirror.getId(e)))}function xl(e,t,r){const s=e.attributes,i=t.attributes;for(const a in i){const l=i[a],u=r.getMeta(t);if(u!=null&&u.isSVG&&ss[a])e.setAttributeNS(ss[a],a,l);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){const o=document.createElement("img");o.src=l,o.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(o,0,0,o.width,o.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,l)}catch(o){console.warn(o)}}}for(const{name:a}of Array.from(s))a in i||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function so(e,t,r,s){const i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let l=0,u=i.length-1,o=0,c=a.length-1,n=i[l],d=i[u],h=a[o],f=a[c],m,p;for(;l<=u&&o<=c;)if(n===void 0)n=i[++l];else if(d===void 0)d=i[--u];else if($e(n,h,r.mirror,s))n=i[++l],h=a[++o];else if($e(d,f,r.mirror,s))d=i[--u],f=a[--c];else if($e(n,f,r.mirror,s)){try{e.insertBefore(n,d.nextSibling)}catch(b){console.warn(b)}n=i[++l],f=a[--c]}else if($e(d,h,r.mirror,s)){try{e.insertBefore(d,n)}catch(b){console.warn(b)}d=i[--u],h=a[++o]}else{if(!m){m={};for(let y=l;y<=u;y++){const C=i[y];C&&r.mirror.hasNode(C)&&(m[r.mirror.getId(C)]=y)}}p=m[s.getId(h)];const b=i[p];if(p!==void 0&&b&&$e(b,h,r.mirror,s)){try{e.insertBefore(b,n)}catch(y){console.warn(y)}i[p]=void 0}else{const y=It(h,r.mirror,s);e.nodeName==="#document"&&n&&(y.nodeType===y.DOCUMENT_TYPE_NODE&&n.nodeType===n.DOCUMENT_TYPE_NODE||y.nodeType===y.ELEMENT_NODE&&n.nodeType===n.ELEMENT_NODE)&&(e.removeChild(n),r.mirror.removeNodeFromMap(n),n=i[++l]);try{e.insertBefore(y,n||null)}catch(C){console.warn(C)}}h=a[++o]}if(l>u){const b=a[c+1];let y=null;for(b&&(y=r.mirror.getNode(s.getId(b)));o<=c;++o){const C=It(a[o],r.mirror,s);try{e.insertBefore(C,y)}catch(v){console.warn(v)}}}else if(o>c)for(;l<=u;l++){const b=i[l];if(!(!b||b.parentNode!==e))try{e.removeChild(b),r.mirror.removeNodeFromMap(b)}catch(y){console.warn(y)}}let g=e.firstChild,w=t.firstChild;for(;g!==null&&w!==null;)Ot(g,w,r,s),g=g.nextSibling,w=w.nextSibling}function It(e,t,r){const s=r.getId(e),i=r.getMeta(e);let a=null;if(s>-1&&(a=t.getNode(s)),a!==null&&Os(a,e))return a;switch(e.RRNodeType){case $.Document:a=new Document;break;case $.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case $.Element:{let l=e.tagName.toLowerCase();l=Sl[l]||l,i&&"isSVG"in i&&(i!=null&&i.isSVG)?a=document.createElementNS(ss.svg,l):a=document.createElement(e.tagName);break}case $.Text:a=document.createTextNode(e.data);break;case $.Comment:a=document.createComment(e.data);break;case $.CDATA:a=document.createCDATASection(e.data);break}i&&t.add(a,P({},i));try{be==null||be.add(a)}catch(l){}return a}function Os(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function $e(e,t,r,s){const i=r.getId(e),a=s.getId(t);return i===-1||i!==a?!1:Os(e,t)}class Xe extends Ms{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Ll()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,s){return new Xe}createDocumentType(t,r,s){const i=new Rl(t,r,s);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let s;switch(r){case"AUDIO":case"VIDEO":s=new Ml(r);break;case"IFRAME":s=new Dl(r,this.mirror);break;case"CANVAS":s=new Ol(r);break;case"STYLE":s=new Il(r);break;case"DIALOG":s=new Nl(r);break;default:s=new Gt(r);break}return s.ownerDocument=this,s}createComment(t){const r=new Tl(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new _l(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Al(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Rl=Qn;class Gt extends jt{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class Ml extends wl{}class Nl extends bl{}class Ol extends Gt{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class Il extends Gt{constructor(){super(...arguments),D(this,"rules",[])}}class Dl extends Gt{constructor(t,r){super(t),D(this,"contentDocument",new Xe),this.contentDocument.mirror=r}}const Al=Zn,Tl=Kn,_l=eo;function kl(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function io(e,t,r,s){let i;switch(e.nodeType){case he.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?i=s.contentDocument:(i=t,i.compatMode=e.compatMode);break;case he.DOCUMENT_TYPE_NODE:{const l=e;i=t.createDocumentType(l.name,l.publicId,l.systemId);break}case he.ELEMENT_NODE:{const l=e,u=kl(l);i=t.createElement(u);const o=i;for(const{name:c,value:n}of Array.from(l.attributes))o.attributes[c]=n;l.scrollLeft&&(o.scrollLeft=l.scrollLeft),l.scrollTop&&(o.scrollTop=l.scrollTop);break}case he.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case he.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case he.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case he.DOCUMENT_FRAGMENT_NODE:i=s.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof Xe&&(a||(a=no(i,t.unserializedId),r.add(e,a)),t.mirror.add(i,P({},a))),i}function Pl(e,t=Ka(),r=new Xe){function s(i,a){const l=io(i,r,t,a);if(l!==null)if((a==null?void 0:a.nodeName)!=="IFRAME"&&i.nodeType!==he.DOCUMENT_FRAGMENT_NODE&&(a==null||a.appendChild(l),l.parentNode=a,l.parentElement=a),i.nodeName==="IFRAME"){const u=i.contentDocument;u&&s(u,l)}else(i.nodeType===he.DOCUMENT_NODE||i.nodeType===he.ELEMENT_NODE||i.nodeType===he.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===he.ELEMENT_NODE&&i.shadowRoot&&s(i.shadowRoot,l),i.childNodes.forEach(u=>s(u,l)))}return s(e,null),r}function Ll(){return new Fl}class Fl{constructor(){D(this,"idNodeMap",new Map),D(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){const s=this.getNode(t);if(s){const i=this.nodeMetaMap.get(s);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function no(e,t){switch(e.RRNodeType){case $.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case $.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case $.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case $.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case $.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case $.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const ln={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},un={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},gt={},Ul=()=>!!globalThis.Zone;function Is(e){if(gt[e])return gt[e];const t=globalThis[e],r=t.prototype,s=e in ln?ln[e]:void 0,i=!!(s&&s.every(u=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(r,u))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),a=e in un?un[e]:void 0,l=!!(a&&a.every(u=>{var o;return typeof r[u]=="function"&&((o=r[u])==null?void 0:o.toString().includes("[native code]"))}));if(i&&l&&!Ul())return gt[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const o=u.contentWindow;if(!o)return t.prototype;const c=o[e].prototype;return document.body.removeChild(u),c?gt[e]=c:r}catch(u){return r}}const Xr={};function xe(e,t,r){var s;const i=`${e}.${String(r)}`;if(Xr[i])return Xr[i].call(t);const a=Is(e),l=(s=Object.getOwnPropertyDescriptor(a,r))==null?void 0:s.get;return l?(Xr[i]=l,l.call(t)):t[r]}const Qr={};function oo(e,t,r){const s=`${e}.${String(r)}`;if(Qr[s])return Qr[s].bind(t);const a=Is(e)[r];return typeof a!="function"?t[r]:(Qr[s]=a,a.bind(t))}function Bl(e){return xe("Node",e,"ownerDocument")}function $l(e){return xe("Node",e,"childNodes")}function Wl(e){return xe("Node",e,"parentNode")}function zl(e){return xe("Node",e,"parentElement")}function ql(e){return xe("Node",e,"textContent")}function Vl(e,t){return oo("Node",e,"contains")(t)}function jl(e){return oo("Node",e,"getRootNode")()}function Gl(e){return!e||!("host"in e)?null:xe("ShadowRoot",e,"host")}function Hl(e){return e.styleSheets}function Yl(e){return!e||!("shadowRoot"in e)?null:xe("Element",e,"shadowRoot")}function Jl(e,t){return xe("Element",e,"querySelector")(t)}function Xl(e,t){return xe("Element",e,"querySelectorAll")(t)}function ao(){return Is("MutationObserver").constructor}function Fe(e,t,r){try{if(!(t in e))return()=>{};const s=e[t],i=r(s);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch(s){return()=>{}}}const B={ownerDocument:Bl,childNodes:$l,parentNode:Wl,parentElement:zl,textContent:ql,contains:Vl,getRootNode:jl,host:Gl,styleSheets:Hl,shadowRoot:Yl,querySelector:Jl,querySelectorAll:Xl,mutationObserver:ao,patch:Fe};function ne(e,t,r=document){const s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}const We=`Please stop import mirror directly. Instead of that,\r
66
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
67
+ or you can use record.mirror to access the mirror instance during recording.`;exports.mirror={map:{},getId(){return console.error(We),-1},getNode(){return console.error(We),null},removeNodeFromMap(){console.error(We)},has(){return console.error(We),!1},reset(){console.error(We)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(exports.mirror=new Proxy(exports.mirror,{get(e,t,r){return t==="map"&&console.error(We),Reflect.get(e,t,r)}}));function Je(e,t,r={}){let s=null,i=0;return function(...a){const l=Date.now();!i&&r.leading===!1&&(i=l);const u=t-(l-i),o=this;u<=0||u>t?(s&&(clearTimeout(s),s=null),i=l,e.apply(o,a)):!s&&r.trailing!==!1&&(s=setTimeout(()=>{i=r.leading===!1?0:Date.now(),s=null,e.apply(o,a)},u))}}function at(e,t,r,s,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?r:{set(l){setTimeout(()=>{r.set.call(this,l)},0),a&&a.set&&a.set.call(this,l)}}),()=>at(e,t,a||{},!0)}let it=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(it=()=>new Date().getTime());function Ds(e){var t,r,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||(a==null?void 0:a.body)&&((t=B.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a==null?void 0:a.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||(a==null?void 0:a.body)&&((s=B.parentElement(a.body))==null?void 0:s.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function As(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ts(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function _s(e){return e?e.nodeType===e.ELEMENT_NODE?e:B.parentElement(e):null}function oe(e,t,r,s){if(!e)return!1;const i=_s(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||s&&i.closest("."+t)!==null)return!0}else if(Nt(i,t,s))return!0}catch(a){}return!!(r&&(i.matches(r)||s&&i.closest(r)!==null))}function lo(e,t){return t.getId(e)!==-1}function St(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===st}function ks(e,t){if(Ke(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const s=B.parentNode(e);return s&&s.nodeType===e.DOCUMENT_NODE?!1:s?ks(s,t):!0}function Dt(e){return!!e.changedTouches}function Ps(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function uo(e){const t={},r=(i,a)=>{const l={value:i,parent:a,children:[]};return t[i.node.id]=l,l},s=[];for(const i of e){const{nextId:a,parentId:l}=i;if(a&&a in t){const u=t[a];if(u.parent){const o=u.parent.children.indexOf(u);u.parent.children.splice(o,0,r(i,u.parent))}else{const o=s.indexOf(u);s.splice(o,0,r(i,null))}continue}if(l in t){const u=t[l];u.children.push(r(i,u));continue}s.push(r(i,null))}return s}function Ls(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Ls(e.children[r],t)}function Ye(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Fs(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Us(e,t){var r,s;const i=(s=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:s.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),l=Us(i,t),u=a.height/i.clientHeight;return{x:a.x*l.relativeScale+l.x,y:a.y*l.relativeScale+l.y,relativeScale:u,absoluteScale:l.absoluteScale*u}}function Ie(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!B.shadowRoot(e):!1}function je(e,t){const r=e==null?void 0:e[t[0]];return r?t.length===1?r:je(r.cssRules,t.slice(1)):null}function is(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function co(e){const t=new Set,r=[];for(let s=e.length;s--;){const i=e[s];t.has(i.id)||(r.push(i),t.add(i.id))}return r}class Bs{constructor(){M(this,"id",1),M(this,"styleIDMap",new WeakMap),M(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function $s(e){var t;let r=null;return"getRootNode"in e&&((t=B.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&B.host(B.getRootNode(e))&&(r=B.host(B.getRootNode(e))),r}function ho(e){let t=e,r;for(;r=$s(t);)t=r;return t}function fo(e){const t=B.ownerDocument(e);if(!t)return!1;const r=ho(e);return B.contains(t,r)}function Ws(e){const t=B.ownerDocument(e);return t?B.contains(t,e)||fo(e):!1}const Ql=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:Bs,get _mirror(){return exports.mirror},closestElementOfNode:_s,getBaseDimension:Us,getNestedRule:je,getPositionsAndIndex:is,getRootShadowHost:ho,getShadowHost:$s,getWindowHeight:As,getWindowScroll:Ds,getWindowWidth:Ts,hasShadowRoot:Ie,hookSetter:at,inDom:Ws,isAncestorRemoved:ks,isBlocked:oe,isIgnored:St,isSerialized:lo,isSerializedIframe:Ye,isSerializedStylesheet:Fs,iterateResolveTree:Ls,legacy_isTouchEvent:Dt,get nowTimestamp(){return it},on:ne,polyfill:Ps,queueToResolveTrees:uo,shadowHostInDom:fo,throttle:Je,uniqueTextMutations:co},Symbol.toStringTag,{value:"Module"}));var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(_||{}),A=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(A||{}),q=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(q||{}),ve=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ve||{}),Ce=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ce||{}),Oe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Oe||{}),z=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(z||{}),Se=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Se||{});function cn(e){return"__ln"in e}class Zl{constructor(){M(this,"length",0),M(this,"head",null),M(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let s=0;s<t;s++)r=(r==null?void 0:r.next)||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&cn(t.previousSibling)){const s=t.previousSibling.__ln.next;r.next=s,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(t.nextSibling&&cn(t.nextSibling)&&t.nextSibling.__ln.previous){const s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const hn=(e,t)=>`${e}@${t}`;class Kl{constructor(){M(this,"frozen",!1),M(this,"locked",!1),M(this,"texts",[]),M(this,"attributes",[]),M(this,"attributeMap",new WeakMap),M(this,"removes",[]),M(this,"mapRemoves",[]),M(this,"movedMap",{}),M(this,"addedSet",new Set),M(this,"movedSet",new Set),M(this,"droppedSet",new Set),M(this,"removesSubTreeCache",new Set),M(this,"mutationCb"),M(this,"blockClass"),M(this,"blockSelector"),M(this,"maskTextClass"),M(this,"maskTextSelector"),M(this,"inlineStylesheet"),M(this,"maskInputOptions"),M(this,"maskTextFn"),M(this,"maskInputFn"),M(this,"keepIframeSrcFn"),M(this,"recordCanvas"),M(this,"inlineImages"),M(this,"slimDOMOptions"),M(this,"dataURLOptions"),M(this,"doc"),M(this,"mirror"),M(this,"iframeManager"),M(this,"stylesheetManager"),M(this,"shadowDomManager"),M(this,"canvasManager"),M(this,"processedNodeManager"),M(this,"unattachedDoc"),M(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),M(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,s=new Zl,i=o=>{let c=o,n=st;for(;n===st;)c=c&&c.nextSibling,n=c&&this.mirror.getId(c);return n},a=o=>{const c=B.parentNode(o);if(!c||!Ws(o))return;let n=!1;if(o.nodeType===Node.TEXT_NODE){const m=c.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(c)&&(n=!0)}const d=Ke(c)?this.mirror.getId($s(o)):this.mirror.getId(c),h=i(o);if(d===-1||h===-1)return s.addNode(o);const f=Ve(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Ye(m,this.mirror)&&this.iframeManager.addIframe(m),Fs(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Ie(o)&&this.shadowDomManager.addShadowRoot(B.shadowRoot(o),this.doc)},onIframeLoad:(m,p)=>{this.iframeManager.attachIframe(m,p),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,p)=>{this.stylesheetManager.attachLinkElement(m,p)},cssCaptured:n});f&&(t.push({parentId:d,nextId:h,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)fn(this.removesSubTreeCache,o,this.mirror)&&!this.movedSet.has(B.parentNode(o))||a(o);for(const o of this.addedSet)!dn(this.droppedSet,o)&&!fn(this.removesSubTreeCache,o,this.mirror)||dn(this.movedSet,o)?a(o):this.droppedSet.add(o);let l=null;for(;s.length;){let o=null;if(l){const c=this.mirror.getId(B.parentNode(l.value)),n=i(l.value);c!==-1&&n!==-1&&(o=l)}if(!o){let c=s.tail;for(;c;){const n=c;if(c=c.previous,n){const d=this.mirror.getId(B.parentNode(n.value));if(i(n.value)===-1)continue;if(d!==-1){o=n;break}else{const f=n.value,m=B.parentNode(f);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=B.host(m);if(this.mirror.getId(p)!==-1){o=n;break}}}}}}if(!o){for(;s.head;)s.removeNode(s.head.value);break}l=o.previous,s.removeNode(o.value),a(o.value)}const u={texts:this.texts.map(o=>{const c=o.node,n=B.parentNode(c);return n&&n.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(c),value:o.value}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>{const{attributes:c}=o;if(typeof c.style=="string"){const n=JSON.stringify(o.styleDiff),d=JSON.stringify(o._unchangedStyles);n.length<c.style.length&&(n+d).split("var(").length===c.style.split("var(").length&&(c.style=o.styleDiff)}return{id:this.mirror.getId(o.node),attributes:c}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:t};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),M(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));const s=Array.from(B.childNodes(t),i=>B.textContent(i)||"").join("");r.attributes.value=xt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Rt(t),value:s,maskInputFn:this.maskInputFn})}),M(this,"processMutation",t=>{if(!St(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const r=B.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Pn(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,_s(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let s=t.attributeName,i=t.target.getAttribute(s);if(s==="value"){const l=Rt(r);i=xt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:l,value:i,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)s="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),s==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!kn(r.tagName,s))if(a.attributes[s]=_n(this.doc,Ae(r.tagName),Ae(s),i),s==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(u){this.unattachedDoc=this.doc}const l=this.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const o=r.style.getPropertyValue(u),c=r.style.getPropertyPriority(u);o!==l.style.getPropertyValue(u)||c!==l.style.getPropertyPriority(u)?c===""?a.styleDiff[u]=o:a.styleDiff[u]=[o,c]:a._unchangedStyles[u]=[o,c]}for(const u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(a.styleDiff[u]=!1)}else s==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const s=this.mirror.getId(r),i=Ke(t.target)?this.mirror.getId(B.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||St(r,this.mirror,this.slimDOMOptions)||!lo(r,this.mirror)||(this.addedSet.has(r)?(ns(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&s===-1||ks(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[hn(s,i)]?ns(this.movedSet,r):(this.removes.push({parentId:i,id:s,isShadow:Ke(t.target)&&et(t.target)?!0:void 0}),eu(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),M(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(St(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let s=null;r&&this.mirror.hasNode(r)&&(s=this.mirror.getId(r)),s&&s!==-1&&(this.movedMap[hn(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(B.childNodes(t).forEach(s=>this.genAdds(s)),Ie(t)&&B.childNodes(B.shadowRoot(t)).forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ns(e,t){e.delete(t),B.childNodes(t).forEach(r=>ns(e,r))}function eu(e,t){const r=[e];for(;r.length;){const s=r.pop();t.has(s)||(t.add(s),B.childNodes(s).forEach(i=>r.push(i)))}}function fn(e,t,r){return e.size===0?!1:tu(e,t)}function tu(e,t,r){const s=B.parentNode(t);return s?e.has(s):!1}function dn(e,t){return e.size===0?!1:po(e,t)}function po(e,t){const r=B.parentNode(t);return r?e.has(r)?!0:po(e,r):!1}let rt;function ru(e){rt=e}function su(){rt=void 0}const W=e=>rt?(...r)=>{try{return e(...r)}catch(s){if(rt&&rt(s)===!0)return;throw s}}:e,ke=[];function lt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function mo(e,t){const r=new Kl;ke.push(r),r.init(e);const s=new(ao())(W(r.processMutations.bind(r)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function iu({mousemoveCb:e,sampling:t,doc:r,mirror:s}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let l=[],u;const o=Je(W(d=>{const h=Date.now()-u;e(l.map(f=>(f.timeOffset-=h,f)),d),l=[],u=null}),a),c=W(Je(W(d=>{const h=lt(d),{clientX:f,clientY:m}=Dt(d)?d.changedTouches[0]:d;u||(u=it()),l.push({x:f,y:m,id:s.getId(h),timeOffset:it()-u}),o(typeof DragEvent!="undefined"&&d instanceof DragEvent?A.Drag:d instanceof MouseEvent?A.MouseMove:A.TouchMove)}),i,{trailing:!1})),n=[ne("mousemove",c,r),ne("touchmove",c,r),ne("drag",c,r)];return W(()=>{n.forEach(d=>d())})}function nu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const l=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,u=[];let o=null;const c=n=>d=>{const h=lt(d);if(oe(h,s,i,!0))return;let f=null,m=n;if("pointerType"in d){switch(d.pointerType){case"mouse":f=ve.Mouse;break;case"touch":f=ve.Touch;break;case"pen":f=ve.Pen;break}f===ve.Touch?q[n]===q.MouseDown?m="TouchStart":q[n]===q.MouseUp&&(m="TouchEnd"):ve.Pen}else Dt(d)&&(f=ve.Touch);f!==null?(o=f,(m.startsWith("Touch")&&f===ve.Touch||m.startsWith("Mouse")&&f===ve.Mouse)&&(f=null)):q[n]===q.Click&&(f=o,o=null);const p=Dt(d)?d.changedTouches[0]:d;if(!p)return;const g=r.getId(h),{clientX:w,clientY:b}=p;W(e)(P({type:q[m],id:g,x:w,y:b},f!==null&&{pointerType:f}))};return Object.keys(q).filter(n=>Number.isNaN(Number(n))&&!n.endsWith("_Departed")&&l[n]!==!1).forEach(n=>{let d=Ae(n);const h=c(n);if(window.PointerEvent)switch(q[n]){case q.MouseDown:case q.MouseUp:d=d.replace("mouse","pointer");break;case q.TouchStart:case q.TouchEnd:return}u.push(ne(d,h,t))}),W(()=>{u.forEach(n=>n())})}function go({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,sampling:a}){const l=W(Je(W(u=>{const o=lt(u);if(!o||oe(o,s,i,!0))return;const c=r.getId(o);if(o===t&&t.defaultView){const n=Ds(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100));return ne("scroll",l,t)}function ou({viewportResizeCb:e},{win:t}){let r=-1,s=-1;const i=W(Je(W(()=>{const a=As(),l=Ts();(r!==a||s!==l)&&(e({width:Number(l),height:Number(a)}),r=a,s=l)}),200));return ne("resize",i,t)}const au=["INPUT","TEXTAREA","SELECT"],pn=new WeakMap;function lu({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,ignoreClass:a,ignoreSelector:l,maskInputOptions:u,maskInputFn:o,sampling:c,userTriggeredOnInput:n}){function d(b){let y=lt(b);const C=b.isTrusted,v=y&&y.tagName;if(y&&v==="OPTION"&&(y=B.parentElement(y)),!y||!v||au.indexOf(v)<0||oe(y,s,i,!0)||y.classList.contains(a)||l&&y.matches(l))return;let S=y.value,E=!1;const R=Rt(y)||"";R==="radio"||R==="checkbox"?E=y.checked:(u[v.toLowerCase()]||u[R])&&(S=xt({element:y,maskInputOptions:u,tagName:v,type:R,value:S,maskInputFn:o})),h(y,n?{text:S,isChecked:E,userTriggered:C}:{text:S,isChecked:E});const I=y.name;R==="radio"&&I&&E&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(N=>{if(N!==y){const F=N.value;h(N,n?{text:F,isChecked:!E,userTriggered:!1}:{text:F,isChecked:!E})}})}function h(b,y){const C=pn.get(b);if(!C||C.text!==y.text||C.isChecked!==y.isChecked){pn.set(b,y);const v=r.getId(b);W(e)(se(P({},y),{id:v}))}}const m=(c.input==="last"?["change"]:["input","change"]).map(b=>ne(b,W(d),t)),p=t.defaultView;if(!p)return()=>{m.forEach(b=>b())};const g=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...w.map(b=>at(b[0],b[1],{set(){W(d)({target:this,isTrusted:!1})}},!1,p))),W(()=>{m.forEach(b=>b())})}function At(e){const t=[];function r(s,i){if(yt("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||yt("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||yt("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||yt("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){const l=Array.from(s.parentRule.cssRules).indexOf(s);return i.unshift(l),r(s.parentRule,i)}else if(s.parentStyleSheet){const l=Array.from(s.parentStyleSheet.cssRules).indexOf(s);i.unshift(l)}return i}return r(e,t)}function Ne(e,t,r){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:s}):{}}function uu({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:W((n,d,h)=>{const[f,m]=h,{id:p,styleId:g}=Ne(d,t,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&e({id:p,styleId:g,adds:[{rule:f,index:m}]}),n.apply(d,h)})}),s.CSSStyleSheet.prototype.addRule=function(n,d,h=this.cssRules.length){const f=`${n} { ${d} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[f,h])};const a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:W((n,d,h)=>{const[f]=h,{id:m,styleId:p}=Ne(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,removes:[{index:f}]}),n.apply(d,h)})}),s.CSSStyleSheet.prototype.removeRule=function(n){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[n])};let l;s.CSSStyleSheet.prototype.replace&&(l=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:W((n,d,h)=>{const[f]=h,{id:m,styleId:p}=Ne(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replace:f}),n.apply(d,h)})}));let u;s.CSSStyleSheet.prototype.replaceSync&&(u=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:W((n,d,h)=>{const[f]=h,{id:m,styleId:p}=Ne(d,t,r.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,replaceSync:f}),n.apply(d,h)})}));const o={};wt("CSSGroupingRule")?o.CSSGroupingRule=s.CSSGroupingRule:(wt("CSSMediaRule")&&(o.CSSMediaRule=s.CSSMediaRule),wt("CSSConditionRule")&&(o.CSSConditionRule=s.CSSConditionRule),wt("CSSSupportsRule")&&(o.CSSSupportsRule=s.CSSSupportsRule));const c={};return Object.entries(o).forEach(([n,d])=>{c[n]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[n].insertRule,{apply:W((h,f,m)=>{const[p,g]=m,{id:w,styleId:b}=Ne(f.parentStyleSheet,t,r.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,adds:[{rule:p,index:[...At(f),g||0]}]}),h.apply(f,m)})}),d.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:W((h,f,m)=>{const[p]=m,{id:g,styleId:w}=Ne(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||w&&w!==-1)&&e({id:g,styleId:w,removes:[{index:[...At(f),p]}]}),h.apply(f,m)})})}),W(()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,l&&(s.CSSStyleSheet.prototype.replace=l),u&&(s.CSSStyleSheet.prototype.replaceSync=u),Object.entries(o).forEach(([n,d])=>{d.prototype.insertRule=c[n].insertRule,d.prototype.deleteRule=c[n].deleteRule})})}function yo({mirror:e,stylesheetManager:t},r){var s,i,a;let l=null;r.nodeName==="#document"?l=e.getId(r):l=e.getId(B.host(r));const u=r.nodeName==="#document"?(s=r.defaultView)==null?void 0:s.Document:(a=(i=r.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,o=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return l===null||l===-1||!u||!o?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var c;return(c=o.get)==null?void 0:c.call(this)},set(c){var n;const d=(n=o.set)==null?void 0:n.call(this,c);if(l!==null&&l!==-1)try{t.adoptStyleSheets(c,l)}catch(h){}return d}}),W(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function cu({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:W((u,o,c)=>{var n;const[d,h,f]=c;if(r.has(d))return a.apply(o,[d,h,f]);const{id:m,styleId:p}=Ne((n=o.parentRule)==null?void 0:n.parentStyleSheet,t,s.styleMirror);return(m&&m!==-1||p&&p!==-1)&&e({id:m,styleId:p,set:{property:d,value:h,priority:f},index:At(o.parentRule)}),u.apply(o,c)})});const l=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:W((u,o,c)=>{var n;const[d]=c;if(r.has(d))return l.apply(o,[d]);const{id:h,styleId:f}=Ne((n=o.parentRule)==null?void 0:n.parentStyleSheet,t,s.styleMirror);return(h&&h!==-1||f&&f!==-1)&&e({id:h,styleId:f,remove:{property:d},index:At(o.parentRule)}),u.apply(o,c)})}),W(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=l})}function hu({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:i,doc:a}){const l=W(o=>Je(W(c=>{const n=lt(c);if(!n||oe(n,t,r,!0))return;const{currentTime:d,volume:h,muted:f,playbackRate:m,loop:p}=n;e({type:o,id:s.getId(n),currentTime:d,volume:h,muted:f,playbackRate:m,loop:p})}),i.media||500)),u=[ne("play",l(Oe.Play),a),ne("pause",l(Oe.Pause),a),ne("seeked",l(Oe.Seeked),a),ne("volumechange",l(Oe.VolumeChange),a),ne("ratechange",l(Oe.RateChange),a)];return W(()=>{u.forEach(o=>o())})}function fu({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const s=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(o,c,n){const d=new a(o,c,n);return i.set(d,{family:o,buffer:typeof c!="string",descriptors:n,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};const l=Fe(t.fonts,"add",function(u){return function(o){return setTimeout(W(()=>{const c=i.get(o);c&&(e(c),i.delete(o))}),0),u.apply(this,[o])}});return s.push(()=>{r.FontFace=a}),s.push(l),W(()=>{s.forEach(u=>u())})}function du(e){const{doc:t,mirror:r,blockClass:s,blockSelector:i,selectionCb:a}=e;let l=!0;const u=W(()=>{const o=t.getSelection();if(!o||l&&(o!=null&&o.isCollapsed))return;l=o.isCollapsed||!1;const c=[],n=o.rangeCount||0;for(let d=0;d<n;d++){const h=o.getRangeAt(d),{startContainer:f,startOffset:m,endContainer:p,endOffset:g}=h;oe(f,s,i,!0)||oe(p,s,i,!0)||c.push({start:r.getId(f),startOffset:m,end:r.getId(p),endOffset:g})}a({ranges:c})});return u(),ne("selectionchange",u)}function pu({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:Fe(r.customElements,"define",function(i){return function(a,l,u){try{t({define:{name:a}})}catch(o){console.warn(`Custom element callback failed for ${a}`)}return i.apply(this,[a,l,u])}})}function mu(e,t){const{mutationCb:r,mousemoveCb:s,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:l,inputCb:u,mediaInteractionCb:o,styleSheetRuleCb:c,styleDeclarationCb:n,canvasMutationCb:d,fontCb:h,selectionCb:f,customElementCb:m}=e;e.mutationCb=(...p)=>{t.mutation&&t.mutation(...p),r(...p)},e.mousemoveCb=(...p)=>{t.mousemove&&t.mousemove(...p),s(...p)},e.mouseInteractionCb=(...p)=>{t.mouseInteraction&&t.mouseInteraction(...p),i(...p)},e.scrollCb=(...p)=>{t.scroll&&t.scroll(...p),a(...p)},e.viewportResizeCb=(...p)=>{t.viewportResize&&t.viewportResize(...p),l(...p)},e.inputCb=(...p)=>{t.input&&t.input(...p),u(...p)},e.mediaInteractionCb=(...p)=>{t.mediaInteaction&&t.mediaInteaction(...p),o(...p)},e.styleSheetRuleCb=(...p)=>{t.styleSheetRule&&t.styleSheetRule(...p),c(...p)},e.styleDeclarationCb=(...p)=>{t.styleDeclaration&&t.styleDeclaration(...p),n(...p)},e.canvasMutationCb=(...p)=>{t.canvasMutation&&t.canvasMutation(...p),d(...p)},e.fontCb=(...p)=>{t.font&&t.font(...p),h(...p)},e.selectionCb=(...p)=>{t.selection&&t.selection(...p),f(...p)},e.customElementCb=(...p)=>{t.customElement&&t.customElement(...p),m(...p)}}function gu(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};mu(e,t);let s;e.recordDOM&&(s=mo(e,e.doc));const i=iu(e),a=nu(e),l=go(e),u=ou(e,{win:r}),o=lu(e),c=hu(e);let n=()=>{},d=()=>{},h=()=>{},f=()=>{};e.recordDOM&&(n=uu(e,{win:r}),d=yo(e,e.doc),h=cu(e,{win:r}),e.collectFonts&&(f=fu(e)));const m=du(e),p=pu(e),g=[];for(const w of e.plugins)g.push(w.observer(w.callback,r,w.options));return W(()=>{ke.forEach(w=>w.reset()),s==null||s.disconnect(),i(),a(),l(),u(),o(),c(),n(),d(),h(),f(),m(),p(),g.forEach(w=>w())})}function yt(e){return typeof window[e]!="undefined"}function wt(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class mn{constructor(t){M(this,"iframeIdToRemoteIdMap",new WeakMap),M(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,s,i){const a=s||this.getIdToRemoteIdMap(t),l=i||this.getRemoteIdToIdMap(t);let u=a.get(r);return u||(u=this.generateIdFn(),a.set(r,u),l.set(u,r)),u}getIds(t,r){const s=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,s,i))}getRemoteId(t,r,s){const i=s||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const a=i.get(r);return a||-1}getRemoteIds(t,r){const s=this.getRemoteIdToIdMap(t);return r.map(i=>this.getRemoteId(t,i,s))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class yu{constructor(t){M(this,"iframes",new WeakMap),M(this,"crossOriginIframeMap",new WeakMap),M(this,"crossOriginIframeMirror",new mn(Tn)),M(this,"crossOriginIframeStyleMirror"),M(this,"crossOriginIframeRootIdMap",new WeakMap),M(this,"mirror"),M(this,"mutationCb"),M(this,"wrappedEmit"),M(this,"loadListener"),M(this,"stylesheetManager"),M(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new mn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var s,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var s;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const i=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(r.data.node,i),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:A.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case A.Mutation:return r.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(i.node,a)}),r.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),r.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),r.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),r;case A.Drag:case A.TouchMove:case A.MouseMove:return r.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),r;case A.ViewportResize:return!1;case A.MediaInteraction:case A.MouseInteraction:case A.Scroll:case A.CanvasMutation:case A.Input:return this.replaceIds(r.data,t,["id"]),r;case A.StyleSheetRule:case A.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case A.Font:return r;case A.Selection:return r.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),r;case A.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),r}}return!1}replace(t,r,s,i){for(const a of i)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(s,r[a]):r[a]=t.getId(s,r[a]));return r}replaceIds(t,r,s){return this.replace(this.crossOriginIframeMirror,t,r,s)}replaceStyleIds(t,r,s){return this.replace(this.crossOriginIframeStyleMirror,t,r,s)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,r)})}patchRootIdOnNode(t,r){t.type!==Se.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,r)})}}class wu{constructor(t){M(this,"shadowDoms",new WeakSet),M(this,"mutationCb"),M(this,"scrollCb"),M(this,"bypassOptions"),M(this,"mirror"),M(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!et(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const s=mo(se(P({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(go(se(P({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(B.host(t))),this.restoreHandlers.push(yo({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const s=this;this.restoreHandlers.push(Fe(t.prototype,"attachShadow",function(i){return function(a){const l=i.call(this,a),u=B.shadowRoot(this);return u&&Ws(this)&&s.addShadowRoot(u,r),l}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var bt=0;bt<Ge.length;bt++)Ze[Ge.charCodeAt(bt)]=bt;var bu=function(e){var t=new Uint8Array(e),r,s=t.length,i="";for(r=0;r<s;r+=3)i+=Ge[t[r]>>2],i+=Ge[(t[r]&3)<<4|t[r+1]>>4],i+=Ge[(t[r+1]&15)<<2|t[r+2]>>6],i+=Ge[t[r+2]&63];return s%3===2?i=i.substring(0,i.length-1)+"=":s%3===1&&(i=i.substring(0,i.length-2)+"=="),i},vu=function(e){var t=e.length*.75,r=e.length,s,i=0,a,l,u,o;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),n=new Uint8Array(c);for(s=0;s<r;s+=4)a=Ze[e.charCodeAt(s)],l=Ze[e.charCodeAt(s+1)],u=Ze[e.charCodeAt(s+2)],o=Ze[e.charCodeAt(s+3)],n[i++]=a<<2|l>>4,n[i++]=(l&15)<<4|u>>2,n[i++]=(u&3)<<6|o&63;return c};const gn=new Map;function Su(e,t){let r=gn.get(e);return r||(r=new Map,gn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const wo=(e,t,r)=>{if(!e||!(vo(e,t)||typeof e=="object"))return;const s=e.constructor.name,i=Su(r,s);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function Ct(e,t,r){if(e instanceof Array)return e.map(s=>Ct(s,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const s=e.constructor.name,i=bu(e);return{rr_type:s,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ct(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const s=e.constructor.name,{src:i}=e;return{rr_type:s,src:i}}else if(e instanceof HTMLCanvasElement){const s="HTMLImageElement",i=e.toDataURL();return{rr_type:s,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ct(e.data,t,r),e.width,e.height]};if(vo(e,t)||typeof e=="object"){const s=e.constructor.name,i=wo(e,t,r);return{rr_type:s,index:i}}}}return e}const bo=(e,t,r)=>e.map(s=>Ct(s,t,r)),vo=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Cu(e,t,r,s){const i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const l of a)try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")continue;const u=Fe(t.CanvasRenderingContext2D.prototype,l,function(o){return function(...c){return oe(this.canvas,r,s,!0)||setTimeout(()=>{const n=bo(c,t,this);e(this.canvas,{type:Ce["2D"],property:l,args:n})},0),o.apply(this,c)}});i.push(u)}catch(u){const o=at(t.CanvasRenderingContext2D.prototype,l,{set(c){e(this.canvas,{type:Ce["2D"],property:l,args:[c],setter:!0})}});i.push(o)}return()=>{i.forEach(l=>l())}}function Eu(e){return e==="experimental-webgl"?"webgl":e}function yn(e,t,r,s){const i=[];try{const a=Fe(e.HTMLCanvasElement.prototype,"getContext",function(l){return function(u,...o){if(!oe(this,t,r,!0)){const c=Eu(u);if("__context"in this||(this.__context=c),s&&["webgl","webgl2"].includes(c))if(o[0]&&typeof o[0]=="object"){const n=o[0];n.preserveDrawingBuffer||(n.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return l.apply(this,[u,...o])}});i.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}function wn(e,t,r,s,i,a){const l=[],u=Object.getOwnPropertyNames(e);for(const o of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if(typeof e[o]!="function")continue;const c=Fe(e,o,function(n){return function(...d){const h=n.apply(this,d);if(wo(h,a,this),"tagName"in this.canvas&&!oe(this.canvas,s,i,!0)){const f=bo(d,a,this),m={type:t,property:o,args:f};r(this.canvas,m)}return h}});l.push(c)}catch(c){const n=at(e,o,{set(d){r(this.canvas,{type:t,property:o,args:[d],setter:!0})}});l.push(n)}return l}function xu(e,t,r,s){const i=[];return typeof t.WebGLRenderingContext!="undefined"&&i.push(...wn(t.WebGLRenderingContext.prototype,Ce.WebGL,e,r,s,t)),typeof t.WebGL2RenderingContext!="undefined"&&i.push(...wn(t.WebGL2RenderingContext.prototype,Ce.WebGL2,e,r,s,t)),()=>{i.forEach(a=>a())}}const So=`(function() {
68
+ "use strict";
69
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
70
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
71
+ for (var i = 0; i < chars.length; i++) {
72
+ lookup[chars.charCodeAt(i)] = i;
73
+ }
74
+ var encode = function(arraybuffer) {
75
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
76
+ for (i2 = 0; i2 < len; i2 += 3) {
77
+ base64 += chars[bytes[i2] >> 2];
78
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
79
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
80
+ base64 += chars[bytes[i2 + 2] & 63];
81
+ }
82
+ if (len % 3 === 2) {
83
+ base64 = base64.substring(0, base64.length - 1) + "=";
84
+ } else if (len % 3 === 1) {
85
+ base64 = base64.substring(0, base64.length - 2) + "==";
86
+ }
87
+ return base64;
88
+ };
89
+ const lastBlobMap = /* @__PURE__ */ new Map();
90
+ const transparentBlobMap = /* @__PURE__ */ new Map();
91
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
92
+ const id = \`\${width}-\${height}\`;
93
+ if ("OffscreenCanvas" in globalThis) {
94
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
95
+ const offscreen = new OffscreenCanvas(width, height);
96
+ offscreen.getContext("2d");
97
+ const blob = await offscreen.convertToBlob(dataURLOptions);
98
+ const arrayBuffer = await blob.arrayBuffer();
99
+ const base64 = encode(arrayBuffer);
100
+ transparentBlobMap.set(id, base64);
101
+ return base64;
102
+ } else {
103
+ return "";
104
+ }
105
+ }
106
+ const worker = self;
107
+ worker.onmessage = async function(e) {
108
+ if ("OffscreenCanvas" in globalThis) {
109
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
110
+ const transparentBase64 = getTransparentBlobFor(
111
+ width,
112
+ height,
113
+ dataURLOptions
114
+ );
115
+ const offscreen = new OffscreenCanvas(width, height);
116
+ const ctx = offscreen.getContext("2d");
117
+ ctx.drawImage(bitmap, 0, 0);
118
+ bitmap.close();
119
+ const blob = await offscreen.convertToBlob(dataURLOptions);
120
+ const type = blob.type;
121
+ const arrayBuffer = await blob.arrayBuffer();
122
+ const base64 = encode(arrayBuffer);
123
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
124
+ lastBlobMap.set(id, base64);
125
+ return worker.postMessage({ id });
126
+ }
127
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
128
+ worker.postMessage({
129
+ id,
130
+ type,
131
+ base64,
132
+ width,
133
+ height
134
+ });
135
+ lastBlobMap.set(id, base64);
136
+ } else {
137
+ return worker.postMessage({ id: e.data.id });
138
+ }
139
+ };
140
+ })();
141
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
142
+ `,bn=typeof self!="undefined"&&self.Blob&&new Blob([So],{type:"text/javascript;charset=utf-8"});function Ru(e){let t;try{if(t=bn&&(self.URL||self.webkitURL).createObjectURL(bn),!t)throw"";const r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(So),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Mu{constructor(t){M(this,"pendingCanvasMutations",new Map),M(this,"rafStamps",{latestId:0,invokeId:null}),M(this,"mirror"),M(this,"mutationCb"),M(this,"resetObservers"),M(this,"frozen",!1),M(this,"locked",!1),M(this,"processMutation",(o,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(c)});const{sampling:r="all",win:s,blockClass:i,blockSelector:a,recordCanvas:l,dataURLOptions:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,l&&r==="all"&&this.initCanvasMutationObserver(s,i,a),l&&typeof r=="number"&&this.initCanvasFPSObserver(r,s,i,a,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,s,i,a){const l=yn(r,s,i,!0),u=new Map,o=new Ru;o.onmessage=m=>{const{id:p}=m.data;if(u.set(p,!1),!("base64"in m.data))return;const{base64:g,type:w,width:b,height:y}=m.data;this.mutationCb({id:p,type:Ce["2D"],commands:[{property:"clearRect",args:[0,0,b,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:w}]},0,0]}]})};const c=1e3/t;let n=0,d;const h=()=>{const m=[];return r.document.querySelectorAll("canvas").forEach(p=>{oe(p,s,i,!0)||m.push(p)}),m},f=m=>{if(n&&m-n<c){d=requestAnimationFrame(f);return}n=m,h().forEach(async p=>{var g;const w=this.mirror.getId(p);if(u.get(w)||p.width===0||p.height===0)return;if(u.set(w,!0),["webgl","webgl2"].includes(p.__context)){const y=p.getContext(p.__context);((g=y==null?void 0:y.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}const b=await createImageBitmap(p);o.postMessage({id:w,bitmap:b,width:p.width,height:p.height,dataURLOptions:a.dataURLOptions},[b])}),d=requestAnimationFrame(f)};d=requestAnimationFrame(f),this.resetObservers=()=>{l(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=yn(t,r,s,!1),a=Cu(this.processMutation.bind(this),t,r,s),l=xu(this.processMutation.bind(this),t,r,s);this.resetObservers=()=>{i(),a(),l()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const s=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,s)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const s=this.pendingCanvasMutations.get(t);if(!s||r===-1)return;const i=s.map(l=>{const c=l,{type:u}=c;return Ue(c,["type"])}),{type:a}=s[0];this.mutationCb({id:r,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}class Nu{constructor(t){M(this,"trackedLinkElements",new WeakSet),M(this,"mutationCb"),M(this,"adoptedStyleSheetCb"),M(this,"styleMirror",new Bs),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const s={id:r,styleIds:[]},i=[];for(const a of t){let l;this.styleMirror.has(a)?l=this.styleMirror.getId(a):(l=this.styleMirror.add(a),i.push({styleId:l,rules:Array.from(a.rules||CSSRule,(u,o)=>({rule:Dn(u,a.href),index:o}))})),s.styleIds.push(l)}i.length>0&&(s.styles=i),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ou{constructor(){M(this,"nodeMap",new WeakMap),M(this,"active",!1)}inOtherBuffer(t,r){const s=this.nodeMap.get(t);return s&&Array.from(s).some(i=>i!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let ee,Et,Zr,Tt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((js=e.contentWindow)==null?void 0:js.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const pe=An();function Te(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskTextClass:o="rr-mask",maskTextSelector:c=null,inlineStylesheet:n=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskInputFn:m,maskTextFn:p,hooks:g,packFn:w,sampling:b={},dataURLOptions:y={},mousemoveWait:C,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:E=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:N=!1,inlineImages:F=!1,plugins:T,keepIframeSrcFn:x=()=>!1,ignoreCSSAttributes:ue=new Set([]),errorHandler:ae}=e;ru(ae);const V=E?window.parent===window:!0;let k=!1;if(!V)try{window.parent.document&&(k=!1)}catch(L){k=!0}if(V&&!t)throw new Error("emit function is required");if(!V&&!k)return()=>{};C!==void 0&&b.mousemove===void 0&&(b.mousemove=C),pe.reset();const J=d===!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}:h!==void 0?h:{password:!0},te=Ln(f);Ps();let Z,j=0;const Re=L=>{for(const re of T||[])re.eventProcessor&&(L=re.eventProcessor(L));return w&&!k&&(L=w(L)),L};ee=(L,re)=>{var G;const K=L;if(K.timestamp=it(),(G=ke[0])!=null&&G.isFrozen()&&K.type!==_.FullSnapshot&&!(K.type===_.IncrementalSnapshot&&K.data.source===A.Mutation)&&ke.forEach(ce=>ce.unfreeze()),V)t==null||t(Re(K),re);else if(k){const ce={type:"rrweb",event:Re(K),origin:window.location.origin,isCheckout:re};window.parent.postMessage(ce,"*")}if(K.type===_.FullSnapshot)Z=K,j=0;else if(K.type===_.IncrementalSnapshot){if(K.data.source===A.Mutation&&K.data.isAttachIframe)return;j++;const ce=s&&j>=s,H=r&&K.timestamp-Z.timestamp>r;(ce||H)&&Et(!0)}};const O=L=>{ee({type:_.IncrementalSnapshot,data:P({source:A.Mutation},L)})},we=L=>ee({type:_.IncrementalSnapshot,data:P({source:A.Scroll},L)}),fe=L=>ee({type:_.IncrementalSnapshot,data:P({source:A.CanvasMutation},L)}),Qe=L=>ee({type:_.IncrementalSnapshot,data:P({source:A.AdoptedStyleSheet},L)}),le=new Nu({mutationCb:O,adoptedStyleSheetCb:Qe}),de=new yu({mirror:pe,mutationCb:O,stylesheetManager:le,recordCrossOriginIframes:E,wrappedEmit:ee});for(const L of T||[])L.getMirror&&L.getMirror({nodeMirror:pe,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror});const _e=new Ou;Zr=new Mu({recordCanvas:S,mutationCb:fe,win:window,blockClass:i,blockSelector:a,mirror:pe,sampling:b.canvas,dataURLOptions:y});const Me=new wu({mutationCb:O,scrollCb:we,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:c,inlineStylesheet:n,maskInputOptions:J,dataURLOptions:y,maskTextFn:p,maskInputFn:m,recordCanvas:S,inlineImages:F,sampling:b,slimDOMOptions:te,iframeManager:de,stylesheetManager:le,canvasManager:Zr,keepIframeSrcFn:x,processedNodeManager:_e},mirror:pe});Et=(L=!1)=>{if(!v)return;ee({type:_.Meta,data:{href:window.location.href,width:Ts(),height:As()}},L),le.reset(),Me.init(),ke.forEach(G=>G.lock());const re=xa(document,{mirror:pe,blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:c,inlineStylesheet:n,maskAllInputs:J,maskTextFn:p,maskInputFn:m,slimDOM:te,dataURLOptions:y,recordCanvas:S,inlineImages:F,onSerialize:G=>{Ye(G,pe)&&de.addIframe(G),Fs(G,pe)&&le.trackLinkElement(G),Ie(G)&&Me.addShadowRoot(B.shadowRoot(G),document)},onIframeLoad:(G,K)=>{de.attachIframe(G,K),Me.observeAttachShadow(G)},onStylesheetLoad:(G,K)=>{le.attachLinkElement(G,K)},keepIframeSrcFn:x});if(!re)return console.warn("Failed to snapshot the document");ee({type:_.FullSnapshot,data:{node:re,initialOffset:Ds(window)}},L),ke.forEach(G=>G.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,pe.getId(document))};try{const L=[],re=K=>{var ce;return W(gu)({mutationCb:O,mousemoveCb:(H,Ht)=>ee({type:_.IncrementalSnapshot,data:{source:Ht,positions:H}}),mouseInteractionCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.MouseInteraction},H)}),scrollCb:we,viewportResizeCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.ViewportResize},H)}),inputCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.Input},H)}),mediaInteractionCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.MediaInteraction},H)}),styleSheetRuleCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.StyleSheetRule},H)}),styleDeclarationCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.StyleDeclaration},H)}),canvasMutationCb:fe,fontCb:H=>ee({type:_.IncrementalSnapshot,data:P({source:A.Font},H)}),selectionCb:H=>{ee({type:_.IncrementalSnapshot,data:P({source:A.Selection},H)})},customElementCb:H=>{ee({type:_.IncrementalSnapshot,data:P({source:A.CustomElement},H)})},blockClass:i,ignoreClass:l,ignoreSelector:u,maskTextClass:o,maskTextSelector:c,maskInputOptions:J,inlineStylesheet:n,sampling:b,recordDOM:v,recordCanvas:S,inlineImages:F,userTriggeredOnInput:I,collectFonts:N,doc:K,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:x,blockSelector:a,slimDOMOptions:te,dataURLOptions:y,mirror:pe,iframeManager:de,stylesheetManager:le,shadowDomManager:Me,processedNodeManager:_e,canvasManager:Zr,ignoreCSSAttributes:ue,plugins:((ce=T==null?void 0:T.filter(H=>H.observer))==null?void 0:ce.map(H=>({observer:H.observer,options:H.options,callback:Ht=>ee({type:_.Plugin,data:{plugin:H.name,payload:Ht}})})))||[]},g)};de.addLoadListener(K=>{try{L.push(re(K.contentDocument))}catch(ce){console.warn(ce)}});const G=()=>{Et(),L.push(re(document)),Tt=!0};return["interactive","complete"].includes(document.readyState)?G():(L.push(ne("DOMContentLoaded",()=>{ee({type:_.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&G()})),L.push(ne("load",()=>{ee({type:_.Load,data:{}}),R==="load"&&G()},window))),()=>{L.forEach(K=>{try{K()}catch(ce){String(ce).toLowerCase().includes("cross-origin")||console.warn(ce)}}),_e.destroy(),Tt=!1,su()}}catch(L){console.warn(L)}}Te.addCustomEvent=(e,t)=>{if(!Tt)throw new Error("please add custom event after start recording");ee({type:_.Custom,data:{tag:e,payload:t}})};Te.freezePage=()=>{ke.forEach(e=>e.freeze())};Te.takeFullSnapshot=e=>{if(!Tt)throw new Error("please take full snapshot after start recording");Et(e)};Te.mirror=pe;function Iu(e){return{all:e=e||new Map,on:function(t,r){var s=e.get(t);s?s.push(r):e.set(t,[r])},off:function(t,r){var s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var s=e.get(t);s&&s.slice().map(function(i){i(r)}),(s=e.get("*"))&&s.slice().map(function(i){i(t,r)})}}}function Du(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,s=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||o,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(w){const b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(w)}const u=l(e.navigator.userAgent)?1:0;function o(w,b){this.scrollLeft=w,this.scrollTop=b}function c(w){return .5*(1-Math.cos(Math.PI*w))}function n(w){if(w===null||typeof w!="object"||w.behavior===void 0||w.behavior==="auto"||w.behavior==="instant")return!0;if(typeof w=="object"&&w.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+w.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(w,b){if(b==="Y")return w.clientHeight+u<w.scrollHeight;if(b==="X")return w.clientWidth+u<w.scrollWidth}function h(w,b){const y=e.getComputedStyle(w,null)["overflow"+b];return y==="auto"||y==="scroll"}function f(w){const b=d(w,"Y")&&h(w,"Y"),y=d(w,"X")&&h(w,"X");return b||y}function m(w){for(;w!==t.body&&f(w)===!1;)w=w.parentNode||w.host;return w}function p(w){const b=a();let y,C,v,S=(b-w.startTime)/s;S=S>1?1:S,y=c(S),C=w.startX+(w.x-w.startX)*y,v=w.startY+(w.y-w.startY)*y,w.method.call(w.scrollable,C,v),(C!==w.x||v!==w.y)&&e.requestAnimationFrame(p.bind(e,w))}function g(w,b,y){let C,v,S,E;const R=a();w===t.body?(C=e,v=e.scrollX||e.pageXOffset,S=e.scrollY||e.pageYOffset,E=i.scroll):(C=w,v=w.scrollLeft,S=w.scrollTop,E=o),p({scrollable:C,method:E,startTime:R,startX:v,startY:S,x:b,y})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const w=arguments[0].left,b=arguments[0].top;g.call(this,this,typeof w=="undefined"?this.scrollLeft:~~w,typeof b=="undefined"?this.scrollTop:~~b)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const w=m(this),b=w.getBoundingClientRect(),y=this.getBoundingClientRect();w!==t.body?(g.call(this,w,w.scrollLeft+y.left-b.left,w.scrollTop+y.top-b.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})}}class Au{constructor(t=[],r){M(this,"timeOffset",0),M(this,"speed"),M(this,"actions"),M(this,"raf",null),M(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const s=this.findActionIndex(t);this.actions.splice(s,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,s=this.actions.length-1;for(;r<=s;){const i=Math.floor((r+s)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)s=i-1;else return i+1}return r}}function vn(e,t){if(e.type===_.IncrementalSnapshot&&e.data.source===A.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,s=e.timestamp+r;return e.delay=s-t,s-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
143
+ Copyright (c) Microsoft Corporation.
144
+
145
+ Permission to use, copy, modify, and/or distribute this software for any
146
+ purpose with or without fee is hereby granted.
147
+
148
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
149
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
150
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
151
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
152
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
153
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
154
+ PERFORMANCE OF THIS SOFTWARE.
155
+ ***************************************************************************** */function Sn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s,i,a=r.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return l}var He;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(He||(He={}));var Co={type:"xstate.init"};function Kr(e){return e===void 0?[]:[].concat(e)}function ze(e){return{type:"xstate.assign",assignment:e}}function Cn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function _t(e){return function(t){return e===t}}function Eo(e){return typeof e=="string"?{type:e}:e}function En(e,t){return{value:e,context:t,actions:[],changed:!1,matches:_t(e)}}function xn(e,t,r){var s=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var l=Object.assign({},s);return typeof a.assignment=="function"?l=a.assignment(s,r):Object.keys(a.assignment).forEach(function(u){l[u]=typeof a.assignment[u]=="function"?a.assignment[u](s,r):a.assignment[u]}),s=l,!1}return!0}),s,i]}function xo(e,t){t===void 0&&(t={});var r=Sn(xn(Kr(e.states[e.initial].entry).map(function(l){return Cn(l,t.actions)}),e.context,Co),2),s=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:s,context:i,matches:_t(e.initial)},transition:function(l,u){var o,c,n=typeof l=="string"?{value:l,context:e.context}:l,d=n.value,h=n.context,f=Eo(u),m=e.states[d];if(m.on){var p=Kr(m.on[f.type]);try{for(var g=function(k){var J=typeof Symbol=="function"&&Symbol.iterator,te=J&&k[J],Z=0;if(te)return te.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&Z>=k.length&&(k=void 0),{value:k&&k[Z++],done:!k}}};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),w=g.next();!w.done;w=g.next()){var b=w.value;if(b===void 0)return En(d,h);var y=typeof b=="string"?{target:b}:b,C=y.target,v=y.actions,S=v===void 0?[]:v,E=y.cond,R=E===void 0?function(){return!0}:E,I=C===void 0,N=C!=null?C:d,F=e.states[N];if(R(h,f)){var T=Sn(xn((I?Kr(S):[].concat(m.exit,S,F.entry).filter(function(k){return k})).map(function(k){return Cn(k,a._options.actions)}),h,f),3),x=T[0],ue=T[1],ae=T[2],V=C!=null?C:d;return{value:V,context:ue,actions:x,changed:C!==d||x.length>0||ae,matches:_t(V)}}}}catch(k){o={error:k}}finally{try{w&&!w.done&&(c=g.return)&&c.call(g)}finally{if(o)throw o.error}}}return En(d,h)}};return a}var Rn=function(e,t){return e.actions.forEach(function(r){var s=r.exec;return s&&s(e.context,t)})};function Ro(e){var t=e.initialState,r=He.NotStarted,s=new Set,i={_machine:e,send:function(a){r===He.Running&&(t=e.transition(t,a),Rn(t,Eo(a)),s.forEach(function(l){return l(t)}))},subscribe:function(a){return s.add(a),a(t),{unsubscribe:function(){return s.delete(a)}}},start:function(a){if(a){var l=typeof a=="object"?a:{context:e.config.context,value:a};t={value:l.value,actions:[],context:l.context,matches:_t(l.value)}}return r=He.Running,Rn(t,Co),i},stop:function(){return r=He.Stopped,s.clear(),i},get state(){return t},get status(){return r}};return i}function Tu(e,t){for(let r=e.length-1;r>=0;r--){const s=e[r];if(s.type===_.Meta&&s.timestamp<=t)return e.slice(r)}return e}function _u(e,{getCastFn:t,applyEventsSynchronously:r,emitter:s}){const i=xo({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:ze({lastPlayedEvent:(a,l)=>l.type==="CAST_EVENT"?l.payload.event:a.lastPlayedEvent}),recordTimeOffset:ze((a,l)=>{let u=a.timeOffset;return"payload"in l&&"timeOffset"in l.payload&&(u=l.payload.timeOffset),se(P({},a),{timeOffset:u,baselineTime:a.events[0].timestamp+u})}),play(a){var l;const{timer:u,events:o,baselineTime:c,lastPlayedEvent:n}=a;u.clear();for(const m of o)vn(m,c);const d=Tu(o,c);let h=n==null?void 0:n.timestamp;(n==null?void 0:n.type)===_.IncrementalSnapshot&&n.data.source===A.MouseMove&&(h=n.timestamp+((l=n.data.positions[0])==null?void 0:l.timeOffset)),c<(h||0)&&s.emit(z.PlayBack);const f=new Array;for(const m of d)if(!(h&&h<c&&(m.timestamp<=h||m===n)))if(m.timestamp<c)f.push(m);else{const p=t(m,!1);u.addAction({doAction:()=>{p()},delay:m.delay})}r(f),s.emit(z.Flush),u.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:ze(a=>se(P({},a),{lastPlayedEvent:null})),startLive:ze({baselineTime:(a,l)=>(a.timer.start(),l.type==="TO_LIVE"&&l.payload.baselineTime?l.payload.baselineTime:Date.now())}),addEvent:ze((a,l)=>{const{baselineTime:u,timer:o,events:c}=a;if(l.type==="ADD_EVENT"){const{event:n}=l.payload;vn(n,u);let d=c.length-1;if(!c[d]||c[d].timestamp<=n.timestamp)c.push(n);else{let m=-1,p=0;for(;p<=d;){const g=Math.floor((p+d)/2);c[g].timestamp<=n.timestamp?p=g+1:d=g-1}m===-1&&(m=p),c.splice(m,0,n)}const h=n.timestamp<u,f=t(n,h);h?f():o.isActive()&&o.addAction({doAction:()=>{f()},delay:n.delay})}return se(P({},a),{events:c})})}});return Ro(i)}function ku(e){const t=xo({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,s)=>{"payload"in s&&r.timer.setSpeed(s.payload.speed)},recordSpeed:ze({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Ro(t)}const Pu=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Mn=new Map;function Mo(e,t){let r=Mn.get(e);return r||(r=new Map,Mn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function De(e,t,r){return async s=>{if(s&&typeof s=="object"&&"rr_type"in s)if(r&&(r.isUnchanged=!1),s.rr_type==="ImageBitmap"&&"args"in s){const i=await De(e,t,r)(s.args);return await createImageBitmap.apply(null,i)}else if("index"in s){if(r||t===null)return s;const{rr_type:i,index:a}=s;return Mo(t,i)[a]}else if("args"in s){const{rr_type:i,args:a}=s,l=window[i];return new l(...await Promise.all(a.map(De(e,t,r))))}else{if("base64"in s)return vu(s.base64);if("src"in s){const i=e.get(s.src);if(i)return i;{const a=new Image;return a.src=s.src,e.set(s.src,a),a}}else if("data"in s&&s.rr_type==="Blob"){const i=await Promise.all(s.data.map(De(e,t,r)));return new Blob(i,{type:s.type})}}else if(Array.isArray(s))return await Promise.all(s.map(De(e,t,r)));return s}}function Lu(e,t){try{return t===Ce.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Fu=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Uu(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Fu.includes(r))return;const s=Mo(e,r);s.includes(t)||s.push(t)}async function Bu({mutation:e,target:t,type:r,imageMap:s,errorHandler:i}){try{const a=Lu(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const l=a[e.property],u=await Promise.all(e.args.map(De(s,a))),o=l.apply(a,u);Uu(a,o);const c=!1}catch(a){i(e,a)}}async function $u({event:e,mutations:t,target:r,imageMap:s,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const l=t.map(async o=>Promise.all(o.args.map(De(s,a))));(await Promise.all(l)).forEach((o,c)=>{const n=t[c];try{if(n.setter){a[n.property]=n.args[0];return}const d=a[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(s.get(e),d.apply(a,n.args)):d.apply(a,o)}catch(d){i(n,d)}})}async function os({event:e,mutation:t,target:r,imageMap:s,canvasEventMap:i,errorHandler:a}){try{const l=i.get(e)||t,u="commands"in l?l.commands:[l];if([Ce.WebGL,Ce.WebGL2].includes(t.type)){for(let o=0;o<u.length;o++){const c=u[o];await Bu({mutation:c,type:t.type,target:r,imageMap:s,errorHandler:a})}return}await $u({event:e,mutations:u,target:r,imageMap:s,errorHandler:a})}catch(l){a(t,l)}}class Wu{constructor(t){M(this,"mediaMap",new Map),M(this,"warn"),M(this,"service"),M(this,"speedService"),M(this,"emitter"),M(this,"getCurrentTime"),M(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(z.Start,this.start.bind(this)),this.emitter.on(z.SkipStart,this.start.bind(this)),this.emitter.on(z.Pause,this.pause.bind(this)),this.emitter.on(z.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,s)=>{this.syncTargetWithState(s),t.pause&&s.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:s}){if(s.isPlaying){const a=(t-s.lastInteractionTimeOffset)/1e3*s.playbackRate,l="duration"in r&&r.duration;if(Number.isNaN(l)){this.waitForMetadata(r);return}let u=s.currentTimeAtLastInteraction+a;r.loop&&l!==!1&&(u=u%l),r.currentTime=u}else r.pause(),r.currentTime=s.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const s=this.mediaMap.get(t);s&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:s})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:s}){var f,m,p,g,w;const i=this.mediaMap.get(t),{type:a,playbackRate:l,currentTime:u,muted:o,volume:c,loop:n}=s;return{isPlaying:a===Oe.Play||a!==Oe.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(f=u!=null?u:i==null?void 0:i.currentTimeAtLastInteraction)!=null?f:0,lastInteractionTimeOffset:r,playbackRate:(m=l!=null?l:i==null?void 0:i.playbackRate)!=null?m:1,volume:(p=c!=null?c:i==null?void 0:i.volume)!=null?p:1,muted:(g=o!=null?o:i==null?void 0:i.muted)!=null?g:t.getAttribute("muted")===null,loop:(w=n!=null?n:i==null?void 0:i.loop)!=null?w:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:s,loop:i,volume:a,isPlaying:l}=r,u=this.service.state.matches("paused"),o=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=s,t.loop=i,t.playbackRate!==o&&(t.playbackRate=o),l&&!u?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}addMediaElements(t,r,s){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const i=t,a=s.getMeta(i);if(!a||!("attributes"in a))return;const l=this.service.state.matches("paused"),u=a.attributes;let o=!1;u.rr_mediaState?o=u.rr_mediaState==="played":o=i.getAttribute("autoplay")!==null,o&&l&&i.pause();let c=1;typeof u.rr_mediaPlaybackRate=="number"&&(c=u.rr_mediaPlaybackRate);let n=!1;typeof u.rr_mediaMuted=="boolean"?n=u.rr_mediaMuted:n=i.getAttribute("muted")!==null;let d=!1;typeof u.rr_mediaLoop=="boolean"?d=u.rr_mediaLoop:d=i.getAttribute("loop")!==null;let h=1;typeof u.rr_mediaVolume=="number"&&(h=u.rr_mediaVolume);let f=0;typeof u.rr_mediaCurrentTime=="number"&&(f=u.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:o,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:c,volume:h,muted:n,loop:d}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:s}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:s})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function vt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e,s=r.open,i=s&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),l=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=a==="modal";if(!(s&&!(i&&a==="non-modal"||!i&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}s&&r.close(),l&&(u?r.showModal():r.show())}}function zu(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const qu=5*1e3,Vu=Iu,Nn="[replayer]",es={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function On(e){return e.type==_.IncrementalSnapshot&&(e.data.source==A.TouchMove||e.data.source==A.MouseInteraction&&e.data.type==q.TouchStart)}class ju{constructor(t,r){if(M(this,"wrapper"),M(this,"iframe"),M(this,"service"),M(this,"speedService"),M(this,"config"),M(this,"usingVirtualDom",!1),M(this,"virtualDom",new Xe),M(this,"mouse"),M(this,"mouseTail",null),M(this,"tailPositions",[]),M(this,"emitter",Vu()),M(this,"nextUserInteractionEvent"),M(this,"legacy_missingNodeRetryMap",{}),M(this,"cache",Ii()),M(this,"imageMap",new Map),M(this,"canvasEventMap",new Map),M(this,"mirror",An()),M(this,"styleMirror",new Bs),M(this,"mediaManager"),M(this,"firstFullSnapshot",null),M(this,"newDocumentQueue",[]),M(this,"mousePos",null),M(this,"touchActive",null),M(this,"lastMouseDownEvent",null),M(this,"lastHoveredRootNode"),M(this,"lastSelectionData",null),M(this,"constructedStyleMutations",[]),M(this,"adoptedStyleSheets",[]),M(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const o of[this.mouseTail,this.iframe])o&&(o.setAttribute("width",String(u.width)),o.setAttribute("height",String(u.height)))}),M(this,"applyEventsSynchronously",u=>{for(const o of u){switch(o.type){case _.DomContentLoaded:case _.Load:case _.Custom:continue;case _.FullSnapshot:case _.Meta:case _.Plugin:case _.IncrementalSnapshot:break}this.getCastFn(o,!0)()}}),M(this,"getCastFn",(u,o=!1)=>{let c;switch(u.type){case _.DomContentLoaded:case _.Load:break;case _.Custom:c=()=>{this.emitter.emit(z.CustomEvent,u)};break;case _.Meta:c=()=>this.emitter.emit(z.Resize,{width:u.data.width,height:u.data.height});break;case _.FullSnapshot:c=()=>{var d;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,o),(d=this.iframe.contentWindow)==null||d.scrollTo(u.data.initialOffset)};break;case _.IncrementalSnapshot:c=()=>{if(this.applyIncremental(u,o),!o&&(u===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const d of this.service.state.context.events)if(!(d.timestamp<=u.timestamp)&&this.isUserInteraction(d)){d.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=d);break}if(this.nextUserInteractionEvent){const d=this.nextUserInteractionEvent.delay-u.delay,h={speed:Math.min(Math.round(d/qu),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:h}),this.emitter.emit(z.SkipStart,h)}}};break}return()=>{c&&c();for(const h of this.config.plugins||[])h.handler&&h.handler(u,o,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const d=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[d]){const h=()=>{d<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(z.Finish))};let f=50;u.type===_.IncrementalSnapshot&&u.data.source===A.MouseMove&&u.data.positions.length&&(f+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(h,f)}this.emitter.emit(z.EventCast,u)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const s={speed:1,maxSpeed:360,root:document.body,loadTimeout:5e3,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:es,useVirtualDom:!0,logger:console};this.config=Object.assign({},s,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(z.Resize,this.handleResize),this.setupDom();for(const u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(z.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(o,c,n)=>{os({event:o,mutation:c,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(o,c)=>{o.source===A.StyleSheetRule?this.applyStyleSheetRule(o,c):o.source===A.StyleDeclaration&&this.applyStyleDeclaration(o,c)},afterAppend:(o,c)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(o,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Ot(this.iframe.contentDocument,this.virtualDom,u,this.virtualDom.mirror)}catch(o){console.warn(o)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const o in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[o],n=It(c.node,this.mirror,this.virtualDom.mirror);Ot(n,c.node,u,this.virtualDom.mirror),c.node=n}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(o=>{this.applyStyleSheetMutation(o)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(o=>{this.applyAdoptedStyleSheet(o)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[u,o]=this.lastMouseDownEvent;u.dispatchEvent(o)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(z.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const i=new Au([],{speed:this.config.speed});this.service=_u({events:t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,o)=>u.timestamp-o.timestamp),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(z.StateChange,{player:u})}),this.speedService=ku({normalSpeed:-1,timer:i}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(z.StateChange,{speed:u})}),this.mediaManager=new Wu({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const a=this.service.state.context.events.find(u=>u.type===_.Meta),l=this.service.state.context.events.find(u=>u.type===_.FullSnapshot);if(a){const{width:u,height:o}=a.data;setTimeout(()=>{this.emitter.emit(z.Resize,{width:u,height:o})},0)}l&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=l,this.rebuildFullSnapshot(l),(u=this.iframe.contentWindow)==null||u.scrollTo(l.data.initialOffset))},1),this.service.state.context.events.find(On)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,s;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.remove("rrweb-paused"),this.emitter.emit(z.Start)}pause(t){var r,s;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(s=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||s.classList.add("rrweb-paused"),this.emitter.emit(z.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(z.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(z.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;On(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Ii()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Du(this.iframe.contentWindow,this.iframe.contentDocument),Ps(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const s=[],i=new Set,a=(o,c)=>{if(o.nodeName==="DIALOG"&&i.add(o),this.collectIframeAndAttachDocument(s,o),this.mediaManager.isSupportedMediaElement(o)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(o,t.timestamp-n[0].timestamp,this.mirror)}for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(o,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Ha(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:o,builtNode:c}of s)this.attachDocumentToIframe(o,c),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==o);const{documentElement:l,head:u}=this.iframe.contentDocument;this.insertStyleRules(l,u),i.forEach(o=>vt(o)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(z.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var s;const i=Pu(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!i.length)if(this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,no(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:A.StyleSheetRule,adds:i.map((l,u)=>({rule:l,index:u}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let l=0;l<i.length;l++)(s=a.sheet)==null||s.insertRule(i[l],l)}}attachDocumentToIframe(t,r){const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,l=(u,o)=>{u.nodeName==="DIALOG"&&a.add(u),this.collectIframeAndAttachDocument(i,u);const c=s.getMeta(u);if((c==null?void 0:c.type)===Se.Element&&(c==null?void 0:c.tagName.toUpperCase())==="HTML"){const{documentElement:n,head:d}=r.contentDocument;this.insertStyleRules(n,d)}if(!this.usingVirtualDom)for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(u,{id:o,replayer:this})};tt(t.node,{doc:r.contentDocument,mirror:s,hackCss:!0,skipChild:!1,afterAppend:l,cache:this.cache}),l(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:o}of i)this.attachDocumentToIframe(u,o),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==u);a.forEach(u=>vt(u))}collectIframeAndAttachDocument(t,r){if(Ye(r,this.mirror)){const s=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));s&&t.push({mutationInQueue:s,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const s=new Set;let i,a=this.service.state;const l=()=>{a=this.service.state};this.emitter.on(z.Start,l),this.emitter.on(z.Pause,l);const u=()=>{this.emitter.off(z.Start,l),this.emitter.off(z.Pause,l)};r.querySelectorAll('link[rel="stylesheet"]').forEach(o=>{if(!o.sheet){s.add(o);const c=()=>{s.delete(o),s.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(z.LoadStylesheetEnd),i&&clearTimeout(i),u())};o.addEventListener("load",c),o.addEventListener("error",c)}}),s.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(z.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===_.IncrementalSnapshot&&r.data.source===A.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const s=document.createElement("canvas"),i=s.getContext("2d"),a=i==null?void 0:i.createImageData(s.width,s.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const s={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const l=await Promise.all(a.args.map(De(this.imageMap,null,s)));return se(P({},a),{args:l})}));s.isUnchanged===!1&&this.canvasEventMap.set(r,se(P({},t),{commands:i}))}else{const i=await Promise.all(t.args.map(De(this.imageMap,null,s)));s.isUnchanged===!1&&this.canvasEventMap.set(r,se(P({},t),{args:i}))}}}applyIncremental(t,r){var s,i,a;const{data:l}=t;switch(l.source){case A.Mutation:{try{this.applyMutation(l,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,l)}break}case A.Drag:case A.TouchMove:case A.MouseMove:if(r){const u=l.positions[l.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:l}}else l.positions.forEach(u=>{const o={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,l)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(o)}),this.timer.addAction({doAction(){},delay:t.delay-((s=l.positions[0])==null?void 0:s.timeOffset)});break;case A.MouseInteraction:{if(l.id===-1)break;const u=new Event(Ae(q[l.type])),o=this.mirror.getNode(l.id);if(!o)return this.debugNodeNotFound(l,l.id);this.emitter.emit(z.MouseInteraction,{type:l.type,target:o});const{triggerFocus:c}=this.config;switch(l.type){case q.Blur:"blur"in o&&o.blur();break;case q.Focus:c&&o.focus&&o.focus({preventScroll:!0});break;case q.Click:case q.TouchStart:case q.TouchEnd:case q.MouseDown:case q.MouseUp:r?(l.type===q.TouchStart?this.touchActive=!0:l.type===q.TouchEnd&&(this.touchActive=!1),l.type===q.MouseDown?this.lastMouseDownEvent=[o,u]:l.type===q.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:l.x||0,y:l.y||0,id:l.id,debugData:l}):(l.type===q.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(l.x||0,l.y||0,l.id,r,l),l.type===q.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):l.type===q.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):l.type===q.TouchEnd?this.mouse.classList.remove("touch-active"):o.dispatchEvent(u));break;case q.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:o.dispatchEvent(u)}break}case A.Scroll:{if(l.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(l.id);if(!u)return this.debugNodeNotFound(l,l.id);u.scrollData=l;break}this.applyScroll(l,r);break}case A.ViewportResize:this.emitter.emit(z.Resize,{width:l.width,height:l.height});break;case A.Input:{if(l.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(l.id);if(!u)return this.debugNodeNotFound(l,l.id);u.inputData=l;break}this.applyInput(l);break}case A.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(l.id):this.mirror.getNode(l.id);if(!u)return this.debugNodeNotFound(l,l.id);const o=u,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:o,timeOffset:t.timestamp-c[0].timestamp,mutation:l});break}case A.StyleSheetRule:case A.StyleDeclaration:{this.usingVirtualDom?l.styleId?this.constructedStyleMutations.push(l):l.id&&((i=this.virtualDom.mirror.getNode(l.id))==null||i.rules.push(l)):this.applyStyleSheetMutation(l);break}case A.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(l.id);if(!u)return this.debugNodeNotFound(l,l.id);u.canvasMutations.push({event:t,mutation:l})}else{const u=this.mirror.getNode(l.id);if(!u)return this.debugNodeNotFound(l,l.id);os({event:t,mutation:l,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case A.Font:{try{const u=new FontFace(l.family,l.buffer?new Uint8Array(JSON.parse(l.fontSource)):l.fontSource,l.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(u)}catch(u){this.warn(u)}break}case A.Selection:{if(r){this.lastSelectionData=l;break}this.applySelection(l);break}case A.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(l):this.applyAdoptedStyleSheet(l);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,Pl(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const c in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[c],d=io(n.node,this.virtualDom,this.mirror);d&&(n.node=d)}catch(n){this.warn(n)}const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>s.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return;let h=s.getNode(c.parentId);if(!h)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&Ie(h)&&(h=h.shadowRoot),s.removeNodeFromMap(d),h)try{h.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&h.nodeName==="STYLE"&&((n=h.rules)==null?void 0:n.length)>0&&(h.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",h,d,t);else throw f}});const i=P({},this.legacy_missingNodeRetryMap),a=[],l=c=>{let n=null;return c.nextId&&(n=s.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!n},u=c=>{var n,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let h=s.getNode(c.parentId);if(!h)return c.node.type===Se.Document?this.newDocumentQueue.push(c):a.push(c);c.node.isShadow&&(Ie(h)||h.attachShadow({mode:"open"}),h=h.shadowRoot);let f=null,m=null;if(c.previousId&&(f=s.getNode(c.previousId)),c.nextId&&(m=s.getNode(c.nextId)),l(c))return a.push(c);if(c.node.rootId&&!s.getNode(c.node.rootId))return;const p=c.node.rootId?s.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Ye(h,s)){this.attachDocumentToIframe(c,h);return}const g=(y,C)=>{if(!this.usingVirtualDom){vt(y);for(const v of this.config.plugins||[])v.onBuild&&v.onBuild(y,{id:C,replayer:this})}},w=tt(c.node,{doc:p,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){i[c.node.id]={node:w,mutation:c};return}const b=s.getMeta(h);if(b&&b.type===Se.Element&&c.node.type===Se.Text){const y=Array.isArray(h.childNodes)?h.childNodes:Array.from(h.childNodes);if(b.tagName==="textarea")for(const C of y)C.nodeType===h.TEXT_NODE&&h.removeChild(C);else if(b.tagName==="style"&&y.length===1)for(const C of y)C.nodeType===h.TEXT_NODE&&!s.hasNode(C)&&(w.textContent=C.textContent,h.removeChild(C))}else if((b==null?void 0:b.type)===Se.Document){const y=h;c.node.type===Se.DocumentType&&((n=y.childNodes[0])==null?void 0:n.nodeType)===Node.DOCUMENT_TYPE_NODE&&y.removeChild(y.childNodes[0]),w.nodeName==="HTML"&&y.documentElement&&y.removeChild(y.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?h.insertBefore(w,f.nextSibling):m&&m.parentNode?h.contains(m)?h.insertBefore(w,m):h.insertBefore(w,null):h.appendChild(w),g(w,c.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&h.nodeName==="STYLE"&&((d=h.rules)==null?void 0:d.length)>0&&(h.rules=[]),Ye(w,this.mirror)){const y=this.mirror.getId(w),C=this.newDocumentQueue.find(v=>v.parentId===y);C&&(this.attachDocumentToIframe(C,w),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==C))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(i,h,w,c)};t.adds.forEach(c=>{u(c)});const o=Date.now();for(;a.length;){const c=uo(a);if(a.length=0,Date.now()-o>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const n of c)s.getNode(n.value.parentId)?Ls(n,h=>{u(h)}):this.debug("Drop resolve tree since there is no parent for the root node.",n)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),co(t.texts).forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return t.removes.find(f=>f.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const h=d.parentElement;if(c.value&&h&&h.tagName==="STYLE"?d.textContent=Bt(c.value,this.cache):d.textContent=c.value,this.usingVirtualDom){const f=d.parentNode;((n=f==null?void 0:f.rules)==null?void 0:n.length)>0&&(f.rules=[])}}),t.attributes.forEach(c=>{var n;const d=s.getNode(c.id);if(!d)return t.removes.find(h=>h.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const h in c.attributes)if(typeof h=="string"){const f=c.attributes[h];if(f===null)d.removeAttribute(h),h==="open"&&zu(d,c);else if(typeof f=="string")try{if(h==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{const m=s.getMeta(d),p=tt(se(P({},m),{attributes:P(P({},m.attributes),c.attributes)}),{doc:d.ownerDocument,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(m.attributes,c.attributes);const g=d.nextSibling,w=d.parentNode;if(p&&w){w.removeChild(d),w.insertBefore(p,g),s.replace(c.id,p);break}}catch(m){}if(h==="value"&&d.nodeName==="TEXTAREA"){const m=d;m.childNodes.forEach(g=>m.removeChild(g));const p=(n=d.ownerDocument)==null?void 0:n.createTextNode(f);p&&m.appendChild(p)}else d.setAttribute(h,f);h==="rr_open_mode"&&d.nodeName==="DIALOG"&&vt(d,c)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(h==="style"){const m=f,p=d;for(const g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){const w=m[g];p.style.setProperty(g,w[0],w[1])}else{const w=m[g];p.style.setProperty(g,w)}}}})}applyScroll(t,r){var s,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const l=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(s=this.iframe.contentWindow)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((l==null?void 0:l.type)===Se.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(s){}}applySelection(t){try{const r=new Set,s=t.ranges.map(({start:i,startOffset:a,end:l,endOffset:u})=>{const o=this.mirror.getNode(i),c=this.mirror.getNode(l);if(!o||!c)return;const n=new Range;n.setStart(o,a),n.setEnd(c,u);const d=o.ownerDocument,h=d==null?void 0:d.getSelection();return h&&r.add(h),{range:n,selection:h}});r.forEach(i=>i.removeAllRanges()),s.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let s=null;t.styleId?s=this.styleMirror.getStyle(t.styleId):t.id&&(s=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),s&&(t.source===A.StyleSheetRule?this.applyStyleSheetRule(t,s):t.source===A.StyleDeclaration&&this.applyStyleDeclaration(t,s))}applyStyleSheetRule(t,r){var s,i,a,l;if((s=t.adds)==null||s.forEach(({rule:u,index:o})=>{try{if(Array.isArray(o)){const{positions:c,index:n}=is(o),d=je(r.cssRules,c);d==null||d.insertRule(u,n)}else{const c=o===void 0?void 0:Math.min(o,r.cssRules.length);r==null||r.insertRule(u,c)}}catch(c){}}),(i=t.removes)==null||i.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:o,index:c}=is(u),n=je(r.cssRules,o);n==null||n.deleteRule(c||0)}else r==null||r.deleteRule(u)}catch(o){}}),typeof t.replace=="string")try{(a=r.replace)==null||a.call(r,t.replace)}catch(u){}if(typeof t.replaceSync=="string")try{(l=r.replaceSync)==null||l.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){if(t.set){const s=je(r.rules,t.index);s!=null&&s.style&&s.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const s=je(r.rules,t.index);s!=null&&s.style&&s.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const s=this.mirror.getNode(t.id);if(!s)return;(r=t.styles)==null||r.forEach(u=>{var o;let c=null,n=null;if(Ie(s)?n=((o=s.ownerDocument)==null?void 0:o.defaultView)||null:s.nodeName==="#document"&&(n=s.defaultView),!!n)try{c=new n.CSSStyleSheet,this.styleMirror.add(c,u.styleId),this.applyStyleSheetRule({source:A.StyleSheetRule,adds:u.rules},c)}catch(d){}});const i=10;let a=0;const l=(u,o)=>{const c=o.map(n=>this.styleMirror.getStyle(n)).filter(n=>n!==null);Ie(u)?u.shadowRoot.adoptedStyleSheets=c:u.nodeName==="#document"&&(u.adoptedStyleSheets=c),c.length!==o.length&&a<i&&(setTimeout(()=>l(u,o),0+100*a),a++)};l(s,t.styleIds)}legacy_resolveMissingNode(t,r,s,i){const{previousId:a,nextId:l}=i,u=a&&t[a],o=l&&t[l];if(u){const{node:c,mutation:n}=u;r.insertBefore(c,s),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,c,n)}if(o){const{node:c,mutation:n}=o;r.insertBefore(c,s.nextSibling),delete t[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(t,r,c,n)}}moveAndHover(t,r,s,i,a){const l=this.mirror.getNode(s);if(!l)return this.debugNodeNotFound(a,s);const u=Us(l,this.iframe),o=t*u.absoluteScale+u.x,c=r*u.absoluteScale+u.y;this.mouse.style.left=`${o}px`,this.mouse.style.top=`${c}px`,i||this.drawMouseTail({x:o,y:c}),this.hoverElements(l)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:s,strokeStyle:i,duration:a}=this.config.mouseTail===!0?es:Object.assign({},es,this.config.mouseTail),l=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=s,u.lineCap=r,u.strokeStyle=i,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(o=>u.lineTo(o.x,o.y)),u.stroke())};this.tailPositions.push(t),l(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),l()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let s=t;for(;s;)s.classList&&s.classList.add(":hover"),s=s.parentElement}isUserInteraction(t){return t.type!==_.IncrementalSnapshot?!1:t.data.source>A.Mutation&&t.data.source<=A.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(z.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(Nn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Nn,...t)}}const{addCustomEvent:Gu}=Te,{freezePage:Hu}=Te,{takeFullSnapshot:Yu}=Te;exports.EventType=_;exports.IncrementalSource=A;exports.MouseInteractions=q;exports.Replayer=ju;exports.ReplayerEvents=z;exports.addCustomEvent=Gu;exports.canvasMutation=os;exports.freezePage=Hu;exports.record=Te;exports.takeFullSnapshot=Yu;exports.utils=Ql;
156
+ if (typeof module.exports == "object" && typeof exports == "object") {
157
+ var __cp = (to, from, except, desc) => {
158
+ if ((from && typeof from === "object") || typeof from === "function") {
159
+ for (let key of Object.getOwnPropertyNames(from)) {
160
+ if (!Object.prototype.hasOwnProperty.call(to, key) && key !== except)
161
+ Object.defineProperty(to, key, {
162
+ get: () => from[key],
163
+ enumerable: !(desc = Object.getOwnPropertyDescriptor(from, key)) || desc.enumerable,
164
+ });
165
+ }
166
+ }
167
+ return to;
168
+ };
169
+ module.exports = __cp(module.exports, exports);
170
+ }
171
+ return module.exports;
172
+ }))
173
+ //# sourceMappingURL=rrweb.umd.min.cjs.map