@tracekit/replay 0.2.2 → 0.3.1

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,120 @@
1
+ "use strict";var TraceKitReplay=(()=>{var Fr=Object.defineProperty;var Ta=Object.getOwnPropertyDescriptor;var Da=Object.getOwnPropertyNames;var ka=Object.prototype.hasOwnProperty;var $a=(s,e)=>{for(var t in e)Fr(s,t,{get:e[t],enumerable:!0})},_a=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Da(e))!ka.call(s,i)&&i!==t&&Fr(s,i,{get:()=>e[i],enumerable:!(r=Ta(e,i))||r.enumerable});return s};var Pa=s=>_a(Fr({},"__esModule",{value:!0}),s);var Sd={};$a(Sd,{replayIntegration:()=>wd});var Te={sessionSampleRate:.1,errorSampleRate:0,unmask:[],idleTimeout:18e5,flushInterval:3e4,maxBufferSize:24117248,inlineImages:!1,blockMedia:!0};function bi(s,e,t,r){return s<t?(console.warn(`[TraceKit Replay] ${e} (${s}) is below ${t}, clamping to ${t}`),t):s>r?(console.warn(`[TraceKit Replay] ${e} (${s}) is above ${r}, clamping to ${r}`),r):s}function Ci(s,e,t){let r=bi(s.sessionSampleRate??Te.sessionSampleRate,"sessionSampleRate",0,1),i=bi(s.errorSampleRate??Te.errorSampleRate,"errorSampleRate",0,1);return r+i>1&&(console.warn(`[TraceKit Replay] sessionSampleRate (${r}) + errorSampleRate (${i}) exceeds 1.0, clamping errorSampleRate`),i=1-r),{sessionSampleRate:r,errorSampleRate:i,unmask:s.unmask??Te.unmask,idleTimeout:s.idleTimeout??Te.idleTimeout,flushInterval:s.flushInterval??Te.flushInterval,maxBufferSize:s.maxBufferSize??Te.maxBufferSize,inlineImages:s.inlineImages??Te.inlineImages,blockMedia:s.blockMedia??Te.blockMedia,apiKey:e,endpoint:t}}var La=Object.defineProperty,Fa=(s,e,t)=>e in s?La(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e,t)=>Fa(s,typeof e!="symbol"?e+"":e,t),Ii,Ua=Object.defineProperty,za=(s,e,t)=>e in s?Ua(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,xi=(s,e,t)=>za(s,typeof e!="symbol"?e+"":e,t),Q=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(Q||{}),Ei={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Mi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Rt={},Ba=()=>!!globalThis.Zone;function Ws(s){if(Rt[s])return Rt[s];let e=globalThis[s],t=e.prototype,r=s in Ei?Ei[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in Mi?Mi[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Ba())return Rt[s]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[s].prototype;return document.body.removeChild(l),u?Rt[s]=u:t}catch{return t}}var Ur={};function Ee(s,e,t){var r;let i=`${s}.${String(t)}`;if(Ur[i])return Ur[i].call(e);let n=Ws(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Ur[i]=o,o.call(e)):e[t]}var zr={};function Cn(s,e,t){let r=`${s}.${String(t)}`;if(zr[r])return zr[r].bind(e);let n=Ws(s)[t];return typeof n!="function"?e[t]:(zr[r]=n,n.bind(e))}function Wa(s){return Ee("Node",s,"ownerDocument")}function Va(s){return Ee("Node",s,"childNodes")}function Ga(s){return Ee("Node",s,"parentNode")}function ja(s){return Ee("Node",s,"parentElement")}function Ha(s){return Ee("Node",s,"textContent")}function Ya(s,e){return Cn("Node",s,"contains")(e)}function Za(s){return Cn("Node",s,"getRootNode")()}function Xa(s){return!s||!("host"in s)?null:Ee("ShadowRoot",s,"host")}function Ja(s){return s.styleSheets}function Ka(s){return!s||!("shadowRoot"in s)?null:Ee("Element",s,"shadowRoot")}function qa(s,e){return Ee("Element",s,"querySelector")(e)}function Qa(s,e){return Ee("Element",s,"querySelectorAll")(e)}function el(){return Ws("MutationObserver").constructor}function tl(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var re={ownerDocument:Wa,childNodes:Va,parentNode:Ga,parentElement:ja,textContent:Ha,contains:Ya,getRootNode:Za,host:Xa,styleSheets:Ja,shadowRoot:Ka,querySelector:qa,querySelectorAll:Qa,mutationObserver:el,patch:tl};function In(s){return s.nodeType===s.ELEMENT_NODE}function ot(s){let e=s&&"host"in s&&"mode"in s&&re.host(s)||null;return!!(e&&"shadowRoot"in e&&re.shadowRoot(e)===s)}function at(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function rl(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function sl(s){let{cssText:e}=s;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Qr(s){try{let e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&(t=s.ownerNode.baseURI);let r=Array.from(e,i=>xn(i,t)).join("");return rl(r)}catch{return null}}function xn(s,e){if(nl(s)){let t;try{t=Qr(s.styleSheet)||sl(s)}catch{t=s.cssText}return s.styleSheet.href?nr(t,s.styleSheet.href):t}else{let t=s.cssText;return ol(s)&&s.selectorText.includes(":")&&(t=il(t)),e?nr(t,e):t}}function il(s){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function nl(s){return"styleSheet"in s}function ol(s){return"selectorText"in s}var rr=class{constructor(){xi(this,"idNodeMap",new Map),xi(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?((t=this.getMeta(e))==null?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function al(){return new rr}function sr({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"",l=r&&_e(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function _e(s){return s.toLowerCase()}var Ri="__rrweb_original__";function ll(s){let e=s.getContext("2d");if(!e)return!0;let t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){let n=e.getImageData,o=Ri in n?n[Ri]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(a=>a!==0))return!1}return!0}function ir(s){let e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?_e(e):null}function En(s,e){let t;try{t=new URL(s,e??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return i?.[1]??null}function ul(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}var cl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,hl=/^(?:[a-z+]+:)?\/\//i,fl=/^www\..*/i,dl=/^(data:)([^,]*),(.*)/i;function nr(s,e){return(s||"").replace(cl,(t,r,i,n,o,l)=>{let a=i||o||l,u=r||n||"";if(!a)return t;if(hl.test(a)||fl.test(a))return`url(${u}${a}${u})`;if(dl.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${ul(e)+a}${u})`;let c=e.split("/"),h=a.split("/");c.pop();for(let p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function At(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pl(s,e,t=!1){let r=Array.from(e.childNodes),i=[],n=0;if(r.length>1&&s&&typeof s=="string"){let o=At(s,t),l=o.length/s.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){let u=At(r[a].textContent,t),c=100,h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let p=u.substring(0,h),g=o.split(p),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&r[a-1].textContent!=="")m=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(m=o.indexOf(p));if(g.length>=2&&h>c){let f=r[a-1].textContent;if(f&&typeof f=="string"){let d=At(f).length;m=o.indexOf(p,d)}m===-1&&(m=g[0].length)}if(m!==-1){let f=Math.floor(m/l);for(;f>0&&f<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;let d=At(s.substring(0,f),t);if(d.length===m){i.push(s.substring(0,f)),s=s.substring(f),o=o.substring(m);break}else d.length<m?f+=Math.max(1,Math.floor((m-d.length)/l)):f-=Math.max(1,Math.floor((d.length-m)*l))}break}}}}return i.push(s),i}function ml(s,e){return pl(s,e).join("/* rr_split */")}var gl=1,yl=new RegExp("[^a-z0-9-_:]"),ut=-2;function Mn(){return gl++}function vl(s){if(s instanceof HTMLFormElement)return"form";let e=_e(s.tagName);return yl.test(e)?"div":e}var Be,Ai,wl=/^[^ \t\n\r\u000c]+/,Sl=/^[, \t\n\r\u000c]+/;function bl(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o,l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;r(Sl),!(t>=e.length);){let n=r(wl);if(n.slice(-1)===",")n=Ge(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Ge(s,n);let l=!1;for(;;){let a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}var Ni=new WeakMap;function Ge(s,e){return!e||e.trim()===""?e:Vs(s,e)}function Cl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Vs(s,e){let t=Ni.get(s);if(t||(t=s.createElement("a"),Ni.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Rn(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Ge(s,r):t==="srcset"?bl(s,r):t==="style"?nr(r,Vs(s)):e==="object"&&t==="data"?Ge(s,r):r)}function An(s,e,t){return["video","audio"].includes(s)&&e==="autoplay"}function Il(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch{}return!1}function or(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?or(re.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}return t?or(re.parentNode(s),e,t):!1}function Nn(s,e,t,r){let i;if(In(s)){if(i=s,!re.childNodes(i).length)return!1}else{if(re.parentElement(s)===null)return!1;i=re.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(or(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch{}return!1}function xl(s,e,t){let r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch{return}if(n!=="complete"){let l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}let o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function El(s,e,t){let r=!1,i;try{i=s.sheet}catch{return}if(i)return;let n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Ml(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:d=!1}=e,S=Rl(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:Q.Document,childNodes:[],compatMode:s.compatMode}:{type:Q.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:Q.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:S};case s.ELEMENT_NODE:return Nl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:h,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:f,rootId:S});case s.TEXT_NODE:return Al(s,{doc:t,needsMask:o,maskTextFn:u,rootId:S,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:Q.CDATA,textContent:"",rootId:S};case s.COMMENT_NODE:return{type:Q.Comment,textContent:re.textContent(s)||"",rootId:S};default:return!1}}function Rl(s,e){if(!e.hasNode(s))return;let t=e.getId(s);return t===1?void 0:t}function Al(s,e){let{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=re.parentNode(s),l=o&&o.tagName,a="",u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?a="SCRIPT_PLACEHOLDER":n||(a=re.textContent(s),u&&a&&(a=nr(a,Vs(e.doc)))),!u&&!c&&a&&t&&(a=r?r(a,re.parentElement(s)):a.replace(/[\S]/g,"*")),{type:Q.Text,textContent:a||"",rootId:i}}function Nl(s,e){let{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:g}=e,m=Il(s,r,i),f=vl(s),d={},S=s.attributes.length;for(let y=0;y<S;y++){let b=s.attributes[y];An(f,b.name,b.value)||(d[b.name]=Rn(t,f,_e(b.name),b.value))}if(f==="link"&&n){let y=Array.from(t.styleSheets).find(x=>x.href===s.href),b=null;y&&(b=Qr(y)),b&&(delete d.rel,delete d.href,d._cssText=b)}if(f==="style"&&s.sheet){let y=Qr(s.sheet);y&&(s.childNodes.length>1&&(y=ml(y,s)),d._cssText=y)}if(["input","textarea","select"].includes(f)){let y=s.value,b=s.checked;d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&y?d.value=sr({element:s,type:ir(s),tagName:f,value:y,maskInputOptions:o,maskInputFn:l}):b&&(d.checked=b)}if(f==="option"&&(s.selected&&!o.select?d.selected=!0:delete d.selected),f==="dialog"&&s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&c){if(s.__context==="2d")ll(s)||(d.rr_dataURL=s.toDataURL(a.type,a.quality));else if(!("__context"in s)){let y=s.toDataURL(a.type,a.quality),b=t.createElement("canvas");b.width=s.width,b.height=s.height;let x=b.toDataURL(a.type,a.quality);y!==x&&(d.rr_dataURL=y)}}if(f==="img"&&u){Be||(Be=t.createElement("canvas"),Ai=Be.getContext("2d"));let y=s,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",x=y.crossOrigin,M=()=>{y.removeEventListener("load",M);try{Be.width=y.naturalWidth,Be.height=y.naturalHeight,Ai.drawImage(y,0,0),d.rr_dataURL=Be.toDataURL(a.type,a.quality)}catch(N){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?M():y.addEventListener("load",M);return}else console.warn(`Cannot inline img src=${b}! Error: ${N}`)}y.crossOrigin==="anonymous"&&(x?d.crossOrigin=x:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?M():y.addEventListener("load",M)}if(["audio","video"].includes(f)){let y=d;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),m){let{width:y,height:b}=s.getBoundingClientRect();d={class:d.class,rr_width:`${y}px`,rr_height:`${b}px`}}f==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let w;try{customElements.get(f)&&(w=!0)}catch{}return{type:Q.Element,tagName:f,attributes:d,childNodes:[],isSVG:Cl(s)||void 0,needBlock:m,rootId:g,isCustom:w}}function W(s){return s==null?"":s.toLowerCase()}function On(s){return s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:s==="all",headMetaDescKeywords:s==="all",headTitleMutations:s==="all"}:s||{}}function Ol(s,e){if(e.comment&&s.type===Q.Comment)return!0;if(s.type===Q.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&En(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(W(s.attributes.name).match(/^msapplication-tile(image|color)$/)||W(s.attributes.name)==="application-name"||W(s.attributes.rel)==="icon"||W(s.attributes.rel)==="apple-touch-icon"||W(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&W(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(W(s.attributes.property).match(/^(og|twitter|fb):/)||W(s.attributes.name).match(/^(og|twitter):/)||W(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(W(s.attributes.name)==="robots"||W(s.attributes.name)==="googlebot"||W(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(W(s.attributes.name)==="author"||W(s.attributes.name)==="generator"||W(s.attributes.name)==="framework"||W(s.attributes.name)==="publisher"||W(s.attributes.name)==="progid"||W(s.attributes.property).match(/^article:/)||W(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(W(s.attributes.name)==="google-site-verification"||W(s.attributes.name)==="yandex-verification"||W(s.attributes.name)==="csrf-token"||W(s.attributes.name)==="p:domain_verify"||W(s.attributes.name)==="verify-v1"||W(s.attributes.name)==="verification"||W(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function je(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:d=!1,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:N=!1,cssCaptured:I=!1}=e,{needsMask:C}=e,{preserveWhiteSpace:k=!0}=e;C||(C=Nn(s,o,l,C===void 0));let X=Ml(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:C,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,dataURLOptions:m,inlineImages:f,recordCanvas:d,keepIframeSrcFn:M,newlyAddedElement:N,cssCaptured:I});if(!X)return console.warn(s,"not serialized"),null;let j;r.hasNode(s)?j=r.getId(s):Ol(X,g)||!k&&X.type===Q.Text&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?j=ut:j=Mn();let E=Object.assign(X,{id:j});if(r.add(s,E),j===ut)return null;S&&S(s);let ee=!a;if(E.type===Q.Element){ee=ee&&!E.needBlock,delete E.needBlock;let _=re.shadowRoot(s);_&&at(_)&&(E.isShadowHost=!0)}if((E.type===Q.Document||E.type===Q.Element)&&ee){g.headWhitespace&&E.type===Q.Element&&E.tagName==="head"&&(k=!1);let _={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:f,recordCanvas:d,preserveWhiteSpace:k,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:M,cssCaptured:!1};if(!(E.type===Q.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===Q.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(_.cssCaptured=!0);for(let J of Array.from(re.childNodes(s))){let K=je(J,_);K&&E.childNodes.push(K)}}let P=null;if(In(s)&&(P=re.shadowRoot(s)))for(let J of Array.from(re.childNodes(P))){let K=je(J,_);K&&(at(P)&&(K.isShadow=!0),E.childNodes.push(K))}}let te=re.parentNode(s);return te&&ot(te)&&at(te)&&(E.isShadow=!0),E.type===Q.Element&&E.tagName==="iframe"&&xl(s,()=>{let _=s.contentDocument;if(_&&w){let P=je(_,{doc:_,mirror:r,blockClass:i,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:f,recordCanvas:d,preserveWhiteSpace:k,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:M});P&&w(s,P)}},y),E.type===Q.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&En(E.attributes.href)==="css")&&El(s,()=>{if(b){let _=je(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:f,recordCanvas:d,preserveWhiteSpace:k,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:M});_&&b(s,_)}},x),E}function Tl(s,e){let{mirror:t=new rr,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:p,slimDOM:g=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x=()=>!1}=e||{},M=c===!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}:c===!1?{password:!0}:c,N=On(g);return je(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:M,maskTextFn:h,maskInputFn:p,slimDOMOptions:N,dataURLOptions:m,inlineImages:a,recordCanvas:u,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x,newlyAddedElement:!1})}var Dl=/(max|min)-device-(width|height)/,Id=new RegExp(Dl.source,"g");function kl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function $l(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Gs={exports:{}},V=String,Tn=function(){return{isColorSupported:!1,reset:V,bold:V,dim:V,italic:V,underline:V,inverse:V,hidden:V,strikethrough:V,black:V,red:V,green:V,yellow:V,blue:V,magenta:V,cyan:V,white:V,gray:V,bgBlack:V,bgRed:V,bgGreen:V,bgYellow:V,bgBlue:V,bgMagenta:V,bgCyan:V,bgWhite:V}};Gs.exports=Tn();Gs.exports.createColors=Tn;var _l=Gs.exports,Pl={},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),ge=$l(Ll),Oi=_l,Ti=ge,es=class Dn extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Dn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Oi.isColorSupported),Ti&&e&&(t=Ti(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=Oi.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
2
+ `+g+l("^")}return" "+a(p)+u}).join(`
3
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
4
+
5
+ `+e+`
6
+ `),this.name+": "+this.message+e}},js=es;es.default=es;var wt={};wt.isClean=Symbol("isClean");wt.my=Symbol("my");var Di={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Fl(s){return s[0].toUpperCase()+s.slice(1)}var ts=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
12
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Di[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Fl(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Di[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
13
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
14
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
15
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
16
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
17
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},kn=ts;ts.default=ts;var Ul=kn;function rs(s,e){new Ul(e).stringify(s)}var wr=rs;rs.default=rs;var{isClean:Nt,my:zl}=wt,Bl=js,Wl=kn,Vl=wr;function ss(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>ss(o,t)):(n==="object"&&i!==null&&(i=ss(i)),t[r]=i)}return t}var is=class{constructor(e={}){this.raws={},this[Nt]=!1,this[zl]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ss(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Bl(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Nt]){this[Nt]=!1;let e=this;for(;e=e.parent;)e[Nt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===`
18
+ `?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);n!==-1&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Wl().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Vl){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}},Sr=is;is.default=is;var Gl=Sr,ns=class extends Gl{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},br=ns;ns.default=ns;var jl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hl=(s,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=s[Math.random()*s.length|0];return r},Yl=(s=21)=>{let e="",t=s;for(;t--;)e+=jl[Math.random()*64|0];return e},Zl={nanoid:Yl,customAlphabet:Hl},{SourceMapConsumer:ki,SourceMapGenerator:$i}=ge,{existsSync:Xl,readFileSync:Jl}=ge,{dirname:Br,join:Kl}=ge;function ql(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}var os=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Br(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ki(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(i.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ql(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Br(e),Xl(e))return this.mapFile=e,Jl(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof ki)return $i.fromSourceMap(t).toString();if(t instanceof $i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Kl(Br(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},$n=os;os.default=os;var{SourceMapConsumer:Ql,SourceMapGenerator:eu}=ge,{fileURLToPath:_i,pathToFileURL:Ot}=ge,{isAbsolute:as,resolve:ls}=ge,{nanoid:tu}=Zl,Wr=ge,Pi=js,ru=$n,Vr=Symbol("fromOffsetCache"),su=!!(Ql&&eu),Li=!!(ls&&as),ar=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Li||/^\w+:\/\//.test(t.from)||as(t.from)?this.file=t.from:this.file=ls(t.from)),Li&&su){let r=new ru(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+tu(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new Pi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):n=new Pi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(Ot&&(n.input.url=Ot(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[Vr])r=this[Vr];else{let n=this.css.split(`
19
+ `);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[Vr]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let n=r.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<r[o])n=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ls(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;as(o.source)?a=Ot(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ot(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(_i)u.file=_i(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Cr=ar;ar.default=ar;Wr&&Wr.registerInput&&Wr.registerInput(ar);var{SourceMapConsumer:_n,SourceMapGenerator:Jt}=ge,{dirname:Kt,relative:Pn,resolve:Ln,sep:Fn}=ge,{pathToFileURL:Fi}=ge,iu=Cr,nu=!!(_n&&Jt),ou=!!(Kt&&Ln&&Pn&&Fn),au=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
20
+ `;this.css.includes(`\r
21
+ `)&&(t=`\r
22
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Kt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new _n(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ou&&nu&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Jt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jt({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 Jt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(`
23
+ `),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Kt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Kt(Ln(r,this.mapOpts.annotation)));let i=Pn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new iu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Fi){let r=Fi(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Fn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},Un=au,lu=Sr,us=class extends lu{constructor(e){super(e),this.type="comment"}},Ir=us;us.default=us;var{isClean:zn,my:Bn}=wt,Wn=br,Vn=Ir,uu=Sr,Gn,Hs,Ys,jn;function Hn(s){return s.map(e=>(e.nodes&&(e.nodes=Hn(e.nodes)),delete e.source,e))}function Yn(s){if(s[zn]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Yn(e)}var Ie=class Zn extends uu{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Hn(Gn(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wn(e)]}else if(e.selector)e=[new Hs(e)];else if(e.name)e=[new Ys(e)];else if(e.text)e=[new Vn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Bn]||Zn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[zn]&&Yn(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}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]}};Ie.registerParse=s=>{Gn=s};Ie.registerRule=s=>{Hs=s};Ie.registerAtRule=s=>{Ys=s};Ie.registerRoot=s=>{jn=s};var Pe=Ie;Ie.default=Ie;Ie.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Ys.prototype):s.type==="rule"?Object.setPrototypeOf(s,Hs.prototype):s.type==="decl"?Object.setPrototypeOf(s,Wn.prototype):s.type==="comment"?Object.setPrototypeOf(s,Vn.prototype):s.type==="root"&&Object.setPrototypeOf(s,jn.prototype),s[Bn]=!0,s.nodes&&s.nodes.forEach(e=>{Ie.rebuild(e)})};var cu=Pe,Xn,Jn,ct=class extends cu{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Xn(new Jn,this,e).stringify()}};ct.registerLazyResult=s=>{Xn=s};ct.registerProcessor=s=>{Jn=s};var Zs=ct;ct.default=ct;var cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Kn=cs;cs.default=cs;var hu=Kn,hs=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new hu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Xs=hs;hs.default=hs;var Gr=39,Ui=34,Tt=92,zi=47,Dt=10,tt=32,kt=12,$t=9,_t=13,fu=91,du=93,pu=40,mu=41,gu=123,yu=125,vu=59,wu=42,Su=58,bu=64,Pt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Lt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Cu=/.[\r\n"'(/\\]/,Bi=/[\da-f]/i,Iu=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,f=r.length,d=0,S=[],w=[];function y(){return d}function b(I){throw e.error("Unclosed "+I,d)}function x(){return w.length===0&&d>=f}function M(I){if(w.length)return w.pop();if(d>=f)return;let C=I?I.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Dt:case tt:case $t:case _t:case kt:{o=d;do o+=1,n=r.charCodeAt(o);while(n===tt||n===Dt||n===$t||n===_t||n===kt);m=["space",r.slice(d,o)],d=o-1;break}case fu:case du:case gu:case yu:case Su:case vu:case mu:{let k=String.fromCharCode(n);m=[k,k,d];break}case pu:{if(p=S.length?S.pop()[1]:"",g=r.charCodeAt(d+1),p==="url"&&g!==Gr&&g!==Ui&&g!==tt&&g!==Dt&&g!==$t&&g!==kt&&g!==_t){o=d;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||C){o=d;break}else b("bracket");for(h=o;r.charCodeAt(h-1)===Tt;)h-=1,c=!c}while(c);m=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||Cu.test(a)?m=["(","(",d]:(m=["brackets",a,d,o],d=o);break}case Gr:case Ui:{l=n===Gr?"'":'"',o=d;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(i||C){o=d+1;break}else b("string");for(h=o;r.charCodeAt(h-1)===Tt;)h-=1,c=!c}while(c);m=["string",r.slice(d,o+1),d,o],d=o;break}case bu:{Pt.lastIndex=d+1,Pt.test(r),Pt.lastIndex===0?o=r.length-1:o=Pt.lastIndex-2,m=["at-word",r.slice(d,o+1),d,o],d=o;break}case Tt:{for(o=d,u=!0;r.charCodeAt(o+1)===Tt;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==zi&&n!==tt&&n!==Dt&&n!==$t&&n!==_t&&n!==kt&&(o+=1,Bi.test(r.charAt(o)))){for(;Bi.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===tt&&(o+=1)}m=["word",r.slice(d,o+1),d,o],d=o;break}default:{n===zi&&r.charCodeAt(d+1)===wu?(o=r.indexOf("*/",d+2)+1,o===0&&(i||C?o=r.length:b("comment")),m=["comment",r.slice(d,o+1),d,o],d=o):(Lt.lastIndex=d+1,Lt.test(r),Lt.lastIndex===0?o=r.length-1:o=Lt.lastIndex-2,m=["word",r.slice(d,o+1),d,o],S.push(m),d=o);break}}return d++,m}function N(I){w.push(I)}return{back:N,endOfFile:x,nextToken:M,position:y}},qn=Pe,lr=class extends qn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}},Js=lr;lr.default=lr;qn.registerAtRule(lr);var Qn=Pe,eo,to,Ye=class extends Qn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new eo(new to,this,e).stringify()}};Ye.registerLazyResult=s=>{eo=s};Ye.registerProcessor=s=>{to=s};var St=Ye;Ye.default=Ye;Qn.registerRoot(Ye);var ht={comma(s){return ht.split(s,[","],!0)},space(s){let e=[" ",`
24
+ `," "];return ht.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}},ro=ht;ht.default=ht;var so=Pe,xu=ro,ur=class extends so{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return xu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}},Ks=ur;ur.default=ur;so.registerRule(ur);var Eu=br,Mu=Iu,Ru=Ir,Au=Js,Nu=St,Wi=Ks,Vi={empty:!0,space:!0};function Ou(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}var Tu=class{constructor(e){this.input=e,this.root=new Nu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Au;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(r=l,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Ru;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Mu(this.input)}decl(e,t){let r=new Eu;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Ou(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Wi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!i?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!Vi[h]&&!Vi[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Wi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Du=Tu,ku=Pe,$u=Du,_u=Cr;function cr(s,e){let t=new _u(s,e),r=new $u(t);try{r.parse()}catch(i){throw i}return r.root}var qs=cr;cr.default=cr;ku.registerParse(cr);var{isClean:Se,my:Pu}=wt,Lu=Un,Fu=wr,Uu=Pe,zu=Zs;var Gi=Xs,Bu=qs,Wu=St,Vu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Gu={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},ju={Once:!0,postcssPlugin:!0,prepare:!0},Ze=0;function rt(s){return typeof s=="object"&&typeof s.then=="function"}function io(s){let e=!1,t=Vu[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Ze,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Ze,t+"Exit"]:[t,t+"Exit"]}function ji(s){let e;return s.type==="document"?e=["Document",Ze,"DocumentExit"]:s.type==="root"?e=["Root",Ze,"RootExit"]:e=io(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function fs(s){return s[Se]=!1,s.nodes&&s.nodes.forEach(e=>fs(e)),s}var ds={},Xe=class no{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=fs(t);else if(t instanceof no||t instanceof Gi)i=fs(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Bu;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Pu]&&Uu.rebuild(i)}this.result=new Gi(e,i,r),this.helpers={...ds,postcss:ds,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Gu[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ju[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(rt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];){e[Se]=!0;let t=[ji(e)];for(;t.length>0;){let r=this.visitTick(t);if(rt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return rt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Fu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Lu(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(rt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];)e[Se]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(rt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[Se]){l[Se]=!0,e.push(ji(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Ze){r.nodes&&r.nodes.length&&(r[Se]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Se]=!0;let t=io(e);for(let r of t)if(r===Ze)e.nodes&&e.each(i=>{i[Se]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.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"}};Xe.registerPostcss=s=>{ds=s};var oo=Xe;Xe.default=Xe;Wu.registerLazyResult(Xe);zu.registerLazyResult(Xe);var Hu=Un,Yu=wr;var Zu=qs,Xu=Xs,ps=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Yu;this.result=new Xu(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Hu(n,i,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Zu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},Ju=ps;ps.default=ps;var Ku=Ju,qu=oo,Qu=Zs,ec=St,ft=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Ku(this,e,t):new qu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},tc=ft;ft.default=ft;ec.registerProcessor(ft);Qu.registerProcessor(ft);var rc=br,sc=$n,ic=Ir,nc=Js,oc=Cr,ac=St,lc=Ks;function dt(s,e){if(Array.isArray(s))return s.map(i=>dt(i));let{inputs:t,...r}=s;if(t){e=[];for(let i of t){let n={...i,__proto__:oc.prototype};n.map&&(n.map={...n.map,__proto__:sc.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=s.nodes.map(i=>dt(i,e))),r.source){let{inputId:i,...n}=r.source;r.source=n,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new ac(r);if(r.type==="decl")return new rc(r);if(r.type==="rule")return new lc(r);if(r.type==="comment")return new ic(r);if(r.type==="atrule")return new nc(r);throw new Error("Unknown node type: "+s.type)}var uc=dt;dt.default=dt;var cc=js,ao=br,hc=oo,fc=Pe,Qs=tc,dc=wr,pc=uc,lo=Zs,mc=Kn,uo=Ir,co=Js,gc=Xs,yc=Cr,vc=qs,wc=ro,ho=Ks,fo=St,Sc=Sr;function L(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Qs(s)}L.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
26
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Qs().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return L([i(a)]).process(o,l)},i};L.stringify=dc;L.parse=vc;L.fromJSON=pc;L.list=wc;L.comment=s=>new uo(s);L.atRule=s=>new co(s);L.decl=s=>new ao(s);L.rule=s=>new ho(s);L.root=s=>new fo(s);L.document=s=>new lo(s);L.CssSyntaxError=cc;L.Declaration=ao;L.Container=fc;L.Processor=Qs;L.Document=lo;L.Comment=uo;L.Warning=mc;L.AtRule=co;L.Result=gc;L.Input=yc;L.Rule=ho;L.Root=fo;L.Node=Sc;hc.registerPostcss(L);var bc=L;L.default=L;var H=kl(bc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var Cc=Object.defineProperty,Ic=(s,e,t)=>e in s?Cc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,he=(s,e,t)=>Ic(s,typeof e!="symbol"?e+"":e,t);function xc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ec(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ei={exports:{}},G=String,po=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};ei.exports=po();ei.exports.createColors=po;var Mc=ei.exports,Rc={},Ac=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),ye=Ec(Ac),Hi=Mc,Yi=ye,ms=class mo extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,mo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Hi.isColorSupported),Yi&&e&&(t=Yi(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=Hi.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
27
+ `+g+l("^")}return" "+a(p)+u}).join(`
28
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
29
+
30
+ `+e+`
31
+ `),this.name+": "+this.message+e}},ti=ms;ms.default=ms;var bt={};bt.isClean=Symbol("isClean");bt.my=Symbol("my");var Zi={after:`
32
+ `,beforeClose:`
33
+ `,beforeComment:`
34
+ `,beforeDecl:`
35
+ `,beforeOpen:" ",beforeRule:`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Nc(s){return s[0].toUpperCase()+s.slice(1)}var gs=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
37
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Zi[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Nc(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Zi[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
38
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
39
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
40
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
41
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
42
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},go=gs;gs.default=gs;var Oc=go;function ys(s,e){new Oc(e).stringify(s)}var xr=ys;ys.default=ys;var{isClean:Ft,my:Tc}=bt,Dc=ti,kc=go,$c=xr;function vs(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>vs(o,t)):(n==="object"&&i!==null&&(i=vs(i)),t[r]=i)}return t}var ws=class{constructor(e={}){this.raws={},this[Ft]=!1,this[Tc]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=vs(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Dc(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ft]){this[Ft]=!1;let e=this;for(;e=e.parent;)e[Ft]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===`
43
+ `?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);n!==-1&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new kc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=$c){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}},Er=ws;ws.default=ws;var _c=Er,Ss=class extends _c{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Mr=Ss;Ss.default=Ss;var Pc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lc=(s,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=s[Math.random()*s.length|0];return r},Fc=(s=21)=>{let e="",t=s;for(;t--;)e+=Pc[Math.random()*64|0];return e},Uc={nanoid:Fc,customAlphabet:Lc},{SourceMapConsumer:Xi,SourceMapGenerator:Ji}=ye,{existsSync:zc,readFileSync:Bc}=ye,{dirname:jr,join:Wc}=ye;function Vc(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}var bs=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=jr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Xi(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(i.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Vc(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=jr(e),zc(e))return this.mapFile=e,Bc(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof Xi)return Ji.fromSourceMap(t).toString();if(t instanceof Ji)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Wc(jr(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},yo=bs;bs.default=bs;var{SourceMapConsumer:Gc,SourceMapGenerator:jc}=ye,{fileURLToPath:Ki,pathToFileURL:Ut}=ye,{isAbsolute:Cs,resolve:Is}=ye,{nanoid:Hc}=Uc,Hr=ye,qi=ti,Yc=yo,Yr=Symbol("fromOffsetCache"),Zc=!!(Gc&&jc),Qi=!!(Is&&Cs),hr=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Qi||/^\w+:\/\//.test(t.from)||Cs(t.from)?this.file=t.from:this.file=Is(t.from)),Qi&&Zc){let r=new Yc(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Hc(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new qi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):n=new qi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(Ut&&(n.input.url=Ut(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[Yr])r=this[Yr];else{let n=this.css.split(`
44
+ `);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[Yr]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let n=r.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<r[o])n=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Is(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;Cs(o.source)?a=Ut(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ut(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ki)u.file=Ki(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Rr=hr;hr.default=hr;Hr&&Hr.registerInput&&Hr.registerInput(hr);var{SourceMapConsumer:vo,SourceMapGenerator:qt}=ye,{dirname:Qt,relative:wo,resolve:So,sep:bo}=ye,{pathToFileURL:en}=ye,Xc=Rr,Jc=!!(vo&&qt),Kc=!!(Qt&&So&&wo&&bo),qc=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
45
+ `;this.css.includes(`\r
46
+ `)&&(t=`\r
47
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Qt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new vo(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Kc&&Jc&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qt({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 qt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(`
48
+ `),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Qt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Qt(So(r,this.mapOpts.annotation)));let i=wo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Xc(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(en){let r=en(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;bo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},Co=qc,Qc=Er,xs=class extends Qc{constructor(e){super(e),this.type="comment"}},Ar=xs;xs.default=xs;var{isClean:Io,my:xo}=bt,Eo=Mr,Mo=Ar,eh=Er,Ro,ri,si,Ao;function No(s){return s.map(e=>(e.nodes&&(e.nodes=No(e.nodes)),delete e.source,e))}function Oo(s){if(s[Io]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Oo(e)}var xe=class To extends eh{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=No(Ro(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Eo(e)]}else if(e.selector)e=[new ri(e)];else if(e.name)e=[new si(e)];else if(e.text)e=[new Mo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[xo]||To.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Io]&&Oo(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}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]}};xe.registerParse=s=>{Ro=s};xe.registerRule=s=>{ri=s};xe.registerAtRule=s=>{si=s};xe.registerRoot=s=>{Ao=s};var Le=xe;xe.default=xe;xe.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,si.prototype):s.type==="rule"?Object.setPrototypeOf(s,ri.prototype):s.type==="decl"?Object.setPrototypeOf(s,Eo.prototype):s.type==="comment"?Object.setPrototypeOf(s,Mo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Ao.prototype),s[xo]=!0,s.nodes&&s.nodes.forEach(e=>{xe.rebuild(e)})};var th=Le,Do,ko,pt=class extends th{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Do(new ko,this,e).stringify()}};pt.registerLazyResult=s=>{Do=s};pt.registerProcessor=s=>{ko=s};var ii=pt;pt.default=pt;var Es=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},$o=Es;Es.default=Es;var rh=$o,Ms=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new rh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},ni=Ms;Ms.default=Ms;var Zr=39,tn=34,zt=92,rn=47,Bt=10,st=32,Wt=12,Vt=9,Gt=13,sh=91,ih=93,nh=40,oh=41,ah=123,lh=125,uh=59,ch=42,hh=58,fh=64,jt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ht=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dh=/.[\r\n"'(/\\]/,sn=/[\da-f]/i,ph=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,f=r.length,d=0,S=[],w=[];function y(){return d}function b(I){throw e.error("Unclosed "+I,d)}function x(){return w.length===0&&d>=f}function M(I){if(w.length)return w.pop();if(d>=f)return;let C=I?I.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Bt:case st:case Vt:case Gt:case Wt:{o=d;do o+=1,n=r.charCodeAt(o);while(n===st||n===Bt||n===Vt||n===Gt||n===Wt);m=["space",r.slice(d,o)],d=o-1;break}case sh:case ih:case ah:case lh:case hh:case uh:case oh:{let k=String.fromCharCode(n);m=[k,k,d];break}case nh:{if(p=S.length?S.pop()[1]:"",g=r.charCodeAt(d+1),p==="url"&&g!==Zr&&g!==tn&&g!==st&&g!==Bt&&g!==Vt&&g!==Wt&&g!==Gt){o=d;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||C){o=d;break}else b("bracket");for(h=o;r.charCodeAt(h-1)===zt;)h-=1,c=!c}while(c);m=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||dh.test(a)?m=["(","(",d]:(m=["brackets",a,d,o],d=o);break}case Zr:case tn:{l=n===Zr?"'":'"',o=d;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(i||C){o=d+1;break}else b("string");for(h=o;r.charCodeAt(h-1)===zt;)h-=1,c=!c}while(c);m=["string",r.slice(d,o+1),d,o],d=o;break}case fh:{jt.lastIndex=d+1,jt.test(r),jt.lastIndex===0?o=r.length-1:o=jt.lastIndex-2,m=["at-word",r.slice(d,o+1),d,o],d=o;break}case zt:{for(o=d,u=!0;r.charCodeAt(o+1)===zt;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==rn&&n!==st&&n!==Bt&&n!==Vt&&n!==Gt&&n!==Wt&&(o+=1,sn.test(r.charAt(o)))){for(;sn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===st&&(o+=1)}m=["word",r.slice(d,o+1),d,o],d=o;break}default:{n===rn&&r.charCodeAt(d+1)===ch?(o=r.indexOf("*/",d+2)+1,o===0&&(i||C?o=r.length:b("comment")),m=["comment",r.slice(d,o+1),d,o],d=o):(Ht.lastIndex=d+1,Ht.test(r),Ht.lastIndex===0?o=r.length-1:o=Ht.lastIndex-2,m=["word",r.slice(d,o+1),d,o],S.push(m),d=o);break}}return d++,m}function N(I){w.push(I)}return{back:N,endOfFile:x,nextToken:M,position:y}},_o=Le,fr=class extends _o{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}},oi=fr;fr.default=fr;_o.registerAtRule(fr);var Po=Le,Lo,Fo,Je=class extends Po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Lo(new Fo,this,e).stringify()}};Je.registerLazyResult=s=>{Lo=s};Je.registerProcessor=s=>{Fo=s};var Ct=Je;Je.default=Je;Po.registerRoot(Je);var mt={comma(s){return mt.split(s,[","],!0)},space(s){let e=[" ",`
49
+ `," "];return mt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}},Uo=mt;mt.default=mt;var zo=Le,mh=Uo,dr=class extends zo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return mh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}},ai=dr;dr.default=dr;zo.registerRule(dr);var gh=Mr,yh=ph,vh=Ar,wh=oi,Sh=Ct,nn=ai,on={empty:!0,space:!0};function bh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}var Ch=class{constructor(e){this.input=e,this.root=new Sh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new wh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(r=l,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new vh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=yh(this.input)}decl(e,t){let r=new gh;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||bh(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new nn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!i?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!on[h]&&!on[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new nn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Ih=Ch,xh=Le,Eh=Ih,Mh=Rr;function pr(s,e){let t=new Mh(s,e),r=new Eh(t);try{r.parse()}catch(i){throw i}return r.root}var li=pr;pr.default=pr;xh.registerParse(pr);var{isClean:be,my:Rh}=bt,Ah=Co,Nh=xr,Oh=Le,Th=ii;var an=ni,Dh=li,kh=Ct,$h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_h={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},Ph={Once:!0,postcssPlugin:!0,prepare:!0},Ke=0;function it(s){return typeof s=="object"&&typeof s.then=="function"}function Bo(s){let e=!1,t=$h[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Ke,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Ke,t+"Exit"]:[t,t+"Exit"]}function ln(s){let e;return s.type==="document"?e=["Document",Ke,"DocumentExit"]:s.type==="root"?e=["Root",Ke,"RootExit"]:e=Bo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Rs(s){return s[be]=!1,s.nodes&&s.nodes.forEach(e=>Rs(e)),s}var As={},qe=class Wo{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Rs(t);else if(t instanceof Wo||t instanceof an)i=Rs(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Dh;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Rh]&&Oh.rebuild(i)}this.result=new an(e,i,r),this.helpers={...As,postcss:As,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!_h[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ph[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(it(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];){e[be]=!0;let t=[ln(e)];for(;t.length>0;){let r=this.visitTick(t);if(it(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return it(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Nh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Ah(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(it(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];)e[be]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(it(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[be]){l[be]=!0,e.push(ln(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Ke){r.nodes&&r.nodes.length&&(r[be]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[be]=!0;let t=Bo(e);for(let r of t)if(r===Ke)e.nodes&&e.each(i=>{i[be]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.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"}};qe.registerPostcss=s=>{As=s};var Vo=qe;qe.default=qe;kh.registerLazyResult(qe);Th.registerLazyResult(qe);var Lh=Co,Fh=xr;var Uh=li,zh=ni,Ns=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Fh;this.result=new zh(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Lh(n,i,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Uh;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},Bh=Ns;Ns.default=Ns;var Wh=Bh,Vh=Vo,Gh=ii,jh=Ct,gt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Wh(this,e,t):new Vh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Hh=gt;gt.default=gt;jh.registerProcessor(gt);Gh.registerProcessor(gt);var Yh=Mr,Zh=yo,Xh=Ar,Jh=oi,Kh=Rr,qh=Ct,Qh=ai;function yt(s,e){if(Array.isArray(s))return s.map(i=>yt(i));let{inputs:t,...r}=s;if(t){e=[];for(let i of t){let n={...i,__proto__:Kh.prototype};n.map&&(n.map={...n.map,__proto__:Zh.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=s.nodes.map(i=>yt(i,e))),r.source){let{inputId:i,...n}=r.source;r.source=n,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new qh(r);if(r.type==="decl")return new Yh(r);if(r.type==="rule")return new Qh(r);if(r.type==="comment")return new Xh(r);if(r.type==="atrule")return new Jh(r);throw new Error("Unknown node type: "+s.type)}var ef=yt;yt.default=yt;var tf=ti,Go=Mr,rf=Vo,sf=Le,ui=Hh,nf=xr,of=ef,jo=ii,af=$o,Ho=Ar,Yo=oi,lf=ni,uf=Rr,cf=li,hf=Uo,Zo=ai,Xo=Ct,ff=Er;function F(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new ui(s)}F.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
50
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
51
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new ui().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return F([i(a)]).process(o,l)},i};F.stringify=nf;F.parse=cf;F.fromJSON=of;F.list=hf;F.comment=s=>new Ho(s);F.atRule=s=>new Yo(s);F.decl=s=>new Go(s);F.rule=s=>new Zo(s);F.root=s=>new Xo(s);F.document=s=>new jo(s);F.CssSyntaxError=tf;F.Declaration=Go;F.Container=sf;F.Processor=ui;F.Document=jo;F.Comment=Ho;F.Warning=af;F.AtRule=Yo;F.Result=lf;F.Input=uf;F.Rule=Zo;F.Root=Xo;F.Node=ff;rf.registerPostcss(F);var df=F;F.default=F;var Y=xc(df);Y.stringify;Y.fromJSON;Y.plugin;Y.parse;Y.list;Y.document;Y.comment;Y.atRule;Y.rule;Y.decl;Y.root;Y.CssSyntaxError;Y.Declaration;Y.Container;Y.Processor;Y.Document;Y.Comment;Y.Warning;Y.AtRule;Y.Result;Y.Input;Y.Rule;Y.Root;Y.Node;var Os=class s{constructor(...e){he(this,"parentElement",null),he(this,"parentNode",null),he(this,"ownerDocument"),he(this,"firstChild",null),he(this,"lastChild",null),he(this,"previousSibling",null),he(this,"nextSibling",null),he(this,"ELEMENT_NODE",1),he(this,"TEXT_NODE",3),he(this,"nodeType"),he(this,"nodeName"),he(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof s){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var un={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},cn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yt={},pf=()=>!!globalThis.Zone;function ci(s){if(Yt[s])return Yt[s];let e=globalThis[s],t=e.prototype,r=s in un?un[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in cn?cn[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!pf())return Yt[s]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[s].prototype;return document.body.removeChild(l),u?Yt[s]=u:t}catch{return t}}var Xr={};function Me(s,e,t){var r;let i=`${s}.${String(t)}`;if(Xr[i])return Xr[i].call(e);let n=ci(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Xr[i]=o,o.call(e)):e[t]}var Jr={};function Jo(s,e,t){let r=`${s}.${String(t)}`;if(Jr[r])return Jr[r].bind(e);let n=ci(s)[t];return typeof n!="function"?e[t]:(Jr[r]=n,n.bind(e))}function mf(s){return Me("Node",s,"ownerDocument")}function gf(s){return Me("Node",s,"childNodes")}function yf(s){return Me("Node",s,"parentNode")}function vf(s){return Me("Node",s,"parentElement")}function wf(s){return Me("Node",s,"textContent")}function Sf(s,e){return Jo("Node",s,"contains")(e)}function bf(s){return Jo("Node",s,"getRootNode")()}function Cf(s){return!s||!("host"in s)?null:Me("ShadowRoot",s,"host")}function If(s){return s.styleSheets}function xf(s){return!s||!("shadowRoot"in s)?null:Me("Element",s,"shadowRoot")}function Ef(s,e){return Me("Element",s,"querySelector")(e)}function Mf(s,e){return Me("Element",s,"querySelectorAll")(e)}function Ko(){return ci("MutationObserver").constructor}function Fe(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var R={ownerDocument:mf,childNodes:gf,parentNode:yf,parentElement:vf,textContent:wf,contains:Sf,getRootNode:bf,host:Cf,styleSheets:If,shadowRoot:xf,querySelector:Ef,querySelectorAll:Mf,mutationObserver:Ko,patch:Fe};function se(s,e,t=document){let r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}var We=`Please stop import mirror directly. Instead of that,\r
52
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
+ or you can use record.mirror to access the mirror instance during recording.`,hn={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<"u"&&window.Proxy&&window.Reflect&&(hn=new Proxy(hn,{get(s,e,t){return e==="map"&&console.error(We),Reflect.get(s,e,t)}}));function vt(s,e,t={}){let r=null,i=0;return function(...n){let o=Date.now();!i&&t.leading===!1&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),i=o,s.apply(a,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(a,n)},l))}}function Nr(s,e,t,r,i=window){let n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(o){setTimeout(()=>{t.set.call(this,o)},0),n&&n.set&&n.set.call(this,o)}}),()=>Nr(s,e,n||{},!0)}var mr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(mr=()=>new Date().getTime());function qo(s){var e,t,r,i;let n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||n?.body&&((e=R.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n?.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:n?.documentElement.scrollTop||n?.body&&((r=R.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n?.body)==null?void 0:i.scrollTop)||0}}function Qo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ea(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ta(s){return s?s.nodeType===s.ELEMENT_NODE?s:R.parentElement(s):null}function ie(s,e,t,r){if(!s)return!1;let i=ta(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(or(i,e,r))return!0}catch{}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function Rf(s,e){return e.getId(s)!==-1}function Kr(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===ut}function ra(s,e){if(ot(s))return!1;let t=e.getId(s);if(!e.has(t))return!0;let r=R.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?ra(r,e):!0}function Ts(s){return!!s.changedTouches}function Af(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function sa(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function ia(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function Ds(s){return s?s instanceof Os&&"shadowRoot"in s?!!s.shadowRoot:!!R.shadowRoot(s):!1}var ks=class{constructor(){v(this,"id",1),v(this,"styleIDMap",new WeakMap),v(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function na(s){var e;let t=null;return"getRootNode"in s&&((e=R.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&R.host(R.getRootNode(s))&&(t=R.host(R.getRootNode(s))),t}function Nf(s){let e=s,t;for(;t=na(e);)e=t;return e}function Of(s){let e=R.ownerDocument(s);if(!e)return!1;let t=Nf(s);return R.contains(e,t)}function oa(s){let e=R.ownerDocument(s);return e?R.contains(e,s)||Of(s):!1}var D=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(D||{}),A=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(A||{}),ae=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(ae||{}),Ce=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(Ce||{}),Qe=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Qe||{}),Ve=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Ve||{});var aa=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(aa||{});function fn(s){return"__ln"in s}var $s=class{constructor(){v(this,"length",0),v(this,"head",null),v(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&fn(e.previousSibling)){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&fn(e.nextSibling)&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},dn=(s,e)=>`${s}@${e}`,_s=class{constructor(){v(this,"frozen",!1),v(this,"locked",!1),v(this,"texts",[]),v(this,"attributes",[]),v(this,"attributeMap",new WeakMap),v(this,"removes",[]),v(this,"mapRemoves",[]),v(this,"movedMap",{}),v(this,"addedSet",new Set),v(this,"movedSet",new Set),v(this,"droppedSet",new Set),v(this,"removesSubTreeCache",new Set),v(this,"mutationCb"),v(this,"blockClass"),v(this,"blockSelector"),v(this,"maskTextClass"),v(this,"maskTextSelector"),v(this,"inlineStylesheet"),v(this,"maskInputOptions"),v(this,"maskTextFn"),v(this,"maskInputFn"),v(this,"keepIframeSrcFn"),v(this,"recordCanvas"),v(this,"inlineImages"),v(this,"slimDOMOptions"),v(this,"dataURLOptions"),v(this,"doc"),v(this,"mirror"),v(this,"iframeManager"),v(this,"stylesheetManager"),v(this,"shadowDomManager"),v(this,"canvasManager"),v(this,"processedNodeManager"),v(this,"unattachedDoc"),v(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),v(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new $s,i=a=>{let u=a,c=ut;for(;c===ut;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},n=a=>{let u=R.parentNode(a);if(!u||!oa(a))return;let c=!1;if(a.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(c=!0)}let h=ot(u)?this.mirror.getId(na(a)):this.mirror.getId(u),p=i(a);if(h===-1||p===-1)return r.addNode(a);let g=je(a,{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=>{sa(m,this.mirror)&&this.iframeManager.addIframe(m),ia(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Ds(a)&&this.shadowDomManager.addShadowRoot(R.shadowRoot(a),this.doc)},onIframeLoad:(m,f)=>{this.iframeManager.attachIframe(m,f),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,f)=>{this.stylesheetManager.attachLinkElement(m,f)},cssCaptured:c});g&&(e.push({parentId:h,nextId:p,node:g}),t.add(g.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)pn(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(R.parentNode(a))||n(a);for(let a of this.addedSet)!mn(this.droppedSet,a)&&!pn(this.removesSubTreeCache,a,this.mirror)||mn(this.movedSet,a)?n(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){let u=this.mirror.getId(R.parentNode(o.value)),c=i(o.value);u!==-1&&c!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){let c=u;if(u=u.previous,c){let h=this.mirror.getId(R.parentNode(c.value));if(i(c.value)===-1)continue;if(h!==-1){a=c;break}else{let g=c.value,m=R.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let f=R.host(m);if(this.mirror.getId(f)!==-1){a=c;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),n(a.value)}let l={texts:this.texts.map(a=>{let u=a.node,c=R.parentNode(u);return c&&c.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c),{id:this.mirror.getId(u),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:u}=a;if(typeof u.style=="string"){let c=JSON.stringify(a.styleDiff),h=JSON.stringify(a._unchangedStyles);c.length<u.style.length&&(c+h).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.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(l))}),v(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(R.childNodes(e),i=>R.textContent(i)||"").join("");t.attributes.value=sr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:ir(e),value:r,maskInputFn:this.maskInputFn})}),v(this,"processMutation",e=>{if(!Kr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=R.textContent(e.target);!ie(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Nn(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,ta(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){let o=ir(t);i=sr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(ie(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!An(t.tagName,r))if(n.attributes[r]=Rn(this.doc,_e(t.tagName),_e(r),i),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),u=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||u!==o.style.getPropertyPriority(l)?u===""?n.styleDiff[l]=a:n.styleDiff[l]=[a,u]:n._unchangedStyles[l]=[a,u]}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(n.styleDiff[l]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":{if(ie(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=ot(e.target)?this.mirror.getId(R.host(e.target)):this.mirror.getId(e.target);ie(e.target,this.blockClass,this.blockSelector,!1)||Kr(t,this.mirror,this.slimDOMOptions)||!Rf(t,this.mirror)||(this.addedSet.has(t)?(Ps(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||ra(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[dn(r,i)]?Ps(this.movedSet,t):(this.removes.push({parentId:i,id:r,isShadow:ot(e.target)&&at(e.target)?!0:void 0}),Tf(t,this.removesSubTreeCache))),this.mapRemoves.push(t))});break}}}),v(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Kr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[dn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ie(e,this.blockClass,this.blockSelector,!1)||(R.childNodes(e).forEach(r=>this.genAdds(r)),Ds(e)&&R.childNodes(R.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 Ps(s,e){s.delete(e),R.childNodes(e).forEach(t=>Ps(s,t))}function Tf(s,e){let t=[s];for(;t.length;){let r=t.pop();e.has(r)||(e.add(r),R.childNodes(r).forEach(i=>t.push(i)))}}function pn(s,e,t){return s.size===0?!1:Df(s,e)}function Df(s,e,t){let r=R.parentNode(e);return r?s.has(r):!1}function mn(s,e){return s.size===0?!1:la(s,e)}function la(s,e){let t=R.parentNode(e);return t?s.has(t)?!0:la(s,t):!1}var lt;function kf(s){lt=s}function $f(){lt=void 0}var O=s=>lt?(...t)=>{try{return s(...t)}catch(r){if(lt&&lt(r)===!0)return;throw r}}:s,$e=[];function It(s){try{if("composedPath"in s){let e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch{}return s&&s.target}function ua(s,e){let t=new _s;$e.push(t),t.init(s);let r=new(Ko())(O(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function _f({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=vt(O(h=>{let p=Date.now()-l;s(o.map(g=>(g.timeOffset-=p,g)),h),o=[],l=null}),n),u=O(vt(O(h=>{let p=It(h),{clientX:g,clientY:m}=Ts(h)?h.changedTouches[0]:h;l||(l=mr()),o.push({x:g,y:m,id:r.getId(p),timeOffset:mr()-l}),a(typeof DragEvent<"u"&&h instanceof DragEvent?A.Drag:h instanceof MouseEvent?A.MouseMove:A.TouchMove)}),i,{trailing:!1})),c=[se("mousemove",u,t),se("touchmove",u,t),se("drag",u,t)];return O(()=>{c.forEach(h=>h())})}function Pf({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{};let o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[],a=null,u=c=>h=>{let p=It(h);if(ie(p,r,i,!0))return;let g=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":g=Ce.Mouse;break;case"touch":g=Ce.Touch;break;case"pen":g=Ce.Pen;break}g===Ce.Touch?ae[c]===ae.MouseDown?m="TouchStart":ae[c]===ae.MouseUp&&(m="TouchEnd"):Ce.Pen}else Ts(h)&&(g=Ce.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===Ce.Touch||m.startsWith("Mouse")&&g===Ce.Mouse)&&(g=null)):ae[c]===ae.Click&&(g=a,a=null);let f=Ts(h)?h.changedTouches[0]:h;if(!f)return;let d=t.getId(p),{clientX:S,clientY:w}=f;O(s)({type:ae[m],id:d,x:S,y:w,...g!==null&&{pointerType:g}})};return Object.keys(ae).filter(c=>Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&o[c]!==!1).forEach(c=>{let h=_e(c),p=u(c);if(window.PointerEvent)switch(ae[c]){case ae.MouseDown:case ae.MouseUp:h=h.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}l.push(se(h,p,e))}),O(()=>{l.forEach(c=>c())})}function ca({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){let o=O(vt(O(l=>{let a=It(l);if(!a||ie(a,r,i,!0))return;let u=t.getId(a);if(a===e&&e.defaultView){let c=qo(e.defaultView);s({id:u,x:c.left,y:c.top})}else s({id:u,x:a.scrollLeft,y:a.scrollTop})}),n.scroll||100));return se("scroll",o,e)}function Lf({viewportResizeCb:s},{win:e}){let t=-1,r=-1,i=O(vt(O(()=>{let n=Qo(),o=ea();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return se("resize",i,e)}var Ff=["INPUT","TEXTAREA","SELECT"],gn=new WeakMap;function Uf({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:u,userTriggeredOnInput:c}){function h(w){let y=It(w),b=w.isTrusted,x=y&&y.tagName;if(y&&x==="OPTION"&&(y=R.parentElement(y)),!y||!x||Ff.indexOf(x)<0||ie(y,r,i,!0)||y.classList.contains(n)||o&&y.matches(o))return;let M=y.value,N=!1,I=ir(y)||"";I==="radio"||I==="checkbox"?N=y.checked:(l[x.toLowerCase()]||l[I])&&(M=sr({element:y,maskInputOptions:l,tagName:x,type:I,value:M,maskInputFn:a})),p(y,c?{text:M,isChecked:N,userTriggered:b}:{text:M,isChecked:N});let C=y.name;I==="radio"&&C&&N&&e.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach(k=>{if(k!==y){let X=k.value;p(k,c?{text:X,isChecked:!N,userTriggered:!1}:{text:X,isChecked:!N})}})}function p(w,y){let b=gn.get(w);if(!b||b.text!==y.text||b.isChecked!==y.isChecked){gn.set(w,y);let x=t.getId(w);O(s)({...y,id:x})}}let m=(u.input==="last"?["change"]:["input","change"]).map(w=>se(w,O(h),e)),f=e.defaultView;if(!f)return()=>{m.forEach(w=>w())};let d=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),S=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return d&&d.set&&m.push(...S.map(w=>Nr(w[0],w[1],{set(){O(h)({target:this,isTrusted:!1})}},!1,f))),O(()=>{m.forEach(w=>w())})}function gr(s){let e=[];function t(r,i){if(Zt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){let o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return t(s,e)}function De(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function zf({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:O((c,h,p)=>{let[g,m]=p,{id:f,styleId:d}=De(h,e,t.styleMirror);return(f&&f!==-1||d&&d!==-1)&&s({id:f,styleId:d,adds:[{rule:g,index:m}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.addRule=function(c,h,p=this.cssRules.length){let g=`${c} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[g,p])};let n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:O((c,h,p)=>{let[g]=p,{id:m,styleId:f}=De(h,e,t.styleMirror);return(m&&m!==-1||f&&f!==-1)&&s({id:m,styleId:f,removes:[{index:g}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.removeRule=function(c){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:O((c,h,p)=>{let[g]=p,{id:m,styleId:f}=De(h,e,t.styleMirror);return(m&&m!==-1||f&&f!==-1)&&s({id:m,styleId:f,replace:g}),c.apply(h,p)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:O((c,h,p)=>{let[g]=p,{id:m,styleId:f}=De(h,e,t.styleMirror);return(m&&m!==-1||f&&f!==-1)&&s({id:m,styleId:f,replaceSync:g}),c.apply(h,p)})}));let a={};Xt("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Xt("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Xt("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Xt("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(a).forEach(([c,h])=>{u[c]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(u[c].insertRule,{apply:O((p,g,m)=>{let[f,d]=m,{id:S,styleId:w}=De(g.parentStyleSheet,e,t.styleMirror);return(S&&S!==-1||w&&w!==-1)&&s({id:S,styleId:w,adds:[{rule:f,index:[...gr(g),d||0]}]}),p.apply(g,m)})}),h.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:O((p,g,m)=>{let[f]=m,{id:d,styleId:S}=De(g.parentStyleSheet,e,t.styleMirror);return(d&&d!==-1||S&&S!==-1)&&s({id:d,styleId:S,removes:[{index:[...gr(g),f]}]}),p.apply(g,m)})})}),O(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,o&&(r.CSSStyleSheet.prototype.replace=o),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([c,h])=>{h.prototype.insertRule=u[c].insertRule,h.prototype.deleteRule=u[c].deleteRule})})}function ha({mirror:s,stylesheetManager:e},t){var r,i,n;let o=null;t.nodeName==="#document"?o=s.getId(t):o=s.getId(R.host(t));let l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,a=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var u;return(u=a.get)==null?void 0:u.call(this)},set(u){var c;let h=(c=a.set)==null?void 0:c.call(this,u);if(o!==null&&o!==-1)try{e.adoptStyleSheets(u,o)}catch{}return h}}),O(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Bf({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){let n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:O((l,a,u)=>{var c;let[h,p,g]=u;if(t.has(h))return n.apply(a,[h,p,g]);let{id:m,styleId:f}=De((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&s({id:m,styleId:f,set:{property:h,value:p,priority:g},index:gr(a.parentRule)}),l.apply(a,u)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:O((l,a,u)=>{var c;let[h]=u;if(t.has(h))return o.apply(a,[h]);let{id:p,styleId:g}=De((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,remove:{property:h},index:gr(a.parentRule)}),l.apply(a,u)})}),O(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Wf({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){let o=O(a=>vt(O(u=>{let c=It(u);if(!c||ie(c,e,t,!0))return;let{currentTime:h,volume:p,muted:g,playbackRate:m,loop:f}=c;s({type:a,id:r.getId(c),currentTime:h,volume:p,muted:g,playbackRate:m,loop:f})}),i.media||500)),l=[se("play",o(Ve.Play),n),se("pause",o(Ve.Pause),n),se("seeked",o(Ve.Seeked),n),se("volumechange",o(Ve.VolumeChange),n),se("ratechange",o(Ve.RateChange),n)];return O(()=>{l.forEach(a=>a())})}function Vf({fontCb:s,doc:e}){let t=e.defaultView;if(!t)return()=>{};let r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(a,u,c){let h=new n(a,u,c);return i.set(h,{family:a,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};let o=Fe(e.fonts,"add",function(l){return function(a){return setTimeout(O(()=>{let u=i.get(a);u&&(s(u),i.delete(a))}),0),l.apply(this,[a])}});return r.push(()=>{t.FontFace=n}),r.push(o),O(()=>{r.forEach(l=>l())})}function Gf(s){let{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s,o=!0,l=O(()=>{let a=e.getSelection();if(!a||o&&a?.isCollapsed)return;o=a.isCollapsed||!1;let u=[],c=a.rangeCount||0;for(let h=0;h<c;h++){let p=a.getRangeAt(h),{startContainer:g,startOffset:m,endContainer:f,endOffset:d}=p;ie(g,r,i,!0)||ie(f,r,i,!0)||u.push({start:t.getId(g),startOffset:m,end:t.getId(f),endOffset:d})}n({ranges:u})});return l(),se("selectionchange",l)}function jf({doc:s,customElementCb:e}){let t=s.defaultView;return!t||!t.customElements?()=>{}:Fe(t.customElements,"define",function(i){return function(n,o,l){try{e({define:{name:n}})}catch{console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,o,l])}})}function Hf(s,e){let{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:h,fontCb:p,selectionCb:g,customElementCb:m}=s;s.mutationCb=(...f)=>{e.mutation&&e.mutation(...f),t(...f)},s.mousemoveCb=(...f)=>{e.mousemove&&e.mousemove(...f),r(...f)},s.mouseInteractionCb=(...f)=>{e.mouseInteraction&&e.mouseInteraction(...f),i(...f)},s.scrollCb=(...f)=>{e.scroll&&e.scroll(...f),n(...f)},s.viewportResizeCb=(...f)=>{e.viewportResize&&e.viewportResize(...f),o(...f)},s.inputCb=(...f)=>{e.input&&e.input(...f),l(...f)},s.mediaInteractionCb=(...f)=>{e.mediaInteaction&&e.mediaInteaction(...f),a(...f)},s.styleSheetRuleCb=(...f)=>{e.styleSheetRule&&e.styleSheetRule(...f),u(...f)},s.styleDeclarationCb=(...f)=>{e.styleDeclaration&&e.styleDeclaration(...f),c(...f)},s.canvasMutationCb=(...f)=>{e.canvasMutation&&e.canvasMutation(...f),h(...f)},s.fontCb=(...f)=>{e.font&&e.font(...f),p(...f)},s.selectionCb=(...f)=>{e.selection&&e.selection(...f),g(...f)},s.customElementCb=(...f)=>{e.customElement&&e.customElement(...f),m(...f)}}function Yf(s,e={}){let t=s.doc.defaultView;if(!t)return()=>{};Hf(s,e);let r;s.recordDOM&&(r=ua(s,s.doc));let i=_f(s),n=Pf(s),o=ca(s),l=Lf(s,{win:t}),a=Uf(s),u=Wf(s),c=()=>{},h=()=>{},p=()=>{},g=()=>{};s.recordDOM&&(c=zf(s,{win:t}),h=ha(s,s.doc),p=Bf(s,{win:t}),s.collectFonts&&(g=Vf(s)));let m=Gf(s),f=jf(s),d=[];for(let S of s.plugins)d.push(S.observer(S.callback,t,S.options));return O(()=>{$e.forEach(S=>S.reset()),r?.disconnect(),i(),n(),o(),l(),a(),u(),c(),h(),p(),g(),m(),f(),d.forEach(S=>S())})}function Zt(s){return typeof window[s]<"u"}function Xt(s){return!!(typeof window[s]<"u"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var yr=class{constructor(e){v(this,"iframeIdToRemoteIdMap",new WeakMap),v(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){let n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),o.set(l,t)),l}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let n=i.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},Ls=class{constructor(e){v(this,"iframes",new WeakMap),v(this,"crossOriginIframeMap",new WeakMap),v(this,"crossOriginIframeMirror",new yr(Mn)),v(this,"crossOriginIframeStyleMirror"),v(this,"crossOriginIframeRootIdMap",new WeakMap),v(this,"mirror"),v(this,"mutationCb"),v(this,"wrappedEmit"),v(this,"loadListener"),v(this,"stylesheetManager"),v(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:D.IncrementalSnapshot,data:{source:A.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return t;case D.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case D.IncrementalSnapshot:switch(t.data.source){case A.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case A.Drag:case A.TouchMove:case A.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case A.ViewportResize:return!1;case A.MediaInteraction:case A.MouseInteraction:case A.Scroll:case A.CanvasMutation:case A.Input:return this.replaceIds(t.data,e,["id"]),t;case A.StyleSheetRule:case A.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case A.Font:return t;case A.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case A.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==aa.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}},Fs=class{constructor(e){v(this,"shadowDoms",new WeakSet),v(this,"mutationCb"),v(this,"scrollCb"),v(this,"bypassOptions"),v(this,"mirror"),v(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!at(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=ua({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ca({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(R.host(e))),this.restoreHandlers.push(ha({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(Fe(e.prototype,"attachShadow",function(i){return function(n){let o=i.call(this,n),l=R.shadowRoot(this);return l&&oa(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(nt=0;nt<He.length;nt++)Zf[He.charCodeAt(nt)]=nt;var nt,Xf=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=He[e[t]>>2],i+=He[(e[t]&3)<<4|e[t+1]>>4],i+=He[(e[t+1]&15)<<2|e[t+2]>>6],i+=He[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var yn=new Map;function Jf(s,e){let t=yn.get(s);return t||(t=new Map,yn.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}var fa=(s,e,t)=>{if(!s||!(pa(s,e)||typeof s=="object"))return;let r=s.constructor.name,i=Jf(t,r),n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function er(s,e,t){if(s instanceof Array)return s.map(r=>er(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){let r=s.constructor.name,i=Xf(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[er(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){let r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){let r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[er(s.data,e,t),s.width,s.height]};if(pa(s,e)||typeof s=="object"){let r=s.constructor.name,i=fa(s,e,t);return{rr_type:r,index:i}}}}return s}var da=(s,e,t)=>s.map(r=>er(r,e,t)),pa=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function Kf(s,e,t,r){let i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=Fe(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...u){return ie(this.canvas,t,r,!0)||setTimeout(()=>{let c=da(u,e,this);s(this.canvas,{type:Qe["2D"],property:o,args:c})},0),a.apply(this,u)}});i.push(l)}catch{let l=Nr(e.CanvasRenderingContext2D.prototype,o,{set(a){s(this.canvas,{type:Qe["2D"],property:o,args:[a],setter:!0})}});i.push(l)}return()=>{i.forEach(o=>o())}}function qf(s){return s==="experimental-webgl"?"webgl":s}function vn(s,e,t,r){let i=[];try{let n=Fe(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ie(this,e,t,!0)){let u=qf(l);if("__context"in this||(this.__context=u),r&&["webgl","webgl2"].includes(u))if(a[0]&&typeof a[0]=="object"){let c=a[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...a])}});i.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function wn(s,e,t,r,i,n){let o=[],l=Object.getOwnPropertyNames(s);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof s[a]!="function")continue;let u=Fe(s,a,function(c){return function(...h){let p=c.apply(this,h);if(fa(p,n,this),"tagName"in this.canvas&&!ie(this.canvas,r,i,!0)){let g=da(h,n,this),m={type:e,property:a,args:g};t(this.canvas,m)}return p}});o.push(u)}catch{let u=Nr(s,a,{set(c){t(this.canvas,{type:e,property:a,args:[c],setter:!0})}});o.push(u)}return o}function Qf(s,e,t,r){let i=[];return i.push(...wn(e.WebGLRenderingContext.prototype,Qe.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext<"u"&&i.push(...wn(e.WebGL2RenderingContext.prototype,Qe.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}var ma="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ed=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),Sn=typeof window<"u"&&window.Blob&&new Blob([ed(ma)],{type:"text/javascript;charset=utf-8"});function td(s){let e;try{if(e=Sn&&(window.URL||window.webkitURL).createObjectURL(Sn),!e)throw"";let t=new Worker(e,{name:s?.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),t}catch{return new Worker("data:text/javascript;base64,"+ma,{name:s?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}var Us=class{constructor(e){v(this,"pendingCanvasMutations",new Map),v(this,"rafStamps",{latestId:0,invokeId:null}),v(this,"mirror"),v(this,"mutationCb"),v(this,"resetObservers"),v(this,"frozen",!1),v(this,"locked",!1),v(this,"processMutation",(a,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(u)});let{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(r,i,n),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:l})}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(e,t,r,i,n){let o=vn(t,r,i,!0),l=new Map,a=new td;a.onmessage=m=>{let{id:f}=m.data;if(l.set(f,!1),!("base64"in m.data))return;let{base64:d,type:S,width:w,height:y}=m.data;this.mutationCb({id:f,type:Qe["2D"],commands:[{property:"clearRect",args:[0,0,w,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:d}],type:S}]},0,0]}]})};let u=1e3/e,c=0,h,p=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(f=>{ie(f,r,i,!0)||m.push(f)}),m},g=m=>{if(c&&m-c<u){h=requestAnimationFrame(g);return}c=m,p().forEach(async f=>{var d;let S=this.mirror.getId(f);if(l.get(S)||f.width===0||f.height===0)return;if(l.set(S,!0),["webgl","webgl2"].includes(f.__context)){let y=f.getContext(f.__context);((d=y?.getContextAttributes())==null?void 0:d.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let w=await createImageBitmap(f);a.postMessage({id:S,bitmap:w,width:f.width,height:f.height,dataURLOptions:n.dataURLOptions},[w])}),h=requestAnimationFrame(g)};h=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=vn(e,t,r,!1),n=Kf(this.processMutation.bind(this),e,t,r),o=Qf(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;let i=r.map(o=>{let{type:l,...a}=o;return a}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}},zs=class{constructor(e){v(this,"trackedLinkElements",new WeakSet),v(this,"mutationCb"),v(this,"adoptedStyleSheetCb"),v(this,"styleMirror",new ks),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let r={id:t,styleIds:[]},i=[];for(let n of e){let o;this.styleMirror.has(n)?o=this.styleMirror.getId(n):(o=this.styleMirror.add(n),i.push({styleId:o,rules:Array.from(n.rules||CSSRule,(l,a)=>({rule:xn(l,n.href),index:a}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},Bs=class{constructor(){v(this,"nodeMap",new WeakMap),v(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},Z,tr,qr,vr=!1;try{if(Array.from([1],s=>s*2)[0]!==2){let s=document.createElement("iframe");document.body.appendChild(s),Array.from=((Ii=s.contentWindow)==null?void 0:Ii.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){console.debug("Unable to override Array.from",s)}var me=al();function fe(s={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:g,maskInputFn:m,maskTextFn:f,hooks:d,packFn:S,sampling:w={},dataURLOptions:y={},mousemoveWait:b,recordDOM:x=!0,recordCanvas:M=!1,recordCrossOriginIframes:N=!1,recordAfter:I=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:C=!1,collectFonts:k=!1,inlineImages:X=!1,plugins:j,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:te}=s;kf(te);let _=N?window.parent===window:!0,P=!1;if(!_)try{window.parent.document&&(P=!1)}catch{P=!0}if(_&&!e)throw new Error("emit function is required");if(!_&&!P)return()=>{};b!==void 0&&w.mousemove===void 0&&(w.mousemove=b),me.reset();let J=h===!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}:p!==void 0?p:{password:!0},K=On(g);Af();let ze,ne=0,Ne=T=>{for(let oe of j||[])oe.eventProcessor&&(T=oe.eventProcessor(T));return S&&!P&&(T=S(T)),T};Z=(T,oe)=>{var z;let B=T;if(B.timestamp=mr(),(z=$e[0])!=null&&z.isFrozen()&&B.type!==D.FullSnapshot&&!(B.type===D.IncrementalSnapshot&&B.data.source===A.Mutation)&&$e.forEach(ue=>ue.unfreeze()),_)e?.(Ne(B),oe);else if(P){let ue={type:"rrweb",event:Ne(B),origin:window.location.origin,isCheckout:oe};window.parent.postMessage(ue,"*")}if(B.type===D.FullSnapshot)ze=B,ne=0;else if(B.type===D.IncrementalSnapshot){if(B.data.source===A.Mutation&&B.data.isAttachIframe)return;ne++;let ue=r&&ne>=r,U=t&&B.timestamp-ze.timestamp>t;(ue||U)&&tr(!0)}};let de=T=>{Z({type:D.IncrementalSnapshot,data:{source:A.Mutation,...T}})},le=T=>Z({type:D.IncrementalSnapshot,data:{source:A.Scroll,...T}}),q=T=>Z({type:D.IncrementalSnapshot,data:{source:A.CanvasMutation,...T}}),Oe=T=>Z({type:D.IncrementalSnapshot,data:{source:A.AdoptedStyleSheet,...T}}),we=new zs({mutationCb:de,adoptedStyleSheetCb:Oe}),pe=new Ls({mirror:me,mutationCb:de,stylesheetManager:we,recordCrossOriginIframes:N,wrappedEmit:Z});for(let T of j||[])T.getMirror&&T.getMirror({nodeMirror:me,crossOriginIframeMirror:pe.crossOriginIframeMirror,crossOriginIframeStyleMirror:pe.crossOriginIframeStyleMirror});let et=new Bs;qr=new Us({recordCanvas:M,mutationCb:q,win:window,blockClass:i,blockSelector:n,mirror:me,sampling:w.canvas,dataURLOptions:y});let ke=new Fs({mutationCb:de,scrollCb:le,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:J,dataURLOptions:y,maskTextFn:f,maskInputFn:m,recordCanvas:M,inlineImages:X,sampling:w,slimDOMOptions:K,iframeManager:pe,stylesheetManager:we,canvasManager:qr,keepIframeSrcFn:E,processedNodeManager:et},mirror:me});tr=(T=!1)=>{if(!x)return;Z({type:D.Meta,data:{href:window.location.href,width:ea(),height:Qo()}},T),we.reset(),ke.init(),$e.forEach(z=>z.lock());let oe=Tl(document,{mirror:me,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:J,maskTextFn:f,maskInputFn:m,slimDOM:K,dataURLOptions:y,recordCanvas:M,inlineImages:X,onSerialize:z=>{sa(z,me)&&pe.addIframe(z),ia(z,me)&&we.trackLinkElement(z),Ds(z)&&ke.addShadowRoot(R.shadowRoot(z),document)},onIframeLoad:(z,B)=>{pe.attachIframe(z,B),ke.observeAttachShadow(z)},onStylesheetLoad:(z,B)=>{we.attachLinkElement(z,B)},keepIframeSrcFn:E});if(!oe)return console.warn("Failed to snapshot the document");Z({type:D.FullSnapshot,data:{node:oe,initialOffset:qo(window)}},T),$e.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&we.adoptStyleSheets(document.adoptedStyleSheets,me.getId(document))};try{let T=[],oe=B=>{var ue;return O(Yf)({mutationCb:de,mousemoveCb:(U,Lr)=>Z({type:D.IncrementalSnapshot,data:{source:Lr,positions:U}}),mouseInteractionCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.MouseInteraction,...U}}),scrollCb:le,viewportResizeCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.ViewportResize,...U}}),inputCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.Input,...U}}),mediaInteractionCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.MediaInteraction,...U}}),styleSheetRuleCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.StyleSheetRule,...U}}),styleDeclarationCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.StyleDeclaration,...U}}),canvasMutationCb:q,fontCb:U=>Z({type:D.IncrementalSnapshot,data:{source:A.Font,...U}}),selectionCb:U=>{Z({type:D.IncrementalSnapshot,data:{source:A.Selection,...U}})},customElementCb:U=>{Z({type:D.IncrementalSnapshot,data:{source:A.CustomElement,...U}})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:u,maskInputOptions:J,inlineStylesheet:c,sampling:w,recordDOM:x,recordCanvas:M,inlineImages:X,userTriggeredOnInput:C,collectFonts:k,doc:B,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:E,blockSelector:n,slimDOMOptions:K,dataURLOptions:y,mirror:me,iframeManager:pe,stylesheetManager:we,shadowDomManager:ke,processedNodeManager:et,canvasManager:qr,ignoreCSSAttributes:ee,plugins:((ue=j?.filter(U=>U.observer))==null?void 0:ue.map(U=>({observer:U.observer,options:U.options,callback:Lr=>Z({type:D.Plugin,data:{plugin:U.name,payload:Lr}})})))||[]},d)};pe.addLoadListener(B=>{try{T.push(oe(B.contentDocument))}catch(ue){console.warn(ue)}});let z=()=>{tr(),T.push(oe(document)),vr=!0};return["interactive","complete"].includes(document.readyState)?z():(T.push(se("DOMContentLoaded",()=>{Z({type:D.DomContentLoaded,data:{}}),I==="DOMContentLoaded"&&z()})),T.push(se("load",()=>{Z({type:D.Load,data:{}}),I==="load"&&z()},window))),()=>{T.forEach(B=>{try{B()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),et.destroy(),vr=!1,$f()}}catch(T){console.warn(T)}}fe.addCustomEvent=(s,e)=>{if(!vr)throw new Error("please add custom event after start recording");Z({type:D.Custom,data:{tag:s,payload:e}})};fe.freezePage=()=>{$e.forEach(s=>s.freeze())};fe.takeFullSnapshot=s=>{if(!vr)throw new Error("please take full snapshot after start recording");tr(s)};fe.mirror=me;var bn;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(bn||(bn={}));var rp=5*1e3;var{addCustomEvent:sp}=fe,{freezePage:ip}=fe,{takeFullSnapshot:np}=fe;function rd(s){let e=["[data-tracekit-unmask]"];s.length>0&&e.push(...s);let t=e.join(", ");return(r,i)=>{if(!i)return"*".repeat(r.length);try{if(i.matches(t)||i.closest(t))return r}catch{}return"*".repeat(r.length)}}function Or(s,e){try{return fe({emit:(r,i)=>{e(r,i??!1)},maskTextSelector:"*",maskAllInputs:!0,maskTextFn:rd(s.unmask),...s.blockMedia?{blockSelector:"img, video, canvas, svg, iframe"}:{},recordCanvas:!1,recordCrossOriginIframes:!1,inlineImages:s.inlineImages,checkoutEveryNms:3e4,sampling:{mousemove:50,mouseInteraction:!0,scroll:150,input:"last"}})??null}catch{return null}}var Tr=class{constructor(e=6e4){this.events=[];this.maxAgeMs=e}add(e){this.events.push({event:e,timestamp:e.timestamp??Date.now()}),this.evictExpired()}flush(){let e=this.events.map(t=>t.event);return this.events=[],e}clear(){this.events=[]}get size(){return this.events.length}evictExpired(){let e=Date.now()-this.maxAgeMs;for(;this.events.length>0&&this.events[0].timestamp<e;)this.events.shift()}};var ya="__tracekit_replay_session",sd=1800*1e3;function va(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID().replace(/-/g,""):Array.from({length:32},()=>Math.floor(Math.random()*16).toString(16)).join("")}function id(){try{if(typeof sessionStorage<"u"){let s=sessionStorage.getItem(ya);if(s){let e=JSON.parse(s);if(Date.now()-(e.lastActivity||0)<sd&&e.sessionId)return{sessionId:e.sessionId,segmentId:e.segmentId||0,isExisting:!0}}}}catch{}return{sessionId:va(),segmentId:0,isExisting:!1}}function hi(s){try{typeof sessionStorage<"u"&&sessionStorage.setItem(ya,JSON.stringify({sessionId:s.sessionId,segmentId:s.segmentId,lastActivity:s.lastActivity}))}catch{}}function ga(s){let e=Math.random();return e<s.sessionSampleRate?"session":e<s.sessionSampleRate+s.errorSampleRate?"buffer":"off"}var Dr=class{constructor(e){this.eventCallback=null;this.flushCallback=null;this.restartCallback=null;this.pauseCallback=null;this.resumeCallback=null;this.idleTimer=null;this.visibilityHandler=null;this.config=e,this.ringBuffer=new Tr(6e4);let t=id(),r=t.isExisting?"session":ga(e),i=Date.now();this.state={sessionId:t.sessionId,mode:r,startedAt:i,lastActivity:i,segmentId:t.segmentId},hi(this.state),this.resetIdleTimer(),this.setupVisibilityListener()}onEvent(e,t){if(this.state.lastActivity=Date.now(),hi(this.state),this.resetIdleTimer(),this.state.mode==="session"){if(this.eventCallback)try{this.eventCallback([e])}catch{}}else this.state.mode==="buffer"&&this.ringBuffer.add(e)}onError(){if(this.state.mode==="buffer"&&this.ringBuffer.size>0){let e=this.ringBuffer.flush();if(this.eventCallback)try{this.eventCallback(e)}catch{}this.state.mode="session"}}setEventCallback(e){this.eventCallback=e}setFlushCallback(e){this.flushCallback=e}setRestartCallback(e){this.restartCallback=e}setPauseCallback(e){this.pauseCallback=e}setResumeCallback(e){this.resumeCallback=e}getSessionId(){return this.state.sessionId}getMode(){return this.state.mode}nextSegmentId(){return this.state.segmentId++}getState(){return{...this.state}}flush(){return this.state.mode==="buffer"?this.ringBuffer.flush():[]}resetIdleTimer(){this.idleTimer!==null&&clearTimeout(this.idleTimer),this.idleTimer=setTimeout(()=>{this.handleIdleTimeout()},this.config.idleTimeout)}handleIdleTimeout(){if(this.flushCallback)try{this.flushCallback()}catch{}let e=ga(this.config),t=Date.now();if(this.state={sessionId:va(),mode:e,startedAt:t,lastActivity:t,segmentId:0},hi(this.state),this.ringBuffer.clear(),this.restartCallback)try{this.restartCallback()}catch{}}setupVisibilityListener(){typeof document>"u"||(this.visibilityHandler=()=>{if(document.visibilityState==="hidden"){if(this.pauseCallback)try{this.pauseCallback()}catch{}}else if(document.visibilityState==="visible"&&(this.state.lastActivity=Date.now(),this.resetIdleTimer(),this.resumeCallback))try{this.resumeCallback()}catch{}},document.addEventListener("visibilitychange",this.visibilityHandler))}destroy(){this.idleTimer!==null&&(clearTimeout(this.idleTimer),this.idleTimer=null),this.visibilityHandler&&typeof document<"u"&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.ringBuffer.clear(),this.eventCallback=null,this.flushCallback=null,this.restartCallback=null,this.pauseCallback=null,this.resumeCallback=null}};var ve=Uint8Array,ce=Uint16Array,yi=Int32Array,vi=new ve([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wi=new ve([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wa=new ve([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ia=function(s,e){for(var t=new ce(31),r=0;r<31;++r)t[r]=e+=1<<s[r-1];for(var i=new yi(t[30]),r=1;r<30;++r)for(var n=t[r];n<t[r+1];++n)i[n]=n-t[r]<<5|r;return{b:t,r:i}},xa=Ia(vi,2),nd=xa.b,di=xa.r;nd[28]=258,di[258]=28;var Ea=Ia(wi,0),fp=Ea.b,Sa=Ea.r,pi=new ce(32768);for($=0;$<32768;++$)Re=($&43690)>>1|($&21845)<<1,Re=(Re&52428)>>2|(Re&13107)<<2,Re=(Re&61680)>>4|(Re&3855)<<4,pi[$]=((Re&65280)>>8|(Re&255)<<8)>>1;var Re,$,Mt=(function(s,e,t){for(var r=s.length,i=0,n=new ce(e);i<r;++i)s[i]&&++n[s[i]-1];var o=new ce(e);for(i=1;i<e;++i)o[i]=o[i-1]+n[i-1]<<1;var l;if(t){l=new ce(1<<e);var a=15-e;for(i=0;i<r;++i)if(s[i])for(var u=i<<4|s[i],c=e-s[i],h=o[s[i]-1]++<<c,p=h|(1<<c)-1;h<=p;++h)l[pi[h]>>a]=u}else for(l=new ce(r),i=0;i<r;++i)s[i]&&(l[i]=pi[o[s[i]-1]++]>>15-s[i]);return l}),Ue=new ve(288);for($=0;$<144;++$)Ue[$]=8;var $;for($=144;$<256;++$)Ue[$]=9;var $;for($=256;$<280;++$)Ue[$]=7;var $;for($=280;$<288;++$)Ue[$]=8;var $,kr=new ve(32);for($=0;$<32;++$)kr[$]=5;var $,od=Mt(Ue,9,0);var ad=Mt(kr,5,0);var Ma=function(s){return(s+7)/8|0},ld=function(s,e,t){return(e==null||e<0)&&(e=0),(t==null||t>s.length)&&(t=s.length),new ve(s.subarray(e,t))};var Ae=function(s,e,t){t<<=e&7;var r=e/8|0;s[r]|=t,s[r+1]|=t>>8},xt=function(s,e,t){t<<=e&7;var r=e/8|0;s[r]|=t,s[r+1]|=t>>8,s[r+2]|=t>>16},fi=function(s,e){for(var t=[],r=0;r<s.length;++r)s[r]&&t.push({s:r,f:s[r]});var i=t.length,n=t.slice();if(!i)return{t:Aa,l:0};if(i==1){var o=new ve(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(x,M){return x.f-M.f}),t.push({s:-1,f:25001});var l=t[0],a=t[1],u=0,c=1,h=2;for(t[0]={s:-1,f:l.f+a.f,l,r:a};c!=i-1;)l=t[t[u].f<t[h].f?u++:h++],a=t[u!=c&&t[u].f<t[h].f?u++:h++],t[c++]={s:-1,f:l.f+a.f,l,r:a};for(var p=n[0].s,r=1;r<i;++r)n[r].s>p&&(p=n[r].s);var g=new ce(p+1),m=mi(t[c-1],g,0);if(m>e){var r=0,f=0,d=m-e,S=1<<d;for(n.sort(function(M,N){return g[N.s]-g[M.s]||M.f-N.f});r<i;++r){var w=n[r].s;if(g[w]>e)f+=S-(1<<m-g[w]),g[w]=e;else break}for(f>>=d;f>0;){var y=n[r].s;g[y]<e?f-=1<<e-g[y]++-1:++r}for(;r>=0&&f;--r){var b=n[r].s;g[b]==e&&(--g[b],++f)}m=e}return{t:new ve(g),l:m}},mi=function(s,e,t){return s.s==-1?Math.max(mi(s.l,e,t+1),mi(s.r,e,t+1)):e[s.s]=t},ba=function(s){for(var e=s.length;e&&!s[--e];);for(var t=new ce(++e),r=0,i=s[0],n=1,o=function(a){t[r++]=a},l=1;l<=e;++l)if(s[l]==i&&l!=e)++n;else{if(!i&&n>2){for(;n>138;n-=138)o(32754);n>2&&(o(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(o(i),--n;n>6;n-=6)o(8304);n>2&&(o(n-3<<5|8208),n=0)}for(;n--;)o(i);n=1,i=s[l]}return{c:t.subarray(0,r),n:e}},Et=function(s,e){for(var t=0,r=0;r<e.length;++r)t+=s[r]*e[r];return t},Ra=function(s,e,t){var r=t.length,i=Ma(e+2);s[i]=r&255,s[i+1]=r>>8,s[i+2]=s[i]^255,s[i+3]=s[i+1]^255;for(var n=0;n<r;++n)s[i+n+4]=t[n];return(i+4+r)*8},Ca=function(s,e,t,r,i,n,o,l,a,u,c){Ae(e,c++,t),++i[256];for(var h=fi(i,15),p=h.t,g=h.l,m=fi(n,15),f=m.t,d=m.l,S=ba(p),w=S.c,y=S.n,b=ba(f),x=b.c,M=b.n,N=new ce(19),I=0;I<w.length;++I)++N[w[I]&31];for(var I=0;I<x.length;++I)++N[x[I]&31];for(var C=fi(N,7),k=C.t,X=C.l,j=19;j>4&&!k[wa[j-1]];--j);var E=u+5<<3,ee=Et(i,Ue)+Et(n,kr)+o,te=Et(i,p)+Et(n,f)+o+14+3*j+Et(N,k)+2*N[16]+3*N[17]+7*N[18];if(a>=0&&E<=ee&&E<=te)return Ra(e,c,s.subarray(a,a+u));var _,P,J,K;if(Ae(e,c,1+(te<ee)),c+=2,te<ee){_=Mt(p,g,0),P=p,J=Mt(f,d,0),K=f;var ze=Mt(k,X,0);Ae(e,c,y-257),Ae(e,c+5,M-1),Ae(e,c+10,j-4),c+=14;for(var I=0;I<j;++I)Ae(e,c+3*I,k[wa[I]]);c+=3*j;for(var ne=[w,x],Ne=0;Ne<2;++Ne)for(var de=ne[Ne],I=0;I<de.length;++I){var le=de[I]&31;Ae(e,c,ze[le]),c+=k[le],le>15&&(Ae(e,c,de[I]>>5&127),c+=de[I]>>12)}}else _=od,P=Ue,J=ad,K=kr;for(var I=0;I<l;++I){var q=r[I];if(q>255){var le=q>>18&31;xt(e,c,_[le+257]),c+=P[le+257],le>7&&(Ae(e,c,q>>23&31),c+=vi[le]);var Oe=q&31;xt(e,c,J[Oe]),c+=K[Oe],Oe>3&&(xt(e,c,q>>5&8191),c+=wi[Oe])}else xt(e,c,_[q]),c+=P[q]}return xt(e,c,_[256]),c+P[256]},ud=new yi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Aa=new ve(0),cd=function(s,e,t,r,i,n){var o=n.z||s.length,l=new ve(r+o+5*(1+Math.ceil(o/7e3))+i),a=l.subarray(r,l.length-i),u=n.l,c=(n.r||0)&7;if(e){c&&(a[0]=n.r>>3);for(var h=ud[e-1],p=h>>13,g=h&8191,m=(1<<t)-1,f=n.p||new ce(32768),d=n.h||new ce(m+1),S=Math.ceil(t/3),w=2*S,y=function(B){return(s[B]^s[B+1]<<S^s[B+2]<<w)&m},b=new yi(25e3),x=new ce(288),M=new ce(32),N=0,I=0,C=n.i||0,k=0,X=n.w||0,j=0;C+2<o;++C){var E=y(C),ee=C&32767,te=d[E];if(f[ee]=te,d[E]=ee,X<=C){var _=o-C;if((N>7e3||k>24576)&&(_>423||!u)){c=Ca(s,a,0,b,x,M,I,k,j,C-j,c),k=N=I=0,j=C;for(var P=0;P<286;++P)x[P]=0;for(var P=0;P<30;++P)M[P]=0}var J=2,K=0,ze=g,ne=ee-te&32767;if(_>2&&E==y(C-ne))for(var Ne=Math.min(p,_)-1,de=Math.min(32767,C),le=Math.min(258,_);ne<=de&&--ze&&ee!=te;){if(s[C+J]==s[C+J-ne]){for(var q=0;q<le&&s[C+q]==s[C+q-ne];++q);if(q>J){if(J=q,K=ne,q>Ne)break;for(var Oe=Math.min(ne,q-2),we=0,P=0;P<Oe;++P){var pe=C-ne+P&32767,et=f[pe],ke=pe-et&32767;ke>we&&(we=ke,te=pe)}}}ee=te,te=f[ee],ne+=ee-te&32767}if(K){b[k++]=268435456|di[J]<<18|Sa[K];var T=di[J]&31,oe=Sa[K]&31;I+=vi[T]+wi[oe],++x[257+T],++M[oe],X=C+J,++N}else b[k++]=s[C],++x[s[C]]}}for(C=Math.max(C,X);C<o;++C)b[k++]=s[C],++x[s[C]];c=Ca(s,a,u,b,x,M,I,k,j,C-j,c),u||(n.r=c&7|a[c/8|0]<<3,c-=7,n.h=d,n.p=f,n.i=C,n.w=X)}else{for(var C=n.w||0;C<o+u;C+=65535){var z=C+65535;z>=o&&(a[c/8|0]=u,z=o),c=Ra(a,c+1,s.subarray(C,z))}n.i=o}return ld(l,0,r+Ma(c)+i)},hd=(function(){for(var s=new Int32Array(256),e=0;e<256;++e){for(var t=e,r=9;--r;)t=(t&1&&-306674912)^t>>>1;s[e]=t}return s})(),fd=function(){var s=-1;return{p:function(e){for(var t=s,r=0;r<e.length;++r)t=hd[t&255^e[r]]^t>>>8;s=t},d:function(){return~s}}};var dd=function(s,e,t,r,i){if(!i&&(i={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),o=new ve(n.length+s.length);o.set(n),o.set(s,n.length),s=o,i.w=n.length}return cd(s,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(s.length)))*1.5):20:12+e.mem,t,r,i)};var gi=function(s,e,t){for(;t;++e)s[e]=t,t>>>=8},pd=function(s,e){var t=e.filename;if(s[0]=31,s[1]=139,s[2]=8,s[8]=e.level<2?4:e.level==9?2:0,s[9]=3,e.mtime!=0&&gi(s,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),t){s[3]=8;for(var r=0;r<=t.length;++r)s[r+10]=t.charCodeAt(r)}};var md=function(s){return 10+(s.filename?s.filename.length+1:0)};function $r(s,e){e||(e={});var t=fd(),r=s.length;t.p(s);var i=dd(s,e,md(e),8),n=i.length;return pd(i,e),gi(i,n-8,t.d()),gi(i,n-4,r),i}var gd=typeof TextDecoder<"u"&&new TextDecoder,yd=0;try{gd.decode(Aa,{stream:!0}),yd=1}catch{}var Na=`
54
+ self.onmessage = function(e) {
55
+ try {
56
+ var data = e.data;
57
+ var json = JSON.stringify(data.events);
58
+ var encoded = new TextEncoder().encode(json);
59
+
60
+ if (typeof CompressionStream === 'undefined') {
61
+ self.postMessage({ error: 'CompressionStream not available', segmentId: data.segmentId });
62
+ return;
63
+ }
64
+
65
+ var cs = new CompressionStream('gzip');
66
+ var writer = cs.writable.getWriter();
67
+ var reader = cs.readable.getReader();
68
+ var chunks = [];
69
+
70
+ writer.write(encoded);
71
+ writer.close();
72
+
73
+ function readChunks() {
74
+ reader.read().then(function(result) {
75
+ if (result.done) {
76
+ var totalLen = 0;
77
+ for (var i = 0; i < chunks.length; i++) totalLen += chunks[i].length;
78
+ var compressed = new Uint8Array(totalLen);
79
+ var offset = 0;
80
+ for (var i = 0; i < chunks.length; i++) {
81
+ compressed.set(chunks[i], offset);
82
+ offset += chunks[i].length;
83
+ }
84
+ self.postMessage(
85
+ { compressed: compressed, segmentId: data.segmentId, originalSize: encoded.length },
86
+ [compressed.buffer]
87
+ );
88
+ } else {
89
+ chunks.push(result.value);
90
+ readChunks();
91
+ }
92
+ }).catch(function(err) {
93
+ self.postMessage({ error: err.message, segmentId: data.segmentId });
94
+ });
95
+ }
96
+ readChunks();
97
+ } catch(err) {
98
+ self.postMessage({ error: (err && err.message) || 'Unknown compression error', segmentId: e.data.segmentId });
99
+ }
100
+ };
101
+ `;var _r=class{constructor(){this.worker=null;this.pendingCallbacks=new Map;this.useMainThread=!1;this.initWorker()}initWorker(){try{let e=new Blob([Na],{type:"application/javascript"}),t=URL.createObjectURL(e);this.worker=new Worker(t),URL.revokeObjectURL(t),this.worker.onmessage=r=>{let{compressed:i,segmentId:n,originalSize:o,error:l}=r.data,a=this.pendingCallbacks.get(n);if(a){if(this.pendingCallbacks.delete(n),l){console.warn("[TraceKit Replay] Worker compression failed, falling back to main thread:",l),this.useMainThread=!0,this.compressMainThread(a.events).then(a.resolve).catch(a.reject);return}a.resolve({compressed:i,originalSize:o})}},this.worker.onerror=()=>{console.warn("[TraceKit Replay] Web Worker failed to initialize. Using main-thread compression."),this.useMainThread=!0,this.worker=null}}catch{console.warn("[TraceKit Replay] Cannot create Web Worker (CSP?). Using main-thread compression."),this.useMainThread=!0}}async compress(e,t){return this.useMainThread||!this.worker?this.compressMainThread(e):new Promise((r,i)=>{let n={resolve:r,reject:i,events:e};this.pendingCallbacks.set(t,n),this.worker.postMessage({events:e,segmentId:t})})}async compressMainThread(e){let t=JSON.stringify(e),r=new TextEncoder().encode(t);return{compressed:$r(r,{level:6}),originalSize:r.length}}destroy(){this.worker&&(this.worker.terminate(),this.worker=null),this.pendingCallbacks.clear()}};var Oa=[1e3,2e3,4e3],Si=3,vd=65536,Pr=class{constructor(e,t){this.pendingEvents=[];this.flushTimer=null;this.bufferSize=0;this.clickCount=0;this.keypressCount=0;this.sessionIdFn=null;this.segmentIdFn=null;this.replayTypeFn=null;this.urlFn=null;this.userIdFn=null;this.config=e,this.compressionWorker=t}start(e,t,r,i,n){this.sessionIdFn=e,this.segmentIdFn=t,this.replayTypeFn=r,this.urlFn=i,this.userIdFn=n,this.flushTimer=setInterval(()=>{this.flush().catch(()=>{})},this.config.flushInterval)}stop(){this.flushTimer!==null&&(clearInterval(this.flushTimer),this.flushTimer=null)}destroy(){this.stop(),this.pendingEvents=[],this.bufferSize=0}addEvent(e){try{e.type===3&&e.data?.source===2&&e.data?.type===2&&this.clickCount++,e.type===3&&e.data?.source===5&&this.keypressCount++;let t=JSON.stringify(e).length;for(this.pendingEvents.push(e),this.bufferSize+=t;this.bufferSize>this.config.maxBufferSize&&this.pendingEvents.length>1;){let r=this.pendingEvents.shift();if(r)try{this.bufferSize-=JSON.stringify(r).length}catch{}this.config.maxBufferSize>0&&console.warn("[TraceKit Replay] Buffer exceeded maxBufferSize, dropping oldest events")}}catch{}}addEvents(e){for(let t of e)this.addEvent(t)}async flush(){if(this.pendingEvents.length===0)return;let e=this.pendingEvents;this.pendingEvents=[],this.bufferSize=0;try{let t=this.sessionIdFn?this.sessionIdFn():"",r=this.segmentIdFn?this.segmentIdFn():0;if(!t)return;let{compressed:i,originalSize:n}=await this.compressionWorker.compress(e,r);await this.uploadWithRetry(t,r,i,n)}catch{}}flushSync(){if(this.pendingEvents.length!==0)try{let e=this.pendingEvents;this.pendingEvents=[],this.bufferSize=0;let t=this.sessionIdFn?this.sessionIdFn():"",r=this.segmentIdFn?this.segmentIdFn():0,i=this.replayTypeFn?this.replayTypeFn():"session";if(!t)return;let n=JSON.stringify(e),o=new TextEncoder().encode(n),l=$r(o,{level:6}),a=this.urlFn?this.urlFn():"",u=this.userIdFn?this.userIdFn():"",c=`${this.config.endpoint}/api/replays/${t}/chunks?api_key=${encodeURIComponent(this.config.apiKey)}&segment_id=${r}&original_size=${o.length}&replay_type=${i}&replay_url=${encodeURIComponent(a)}&replay_user_id=${encodeURIComponent(u)}&click_count=${this.clickCount}&keypress_count=${this.keypressCount}`,h=new Blob([l],{type:"application/octet-stream"});if(l.byteLength<=vd&&typeof navigator<"u"&&navigator.sendBeacon&&navigator.sendBeacon(c,h))return;typeof fetch<"u"&&fetch(c,{method:"POST",headers:{"Content-Type":"application/octet-stream"},body:h,keepalive:!0}).catch(()=>{})}catch{}}async uploadWithRetry(e,t,r,i){let n=`${this.config.endpoint}/api/replays/${e}/chunks`,o=this.replayTypeFn?this.replayTypeFn():"session";for(let l=0;l<Si;l++)try{let a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/octet-stream","X-API-Key":this.config.apiKey,"X-Segment-Id":String(t),"X-Original-Size":String(i),"X-Replay-Type":o,"X-Replay-Url":this.urlFn?this.urlFn():"","X-Replay-User-Id":this.userIdFn?this.userIdFn():"","X-Replay-User-Agent":typeof navigator<"u"?navigator.userAgent:"","X-Click-Count":String(this.clickCount),"X-Keypress-Count":String(this.keypressCount)},body:r});if(a.ok||a.status===400||a.status===401||a.status===413)return;l<Si-1&&await this.delay(Oa[l])}catch{l<Si-1&&await this.delay(Oa[l])}}delay(e){return new Promise(t=>setTimeout(t,e))}};function wd(s={}){let e=null,t=null,r=null,i=null,n=null;return{name:"replay",install(l){try{let a=l.getConfig();if(n=Ci(s,a.apiKey,a.endpoint),e=new Dr(n),e.getMode()==="off")return;t=new _r,r=new Pr(n,t),e.setEventCallback(h=>{for(let p of h)r.addEvent(p)});let u=l.captureException.bind(l);l.captureException=function(h,p){let g=e?.getSessionId()??"",m=l.getScope();g&&m.setTag("replay_id",g);let f=u(h,p);return g&&m.setTag("replay_id",""),e&&e.onError(),f},l.getScope().onBreadcrumb(h=>{try{if(h.type==="http"||h.category?.startsWith("fetch")||h.category?.startsWith("xhr"))fe.addCustomEvent("network-request",{method:h.data?.method||"GET",url:h.data?.url||h.message||"",status:h.data?.status_code,duration:h.data?.duration,error:h.data?.error,traceparent:h.data?.traceparent});else if(h.type==="console"||h.category?.startsWith("console.")){let p={level:h.category?.replace("console.","")||"log",message:h.message||""};h.data&&Object.keys(h.data).length>0&&(p.data=h.data),(h.category==="console.error"||h.category==="console.warn")&&h.data?.stack&&(p.stack=h.data.stack),fe.addCustomEvent("console-log",p)}}catch{}}),e.setFlushCallback(()=>{r?.flush().catch(()=>{})}),e.setRestartCallback(()=>{i&&i(),i=Or(n,(h,p)=>{e?.onEvent(h,p)})}),e.setPauseCallback(()=>{i&&(i(),i=null),r?.flushSync()}),e.setResumeCallback(()=>{i=Or(n,(h,p)=>{e?.onEvent(h,p)})}),r.start(()=>e.getSessionId(),()=>e.nextSegmentId(),()=>e.getMode()==="buffer"?"buffer":"session",()=>typeof window<"u"?window.location.href:"",()=>{try{return l.getScope().getUser()?.id||""}catch{return""}}),i=Or(n,(h,p)=>{e.onEvent(h,p)})}catch(a){console.warn("[TraceKit Replay] Failed to initialize replay recording:",a)}},teardown(){try{i&&(i(),i=null),r?.destroy(),t?.destroy(),e?.destroy(),e=null,t=null,r=null,n=null}catch{}},flush(){try{r?.flush().catch(()=>{})}catch{}},getSessionId(){return e?.getSessionId()??""}}}return Pa(Sd);})();
102
+ /*! Bundled license information:
103
+
104
+ rrweb/dist/rrweb.js:
105
+ (*! *****************************************************************************
106
+ Copyright (c) Microsoft Corporation.
107
+
108
+ Permission to use, copy, modify, and/or distribute this software for any
109
+ purpose with or without fee is hereby granted.
110
+
111
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
112
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
113
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
114
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
115
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
116
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
117
+ PERFORMANCE OF THIS SOFTWARE.
118
+ ***************************************************************************** *)
119
+ */
120
+ //# sourceMappingURL=index.global.js.map