flowsery 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/recording.js CHANGED
@@ -1,62 +1,62 @@
1
- (()=>{var{defineProperty:x9,getOwnPropertyNames:g8,getOwnPropertyDescriptor:m8}=Object,u8=Object.prototype.hasOwnProperty;function c8(X){return this[X]}var p8=(X)=>{var Z=(LJ??=new WeakMap).get(X),J;if(Z)return Z;if(Z=x9({},"__esModule",{value:!0}),X&&typeof X==="object"||typeof X==="function"){for(var Y of g8(X))if(!u8.call(Z,Y))x9(Z,Y,{get:c8.bind(X,Y),enumerable:!(J=m8(X,Y))||J.enumerable})}return LJ.set(X,Z),Z},LJ;var l8=(X)=>X;function d8(X,Z){this[X]=l8.bind(null,Z)}var i8=(X,Z)=>{for(var J in Z)x9(X,J,{get:Z[J],enumerable:!0,configurable:!0,set:d8.bind(Z,J)})};var hG={};i8(hG,{initRecording:()=>WJ});var a0=()=>{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(X)=>{let Z=Math.random()*16|0;return(X==="x"?Z:Z&3|8).toString(16)})},PJ=()=>{if(typeof navigator>"u")return!0;return"webdriver"in navigator&&navigator.webdriver===!0};var L0=()=>{return window.__flowsery_config||null},O0=()=>{return document.querySelector("script[data-fl-website-id]")},r0=()=>{let X=L0();if(X)return X.websiteId;return O0()?.getAttribute("data-fl-website-id")||""},_1=()=>{return L0()?.apiUrl??null},o0=()=>{let X=L0();if(X?.apiBase)return X.apiBase;let Z=O0(),J=Z?.getAttribute("data-api");if(J)return J;let Y=Z?.src??"",Q=Y.replace(/\/js\/(?:script|main|recording)(?:\.hash)?\.js.*/,"");return Q===Y?"":Q},n0=()=>{return"https://analytics.flowsery.com/analytics"},DJ=()=>{let X=L0();if(X?.domain)return X.domain;return O0()?.getAttribute("data-domain")||location.hostname},b9=()=>{let X=L0();if(X)return!!X.cookieless;return O0()?.hasAttribute("data-cookieless")??!1},s8=new Set(["localhost","127.0.0.1","[::1]"]),FJ=()=>{return s8.has(location.hostname)||location.hostname.endsWith(".local")},AJ=()=>{let X=L0();if(X)return!!X.local;return O0()?.hasAttribute("data-local")??!1},OJ=()=>{return location.protocol==="file:"},MJ=()=>{let X=L0();if(X)return!!X.allowFileProtocol;return O0()?.hasAttribute("data-allow-file-protocol")??!1},wJ=()=>{try{return window.self!==window.top}catch{return!0}},_J=()=>{let X=L0();if(X)return!!X.allowIframe;return O0()?.hasAttribute("data-allow-iframe")??!1};var CJ=()=>{try{return localStorage.getItem("flowsery_ignore")==="true"}catch{return!1}};var a8=Object.defineProperty,r8=(X,Z,J)=>(Z in X)?a8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>r8(X,typeof Z!=="symbol"?Z+"":Z,J),RJ,o8=Object.defineProperty,n8=(X,Z,J)=>(Z in X)?o8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,EJ=(X,Z,J)=>n8(X,typeof Z!=="symbol"?Z+"":Z,J),d=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(d||{}),IJ={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$J={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},C1={},t8=()=>{return!!globalThis.Zone};function TZ(X){if(C1[X])return C1[X];let Z=globalThis[X],J=Z.prototype,Y=X in IJ?IJ[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in $J?$J[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!t8())return C1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return C1[X]=U}catch{return J}}var k9={};function z0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(k9[Q])return k9[Q].call(Z);let K=TZ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return k9[Q]=q,q.call(Z)}var v9={};function RX(X,Z,J){let Y=`${X}.${String(J)}`;if(v9[Y])return v9[Y].bind(Z);let K=TZ(X)[J];if(typeof K!=="function")return Z[J];return v9[Y]=K,K.bind(Z)}function e8(X){return z0("Node",X,"ownerDocument")}function ZY(X){return z0("Node",X,"childNodes")}function JY(X){return z0("Node",X,"parentNode")}function XY(X){return z0("Node",X,"parentElement")}function YY(X){return z0("Node",X,"textContent")}function QY(X,Z){return RX("Node",X,"contains")(Z)}function KY(X){return RX("Node",X,"getRootNode")()}function qY(X){if(!X||!("host"in X))return null;return z0("ShadowRoot",X,"host")}function GY(X){return X.styleSheets}function VY(X){if(!X||!("shadowRoot"in X))return null;return z0("Element",X,"shadowRoot")}function UY(X,Z){return z0("Element",X,"querySelector")(Z)}function WY(X,Z){return z0("Element",X,"querySelectorAll")(Z)}function HY(){return TZ("MutationObserver").constructor}function zY(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var s={ownerDocument:e8,childNodes:ZY,parentNode:JY,parentElement:XY,textContent:YY,contains:QY,getRootNode:KY,host:qY,styleSheets:GY,shadowRoot:VY,querySelector:UY,querySelectorAll:WY,mutationObserver:HY,patch:zY};function EX(X){return X.nodeType===X.ELEMENT_NODE}function X1(X){let Z=X&&"host"in X&&"mode"in X&&s.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&s.shadowRoot(Z)===X)}function Y1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function BY(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function jY(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function r9(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode)J=X.ownerNode.baseURI;let Y=Array.from(Z,(Q)=>IX(Q,J)).join("");return BY(Y)}catch(Z){return null}}function IX(X,Z){if(PY(X)){let J;try{J=r9(X.styleSheet)||jY(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return J9(J,X.styleSheet.href);return J}else{let J=X.cssText;if(DY(X)&&X.selectorText.includes(":"))J=LY(J);if(Z)return J9(J,Z);return J}}function LY(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function PY(X){return"styleSheet"in X}function DY(X){return"selectorText"in X}class SZ{constructor(){EJ(this,"idNodeMap",new Map),EJ(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function FY(){return new SZ}function e1({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:K}){let q=Q||"",V=Y&&w0(Y);if(Z[J.toLowerCase()]||V&&Z[V])if(K)q=K(q,X);else q="*".repeat(q.length);return q}function w0(X){return X.toLowerCase()}var NJ="__rrweb_original__";function AY(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let K=Z.getImageData,q=NJ in K?K[NJ]:K;if(new Uint32Array(q.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((G)=>G!==0))return!1}return!0}function Z9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?w0(Z):null}function $X(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(K){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function OY(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var MY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wY=/^(?:[a-z+]+:)?\/\//i,_Y=/^www\..*/i,CY=/^(data:)([^,]*),(.*)/i;function J9(X,Z){return(X||"").replace(MY,(J,Y,Q,K,q,V)=>{let G=Q||q||V,U=Y||K||"";if(!G)return J;if(wY.test(G)||_Y.test(G))return`url(${U}${G}${U})`;if(CY.test(G))return`url(${U}${G}${U})`;if(G[0]==="/")return`url(${U}${OY(Z)+G}${U})`;let W=Z.split("/"),H=G.split("/");W.pop();for(let B of H)if(B===".")continue;else if(B==="..")W.pop();else W.push(B);return`url(${U}${W.join("/")}${U})`})}function R1(X,Z=!1){if(Z)return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");else return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function RY(X,Z,J=!1){let Y=Array.from(Z.childNodes),Q=[],K=0;if(Y.length>1&&X&&typeof X==="string"){let q=R1(X,J),V=q.length/X.length;for(let G=1;G<Y.length;G++)if(Y[G].textContent&&typeof Y[G].textContent==="string"){let U=R1(Y[G].textContent,J),W=100,H=3;for(;H<U.length;H++){if(U[H].match(/[a-zA-Z0-9]/)||U.indexOf(U.substring(0,H),1)!==-1)continue;break}for(;H<U.length;H++){let B=U.substring(0,H),j=q.split(B),P=-1;if(j.length===2)P=j[0].length;else if(j.length>2&&j[0]===""&&Y[G-1].textContent!=="")P=q.indexOf(B,1);else if(j.length===1){if(B=B.substring(0,B.length-1),j=q.split(B),j.length<=1)return Q.push(X),Q;H=101}else if(H===U.length-1)P=q.indexOf(B);if(j.length>=2&&H>100){let L=Y[G-1].textContent;if(L&&typeof L==="string"){let z=R1(L).length;P=q.indexOf(B,z)}if(P===-1)P=j[0].length}if(P!==-1){let L=Math.floor(P/V);for(;L>0&&L<X.length;){if(K+=1,K>50*Y.length)return Q.push(X),Q;let z=R1(X.substring(0,L),J);if(z.length===P){Q.push(X.substring(0,L)),X=X.substring(L),q=q.substring(P);break}else if(z.length<P)L+=Math.max(1,Math.floor((P-z.length)/V));else L-=Math.max(1,Math.floor((z.length-P)*V))}break}}}}return Q.push(X),Q}function EY(X,Z){return RY(X,Z).join("/* rr_split */")}var IY=1,$Y=new RegExp("[^a-z0-9-_:]"),K1=-2;function NX(){return IY++}function NY(X){if(X instanceof HTMLFormElement)return"form";let Z=w0(X.tagName);if($Y.test(Z))return"div";return Z}var S0,TJ,TY=/^[^ \t\n\r\u000c]+/,SY=/^[, \t\n\r\u000c]+/;function fY(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(K){let q,V=K.exec(Z.substring(J));if(V)return q=V[0],J+=q.length,q;return""}let Q=[];while(!0){if(Y(SY),J>=Z.length)break;let K=Y(TY);if(K.slice(-1)===",")K=k0(X,K.substring(0,K.length-1)),Q.push(K);else{let q="";K=k0(X,K);let V=!1;while(!0){let G=Z.charAt(J);if(G===""){Q.push((K+q).trim());break}else if(!V){if(G===","){J+=1,Q.push((K+q).trim());break}else if(G==="(")V=!0}else if(G===")")V=!1;q+=G,J+=1}}}return Q.join(", ")}var SJ=new WeakMap;function k0(X,Z){if(!Z||Z.trim()==="")return Z;return fZ(X,Z)}function xY(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function fZ(X,Z){let J=SJ.get(X);if(!J)J=X.createElement("a"),SJ.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function TX(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return k0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return k0(X,Y);else if(J==="background"&&["table","td","th"].includes(Z))return k0(X,Y);else if(J==="srcset")return fY(X,Y);else if(J==="style")return J9(Y,fZ(X));else if(Z==="object"&&J==="data")return k0(X,Y);return Y}function SX(X,Z,J){return["video","audio"].includes(X)&&Z==="autoplay"}function bY(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function X9(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return X9(s.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return X9(s.parentNode(X),Z,J)}function fX(X,Z,J,Y){let Q;if(EX(X)){if(Q=X,!s.childNodes(Q).length)return!1}else if(s.parentElement(X)===null)return!1;else Q=s.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(X9(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(K){}return!1}function kY(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,K;try{K=Y.document.readyState}catch(V){return}if(K!=="complete"){let V=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Q=!0,Z()});return}let q="about:blank";if(Y.location.href!==q||X.src===q||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function vY(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(q){return}if(Q)return;let K=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(K),Y=!0,Z()})}function hY(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:q,inlineStylesheet:V,maskInputOptions:G={},maskTextFn:U,maskInputFn:W,dataURLOptions:H={},inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L=!1,cssCaptured:z=!1}=Z,O=yY(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:d.Document,childNodes:[],compatMode:X.compatMode};else return{type:d.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:d.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:O};case X.ELEMENT_NODE:return mY(X,{doc:J,blockClass:Q,blockSelector:K,inlineStylesheet:V,maskInputOptions:G,maskInputFn:W,dataURLOptions:H,inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L,rootId:O});case X.TEXT_NODE:return gY(X,{doc:J,needsMask:q,maskTextFn:U,rootId:O,cssCaptured:z});case X.CDATA_SECTION_NODE:return{type:d.CDATA,textContent:"",rootId:O};case X.COMMENT_NODE:return{type:d.Comment,textContent:s.textContent(X)||"",rootId:O};default:return!1}}function yY(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function gY(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:K}=Z,q=s.parentNode(X),V=q&&q.tagName,G="",U=V==="STYLE"?!0:void 0,W=V==="SCRIPT"?!0:void 0;if(W)G="SCRIPT_PLACEHOLDER";else if(!K){if(G=s.textContent(X),U&&G)G=J9(G,fZ(Z.doc))}if(!U&&!W&&G&&J)G=Y?Y(G,s.parentElement(X)):G.replace(/[\S]/g,"*");return{type:d.Text,textContent:G||"",rootId:Q}}function mY(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:K,maskInputOptions:q={},maskInputFn:V,dataURLOptions:G={},inlineImages:U,recordCanvas:W,keepIframeSrcFn:H,newlyAddedElement:B=!1,rootId:j}=Z,P=bY(X,Y,Q),L=NY(X),z={},O=X.attributes.length;for(let D=0;D<O;D++){let M=X.attributes[D];if(!SX(L,M.name,M.value))z[M.name]=TX(J,L,w0(M.name),M.value)}if(L==="link"&&K){let D=Array.from(J.styleSheets).find((T)=>{return T.href===X.href}),M=null;if(D)M=r9(D);if(M)delete z.rel,delete z.href,z._cssText=M}if(L==="style"&&X.sheet){let D=r9(X.sheet);if(D){if(X.childNodes.length>1)D=EY(D,X);z._cssText=D}}if(["input","textarea","select"].includes(L)){let{value:D,checked:M}=X;if(z.type!=="radio"&&z.type!=="checkbox"&&z.type!=="submit"&&z.type!=="button"&&D)z.value=e1({element:X,type:Z9(X),tagName:L,value:D,maskInputOptions:q,maskInputFn:V});else if(M)z.checked=M}if(L==="option")if(X.selected&&!q.select)z.selected=!0;else delete z.selected;if(L==="dialog"&&X.open)z.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(L==="canvas"&&W){if(X.__context==="2d"){if(!AY(X))z.rr_dataURL=X.toDataURL(G.type,G.quality)}else if(!("__context"in X)){let D=X.toDataURL(G.type,G.quality),M=J.createElement("canvas");M.width=X.width,M.height=X.height;let T=M.toDataURL(G.type,G.quality);if(D!==T)z.rr_dataURL=D}}if(L==="img"&&U){if(!S0)S0=J.createElement("canvas"),TJ=S0.getContext("2d");let D=X,M=D.currentSrc||D.getAttribute("src")||"<unknown-src>",T=D.crossOrigin,f=()=>{D.removeEventListener("load",f);try{S0.width=D.naturalWidth,S0.height=D.naturalHeight,TJ.drawImage(D,0,0),z.rr_dataURL=S0.toDataURL(G.type,G.quality)}catch(p){if(D.crossOrigin!=="anonymous"){if(D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f);return}else console.warn(`Cannot inline img src=${M}! Error: ${p}`)}if(D.crossOrigin==="anonymous")T?z.crossOrigin=T:D.removeAttribute("crossorigin")};if(D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f)}if(["audio","video"].includes(L)){let D=z;D.rr_mediaState=X.paused?"paused":"played",D.rr_mediaCurrentTime=X.currentTime,D.rr_mediaPlaybackRate=X.playbackRate,D.rr_mediaMuted=X.muted,D.rr_mediaLoop=X.loop,D.rr_mediaVolume=X.volume}if(!B){if(X.scrollLeft)z.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)z.rr_scrollTop=X.scrollTop}if(P){let{width:D,height:M}=X.getBoundingClientRect();z={class:z.class,rr_width:`${D}px`,rr_height:`${M}px`}}if(L==="iframe"&&!H(z.src)){if(!X.contentDocument)z.rr_src=z.src;delete z.src}let A;try{if(customElements.get(L))A=!0}catch(D){}return{type:d.Element,tagName:L,attributes:z,childNodes:[],isSVG:xY(X)||void 0,needBlock:P,rootId:j,isCustom:A}}function x(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function xX(X){if(X===!0||X==="all")return{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"};else if(X)return X;return{}}function uY(X,Z){if(Z.comment&&X.type===d.Comment)return!0;else if(X.type===d.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&$X(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(x(X.attributes.name).match(/^msapplication-tile(image|color)$/)||x(X.attributes.name)==="application-name"||x(X.attributes.rel)==="icon"||x(X.attributes.rel)==="apple-touch-icon"||x(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&x(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(x(X.attributes.property).match(/^(og|twitter|fb):/)||x(X.attributes.name).match(/^(og|twitter):/)||x(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(x(X.attributes.name)==="robots"||x(X.attributes.name)==="googlebot"||x(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(x(X.attributes.name)==="author"||x(X.attributes.name)==="generator"||x(X.attributes.name)==="framework"||x(X.attributes.name)==="publisher"||x(X.attributes.name)==="progid"||x(X.attributes.property).match(/^article:/)||x(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(x(X.attributes.name)==="google-site-verification"||x(X.attributes.name)==="yandex-verification"||x(X.attributes.name)==="csrf-token"||x(X.attributes.name)==="p:domain_verify"||x(X.attributes.name)==="verify-v1"||x(X.attributes.name)==="verification"||x(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function v0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,maskTextClass:q,maskTextSelector:V,skipChild:G=!1,inlineStylesheet:U=!0,maskInputOptions:W={},maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P={},inlineImages:L=!1,recordCanvas:z=!1,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D=5000,onStylesheetLoad:M,stylesheetLoadTimeout:T=5000,keepIframeSrcFn:f=()=>!1,newlyAddedElement:p=!1,cssCaptured:v=!1}=Z,{needsMask:c}=Z,{preserveWhiteSpace:i=!0}=Z;if(!c)c=fX(X,q,V,c===void 0);let t=hY(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,dataURLOptions:P,inlineImages:L,recordCanvas:z,keepIframeSrcFn:f,newlyAddedElement:p,cssCaptured:v});if(!t)return console.warn(X,"not serialized"),null;let K0;if(Y.hasNode(X))K0=Y.getId(X);else if(uY(t,j)||!i&&t.type===d.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)K0=K1;else K0=NX();let E=Object.assign(t,{id:K0});if(Y.add(X,E),K0===K1)return null;if(O)O(X);let i0=!G;if(E.type===d.Element){i0=i0&&!E.needBlock,delete E.needBlock;let l=s.shadowRoot(X);if(l&&Y1(l))E.isShadowHost=!0}if((E.type===d.Document||E.type===d.Element)&&i0){if(j.headWhitespace&&E.type===d.Element&&E.tagName==="head")i=!1;let l={doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:G,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f,cssCaptured:!1};if(E.type===d.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0);else{if(E.type===d.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string")l.cssCaptured=!0;for(let D0 of Array.from(s.childNodes(X))){let q0=v0(D0,l);if(q0)E.childNodes.push(q0)}}let e=null;if(EX(X)&&(e=s.shadowRoot(X)))for(let D0 of Array.from(s.childNodes(e))){let q0=v0(D0,l);if(q0)Y1(e)&&(q0.isShadow=!0),E.childNodes.push(q0)}}let s0=s.parentNode(X);if(s0&&X1(s0)&&Y1(s0))E.isShadow=!0;if(E.type===d.Element&&E.tagName==="iframe")kY(X,()=>{let l=X.contentDocument;if(l&&A){let e=v0(l,{doc:l,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(e)A(X,e)}},D);if(E.type===d.Element&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&$X(E.attributes.href)==="css"))vY(X,()=>{if(M){let l=v0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(l)M(X,l)}},T);return E}function cY(X,Z){let{mirror:J=new SZ,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:K="rr-mask",maskTextSelector:q=null,inlineStylesheet:V=!0,inlineImages:G=!1,recordCanvas:U=!1,maskAllInputs:W=!1,maskTextFn:H,maskInputFn:B,slimDOM:j=!1,dataURLOptions:P,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T=()=>!1}=Z||{},f=W===!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}:W===!1?{password:!0}:W,p=xX(j);return v0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:K,maskTextSelector:q,skipChild:!1,inlineStylesheet:V,maskInputOptions:f,maskTextFn:H,maskInputFn:B,slimDOMOptions:p,dataURLOptions:P,inlineImages:G,recordCanvas:U,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T,newlyAddedElement:!1})}var pY=/(max|min)-device-(width|height)/,uG=new RegExp(pY.source,"g");function lY(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function dY(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var xZ={exports:{}},b=String,bX=function(){return{isColorSupported:!1,reset:b,bold:b,dim:b,italic:b,underline:b,inverse:b,hidden:b,strikethrough:b,black:b,red:b,green:b,yellow:b,blue:b,magenta:b,cyan:b,white:b,gray:b,bgBlack:b,bgRed:b,bgGreen:b,bgYellow:b,bgBlue:b,bgMagenta:b,bgCyan:b,bgWhite:b}};xZ.exports=bX();xZ.exports.createColors=bX;var iY=xZ.exports,sY={},aY=Object.freeze(Object.defineProperty({__proto__:null,default:sY},Symbol.toStringTag,{value:"Module"})),Y0=dY(aY),fJ=iY,xJ=Y0,o9=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(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(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=fJ.isColorSupported;if(xJ){if(Z)J=xJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=fJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
2
- `+j+V("^")}return" "+G(B)+U}).join(`
1
+ (()=>{var{defineProperty:x9,getOwnPropertyNames:oX,getOwnPropertyDescriptor:nX}=Object,tX=Object.prototype.hasOwnProperty;function eX(X){return this[X]}var ZY=(X)=>{var Z=(FJ??=new WeakMap).get(X),J;if(Z)return Z;if(Z=x9({},"__esModule",{value:!0}),X&&typeof X==="object"||typeof X==="function"){for(var Y of oX(X))if(!tX.call(Z,Y))x9(Z,Y,{get:eX.bind(X,Y),enumerable:!(J=nX(X,Y))||J.enumerable})}return FJ.set(X,Z),Z},FJ;var JY=(X)=>X;function XY(X,Z){this[X]=JY.bind(null,Z)}var YY=(X,Z)=>{for(var J in Z)x9(X,J,{get:Z[J],enumerable:!0,configurable:!0,set:XY.bind(Z,J)})};var rq={};YY(rq,{initRecording:()=>BJ});var a0=()=>{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(X)=>{let Z=Math.random()*16|0;return(X==="x"?Z:Z&3|8).toString(16)})},AJ=()=>{if(typeof navigator>"u")return!0;return"webdriver"in navigator&&navigator.webdriver===!0};var q0=()=>{return window.__flowsery_config||null},P0=()=>{return document.querySelector("script[data-fl-website-id]")},S0=()=>{let X=q0();if(X)return X.websiteId;return P0()?.getAttribute("data-fl-website-id")||""},MJ=()=>{return q0()?.apiUrl??null},A1=()=>{let X=q0();if(X?.apiBase)return X.apiBase;let Z=P0(),J=Z?.getAttribute("data-api");if(J)return J;let Y=Z?.src??"",Q=Y.replace(/\/js\/(?:script|main|recording)(?:\.hash)?\.js.*/,"");return Q===Y?"":Q},b9=()=>{return"https://analytics.flowsery.com/analytics"},wJ=()=>{let X=q0();if(X?.domain)return X.domain;return P0()?.getAttribute("data-domain")||location.hostname},f9=()=>{let X=q0();if(X)return!!X.cookieless;return P0()?.hasAttribute("data-cookieless")??!1},QY=new Set(["localhost","127.0.0.1","[::1]"]),_J=()=>{return QY.has(location.hostname)||location.hostname.endsWith(".local")},CJ=()=>{let X=q0();if(X)return!!X.local;return P0()?.hasAttribute("data-local")??!1},RJ=()=>{return location.protocol==="file:"},EJ=()=>{let X=q0();if(X)return!!X.allowFileProtocol;return P0()?.hasAttribute("data-allow-file-protocol")??!1},$J=()=>{try{return window.self!==window.top}catch{return!0}},IJ=()=>{let X=q0();if(X)return!!X.allowIframe;return P0()?.hasAttribute("data-allow-iframe")??!1};var GY=(X)=>{let Z=2166136261;for(let J=0;J<X.length;J++)Z^=X.charCodeAt(J),Z=Math.imul(Z,16777619);return(Z>>>0)%100},NJ=(X,Z)=>{if(!Number.isFinite(Z)||Z>=100)return!0;if(Z<=0)return!1;return GY(X)<Z},OJ=(X)=>X==null||!Number.isFinite(X)?100:Math.max(0,Math.min(100,Math.floor(X))),TJ=(X,Z)=>{if(typeof X==="number")return OJ(X);let J=P0()?.getAttribute(Z);return OJ(J!=null&&J!==""?Number(J):null)},SJ=()=>TJ(q0()?.recordingSampleRate,"data-recording-sample"),xJ=()=>TJ(q0()?.aiSampleRate,"data-ai-sample");var bJ=()=>{try{return localStorage.getItem("flowsery_ignore")==="true"}catch{return!1}};var KY=Object.defineProperty,qY=(X,Z,J)=>(Z in X)?KY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>qY(X,typeof Z!=="symbol"?Z+"":Z,J),fJ,VY=Object.defineProperty,WY=(X,Z,J)=>(Z in X)?VY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,kJ=(X,Z,J)=>WY(X,typeof Z!=="symbol"?Z+"":Z,J),d=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(d||{}),vJ={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yJ={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},M1={},HY=()=>{return!!globalThis.Zone};function TZ(X){if(M1[X])return M1[X];let Z=globalThis[X],J=Z.prototype,Y=X in vJ?vJ[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,V))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),G=X in yJ?yJ[X]:void 0,K=Boolean(G&&G.every((V)=>{var q;return typeof J[V]==="function"&&((q=J[V])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&K&&!HY())return M1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let q=V.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(V),!W)return J;return M1[X]=W}catch{return J}}var k9={};function B0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(k9[Q])return k9[Q].call(Z);let G=TZ(X),K=(Y=Object.getOwnPropertyDescriptor(G,J))==null?void 0:Y.get;if(!K)return Z[J];return k9[Q]=K,K.call(Z)}var v9={};function f8(X,Z,J){let Y=`${X}.${String(J)}`;if(v9[Y])return v9[Y].bind(Z);let G=TZ(X)[J];if(typeof G!=="function")return Z[J];return v9[Y]=G,G.bind(Z)}function zY(X){return B0("Node",X,"ownerDocument")}function UY(X){return B0("Node",X,"childNodes")}function BY(X){return B0("Node",X,"parentNode")}function jY(X){return B0("Node",X,"parentElement")}function LY(X){return B0("Node",X,"textContent")}function PY(X,Z){return f8("Node",X,"contains")(Z)}function DY(X){return f8("Node",X,"getRootNode")()}function FY(X){if(!X||!("host"in X))return null;return B0("ShadowRoot",X,"host")}function OY(X){return X.styleSheets}function AY(X){if(!X||!("shadowRoot"in X))return null;return B0("Element",X,"shadowRoot")}function MY(X,Z){return B0("Element",X,"querySelector")(Z)}function wY(X,Z){return B0("Element",X,"querySelectorAll")(Z)}function _Y(){return TZ("MutationObserver").constructor}function CY(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var s={ownerDocument:zY,childNodes:UY,parentNode:BY,parentElement:jY,textContent:LY,contains:PY,getRootNode:DY,host:FY,styleSheets:OY,shadowRoot:AY,querySelector:MY,querySelectorAll:wY,mutationObserver:_Y,patch:CY};function k8(X){return X.nodeType===X.ELEMENT_NODE}function e0(X){let Z=X&&"host"in X&&"mode"in X&&s.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&s.shadowRoot(Z)===X)}function Z1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function RY(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function EY(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function r9(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode)J=X.ownerNode.baseURI;let Y=Array.from(Z,(Q)=>v8(Q,J)).join("");return RY(Y)}catch(Z){return null}}function v8(X,Z){if(IY(X)){let J;try{J=r9(X.styleSheet)||EY(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return t1(J,X.styleSheet.href);return J}else{let J=X.cssText;if(NY(X)&&X.selectorText.includes(":"))J=$Y(J);if(Z)return t1(J,Z);return J}}function $Y(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function IY(X){return"styleSheet"in X}function NY(X){return"selectorText"in X}class SZ{constructor(){kJ(this,"idNodeMap",new Map),kJ(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function TY(){return new SZ}function o1({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:G}){let K=Q||"",V=Y&&C0(Y);if(Z[J.toLowerCase()]||V&&Z[V])if(G)K=G(K,X);else K="*".repeat(K.length);return K}function C0(X){return X.toLowerCase()}var hJ="__rrweb_original__";function SY(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let G=Z.getImageData,K=hJ in G?G[hJ]:G;if(new Uint32Array(K.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((q)=>q!==0))return!1}return!0}function n1(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?C0(Z):null}function y8(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(G){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function xY(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var bY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,fY=/^(?:[a-z+]+:)?\/\//i,kY=/^www\..*/i,vY=/^(data:)([^,]*),(.*)/i;function t1(X,Z){return(X||"").replace(bY,(J,Y,Q,G,K,V)=>{let q=Q||K||V,W=Y||G||"";if(!q)return J;if(fY.test(q)||kY.test(q))return`url(${W}${q}${W})`;if(vY.test(q))return`url(${W}${q}${W})`;if(q[0]==="/")return`url(${W}${xY(Z)+q}${W})`;let H=Z.split("/"),z=q.split("/");H.pop();for(let B of z)if(B===".")continue;else if(B==="..")H.pop();else H.push(B);return`url(${W}${H.join("/")}${W})`})}function w1(X,Z=!1){if(Z)return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");else return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function yY(X,Z,J=!1){let Y=Array.from(Z.childNodes),Q=[],G=0;if(Y.length>1&&X&&typeof X==="string"){let K=w1(X,J),V=K.length/X.length;for(let q=1;q<Y.length;q++)if(Y[q].textContent&&typeof Y[q].textContent==="string"){let W=w1(Y[q].textContent,J),H=100,z=3;for(;z<W.length;z++){if(W[z].match(/[a-zA-Z0-9]/)||W.indexOf(W.substring(0,z),1)!==-1)continue;break}for(;z<W.length;z++){let B=W.substring(0,z),j=K.split(B),P=-1;if(j.length===2)P=j[0].length;else if(j.length>2&&j[0]===""&&Y[q-1].textContent!=="")P=K.indexOf(B,1);else if(j.length===1){if(B=B.substring(0,B.length-1),j=K.split(B),j.length<=1)return Q.push(X),Q;z=101}else if(z===W.length-1)P=K.indexOf(B);if(j.length>=2&&z>100){let L=Y[q-1].textContent;if(L&&typeof L==="string"){let U=w1(L).length;P=K.indexOf(B,U)}if(P===-1)P=j[0].length}if(P!==-1){let L=Math.floor(P/V);for(;L>0&&L<X.length;){if(G+=1,G>50*Y.length)return Q.push(X),Q;let U=w1(X.substring(0,L),J);if(U.length===P){Q.push(X.substring(0,L)),X=X.substring(L),K=K.substring(P);break}else if(U.length<P)L+=Math.max(1,Math.floor((P-U.length)/V));else L-=Math.max(1,Math.floor((U.length-P)*V))}break}}}}return Q.push(X),Q}function hY(X,Z){return yY(X,Z).join("/* rr_split */")}var gY=1,mY=new RegExp("[^a-z0-9-_:]"),X1=-2;function h8(){return gY++}function uY(X){if(X instanceof HTMLFormElement)return"form";let Z=C0(X.tagName);if(mY.test(Z))return"div";return Z}var x0,gJ,cY=/^[^ \t\n\r\u000c]+/,pY=/^[, \t\n\r\u000c]+/;function lY(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(G){let K,V=G.exec(Z.substring(J));if(V)return K=V[0],J+=K.length,K;return""}let Q=[];while(!0){if(Y(pY),J>=Z.length)break;let G=Y(cY);if(G.slice(-1)===",")G=v0(X,G.substring(0,G.length-1)),Q.push(G);else{let K="";G=v0(X,G);let V=!1;while(!0){let q=Z.charAt(J);if(q===""){Q.push((G+K).trim());break}else if(!V){if(q===","){J+=1,Q.push((G+K).trim());break}else if(q==="(")V=!0}else if(q===")")V=!1;K+=q,J+=1}}}return Q.join(", ")}var mJ=new WeakMap;function v0(X,Z){if(!Z||Z.trim()==="")return Z;return xZ(X,Z)}function dY(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function xZ(X,Z){let J=mJ.get(X);if(!J)J=X.createElement("a"),mJ.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function g8(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return v0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return v0(X,Y);else if(J==="background"&&["table","td","th"].includes(Z))return v0(X,Y);else if(J==="srcset")return lY(X,Y);else if(J==="style")return t1(Y,xZ(X));else if(Z==="object"&&J==="data")return v0(X,Y);return Y}function m8(X,Z,J){return["video","audio"].includes(X)&&Z==="autoplay"}function iY(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function e1(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return e1(s.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return e1(s.parentNode(X),Z,J)}function u8(X,Z,J,Y){let Q;if(k8(X)){if(Q=X,!s.childNodes(Q).length)return!1}else if(s.parentElement(X)===null)return!1;else Q=s.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(e1(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(G){}return!1}function sY(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,G;try{G=Y.document.readyState}catch(V){return}if(G!=="complete"){let V=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Q=!0,Z()});return}let K="about:blank";if(Y.location.href!==K||X.src===K||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function aY(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(K){return}if(Q)return;let G=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(G),Y=!0,Z()})}function rY(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:K,inlineStylesheet:V,maskInputOptions:q={},maskTextFn:W,maskInputFn:H,dataURLOptions:z={},inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L=!1,cssCaptured:U=!1}=Z,A=oY(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:d.Document,childNodes:[],compatMode:X.compatMode};else return{type:d.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:d.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:A};case X.ELEMENT_NODE:return tY(X,{doc:J,blockClass:Q,blockSelector:G,inlineStylesheet:V,maskInputOptions:q,maskInputFn:H,dataURLOptions:z,inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L,rootId:A});case X.TEXT_NODE:return nY(X,{doc:J,needsMask:K,maskTextFn:W,rootId:A,cssCaptured:U});case X.CDATA_SECTION_NODE:return{type:d.CDATA,textContent:"",rootId:A};case X.COMMENT_NODE:return{type:d.Comment,textContent:s.textContent(X)||"",rootId:A};default:return!1}}function oY(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function nY(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:G}=Z,K=s.parentNode(X),V=K&&K.tagName,q="",W=V==="STYLE"?!0:void 0,H=V==="SCRIPT"?!0:void 0;if(H)q="SCRIPT_PLACEHOLDER";else if(!G){if(q=s.textContent(X),W&&q)q=t1(q,xZ(Z.doc))}if(!W&&!H&&q&&J)q=Y?Y(q,s.parentElement(X)):q.replace(/[\S]/g,"*");return{type:d.Text,textContent:q||"",rootId:Q}}function tY(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:G,maskInputOptions:K={},maskInputFn:V,dataURLOptions:q={},inlineImages:W,recordCanvas:H,keepIframeSrcFn:z,newlyAddedElement:B=!1,rootId:j}=Z,P=iY(X,Y,Q),L=uY(X),U={},A=X.attributes.length;for(let D=0;D<A;D++){let M=X.attributes[D];if(!m8(L,M.name,M.value))U[M.name]=g8(J,L,C0(M.name),M.value)}if(L==="link"&&G){let D=Array.from(J.styleSheets).find((T)=>{return T.href===X.href}),M=null;if(D)M=r9(D);if(M)delete U.rel,delete U.href,U._cssText=M}if(L==="style"&&X.sheet){let D=r9(X.sheet);if(D){if(X.childNodes.length>1)D=hY(D,X);U._cssText=D}}if(["input","textarea","select"].includes(L)){let{value:D,checked:M}=X;if(U.type!=="radio"&&U.type!=="checkbox"&&U.type!=="submit"&&U.type!=="button"&&D)U.value=o1({element:X,type:n1(X),tagName:L,value:D,maskInputOptions:K,maskInputFn:V});else if(M)U.checked=M}if(L==="option")if(X.selected&&!K.select)U.selected=!0;else delete U.selected;if(L==="dialog"&&X.open)U.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(L==="canvas"&&H){if(X.__context==="2d"){if(!SY(X))U.rr_dataURL=X.toDataURL(q.type,q.quality)}else if(!("__context"in X)){let D=X.toDataURL(q.type,q.quality),M=J.createElement("canvas");M.width=X.width,M.height=X.height;let T=M.toDataURL(q.type,q.quality);if(D!==T)U.rr_dataURL=D}}if(L==="img"&&W){if(!x0)x0=J.createElement("canvas"),gJ=x0.getContext("2d");let D=X,M=D.currentSrc||D.getAttribute("src")||"<unknown-src>",T=D.crossOrigin,x=()=>{D.removeEventListener("load",x);try{x0.width=D.naturalWidth,x0.height=D.naturalHeight,gJ.drawImage(D,0,0),U.rr_dataURL=x0.toDataURL(q.type,q.quality)}catch(p){if(D.crossOrigin!=="anonymous"){if(D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0)x();else D.addEventListener("load",x);return}else console.warn(`Cannot inline img src=${M}! Error: ${p}`)}if(D.crossOrigin==="anonymous")T?U.crossOrigin=T:D.removeAttribute("crossorigin")};if(D.complete&&D.naturalWidth!==0)x();else D.addEventListener("load",x)}if(["audio","video"].includes(L)){let D=U;D.rr_mediaState=X.paused?"paused":"played",D.rr_mediaCurrentTime=X.currentTime,D.rr_mediaPlaybackRate=X.playbackRate,D.rr_mediaMuted=X.muted,D.rr_mediaLoop=X.loop,D.rr_mediaVolume=X.volume}if(!B){if(X.scrollLeft)U.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)U.rr_scrollTop=X.scrollTop}if(P){let{width:D,height:M}=X.getBoundingClientRect();U={class:U.class,rr_width:`${D}px`,rr_height:`${M}px`}}if(L==="iframe"&&!z(U.src)){if(!X.contentDocument)U.rr_src=U.src;delete U.src}let O;try{if(customElements.get(L))O=!0}catch(D){}return{type:d.Element,tagName:L,attributes:U,childNodes:[],isSVG:dY(X)||void 0,needBlock:P,rootId:j,isCustom:O}}function b(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function c8(X){if(X===!0||X==="all")return{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"};else if(X)return X;return{}}function eY(X,Z){if(Z.comment&&X.type===d.Comment)return!0;else if(X.type===d.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&y8(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(b(X.attributes.name).match(/^msapplication-tile(image|color)$/)||b(X.attributes.name)==="application-name"||b(X.attributes.rel)==="icon"||b(X.attributes.rel)==="apple-touch-icon"||b(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&b(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(b(X.attributes.property).match(/^(og|twitter|fb):/)||b(X.attributes.name).match(/^(og|twitter):/)||b(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(b(X.attributes.name)==="robots"||b(X.attributes.name)==="googlebot"||b(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(b(X.attributes.name)==="author"||b(X.attributes.name)==="generator"||b(X.attributes.name)==="framework"||b(X.attributes.name)==="publisher"||b(X.attributes.name)==="progid"||b(X.attributes.property).match(/^article:/)||b(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(b(X.attributes.name)==="google-site-verification"||b(X.attributes.name)==="yandex-verification"||b(X.attributes.name)==="csrf-token"||b(X.attributes.name)==="p:domain_verify"||b(X.attributes.name)==="verify-v1"||b(X.attributes.name)==="verification"||b(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function y0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:G,maskTextClass:K,maskTextSelector:V,skipChild:q=!1,inlineStylesheet:W=!0,maskInputOptions:H={},maskTextFn:z,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P={},inlineImages:L=!1,recordCanvas:U=!1,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:D=5000,onStylesheetLoad:M,stylesheetLoadTimeout:T=5000,keepIframeSrcFn:x=()=>!1,newlyAddedElement:p=!1,cssCaptured:v=!1}=Z,{needsMask:c}=Z,{preserveWhiteSpace:i=!0}=Z;if(!c)c=u8(X,K,V,c===void 0);let t=rY(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:B,dataURLOptions:P,inlineImages:L,recordCanvas:U,keepIframeSrcFn:x,newlyAddedElement:p,cssCaptured:v});if(!t)return console.warn(X,"not serialized"),null;let G0;if(Y.hasNode(X))G0=Y.getId(X);else if(eY(t,j)||!i&&t.type===d.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)G0=X1;else G0=h8();let E=Object.assign(t,{id:G0});if(Y.add(X,E),G0===X1)return null;if(A)A(X);let i0=!q;if(E.type===d.Element){i0=i0&&!E.needBlock,delete E.needBlock;let l=s.shadowRoot(X);if(l&&Z1(l))E.isShadowHost=!0}if((E.type===d.Document||E.type===d.Element)&&i0){if(j.headWhitespace&&E.type===d.Element&&E.tagName==="head")i=!1;let l={doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:q,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:U,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x,cssCaptured:!1};if(E.type===d.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0);else{if(E.type===d.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string")l.cssCaptured=!0;for(let A0 of Array.from(s.childNodes(X))){let K0=y0(A0,l);if(K0)E.childNodes.push(K0)}}let e=null;if(k8(X)&&(e=s.shadowRoot(X)))for(let A0 of Array.from(s.childNodes(e))){let K0=y0(A0,l);if(K0)Z1(e)&&(K0.isShadow=!0),E.childNodes.push(K0)}}let s0=s.parentNode(X);if(s0&&e0(s0)&&Z1(s0))E.isShadow=!0;if(E.type===d.Element&&E.tagName==="iframe")sY(X,()=>{let l=X.contentDocument;if(l&&O){let e=y0(l,{doc:l,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:!1,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:U,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x});if(e)O(X,e)}},D);if(E.type===d.Element&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&y8(E.attributes.href)==="css"))aY(X,()=>{if(M){let l=y0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:!1,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:U,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x});if(l)M(X,l)}},T);return E}function ZQ(X,Z){let{mirror:J=new SZ,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:G="rr-mask",maskTextSelector:K=null,inlineStylesheet:V=!0,inlineImages:q=!1,recordCanvas:W=!1,maskAllInputs:H=!1,maskTextFn:z,maskInputFn:B,slimDOM:j=!1,dataURLOptions:P,preserveWhiteSpace:L,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T=()=>!1}=Z||{},x=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}:H===!1?{password:!0}:H,p=c8(j);return y0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:G,maskTextSelector:K,skipChild:!1,inlineStylesheet:V,maskInputOptions:x,maskTextFn:z,maskInputFn:B,slimDOMOptions:p,dataURLOptions:P,inlineImages:q,recordCanvas:W,preserveWhiteSpace:L,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T,newlyAddedElement:!1})}var JQ=/(max|min)-device-(width|height)/,eq=new RegExp(JQ.source,"g");function XQ(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function YQ(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var bZ={exports:{}},f=String,p8=function(){return{isColorSupported:!1,reset:f,bold:f,dim:f,italic:f,underline:f,inverse:f,hidden:f,strikethrough:f,black:f,red:f,green:f,yellow:f,blue:f,magenta:f,cyan:f,white:f,gray:f,bgBlack:f,bgRed:f,bgGreen:f,bgYellow:f,bgBlue:f,bgMagenta:f,bgCyan:f,bgWhite:f}};bZ.exports=p8();bZ.exports.createColors=p8;var QQ=bZ.exports,GQ={},KQ=Object.freeze(Object.defineProperty({__proto__:null,default:GQ},Symbol.toStringTag,{value:"Module"})),Y0=YQ(KQ),uJ=QQ,cJ=Y0,o9=class X extends Error{constructor(Z,J,Y,Q,G,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,G)this.file=G;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(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(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=uJ.isColorSupported;if(cJ){if(Z)J=cJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),G=Math.min(this.line+2,Y.length),K=String(G).length,V,q;if(Z){let{bold:W,gray:H,red:z}=uJ.createColors(!0);V=(B)=>W(z(B)),q=(B)=>H(B)}else V=q=(W)=>W;return Y.slice(Q,G).map((W,H)=>{let z=Q+1+H,B=" "+(" "+z).slice(-K)+" | ";if(z===this.line){let j=q(B.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+q(B)+W+`
2
+ `+j+V("^")}return" "+q(B)+W}).join(`
3
3
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
4
4
 
5
5
  `+Z+`
6
- `;return this.name+": "+this.message+Z}},bZ=o9;o9.default=o9;var L1={};L1.isClean=Symbol("isClean");L1.my=Symbol("my");var bJ={after:`
6
+ `;return this.name+": "+this.message+Z}},fZ=o9;o9.default=o9;var U1={};U1.isClean=Symbol("isClean");U1.my=Symbol("my");var pJ={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
11
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rY(X){return X[0].toUpperCase()+X.slice(1)}var n9=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
12
- `)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return bJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+rY(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=bJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function qQ(X){return X[0].toUpperCase()+X.slice(1)}var n9=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let G=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+G,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,G=0;while(Q&&Q.type!=="root")G+=1,Q=Q.parent;if(Y.includes(`
12
+ `)){let K=this.raw(Z,null,"indent");if(K.length)for(let V=0;V<G;V++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let G=Z.nodes[Q],K=this.raw(G,"before");if(K)this.builder(K);this.stringify(G,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let G=Z.parent;if(Y==="before"){if(!G||G.type==="root"&&G.first===Z)return"";if(G&&G.type==="document")return""}if(!G)return pJ[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+qQ(Y);if(this[V])Q=this[V](K,Z);else K.walk((q)=>{if(Q=q.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=pJ[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
13
13
  `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
14
14
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
15
15
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
16
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
17
- `);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},kX=n9;n9.default=n9;var oY=kX;function t9(X,Z){new oY(Z).stringify(X)}var j9=t9;t9.default=t9;var{isClean:E1,my:nY}=L1,tY=bZ,eY=kX,ZQ=j9;function e9(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>e9(q,J));else{if(K==="object"&&Q!==null)Q=e9(Q);J[Y]=Q}}return J}var ZZ=class{constructor(Z={}){this.raws={},this[E1]=!1,this[nY]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=e9(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new tY(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[E1]){this[E1]=!1;let Z=this;while(Z=Z.parent)Z[E1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
18
- `)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new eY().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=ZQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},L9=ZZ;ZZ.default=ZZ;var JQ=L9,JZ=class extends JQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},P9=JZ;JZ.default=JZ;var XQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",YQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},QQ=(X=21)=>{let Z="",J=X;while(J--)Z+=XQ[Math.random()*64|0];return Z},KQ={nanoid:QQ,customAlphabet:YQ},{SourceMapConsumer:kJ,SourceMapGenerator:vJ}=Y0,{existsSync:qQ,readFileSync:GQ}=Y0,{dirname:h9,join:VQ}=Y0;function UQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var XZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=h9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new kJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return UQ(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=h9(Z),qQ(Z))return this.mapFile=Z,GQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof kJ)return vJ.fromSourceMap(J).toString();else if(J instanceof vJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=VQ(h9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},vX=XZ;XZ.default=XZ;var{SourceMapConsumer:WQ,SourceMapGenerator:HQ}=Y0,{fileURLToPath:hJ,pathToFileURL:I1}=Y0,{isAbsolute:YZ,resolve:QZ}=Y0,{nanoid:zQ}=KQ,y9=Y0,yJ=bZ,BQ=vX,g9=Symbol("fromOffsetCache"),jQ=Boolean(WQ&&HQ),gJ=Boolean(QZ&&YZ),Y9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!gJ||/^\w+:\/\//.test(J.from)||YZ(J.from))this.file=J.from;else this.file=QZ(J.from);if(gJ&&jQ){let Y=new BQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+zQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new yJ(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new yJ(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(I1)K.input.url=I1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[g9]){let K=this.css.split(`
19
- `);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[g9]=Y}else Y=this[g9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return QZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(YZ(q.source))G=I1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||I1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(hJ)U.file=hJ(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},D9=Y9;Y9.default=Y9;if(y9&&y9.registerInput)y9.registerInput(Y9);var{SourceMapConsumer:hX,SourceMapGenerator:s1}=Y0,{dirname:a1,relative:yX,resolve:gX,sep:mX}=Y0,{pathToFileURL:mJ}=Y0,LQ=D9,PQ=Boolean(hX&&s1),DQ=Boolean(a1&&gX&&yX&&mX),FQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
16
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let G=Y.raws.before.split(`
17
+ `);return J=G[G.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},l8=n9;n9.default=n9;var VQ=l8;function t9(X,Z){new VQ(Z).stringify(X)}var z9=t9;t9.default=t9;var{isClean:_1,my:WQ}=U1,HQ=fZ,zQ=l8,UQ=z9;function e9(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],G=typeof Q;if(Y==="parent"&&G==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>e9(K,J));else{if(G==="object"&&Q!==null)Q=e9(Q);J[Y]=Q}}return J}var ZZ=class{constructor(Z={}){this.raws={},this[_1]=!1,this[WQ]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=e9(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new HQ(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[_1]){this[_1]=!1;let Z=this;while(Z=Z.parent)Z[_1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,G=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
18
+ `)Q=1,G+=1;else Q+=1;return{column:Q,line:G}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),G=Q.indexOf(Z.word);if(G!==-1)J=this.positionInside(G,Q),Y=this.positionInside(G+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new zQ().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let G=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let V=this[K];if(Array.isArray(V))Y[K]=V.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof V==="object"&&V.toJSON)Y[K]=V.toJSON(null,J);else if(K==="source"){let q=J.get(V.input);if(q==null)q=G,J.set(V.input,G),G++;Y[K]={end:V.end,inputId:q,start:V.start}}else Y[K]=V}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=UQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let G in Y)Q[G]=Y[G];return Z.warn(J,Q)}get proxyOf(){return this}},U9=ZZ;ZZ.default=ZZ;var BQ=U9,JZ=class extends BQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},B9=JZ;JZ.default=JZ;var jQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",LQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},PQ=(X=21)=>{let Z="",J=X;while(J--)Z+=jQ[Math.random()*64|0];return Z},DQ={nanoid:PQ,customAlphabet:LQ},{SourceMapConsumer:lJ,SourceMapGenerator:dJ}=Y0,{existsSync:FQ,readFileSync:OQ}=Y0,{dirname:y9,join:AQ}=Y0;function MQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var XZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=y9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new lJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,G=/^data:application\/json,/;if(Q.test(Z)||G.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return MQ(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=y9(Z),FQ(Z))return this.mapFile=Z,OQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof lJ)return dJ.fromSourceMap(J).toString();else if(J instanceof dJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=AQ(y9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},d8=XZ;XZ.default=XZ;var{SourceMapConsumer:wQ,SourceMapGenerator:_Q}=Y0,{fileURLToPath:iJ,pathToFileURL:C1}=Y0,{isAbsolute:YZ,resolve:QZ}=Y0,{nanoid:CQ}=DQ,h9=Y0,sJ=fZ,RQ=d8,g9=Symbol("fromOffsetCache"),EQ=Boolean(wQ&&_Q),aJ=Boolean(QZ&&YZ),Z9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!aJ||/^\w+:\/\//.test(J.from)||YZ(J.from))this.file=J.from;else this.file=QZ(J.from);if(aJ&&EQ){let Y=new RQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+CQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let G,K,V;if(J&&typeof J==="object"){let W=J,H=Y;if(typeof W.offset==="number"){let z=this.fromOffset(W.offset);J=z.line,Y=z.col}else J=W.line,Y=W.column;if(typeof H.offset==="number"){let z=this.fromOffset(H.offset);K=z.line,V=z.col}else K=H.line,V=H.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,K,V);if(q)G=new sJ(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else G=new sJ(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:V,line:K},this.css,this.file,Q.plugin);if(G.input={column:Y,endColumn:V,endLine:K,line:J,source:this.css},this.file){if(C1)G.input.url=C1(this.file).toString();G.input.file=this.file}return G}fromOffset(Z){let J,Y;if(!this[g9]){let G=this.css.split(`
19
+ `);Y=Array(G.length);let K=0;for(let V=0,q=G.length;V<q;V++)Y[V]=K,K+=G[V].length+1;this[g9]=Y}else Y=this[g9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let G=Y.length-2,K;while(Q<G)if(K=Q+(G-Q>>1),Z<Y[K])G=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return QZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let G=this.map.consumer(),K=G.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let V;if(typeof Y==="number")V=G.originalPositionFor({column:Q,line:Y});let q;if(YZ(K.source))q=C1(K.source);else q=new URL(K.source,this.map.consumer().sourceRoot||C1(this.map.mapFile));let W={column:K.column,endColumn:V&&V.column,endLine:V&&V.line,line:K.line,url:q.toString()};if(q.protocol==="file:")if(iJ)W.file=iJ(q);else throw Error("file: protocol is not available in this PostCSS build");let H=G.sourceContentFor(K.source);if(H)W.source=H;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},j9=Z9;Z9.default=Z9;if(h9&&h9.registerInput)h9.registerInput(Z9);var{SourceMapConsumer:i8,SourceMapGenerator:l1}=Y0,{dirname:d1,relative:s8,resolve:a8,sep:r8}=Y0,{pathToFileURL:rJ}=Y0,$Q=j9,IQ=Boolean(i8&&l1),NQ=Boolean(d1&&a8&&s8&&r8),TQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
20
20
  `;if(this.css.includes(`\r
21
21
  `))J=`\r
22
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||a1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new hX(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),DQ&&PQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=s1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new s1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new s1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
23
- `),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?a1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=a1(gX(Y,this.mapOpts.annotation));let Q=yX(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new LQ(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(mJ){let Y=mJ(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(mX==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},uX=FQ,AQ=L9,KZ=class extends AQ{constructor(Z){super(Z);this.type="comment"}},F9=KZ;KZ.default=KZ;var{isClean:cX,my:pX}=L1,lX=P9,dX=F9,OQ=L9,iX,kZ,vZ,sX;function aX(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=aX(Z.nodes);return delete Z.source,Z})}function rX(X){if(X[cX]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)rX(Z)}var W0=class X extends OQ{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=aX(iX(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new lX(Z)]}else if(Z.selector)Z=[new kZ(Z)];else if(Z.name)Z=[new vZ(Z)];else if(Z.text)Z=[new dX(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[pX])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[cX])rX(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};W0.registerParse=(X)=>{iX=X};W0.registerRule=(X)=>{kZ=X};W0.registerAtRule=(X)=>{vZ=X};W0.registerRoot=(X)=>{sX=X};var _0=W0;W0.default=W0;W0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,vZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,kZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,lX.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,dX.prototype);else if(X.type==="root")Object.setPrototypeOf(X,sX.prototype);if(X[pX]=!0,X.nodes)X.nodes.forEach((Z)=>{W0.rebuild(Z)})};var MQ=_0,oX,nX,q1=class extends MQ{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new oX(new nX,this,Z).stringify()}};q1.registerLazyResult=(X)=>{oX=X};q1.registerProcessor=(X)=>{nX=X};var hZ=q1;q1.default=q1;var uJ={},tX=function(Z){if(uJ[Z])return;if(uJ[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},qZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},eX=qZ;qZ.default=qZ;var wQ=eX,GZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new wQ(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},yZ=GZ;GZ.default=GZ;var m9=39,cJ=34,$1=92,pJ=47,N1=10,t0=32,T1=12,S1=9,f1=13,_Q=91,CQ=93,RQ=40,EQ=41,IQ=123,$Q=125,NQ=59,TQ=42,SQ=58,fQ=64,x1=/[\t\n\f\r "#'()/;[\\\]{}]/g,b1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xQ=/.[\r\n"'(/\\]/,lJ=/[\da-f]/i,bQ=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case N1:case t0:case S1:case f1:case T1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===t0||K===N1||K===S1||K===f1||K===T1);P=["space",Y.slice(z,q)],z=q-1;break}case _Q:case CQ:case IQ:case $Q:case SQ:case NQ:case EQ:{let i=String.fromCharCode(K);P=[i,i,z];break}case RQ:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==m9&&j!==cJ&&j!==t0&&j!==N1&&j!==S1&&j!==T1&&j!==f1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||xQ.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case m9:case cJ:{V=K===m9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case fQ:{if(x1.lastIndex=z+1,x1.test(Y),x1.lastIndex===0)q=Y.length-1;else q=x1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case $1:{q=z,U=!0;while(Y.charCodeAt(q+1)===$1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==pJ&&K!==t0&&K!==N1&&K!==S1&&K!==f1&&K!==T1){if(q+=1,lJ.test(Y.charAt(q))){while(lJ.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===t0)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===pJ&&Y.charCodeAt(z+1)===TQ){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(b1.lastIndex=z+1,b1.test(Y),b1.lastIndex===0)q=Y.length-1;else q=b1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},Z6=_0,Q9=class extends Z6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},gZ=Q9;Q9.default=Q9;Z6.registerAtRule(Q9);var J6=_0,X6,Y6,y0=class extends J6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new X6(new Y6,this,Z).stringify()}};y0.registerLazyResult=(X)=>{X6=X};y0.registerProcessor=(X)=>{Y6=X};var P1=y0;y0.default=y0;J6.registerRoot(y0);var G1={comma(X){return G1.split(X,[","],!0)},space(X){let Z=[" ",`
24
- `,"\t"];return G1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},Q6=G1;G1.default=G1;var K6=_0,kQ=Q6,K9=class extends K6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return kQ.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},mZ=K9;K9.default=K9;K6.registerRule(K9);var vQ=P9,hQ=bQ,yQ=F9,gQ=gZ,mQ=P1,dJ=mZ,iJ={empty:!0,space:!0};function uQ(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var cQ=class{constructor(Z){this.input=Z,this.root=new mQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new gQ;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new yQ;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=hQ(this.input)}decl(Z,J){let Y=new vQ;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||uQ(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new dJ;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!iJ[H]&&!iJ[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new dJ;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},pQ=cQ,lQ=_0,dQ=pQ,iQ=D9;function q9(X,Z){let J=new iQ(X,Z),Y=new dQ(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
22
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||d1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new i8(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),NQ&&IQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=l1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new l1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new l1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},G,K;this.stringify(this.root,(V,q,W)=>{if(this.css+=V,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(G=V.match(/\n/g),G)Z+=G.length,K=V.lastIndexOf(`
23
+ `),J=V.length-K;else J+=V.length;if(q&&W!=="start"){let H=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==H.last||H.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?d1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=d1(a8(Y,this.mapOpts.annotation));let Q=s8(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new $Q(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(rJ){let Y=rJ(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(r8==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},o8=TQ,SQ=U9,GZ=class extends SQ{constructor(Z){super(Z);this.type="comment"}},L9=GZ;GZ.default=GZ;var{isClean:n8,my:t8}=U1,e8=B9,Z6=L9,xQ=U9,J6,kZ,vZ,X6;function Y6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=Y6(Z.nodes);return delete Z.source,Z})}function Q6(X){if(X[n8]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)Q6(Z)}var z0=class X extends xQ{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(G,K)=>Q(G.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...G)=>Y(Q.toProxy(),...G))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<G)this.indexes[K]=G+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,G=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of G)this.proxyOf.nodes.splice(Y,0,V);let K;for(let V in this.indexes)if(K=this.indexes[V],Y<=K)this.indexes[V]=K+G.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=Y6(J6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new e8(Z)]}else if(Z.selector)Z=[new kZ(Z)];else if(Z.name)Z=[new vZ(Z)];else if(Z.text)Z=[new Z6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[t8])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[n8])Q6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(G){throw J.addToError(G)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};z0.registerParse=(X)=>{J6=X};z0.registerRule=(X)=>{kZ=X};z0.registerAtRule=(X)=>{vZ=X};z0.registerRoot=(X)=>{X6=X};var R0=z0;z0.default=z0;z0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,vZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,kZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,e8.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,Z6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,X6.prototype);if(X[t8]=!0,X.nodes)X.nodes.forEach((Z)=>{z0.rebuild(Z)})};var bQ=R0,G6,K6,Y1=class extends bQ{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new G6(new K6,this,Z).stringify()}};Y1.registerLazyResult=(X)=>{G6=X};Y1.registerProcessor=(X)=>{K6=X};var yZ=Y1;Y1.default=Y1;var oJ={},q6=function(Z){if(oJ[Z])return;if(oJ[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},KZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},V6=KZ;KZ.default=KZ;var fQ=V6,qZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new fQ(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},hZ=qZ;qZ.default=qZ;var m9=39,nJ=34,R1=92,tJ=47,E1=10,r0=32,$1=12,I1=9,N1=13,kQ=91,vQ=93,yQ=40,hQ=41,gQ=123,mQ=125,uQ=59,cQ=42,pQ=58,lQ=64,T1=/[\t\n\f\r "#'()/;[\\\]{}]/g,S1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dQ=/.[\r\n"'(/\\]/,eJ=/[\da-f]/i,iQ=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,G,K,V,q,W,H,z,B,j,P,L=Y.length,U=0,A=[],O=[];function D(){return U}function M(v){throw Z.error("Unclosed "+v,U)}function T(){return O.length===0&&U>=L}function x(v){if(O.length)return O.pop();if(U>=L)return;let c=v?v.ignoreUnclosed:!1;switch(G=Y.charCodeAt(U),G){case E1:case r0:case I1:case N1:case $1:{K=U;do K+=1,G=Y.charCodeAt(K);while(G===r0||G===E1||G===I1||G===N1||G===$1);P=["space",Y.slice(U,K)],U=K-1;break}case kQ:case vQ:case gQ:case mQ:case pQ:case uQ:case hQ:{let i=String.fromCharCode(G);P=[i,i,U];break}case yQ:{if(B=A.length?A.pop()[1]:"",j=Y.charCodeAt(U+1),B==="url"&&j!==m9&&j!==nJ&&j!==r0&&j!==E1&&j!==I1&&j!==$1&&j!==N1){K=U;do{if(H=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||c){K=U;break}else M("bracket");z=K;while(Y.charCodeAt(z-1)===R1)z-=1,H=!H}while(H);P=["brackets",Y.slice(U,K+1),U,K],U=K}else if(K=Y.indexOf(")",U+1),q=Y.slice(U,K+1),K===-1||dQ.test(q))P=["(","(",U];else P=["brackets",q,U,K],U=K;break}case m9:case nJ:{V=G===m9?"'":'"',K=U;do{if(H=!1,K=Y.indexOf(V,K+1),K===-1)if(Q||c){K=U+1;break}else M("string");z=K;while(Y.charCodeAt(z-1)===R1)z-=1,H=!H}while(H);P=["string",Y.slice(U,K+1),U,K],U=K;break}case lQ:{if(T1.lastIndex=U+1,T1.test(Y),T1.lastIndex===0)K=Y.length-1;else K=T1.lastIndex-2;P=["at-word",Y.slice(U,K+1),U,K],U=K;break}case R1:{K=U,W=!0;while(Y.charCodeAt(K+1)===R1)K+=1,W=!W;if(G=Y.charCodeAt(K+1),W&&G!==tJ&&G!==r0&&G!==E1&&G!==I1&&G!==N1&&G!==$1){if(K+=1,eJ.test(Y.charAt(K))){while(eJ.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===r0)K+=1}}P=["word",Y.slice(U,K+1),U,K],U=K;break}default:{if(G===tJ&&Y.charCodeAt(U+1)===cQ){if(K=Y.indexOf("*/",U+2)+1,K===0)if(Q||c)K=Y.length;else M("comment");P=["comment",Y.slice(U,K+1),U,K],U=K}else{if(S1.lastIndex=U+1,S1.test(Y),S1.lastIndex===0)K=Y.length-1;else K=S1.lastIndex-2;P=["word",Y.slice(U,K+1),U,K],A.push(P),U=K}break}}return U++,P}function p(v){O.push(v)}return{back:p,endOfFile:T,nextToken:x,position:D}},W6=R0,J9=class extends W6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},gZ=J9;J9.default=J9;W6.registerAtRule(J9);var H6=R0,z6,U6,g0=class extends H6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let G of Q)G.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new z6(new U6,this,Z).stringify()}};g0.registerLazyResult=(X)=>{z6=X};g0.registerProcessor=(X)=>{U6=X};var B1=g0;g0.default=g0;H6.registerRoot(g0);var Q1={comma(X){return Q1.split(X,[","],!0)},space(X){let Z=[" ",`
24
+ `,"\t"];return Q1.split(X,Z)},split(X,Z,J){let Y=[],Q="",G=!1,K=0,V=!1,q="",W=!1;for(let H of X){if(W)W=!1;else if(H==="\\")W=!0;else if(V){if(H===q)V=!1}else if(H==='"'||H==="'")V=!0,q=H;else if(H==="(")K+=1;else if(H===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(H))G=!0}if(G){if(Q!=="")Y.push(Q.trim());Q="",G=!1}else Q+=H}if(J||Q!=="")Y.push(Q.trim());return Y}},B6=Q1;Q1.default=Q1;var j6=R0,sQ=B6,X9=class extends j6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return sQ.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},mZ=X9;X9.default=X9;j6.registerRule(X9);var aQ=B9,rQ=iQ,oQ=L9,nQ=gZ,tQ=B1,Z8=mZ,J8={empty:!0,space:!0};function eQ(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var Z7=class{constructor(Z){this.input=Z,this.root=new tQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new nQ;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,G,K=!1,V=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(q.length>0){G=q.length-1,Q=q[G];while(Q&&Q[0]==="space")Q=q[--G];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),K)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let G=J-1;G>=0;G--)if(Q=Z[G],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,G;for(let[K,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!G)this.doubleColon(Y);else if(G[0]==="word"&&G[1]==="progid")continue;else return K;G=Y}return!1}comment(Z){let J=new oQ;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=rQ(this.input)}decl(Z,J){let Y=new aQ;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||eQ(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let G;while(Z.length)if(G=Z.shift(),G[0]===":"){Y.raws.between+=G[1];break}else{if(G[0]==="word"&&/\w/.test(G[1]))this.unknownWord([G]);Y.raws.between+=G[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(G=Z[W],G[1].toLowerCase()==="!important"){Y.important=!0;let H=this.stringFrom(Z,W);if(H=this.spacesFromEnd(Z)+H,H!==" !important")Y.raws.important=H;break}else if(G[1].toLowerCase()==="important"){let H=Z.slice(0),z="";for(let B=W;B>0;B--){let j=H[B][0];if(z.trim().indexOf("!")===0&&j!=="space")break;z=H.pop()[1]+z}if(z.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=z,Z=H}if(G[0]!=="space"&&G[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=K.map((W)=>W[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new Z8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,G=null,K=[],V=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!G)G=W;K.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!G)G=W;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(q,V);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)G=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(G);if(J&&Q){if(!V)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,V)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let G,K,V=Y.length,q="",W=!0,H,z;for(let B=0;B<V;B+=1)if(G=Y[B],K=G[0],K==="space"&&B===V-1&&!Q)W=!1;else if(K==="comment")if(z=Y[B-1]?Y[B-1][0]:"empty",H=Y[B+1]?Y[B+1][0]:"empty",!J8[z]&&!J8[H])if(q.slice(-1)===",")W=!1;else q+=G[1];else W=!1;else q+=G[1];if(!W){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new Z8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},J7=Z7,X7=R0,Y7=J7,Q7=j9;function Y9(X,Z){let J=new Q7(X,Z),Y=new Y7(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
25
25
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
26
26
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var uZ=q9;q9.default=q9;lQ.registerParse(q9);var{isClean:G0,my:sQ}=L1,aQ=uX,rQ=j9,oQ=_0,nQ=hZ,tQ=tX,sJ=yZ,eQ=uZ,Z7=P1,J7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},X7={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},Y7={Once:!0,postcssPlugin:!0,prepare:!0},g0=0;function e0(X){return typeof X==="object"&&typeof X.then==="function"}function q6(X){let Z=!1,J=J7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,g0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,g0,J+"Exit"];else return[J,J+"Exit"]}function aJ(X){let Z;if(X.type==="document")Z=["Document",g0,"DocumentExit"];else if(X.type==="root")Z=["Root",g0,"RootExit"];else Z=q6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function VZ(X){if(X[G0]=!1,X.nodes)X.nodes.forEach((Z)=>VZ(Z));return X}var UZ={},m0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=VZ(J);else if(J instanceof X||J instanceof sJ){if(Q=VZ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=eQ;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[sQ])oQ.rebuild(Q)}this.result=new sJ(Z,Q,Y),this.helpers={...UZ,postcss:UZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!X7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Y7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(e0(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0]){Z[G0]=!0;let J=[aJ(Z)];while(J.length>0){let Y=this.visitTick(J);if(e0(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(e0(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=rQ;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new aQ(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(e0(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0])Z[G0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))tQ("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(e0(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[G0]){V[G0]=!0,Z.push(aJ(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===g0){if(Y.nodes&&Y.nodes.length)Y[G0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[G0]=!0;let J=q6(Z);for(let Y of J)if(Y===g0){if(Z.nodes)Z.each((Q)=>{if(!Q[G0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};m0.registerPostcss=(X)=>{UZ=X};var G6=m0;m0.default=m0;Z7.registerLazyResult(m0);nQ.registerLazyResult(m0);var Q7=uX,K7=j9,q7=tX,G7=uZ,V7=yZ,WZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=K7;this.result=new V7(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new Q7(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))q7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=G7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},U7=WZ;WZ.default=WZ;var W7=U7,H7=G6,z7=hZ,B7=P1,V1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new W7(this,Z,J);else return new H7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},j7=V1;V1.default=V1;B7.registerProcessor(V1);z7.registerProcessor(V1);var L7=P9,P7=vX,D7=F9,F7=gZ,A7=D9,O7=P1,M7=mZ;function U1(X,Z){if(Array.isArray(X))return X.map((Q)=>U1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:A7.prototype};if(K.map)K.map={...K.map,__proto__:P7.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>U1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new O7(Y);else if(Y.type==="decl")return new L7(Y);else if(Y.type==="rule")return new M7(Y);else if(Y.type==="comment")return new D7(Y);else if(Y.type==="atrule")return new F7(Y);else throw Error("Unknown node type: "+X.type)}var w7=U1;U1.default=U1;var _7=bZ,V6=P9,C7=G6,R7=_0,cZ=j7,E7=j9,I7=w7,U6=hZ,$7=eX,W6=F9,H6=gZ,N7=yZ,T7=D9,S7=uZ,f7=Q6,z6=mZ,B6=P1,x7=L9;function $(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new cZ(X)}$.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var uZ=Y9;Y9.default=Y9;X7.registerParse(Y9);var{isClean:V0,my:G7}=U1,K7=o8,q7=z9,V7=R0,W7=yZ,H7=q6,X8=hZ,z7=uZ,U7=B1,B7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},j7={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},L7={Once:!0,postcssPlugin:!0,prepare:!0},m0=0;function o0(X){return typeof X==="object"&&typeof X.then==="function"}function L6(X){let Z=!1,J=B7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,m0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,m0,J+"Exit"];else return[J,J+"Exit"]}function Y8(X){let Z;if(X.type==="document")Z=["Document",m0,"DocumentExit"];else if(X.type==="root")Z=["Root",m0,"RootExit"];else Z=L6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function VZ(X){if(X[V0]=!1,X.nodes)X.nodes.forEach((Z)=>VZ(Z));return X}var WZ={},u0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=VZ(J);else if(J instanceof X||J instanceof X8){if(Q=VZ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let G=z7;if(Y.syntax)G=Y.syntax.parse;if(Y.parser)G=Y.parser;if(G.parse)G=G.parse;try{Q=G(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[G7])V7.rebuild(Q)}this.result=new X8(Z,Q,Y),this.helpers={...WZ,postcss:WZ,result:this.result},this.plugins=this.processor.plugins.map((G)=>{if(typeof G==="object"&&G.prepare)return{...G,...G.prepare(this.result)};else return G})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:G}=Y,K=this.result.processor.version,V=G.split("."),q=K.split(".");if(V[0]!==q[0]||parseInt(V[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+G+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!j7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!L7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(o0(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0]){Z[V0]=!0;let J=[Y8(Z)];while(J.length>0){let Y=this.visitTick(J);if(o0(Y))try{await Y}catch(Q){let G=J[J.length-1].node;throw this.handleError(Q,G)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((G)=>Y(G,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(o0(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=q7;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new K7(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(o0(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0])Z[V0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))H7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let G;try{G=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(o0(G))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return V(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let K=J.iterator,V;while(V=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!V[V0]){V[V0]=!0,Z.push(Y8(V));return}J.iterator=0,delete Y.indexes[K]}let G=J.events;while(J.eventIndex<G.length){let K=G[J.eventIndex];if(J.eventIndex+=1,K===m0){if(Y.nodes&&Y.nodes.length)Y[V0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[V0]=!0;let J=L6(Z);for(let Y of J)if(Y===m0){if(Z.nodes)Z.each((Q)=>{if(!Q[V0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};u0.registerPostcss=(X)=>{WZ=X};var P6=u0;u0.default=u0;U7.registerLazyResult(u0);W7.registerLazyResult(u0);var P7=o8,D7=z9,F7=q6,O7=uZ,A7=hZ,HZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,G=D7;this.result=new A7(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let V=new P7(G,Q,this._opts,J);if(V.isMap()){let[q,W]=V.generate();if(q)this.result.css=q;if(W)this.result.map=W}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))F7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=O7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},M7=HZ;HZ.default=HZ;var w7=M7,_7=P6,C7=yZ,R7=B1,G1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new w7(this,Z,J);else return new _7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},E7=G1;G1.default=G1;R7.registerProcessor(G1);C7.registerProcessor(G1);var $7=B9,I7=d8,N7=L9,T7=gZ,S7=j9,x7=B1,b7=mZ;function K1(X,Z){if(Array.isArray(X))return X.map((Q)=>K1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let G={...Q,__proto__:S7.prototype};if(G.map)G.map={...G.map,__proto__:I7.prototype};Z.push(G)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>K1(Q,Z));if(Y.source){let{inputId:Q,...G}=Y.source;if(Y.source=G,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new x7(Y);else if(Y.type==="decl")return new $7(Y);else if(Y.type==="rule")return new b7(Y);else if(Y.type==="comment")return new N7(Y);else if(Y.type==="atrule")return new T7(Y);else throw Error("Unknown node type: "+X.type)}var f7=K1;K1.default=K1;var k7=fZ,D6=B9,v7=P6,y7=R0,cZ=E7,h7=z9,g7=f7,F6=yZ,m7=V6,O6=L9,A6=gZ,u7=hZ,c7=j9,p7=uZ,l7=B6,M6=mZ,w6=B1,d7=U9;function I(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new cZ(X)}I.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
29
- https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new cZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return $([Q(G)]).process(q,V)},Q};$.stringify=E7;$.parse=S7;$.fromJSON=I7;$.list=f7;$.comment=(X)=>new W6(X);$.atRule=(X)=>new H6(X);$.decl=(X)=>new V6(X);$.rule=(X)=>new z6(X);$.root=(X)=>new B6(X);$.document=(X)=>new U6(X);$.CssSyntaxError=_7;$.Declaration=V6;$.Container=R7;$.Processor=cZ;$.Document=U6;$.Comment=W6;$.Warning=$7;$.AtRule=H6;$.Result=N7;$.Input=T7;$.Rule=z6;$.Root=B6;$.Node=x7;C7.registerPostcss($);var b7=$;$.default=$;var h=lY(b7);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 k7=Object.defineProperty,v7=(X,Z,J)=>(Z in X)?k7(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,Z0=(X,Z,J)=>v7(X,typeof Z!=="symbol"?Z+"":Z,J);function h7(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function y7(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var pZ={exports:{}},k=String,j6=function(){return{isColorSupported:!1,reset:k,bold:k,dim:k,italic:k,underline:k,inverse:k,hidden:k,strikethrough:k,black:k,red:k,green:k,yellow:k,blue:k,magenta:k,cyan:k,white:k,gray:k,bgBlack:k,bgRed:k,bgGreen:k,bgYellow:k,bgBlue:k,bgMagenta:k,bgCyan:k,bgWhite:k}};pZ.exports=j6();pZ.exports.createColors=j6;var g7=pZ.exports,m7={},u7=Object.freeze(Object.defineProperty({__proto__:null,default:m7},Symbol.toStringTag,{value:"Module"})),Q0=y7(u7),rJ=g7,oJ=Q0,HZ=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(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(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=rJ.isColorSupported;if(oJ){if(Z)J=oJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=rJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
30
- `+j+V("^")}return" "+G(B)+U}).join(`
29
+ https://www.w3ctech.com/topic/2226`)}let V=J(...K);return V.postcssPlugin=Z,V.postcssVersion=new cZ().version,V}let G;return Object.defineProperty(Q,"postcss",{get(){if(!G)G=Q();return G}}),Q.process=function(K,V,q){return I([Q(q)]).process(K,V)},Q};I.stringify=h7;I.parse=p7;I.fromJSON=g7;I.list=l7;I.comment=(X)=>new O6(X);I.atRule=(X)=>new A6(X);I.decl=(X)=>new D6(X);I.rule=(X)=>new M6(X);I.root=(X)=>new w6(X);I.document=(X)=>new F6(X);I.CssSyntaxError=k7;I.Declaration=D6;I.Container=y7;I.Processor=cZ;I.Document=F6;I.Comment=O6;I.Warning=m7;I.AtRule=A6;I.Result=u7;I.Input=c7;I.Rule=M6;I.Root=w6;I.Node=d7;v7.registerPostcss(I);var i7=I;I.default=I;var y=XQ(i7);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 s7=Object.defineProperty,a7=(X,Z,J)=>(Z in X)?s7(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,Z0=(X,Z,J)=>a7(X,typeof Z!=="symbol"?Z+"":Z,J);function r7(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function o7(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var pZ={exports:{}},k=String,_6=function(){return{isColorSupported:!1,reset:k,bold:k,dim:k,italic:k,underline:k,inverse:k,hidden:k,strikethrough:k,black:k,red:k,green:k,yellow:k,blue:k,magenta:k,cyan:k,white:k,gray:k,bgBlack:k,bgRed:k,bgGreen:k,bgYellow:k,bgBlue:k,bgMagenta:k,bgCyan:k,bgWhite:k}};pZ.exports=_6();pZ.exports.createColors=_6;var n7=pZ.exports,t7={},e7=Object.freeze(Object.defineProperty({__proto__:null,default:t7},Symbol.toStringTag,{value:"Module"})),Q0=o7(e7),Q8=n7,G8=Q0,zZ=class X extends Error{constructor(Z,J,Y,Q,G,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,G)this.file=G;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(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(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=Q8.isColorSupported;if(G8){if(Z)J=G8(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),G=Math.min(this.line+2,Y.length),K=String(G).length,V,q;if(Z){let{bold:W,gray:H,red:z}=Q8.createColors(!0);V=(B)=>W(z(B)),q=(B)=>H(B)}else V=q=(W)=>W;return Y.slice(Q,G).map((W,H)=>{let z=Q+1+H,B=" "+(" "+z).slice(-K)+" | ";if(z===this.line){let j=q(B.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+q(B)+W+`
30
+ `+j+V("^")}return" "+q(B)+W}).join(`
31
31
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
32
32
 
33
33
  `+Z+`
34
- `;return this.name+": "+this.message+Z}},lZ=HZ;HZ.default=HZ;var D1={};D1.isClean=Symbol("isClean");D1.my=Symbol("my");var nJ={after:`
34
+ `;return this.name+": "+this.message+Z}},lZ=zZ;zZ.default=zZ;var j1={};j1.isClean=Symbol("isClean");j1.my=Symbol("my");var K8={after:`
35
35
  `,beforeClose:`
36
36
  `,beforeComment:`
37
37
  `,beforeDecl:`
38
38
  `,beforeOpen:" ",beforeRule:`
39
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function c7(X){return X[0].toUpperCase()+X.slice(1)}var zZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
40
- `)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return nJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+c7(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=nJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
39
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ZG(X){return X[0].toUpperCase()+X.slice(1)}var UZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let G=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+G,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,G=0;while(Q&&Q.type!=="root")G+=1,Q=Q.parent;if(Y.includes(`
40
+ `)){let K=this.raw(Z,null,"indent");if(K.length)for(let V=0;V<G;V++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let G=Z.nodes[Q],K=this.raw(G,"before");if(K)this.builder(K);this.stringify(G,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let G=Z.parent;if(Y==="before"){if(!G||G.type==="root"&&G.first===Z)return"";if(G&&G.type==="document")return""}if(!G)return K8[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+ZG(Y);if(this[V])Q=this[V](K,Z);else K.walk((q)=>{if(Q=q.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=K8[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
41
41
  `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
42
42
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
43
43
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
44
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
45
- `);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},L6=zZ;zZ.default=zZ;var p7=L6;function BZ(X,Z){new p7(Z).stringify(X)}var A9=BZ;BZ.default=BZ;var{isClean:k1,my:l7}=D1,d7=lZ,i7=L6,s7=A9;function jZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>jZ(q,J));else{if(K==="object"&&Q!==null)Q=jZ(Q);J[Y]=Q}}return J}var LZ=class{constructor(Z={}){this.raws={},this[k1]=!1,this[l7]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=jZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new d7(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[k1]){this[k1]=!1;let Z=this;while(Z=Z.parent)Z[k1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
46
- `)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new i7().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=s7){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},O9=LZ;LZ.default=LZ;var a7=O9,PZ=class extends a7{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},M9=PZ;PZ.default=PZ;var r7="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",o7=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},n7=(X=21)=>{let Z="",J=X;while(J--)Z+=r7[Math.random()*64|0];return Z},t7={nanoid:n7,customAlphabet:o7},{SourceMapConsumer:tJ,SourceMapGenerator:eJ}=Q0,{existsSync:e7,readFileSync:ZK}=Q0,{dirname:u9,join:JK}=Q0;function XK(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var DZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=u9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new tJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return XK(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=u9(Z),e7(Z))return this.mapFile=Z,ZK(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof tJ)return eJ.fromSourceMap(J).toString();else if(J instanceof eJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=JK(u9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},P6=DZ;DZ.default=DZ;var{SourceMapConsumer:YK,SourceMapGenerator:QK}=Q0,{fileURLToPath:ZX,pathToFileURL:v1}=Q0,{isAbsolute:FZ,resolve:AZ}=Q0,{nanoid:KK}=t7,c9=Q0,JX=lZ,qK=P6,p9=Symbol("fromOffsetCache"),GK=Boolean(YK&&QK),XX=Boolean(AZ&&FZ),G9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!XX||/^\w+:\/\//.test(J.from)||FZ(J.from))this.file=J.from;else this.file=AZ(J.from);if(XX&&GK){let Y=new qK(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+KK(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new JX(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new JX(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(v1)K.input.url=v1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[p9]){let K=this.css.split(`
47
- `);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[p9]=Y}else Y=this[p9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return AZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(FZ(q.source))G=v1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||v1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(ZX)U.file=ZX(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},w9=G9;G9.default=G9;if(c9&&c9.registerInput)c9.registerInput(G9);var{SourceMapConsumer:D6,SourceMapGenerator:r1}=Q0,{dirname:o1,relative:F6,resolve:A6,sep:O6}=Q0,{pathToFileURL:YX}=Q0,VK=w9,UK=Boolean(D6&&r1),WK=Boolean(o1&&A6&&F6&&O6),HK=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
44
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let G=Y.raws.before.split(`
45
+ `);return J=G[G.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},C6=UZ;UZ.default=UZ;var JG=C6;function BZ(X,Z){new JG(Z).stringify(X)}var P9=BZ;BZ.default=BZ;var{isClean:x1,my:XG}=j1,YG=lZ,QG=C6,GG=P9;function jZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],G=typeof Q;if(Y==="parent"&&G==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>jZ(K,J));else{if(G==="object"&&Q!==null)Q=jZ(Q);J[Y]=Q}}return J}var LZ=class{constructor(Z={}){this.raws={},this[x1]=!1,this[XG]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=jZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new YG(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[x1]){this[x1]=!1;let Z=this;while(Z=Z.parent)Z[x1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,G=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
46
+ `)Q=1,G+=1;else Q+=1;return{column:Q,line:G}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),G=Q.indexOf(Z.word);if(G!==-1)J=this.positionInside(G,Q),Y=this.positionInside(G+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new QG().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let G=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let V=this[K];if(Array.isArray(V))Y[K]=V.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof V==="object"&&V.toJSON)Y[K]=V.toJSON(null,J);else if(K==="source"){let q=J.get(V.input);if(q==null)q=G,J.set(V.input,G),G++;Y[K]={end:V.end,inputId:q,start:V.start}}else Y[K]=V}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=GG){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let G in Y)Q[G]=Y[G];return Z.warn(J,Q)}get proxyOf(){return this}},D9=LZ;LZ.default=LZ;var KG=D9,PZ=class extends KG{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},F9=PZ;PZ.default=PZ;var qG="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",VG=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},WG=(X=21)=>{let Z="",J=X;while(J--)Z+=qG[Math.random()*64|0];return Z},HG={nanoid:WG,customAlphabet:VG},{SourceMapConsumer:q8,SourceMapGenerator:V8}=Q0,{existsSync:zG,readFileSync:UG}=Q0,{dirname:u9,join:BG}=Q0;function jG(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var DZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=u9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new q8(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,G=/^data:application\/json,/;if(Q.test(Z)||G.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return jG(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=u9(Z),zG(Z))return this.mapFile=Z,UG(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof q8)return V8.fromSourceMap(J).toString();else if(J instanceof V8)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=BG(u9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},R6=DZ;DZ.default=DZ;var{SourceMapConsumer:LG,SourceMapGenerator:PG}=Q0,{fileURLToPath:W8,pathToFileURL:b1}=Q0,{isAbsolute:FZ,resolve:OZ}=Q0,{nanoid:DG}=HG,c9=Q0,H8=lZ,FG=R6,p9=Symbol("fromOffsetCache"),OG=Boolean(LG&&PG),z8=Boolean(OZ&&FZ),Q9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!z8||/^\w+:\/\//.test(J.from)||FZ(J.from))this.file=J.from;else this.file=OZ(J.from);if(z8&&OG){let Y=new FG(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+DG(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let G,K,V;if(J&&typeof J==="object"){let W=J,H=Y;if(typeof W.offset==="number"){let z=this.fromOffset(W.offset);J=z.line,Y=z.col}else J=W.line,Y=W.column;if(typeof H.offset==="number"){let z=this.fromOffset(H.offset);K=z.line,V=z.col}else K=H.line,V=H.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,K,V);if(q)G=new H8(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else G=new H8(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:V,line:K},this.css,this.file,Q.plugin);if(G.input={column:Y,endColumn:V,endLine:K,line:J,source:this.css},this.file){if(b1)G.input.url=b1(this.file).toString();G.input.file=this.file}return G}fromOffset(Z){let J,Y;if(!this[p9]){let G=this.css.split(`
47
+ `);Y=Array(G.length);let K=0;for(let V=0,q=G.length;V<q;V++)Y[V]=K,K+=G[V].length+1;this[p9]=Y}else Y=this[p9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let G=Y.length-2,K;while(Q<G)if(K=Q+(G-Q>>1),Z<Y[K])G=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return OZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let G=this.map.consumer(),K=G.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let V;if(typeof Y==="number")V=G.originalPositionFor({column:Q,line:Y});let q;if(FZ(K.source))q=b1(K.source);else q=new URL(K.source,this.map.consumer().sourceRoot||b1(this.map.mapFile));let W={column:K.column,endColumn:V&&V.column,endLine:V&&V.line,line:K.line,url:q.toString()};if(q.protocol==="file:")if(W8)W.file=W8(q);else throw Error("file: protocol is not available in this PostCSS build");let H=G.sourceContentFor(K.source);if(H)W.source=H;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},O9=Q9;Q9.default=Q9;if(c9&&c9.registerInput)c9.registerInput(Q9);var{SourceMapConsumer:E6,SourceMapGenerator:i1}=Q0,{dirname:s1,relative:$6,resolve:I6,sep:N6}=Q0,{pathToFileURL:U8}=Q0,AG=O9,MG=Boolean(E6&&i1),wG=Boolean(s1&&I6&&$6&&N6),_G=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
48
48
  `;if(this.css.includes(`\r
49
49
  `))J=`\r
50
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||o1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new D6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),WK&&UK&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=r1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new r1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new r1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
51
- `),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?o1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=o1(A6(Y,this.mapOpts.annotation));let Q=F6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new VK(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(YX){let Y=YX(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(O6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},M6=HK,zK=O9,OZ=class extends zK{constructor(Z){super(Z);this.type="comment"}},_9=OZ;OZ.default=OZ;var{isClean:w6,my:_6}=D1,C6=M9,R6=_9,BK=O9,E6,dZ,iZ,I6;function $6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=$6(Z.nodes);return delete Z.source,Z})}function N6(X){if(X[w6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)N6(Z)}var H0=class X extends BK{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=$6(E6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new C6(Z)]}else if(Z.selector)Z=[new dZ(Z)];else if(Z.name)Z=[new iZ(Z)];else if(Z.text)Z=[new R6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[_6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[w6])N6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};H0.registerParse=(X)=>{E6=X};H0.registerRule=(X)=>{dZ=X};H0.registerAtRule=(X)=>{iZ=X};H0.registerRoot=(X)=>{I6=X};var C0=H0;H0.default=H0;H0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,iZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,dZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,C6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,R6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,I6.prototype);if(X[_6]=!0,X.nodes)X.nodes.forEach((Z)=>{H0.rebuild(Z)})};var jK=C0,T6,S6,W1=class extends jK{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new T6(new S6,this,Z).stringify()}};W1.registerLazyResult=(X)=>{T6=X};W1.registerProcessor=(X)=>{S6=X};var sZ=W1;W1.default=W1;var QX={},f6=function(Z){if(QX[Z])return;if(QX[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},MZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},x6=MZ;MZ.default=MZ;var LK=x6,wZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new LK(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},aZ=wZ;wZ.default=wZ;var l9=39,KX=34,h1=92,qX=47,y1=10,Z1=32,g1=12,m1=9,u1=13,PK=91,DK=93,FK=40,AK=41,OK=123,MK=125,wK=59,_K=42,CK=58,RK=64,c1=/[\t\n\f\r "#'()/;[\\\]{}]/g,p1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,EK=/.[\r\n"'(/\\]/,GX=/[\da-f]/i,IK=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case y1:case Z1:case m1:case u1:case g1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===Z1||K===y1||K===m1||K===u1||K===g1);P=["space",Y.slice(z,q)],z=q-1;break}case PK:case DK:case OK:case MK:case CK:case wK:case AK:{let i=String.fromCharCode(K);P=[i,i,z];break}case FK:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==l9&&j!==KX&&j!==Z1&&j!==y1&&j!==m1&&j!==g1&&j!==u1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||EK.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case l9:case KX:{V=K===l9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case RK:{if(c1.lastIndex=z+1,c1.test(Y),c1.lastIndex===0)q=Y.length-1;else q=c1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case h1:{q=z,U=!0;while(Y.charCodeAt(q+1)===h1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==qX&&K!==Z1&&K!==y1&&K!==m1&&K!==u1&&K!==g1){if(q+=1,GX.test(Y.charAt(q))){while(GX.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===Z1)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===qX&&Y.charCodeAt(z+1)===_K){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(p1.lastIndex=z+1,p1.test(Y),p1.lastIndex===0)q=Y.length-1;else q=p1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},b6=C0,V9=class extends b6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},rZ=V9;V9.default=V9;b6.registerAtRule(V9);var k6=C0,v6,h6,u0=class extends k6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new v6(new h6,this,Z).stringify()}};u0.registerLazyResult=(X)=>{v6=X};u0.registerProcessor=(X)=>{h6=X};var F1=u0;u0.default=u0;k6.registerRoot(u0);var H1={comma(X){return H1.split(X,[","],!0)},space(X){let Z=[" ",`
52
- `,"\t"];return H1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},y6=H1;H1.default=H1;var g6=C0,$K=y6,U9=class extends g6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return $K.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},oZ=U9;U9.default=U9;g6.registerRule(U9);var NK=M9,TK=IK,SK=_9,fK=rZ,xK=F1,VX=oZ,UX={empty:!0,space:!0};function bK(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var kK=class{constructor(Z){this.input=Z,this.root=new xK,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new fK;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new SK;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=TK(this.input)}decl(Z,J){let Y=new NK;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||bK(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new VX;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!UX[H]&&!UX[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new VX;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},vK=kK,hK=C0,yK=vK,gK=w9;function W9(X,Z){let J=new gK(X,Z),Y=new yK(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
50
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||s1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new E6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),wG&&MG&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=i1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new i1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new i1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},G,K;this.stringify(this.root,(V,q,W)=>{if(this.css+=V,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(G=V.match(/\n/g),G)Z+=G.length,K=V.lastIndexOf(`
51
+ `),J=V.length-K;else J+=V.length;if(q&&W!=="start"){let H=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==H.last||H.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?s1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=s1(I6(Y,this.mapOpts.annotation));let Q=$6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new AG(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(U8){let Y=U8(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(N6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},T6=_G,CG=D9,AZ=class extends CG{constructor(Z){super(Z);this.type="comment"}},A9=AZ;AZ.default=AZ;var{isClean:S6,my:x6}=j1,b6=F9,f6=A9,RG=D9,k6,dZ,iZ,v6;function y6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=y6(Z.nodes);return delete Z.source,Z})}function h6(X){if(X[S6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)h6(Z)}var U0=class X extends RG{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(G,K)=>Q(G.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...G)=>Y(Q.toProxy(),...G))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<G)this.indexes[K]=G+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,G=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of G)this.proxyOf.nodes.splice(Y,0,V);let K;for(let V in this.indexes)if(K=this.indexes[V],Y<=K)this.indexes[V]=K+G.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=y6(k6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new b6(Z)]}else if(Z.selector)Z=[new dZ(Z)];else if(Z.name)Z=[new iZ(Z)];else if(Z.text)Z=[new f6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[x6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[S6])h6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(G){throw J.addToError(G)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};U0.registerParse=(X)=>{k6=X};U0.registerRule=(X)=>{dZ=X};U0.registerAtRule=(X)=>{iZ=X};U0.registerRoot=(X)=>{v6=X};var E0=U0;U0.default=U0;U0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,iZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,dZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,b6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,f6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,v6.prototype);if(X[x6]=!0,X.nodes)X.nodes.forEach((Z)=>{U0.rebuild(Z)})};var EG=E0,g6,m6,q1=class extends EG{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new g6(new m6,this,Z).stringify()}};q1.registerLazyResult=(X)=>{g6=X};q1.registerProcessor=(X)=>{m6=X};var sZ=q1;q1.default=q1;var B8={},u6=function(Z){if(B8[Z])return;if(B8[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},MZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},c6=MZ;MZ.default=MZ;var $G=c6,wZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new $G(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},aZ=wZ;wZ.default=wZ;var l9=39,j8=34,f1=92,L8=47,k1=10,n0=32,v1=12,y1=9,h1=13,IG=91,NG=93,TG=40,SG=41,xG=123,bG=125,fG=59,kG=42,vG=58,yG=64,g1=/[\t\n\f\r "#'()/;[\\\]{}]/g,m1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,hG=/.[\r\n"'(/\\]/,P8=/[\da-f]/i,gG=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,G,K,V,q,W,H,z,B,j,P,L=Y.length,U=0,A=[],O=[];function D(){return U}function M(v){throw Z.error("Unclosed "+v,U)}function T(){return O.length===0&&U>=L}function x(v){if(O.length)return O.pop();if(U>=L)return;let c=v?v.ignoreUnclosed:!1;switch(G=Y.charCodeAt(U),G){case k1:case n0:case y1:case h1:case v1:{K=U;do K+=1,G=Y.charCodeAt(K);while(G===n0||G===k1||G===y1||G===h1||G===v1);P=["space",Y.slice(U,K)],U=K-1;break}case IG:case NG:case xG:case bG:case vG:case fG:case SG:{let i=String.fromCharCode(G);P=[i,i,U];break}case TG:{if(B=A.length?A.pop()[1]:"",j=Y.charCodeAt(U+1),B==="url"&&j!==l9&&j!==j8&&j!==n0&&j!==k1&&j!==y1&&j!==v1&&j!==h1){K=U;do{if(H=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||c){K=U;break}else M("bracket");z=K;while(Y.charCodeAt(z-1)===f1)z-=1,H=!H}while(H);P=["brackets",Y.slice(U,K+1),U,K],U=K}else if(K=Y.indexOf(")",U+1),q=Y.slice(U,K+1),K===-1||hG.test(q))P=["(","(",U];else P=["brackets",q,U,K],U=K;break}case l9:case j8:{V=G===l9?"'":'"',K=U;do{if(H=!1,K=Y.indexOf(V,K+1),K===-1)if(Q||c){K=U+1;break}else M("string");z=K;while(Y.charCodeAt(z-1)===f1)z-=1,H=!H}while(H);P=["string",Y.slice(U,K+1),U,K],U=K;break}case yG:{if(g1.lastIndex=U+1,g1.test(Y),g1.lastIndex===0)K=Y.length-1;else K=g1.lastIndex-2;P=["at-word",Y.slice(U,K+1),U,K],U=K;break}case f1:{K=U,W=!0;while(Y.charCodeAt(K+1)===f1)K+=1,W=!W;if(G=Y.charCodeAt(K+1),W&&G!==L8&&G!==n0&&G!==k1&&G!==y1&&G!==h1&&G!==v1){if(K+=1,P8.test(Y.charAt(K))){while(P8.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===n0)K+=1}}P=["word",Y.slice(U,K+1),U,K],U=K;break}default:{if(G===L8&&Y.charCodeAt(U+1)===kG){if(K=Y.indexOf("*/",U+2)+1,K===0)if(Q||c)K=Y.length;else M("comment");P=["comment",Y.slice(U,K+1),U,K],U=K}else{if(m1.lastIndex=U+1,m1.test(Y),m1.lastIndex===0)K=Y.length-1;else K=m1.lastIndex-2;P=["word",Y.slice(U,K+1),U,K],A.push(P),U=K}break}}return U++,P}function p(v){O.push(v)}return{back:p,endOfFile:T,nextToken:x,position:D}},p6=E0,G9=class extends p6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},rZ=G9;G9.default=G9;p6.registerAtRule(G9);var l6=E0,d6,i6,c0=class extends l6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let G of Q)G.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new d6(new i6,this,Z).stringify()}};c0.registerLazyResult=(X)=>{d6=X};c0.registerProcessor=(X)=>{i6=X};var L1=c0;c0.default=c0;l6.registerRoot(c0);var V1={comma(X){return V1.split(X,[","],!0)},space(X){let Z=[" ",`
52
+ `,"\t"];return V1.split(X,Z)},split(X,Z,J){let Y=[],Q="",G=!1,K=0,V=!1,q="",W=!1;for(let H of X){if(W)W=!1;else if(H==="\\")W=!0;else if(V){if(H===q)V=!1}else if(H==='"'||H==="'")V=!0,q=H;else if(H==="(")K+=1;else if(H===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(H))G=!0}if(G){if(Q!=="")Y.push(Q.trim());Q="",G=!1}else Q+=H}if(J||Q!=="")Y.push(Q.trim());return Y}},s6=V1;V1.default=V1;var a6=E0,mG=s6,K9=class extends a6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return mG.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},oZ=K9;K9.default=K9;a6.registerRule(K9);var uG=F9,cG=gG,pG=A9,lG=rZ,dG=L1,D8=oZ,F8={empty:!0,space:!0};function iG(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var sG=class{constructor(Z){this.input=Z,this.root=new dG,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new lG;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,G,K=!1,V=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(q.length>0){G=q.length-1,Q=q[G];while(Q&&Q[0]==="space")Q=q[--G];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),K)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let G=J-1;G>=0;G--)if(Q=Z[G],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,G;for(let[K,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!G)this.doubleColon(Y);else if(G[0]==="word"&&G[1]==="progid")continue;else return K;G=Y}return!1}comment(Z){let J=new pG;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=cG(this.input)}decl(Z,J){let Y=new uG;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||iG(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let G;while(Z.length)if(G=Z.shift(),G[0]===":"){Y.raws.between+=G[1];break}else{if(G[0]==="word"&&/\w/.test(G[1]))this.unknownWord([G]);Y.raws.between+=G[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(G=Z[W],G[1].toLowerCase()==="!important"){Y.important=!0;let H=this.stringFrom(Z,W);if(H=this.spacesFromEnd(Z)+H,H!==" !important")Y.raws.important=H;break}else if(G[1].toLowerCase()==="important"){let H=Z.slice(0),z="";for(let B=W;B>0;B--){let j=H[B][0];if(z.trim().indexOf("!")===0&&j!=="space")break;z=H.pop()[1]+z}if(z.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=z,Z=H}if(G[0]!=="space"&&G[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=K.map((W)=>W[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new D8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,G=null,K=[],V=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!G)G=W;K.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!G)G=W;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(q,V);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)G=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(G);if(J&&Q){if(!V)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,V)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let G,K,V=Y.length,q="",W=!0,H,z;for(let B=0;B<V;B+=1)if(G=Y[B],K=G[0],K==="space"&&B===V-1&&!Q)W=!1;else if(K==="comment")if(z=Y[B-1]?Y[B-1][0]:"empty",H=Y[B+1]?Y[B+1][0]:"empty",!F8[z]&&!F8[H])if(q.slice(-1)===",")W=!1;else q+=G[1];else W=!1;else q+=G[1];if(!W){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new D8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},aG=sG,rG=E0,oG=aG,nG=O9;function q9(X,Z){let J=new nG(X,Z),Y=new oG(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
53
53
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
54
54
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
55
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var nZ=W9;W9.default=W9;hK.registerParse(W9);var{isClean:V0,my:mK}=D1,uK=M6,cK=A9,pK=C0,lK=sZ,dK=f6,WX=aZ,iK=nZ,sK=F1,aK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rK={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},oK={Once:!0,postcssPlugin:!0,prepare:!0},c0=0;function J1(X){return typeof X==="object"&&typeof X.then==="function"}function m6(X){let Z=!1,J=aK[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,c0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,c0,J+"Exit"];else return[J,J+"Exit"]}function HX(X){let Z;if(X.type==="document")Z=["Document",c0,"DocumentExit"];else if(X.type==="root")Z=["Root",c0,"RootExit"];else Z=m6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function _Z(X){if(X[V0]=!1,X.nodes)X.nodes.forEach((Z)=>_Z(Z));return X}var CZ={},p0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=_Z(J);else if(J instanceof X||J instanceof WX){if(Q=_Z(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=iK;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[mK])pK.rebuild(Q)}this.result=new WX(Z,Q,Y),this.helpers={...CZ,postcss:CZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!rK[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oK[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(J1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0]){Z[V0]=!0;let J=[HX(Z)];while(J.length>0){let Y=this.visitTick(J);if(J1(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(J1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=cK;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new uK(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(J1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0])Z[V0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))dK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(J1(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[V0]){V[V0]=!0,Z.push(HX(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===c0){if(Y.nodes&&Y.nodes.length)Y[V0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[V0]=!0;let J=m6(Z);for(let Y of J)if(Y===c0){if(Z.nodes)Z.each((Q)=>{if(!Q[V0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};p0.registerPostcss=(X)=>{CZ=X};var u6=p0;p0.default=p0;sK.registerLazyResult(p0);lK.registerLazyResult(p0);var nK=M6,tK=A9,eK=f6,Zq=nZ,Jq=aZ,RZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=tK;this.result=new Jq(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new nK(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))eK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=Zq;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},Xq=RZ;RZ.default=RZ;var Yq=Xq,Qq=u6,Kq=sZ,qq=F1,z1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new Yq(this,Z,J);else return new Qq(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},Gq=z1;z1.default=z1;qq.registerProcessor(z1);Kq.registerProcessor(z1);var Vq=M9,Uq=P6,Wq=_9,Hq=rZ,zq=w9,Bq=F1,jq=oZ;function B1(X,Z){if(Array.isArray(X))return X.map((Q)=>B1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:zq.prototype};if(K.map)K.map={...K.map,__proto__:Uq.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>B1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new Bq(Y);else if(Y.type==="decl")return new Vq(Y);else if(Y.type==="rule")return new jq(Y);else if(Y.type==="comment")return new Wq(Y);else if(Y.type==="atrule")return new Hq(Y);else throw Error("Unknown node type: "+X.type)}var Lq=B1;B1.default=B1;var Pq=lZ,c6=M9,Dq=u6,Fq=C0,tZ=Gq,Aq=A9,Oq=Lq,p6=sZ,Mq=x6,l6=_9,d6=rZ,wq=aZ,_q=w9,Cq=nZ,Rq=y6,i6=oZ,s6=F1,Eq=O9;function N(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new tZ(X)}N.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var nZ=q9;q9.default=q9;rG.registerParse(q9);var{isClean:W0,my:tG}=j1,eG=T6,ZK=P9,JK=E0,XK=sZ,YK=u6,O8=aZ,QK=nZ,GK=L1,KK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},qK={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},VK={Once:!0,postcssPlugin:!0,prepare:!0},p0=0;function t0(X){return typeof X==="object"&&typeof X.then==="function"}function r6(X){let Z=!1,J=KK[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,p0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,p0,J+"Exit"];else return[J,J+"Exit"]}function A8(X){let Z;if(X.type==="document")Z=["Document",p0,"DocumentExit"];else if(X.type==="root")Z=["Root",p0,"RootExit"];else Z=r6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function _Z(X){if(X[W0]=!1,X.nodes)X.nodes.forEach((Z)=>_Z(Z));return X}var CZ={},l0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=_Z(J);else if(J instanceof X||J instanceof O8){if(Q=_Z(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let G=QK;if(Y.syntax)G=Y.syntax.parse;if(Y.parser)G=Y.parser;if(G.parse)G=G.parse;try{Q=G(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[tG])JK.rebuild(Q)}this.result=new O8(Z,Q,Y),this.helpers={...CZ,postcss:CZ,result:this.result},this.plugins=this.processor.plugins.map((G)=>{if(typeof G==="object"&&G.prepare)return{...G,...G.prepare(this.result)};else return G})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:G}=Y,K=this.result.processor.version,V=G.split("."),q=K.split(".");if(V[0]!==q[0]||parseInt(V[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+G+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!qK[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!VK[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(t0(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[W0]){Z[W0]=!0;let J=[A8(Z)];while(J.length>0){let Y=this.visitTick(J);if(t0(Y))try{await Y}catch(Q){let G=J[J.length-1].node;throw this.handleError(Q,G)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((G)=>Y(G,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(t0(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=ZK;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new eG(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(t0(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[W0])Z[W0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))YK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let G;try{G=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(t0(G))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return V(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let K=J.iterator,V;while(V=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!V[W0]){V[W0]=!0,Z.push(A8(V));return}J.iterator=0,delete Y.indexes[K]}let G=J.events;while(J.eventIndex<G.length){let K=G[J.eventIndex];if(J.eventIndex+=1,K===p0){if(Y.nodes&&Y.nodes.length)Y[W0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[W0]=!0;let J=r6(Z);for(let Y of J)if(Y===p0){if(Z.nodes)Z.each((Q)=>{if(!Q[W0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};l0.registerPostcss=(X)=>{CZ=X};var o6=l0;l0.default=l0;GK.registerLazyResult(l0);XK.registerLazyResult(l0);var WK=T6,HK=P9,zK=u6,UK=nZ,BK=aZ,RZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,G=HK;this.result=new BK(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let V=new WK(G,Q,this._opts,J);if(V.isMap()){let[q,W]=V.generate();if(q)this.result.css=q;if(W)this.result.map=W}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))zK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=UK;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},jK=RZ;RZ.default=RZ;var LK=jK,PK=o6,DK=sZ,FK=L1,W1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new LK(this,Z,J);else return new PK(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},OK=W1;W1.default=W1;FK.registerProcessor(W1);DK.registerProcessor(W1);var AK=F9,MK=R6,wK=A9,_K=rZ,CK=O9,RK=L1,EK=oZ;function H1(X,Z){if(Array.isArray(X))return X.map((Q)=>H1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let G={...Q,__proto__:CK.prototype};if(G.map)G.map={...G.map,__proto__:MK.prototype};Z.push(G)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>H1(Q,Z));if(Y.source){let{inputId:Q,...G}=Y.source;if(Y.source=G,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new RK(Y);else if(Y.type==="decl")return new AK(Y);else if(Y.type==="rule")return new EK(Y);else if(Y.type==="comment")return new wK(Y);else if(Y.type==="atrule")return new _K(Y);else throw Error("Unknown node type: "+X.type)}var $K=H1;H1.default=H1;var IK=lZ,n6=F9,NK=o6,TK=E0,tZ=OK,SK=P9,xK=$K,t6=sZ,bK=c6,e6=A9,ZX=rZ,fK=aZ,kK=O9,vK=nZ,yK=s6,JX=oZ,XX=L1,hK=D9;function N(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new tZ(X)}N.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
56
56
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
57
- https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new tZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return N([Q(G)]).process(q,V)},Q};N.stringify=Aq;N.parse=Cq;N.fromJSON=Oq;N.list=Rq;N.comment=(X)=>new l6(X);N.atRule=(X)=>new d6(X);N.decl=(X)=>new c6(X);N.rule=(X)=>new i6(X);N.root=(X)=>new s6(X);N.document=(X)=>new p6(X);N.CssSyntaxError=Pq;N.Declaration=c6;N.Container=Fq;N.Processor=tZ;N.Document=p6;N.Comment=l6;N.Warning=Mq;N.AtRule=d6;N.Result=wq;N.Input=_q;N.Rule=i6;N.Root=s6;N.Node=Eq;Dq.registerPostcss(N);var Iq=N;N.default=N;var y=h7(Iq);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;class eZ{constructor(...X){Z0(this,"parentElement",null),Z0(this,"parentNode",null),Z0(this,"ownerDocument"),Z0(this,"firstChild",null),Z0(this,"lastChild",null),Z0(this,"previousSibling",null),Z0(this,"nextSibling",null),Z0(this,"ELEMENT_NODE",1),Z0(this,"TEXT_NODE",3),Z0(this,"nodeType"),Z0(this,"nodeName"),Z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof eZ))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var zX={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},BX={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},l1={},$q=()=>{return!!globalThis.Zone};function ZJ(X){if(l1[X])return l1[X];let Z=globalThis[X],J=Z.prototype,Y=X in zX?zX[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in BX?BX[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!$q())return l1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return l1[X]=U}catch{return J}}var d9={};function B0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(d9[Q])return d9[Q].call(Z);let K=ZJ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return d9[Q]=q,q.call(Z)}var i9={};function a6(X,Z,J){let Y=`${X}.${String(J)}`;if(i9[Y])return i9[Y].bind(Z);let K=ZJ(X)[J];if(typeof K!=="function")return Z[J];return i9[Y]=K,K.bind(Z)}function Nq(X){return B0("Node",X,"ownerDocument")}function Tq(X){return B0("Node",X,"childNodes")}function Sq(X){return B0("Node",X,"parentNode")}function fq(X){return B0("Node",X,"parentElement")}function xq(X){return B0("Node",X,"textContent")}function bq(X,Z){return a6("Node",X,"contains")(Z)}function kq(X){return a6("Node",X,"getRootNode")()}function vq(X){if(!X||!("host"in X))return null;return B0("ShadowRoot",X,"host")}function hq(X){return X.styleSheets}function yq(X){if(!X||!("shadowRoot"in X))return null;return B0("Element",X,"shadowRoot")}function gq(X,Z){return B0("Element",X,"querySelector")(Z)}function mq(X,Z){return B0("Element",X,"querySelectorAll")(Z)}function r6(){return ZJ("MutationObserver").constructor}function R0(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var w={ownerDocument:Nq,childNodes:Tq,parentNode:Sq,parentElement:fq,textContent:xq,contains:bq,getRootNode:kq,host:vq,styleSheets:hq,shadowRoot:yq,querySelector:gq,querySelectorAll:mq,mutationObserver:r6,patch:R0};function a(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var f0=`Please stop import mirror directly. Instead of that,\r
57
+ https://www.w3ctech.com/topic/2226`)}let V=J(...K);return V.postcssPlugin=Z,V.postcssVersion=new tZ().version,V}let G;return Object.defineProperty(Q,"postcss",{get(){if(!G)G=Q();return G}}),Q.process=function(K,V,q){return N([Q(q)]).process(K,V)},Q};N.stringify=SK;N.parse=vK;N.fromJSON=xK;N.list=yK;N.comment=(X)=>new e6(X);N.atRule=(X)=>new ZX(X);N.decl=(X)=>new n6(X);N.rule=(X)=>new JX(X);N.root=(X)=>new XX(X);N.document=(X)=>new t6(X);N.CssSyntaxError=IK;N.Declaration=n6;N.Container=TK;N.Processor=tZ;N.Document=t6;N.Comment=e6;N.Warning=bK;N.AtRule=ZX;N.Result=fK;N.Input=kK;N.Rule=JX;N.Root=XX;N.Node=hK;NK.registerPostcss(N);var gK=N;N.default=N;var h=r7(gK);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;class eZ{constructor(...X){Z0(this,"parentElement",null),Z0(this,"parentNode",null),Z0(this,"ownerDocument"),Z0(this,"firstChild",null),Z0(this,"lastChild",null),Z0(this,"previousSibling",null),Z0(this,"nextSibling",null),Z0(this,"ELEMENT_NODE",1),Z0(this,"TEXT_NODE",3),Z0(this,"nodeType"),Z0(this,"nodeName"),Z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof eZ))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var M8={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},w8={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},u1={},mK=()=>{return!!globalThis.Zone};function ZJ(X){if(u1[X])return u1[X];let Z=globalThis[X],J=Z.prototype,Y=X in M8?M8[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,V))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),G=X in w8?w8[X]:void 0,K=Boolean(G&&G.every((V)=>{var q;return typeof J[V]==="function"&&((q=J[V])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&K&&!mK())return u1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let q=V.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(V),!W)return J;return u1[X]=W}catch{return J}}var d9={};function j0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(d9[Q])return d9[Q].call(Z);let G=ZJ(X),K=(Y=Object.getOwnPropertyDescriptor(G,J))==null?void 0:Y.get;if(!K)return Z[J];return d9[Q]=K,K.call(Z)}var i9={};function YX(X,Z,J){let Y=`${X}.${String(J)}`;if(i9[Y])return i9[Y].bind(Z);let G=ZJ(X)[J];if(typeof G!=="function")return Z[J];return i9[Y]=G,G.bind(Z)}function uK(X){return j0("Node",X,"ownerDocument")}function cK(X){return j0("Node",X,"childNodes")}function pK(X){return j0("Node",X,"parentNode")}function lK(X){return j0("Node",X,"parentElement")}function dK(X){return j0("Node",X,"textContent")}function iK(X,Z){return YX("Node",X,"contains")(Z)}function sK(X){return YX("Node",X,"getRootNode")()}function aK(X){if(!X||!("host"in X))return null;return j0("ShadowRoot",X,"host")}function rK(X){return X.styleSheets}function oK(X){if(!X||!("shadowRoot"in X))return null;return j0("Element",X,"shadowRoot")}function nK(X,Z){return j0("Element",X,"querySelector")(Z)}function tK(X,Z){return j0("Element",X,"querySelectorAll")(Z)}function QX(){return ZJ("MutationObserver").constructor}function $0(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var w={ownerDocument:uK,childNodes:cK,parentNode:pK,parentElement:lK,textContent:dK,contains:iK,getRootNode:sK,host:aK,styleSheets:rK,shadowRoot:oK,querySelector:nK,querySelectorAll:tK,mutationObserver:QX,patch:$0};function a(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var b0=`Please stop import mirror directly. Instead of that,\r
58
58
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
- or you can use record.mirror to access the mirror instance during recording.`,jX={map:{},getId(){return console.error(f0),-1},getNode(){return console.error(f0),null},removeNodeFromMap(){console.error(f0)},has(){return console.error(f0),!1},reset(){console.error(f0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)jX=new Proxy(jX,{get(X,Z,J){if(Z==="map")console.error(f0);return Reflect.get(X,Z,J)}});function j1(X,Z,J={}){let Y=null,Q=0;return function(...K){let q=Date.now();if(!Q&&J.leading===!1)Q=q;let V=Z-(q-Q),G=this;if(V<=0||V>Z){if(Y)clearTimeout(Y),Y=null;Q=q,X.apply(G,K)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(G,K)},V)}}function C9(X,Z,J,Y,Q=window){let K=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(q){if(setTimeout(()=>{J.set.call(this,q)},0),K&&K.set)K.set.call(this,q)}}),()=>C9(X,Z,K||{},!0)}var H9=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))H9=()=>new Date().getTime();function o6(X){var Z,J,Y,Q;let K=X.document;return{left:K.scrollingElement?K.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:K.documentElement.scrollLeft||(K==null?void 0:K.body)&&((Z=w.parentElement(K.body))==null?void 0:Z.scrollLeft)||((J=K==null?void 0:K.body)==null?void 0:J.scrollLeft)||0,top:K.scrollingElement?K.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(K==null?void 0:K.documentElement.scrollTop)||(K==null?void 0:K.body)&&((Y=w.parentElement(K.body))==null?void 0:Y.scrollTop)||((Q=K==null?void 0:K.body)==null?void 0:Q.scrollTop)||0}}function n6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function t6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function e6(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:w.parentElement(X)}function r(X,Z,J,Y){if(!X)return!1;let Q=e6(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(X9(Q,Z,Y))return!0}catch(K){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function uq(X,Z){return Z.getId(X)!==-1}function s9(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===K1}function Z8(X,Z){if(X1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=w.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return Z8(Y,Z)}function EZ(X){return Boolean(X.changedTouches)}function cq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function J8(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function X8(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function IZ(X){if(!X)return!1;if(X instanceof eZ&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(w.shadowRoot(X))}class Y8{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Q8(X){var Z;let J=null;if("getRootNode"in X&&((Z=w.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&w.host(w.getRootNode(X)))J=w.host(w.getRootNode(X));return J}function pq(X){let Z=X,J;while(J=Q8(Z))Z=J;return Z}function lq(X){let Z=w.ownerDocument(X);if(!Z)return!1;let J=pq(X);return w.contains(Z,J)}function K8(X){let Z=w.ownerDocument(X);if(!Z)return!1;return w.contains(Z,X)||lq(X)}var R=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(R||{}),_=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(_||{}),o=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(o||{}),U0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(U0||{}),l0=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(l0||{}),x0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(x0||{});var q8=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(q8||{});function LX(X){return"__ln"in X}class G8{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&LX(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&LX(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var PX=(X,Z)=>`${X}@${Z}`;class V8{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new G8,Y=(V)=>{let G=V,U=K1;while(U===K1)G=G&&G.nextSibling,U=G&&this.mirror.getId(G);return U},Q=(V)=>{let G=w.parentNode(V);if(!G||!K8(V))return;let U=!1;if(V.nodeType===Node.TEXT_NODE){let j=G.tagName;if(j==="TEXTAREA")return;else if(j==="STYLE"&&this.addedSet.has(G))U=!0}let W=X1(G)?this.mirror.getId(Q8(V)):this.mirror.getId(G),H=Y(V);if(W===-1||H===-1)return J.addNode(V);let B=v0(V,{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:(j)=>{if(J8(j,this.mirror))this.iframeManager.addIframe(j);if(X8(j,this.mirror))this.stylesheetManager.trackLinkElement(j);if(IZ(V))this.shadowDomManager.addShadowRoot(w.shadowRoot(V),this.doc)},onIframeLoad:(j,P)=>{this.iframeManager.attachIframe(j,P),this.shadowDomManager.observeAttachShadow(j)},onStylesheetLoad:(j,P)=>{this.stylesheetManager.attachLinkElement(j,P)},cssCaptured:U});if(B)X.push({parentId:W,nextId:H,node:B}),Z.add(B.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let V of this.movedSet){if(DX(this.removesSubTreeCache,V,this.mirror)&&!this.movedSet.has(w.parentNode(V)))continue;Q(V)}for(let V of this.addedSet)if(!FX(this.droppedSet,V)&&!DX(this.removesSubTreeCache,V,this.mirror))Q(V);else if(FX(this.movedSet,V))Q(V);else this.droppedSet.add(V);let K=null;while(J.length){let V=null;if(K){let G=this.mirror.getId(w.parentNode(K.value)),U=Y(K.value);if(G!==-1&&U!==-1)V=K}if(!V){let G=J.tail;while(G){let U=G;if(G=G.previous,U){let W=this.mirror.getId(w.parentNode(U.value));if(Y(U.value)===-1)continue;else if(W!==-1){V=U;break}else{let B=U.value,j=w.parentNode(B);if(j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let P=w.host(j);if(this.mirror.getId(P)!==-1){V=U;break}}}}}}if(!V){while(J.head)J.removeNode(J.head.value);break}K=V.previous,J.removeNode(V.value),Q(V.value)}let q={texts:this.texts.map((V)=>{let G=V.node,U=w.parentNode(G);if(U&&U.tagName==="TEXTAREA")this.genTextAreaValueMutation(U);return{id:this.mirror.getId(G),value:V.value}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),attributes:this.attributes.map((V)=>{let{attributes:G}=V;if(typeof G.style==="string"){let U=JSON.stringify(V.styleDiff),W=JSON.stringify(V._unchangedStyles);if(U.length<G.style.length){if((U+W).split("var(").length===G.style.split("var(").length)G.style=V.styleDiff}}return{id:this.mirror.getId(V.node),attributes:G}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),removes:this.removes,adds:X};if(!q.texts.length&&!q.attributes.length&&!q.removes.length&&!q.adds.length)return;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(q)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);let J=Array.from(w.childNodes(X),(Y)=>w.textContent(Y)||"").join("");Z.attributes.value=e1({element:X,maskInputOptions:this.maskInputOptions,tagName:X.tagName,type:Z9(X),value:J,maskInputFn:this.maskInputFn})}),F(this,"processMutation",(X)=>{if(s9(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=w.textContent(X.target);if(!r(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:fX(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,e6(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let K=Z9(Z);Y=e1({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:K,value:Y,maskInputFn:this.maskInputFn})}if(r(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!SX(Z.tagName,J)){if(Q.attributes[J]=TX(this.doc,w0(Z.tagName),w0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(q){this.unattachedDoc=this.doc}let K=this.unattachedDoc.createElement("span");if(X.oldValue)K.setAttribute("style",X.oldValue);for(let q of Array.from(Z.style)){let V=Z.style.getPropertyValue(q),G=Z.style.getPropertyPriority(q);if(V!==K.style.getPropertyValue(q)||G!==K.style.getPropertyPriority(q))if(G==="")Q.styleDiff[q]=V;else Q.styleDiff[q]=[V,G];else Q._unchangedStyles[q]=[V,G]}for(let q of Array.from(K.style))if(Z.style.getPropertyValue(q)==="")Q.styleDiff[q]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(r(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=X1(X.target)?this.mirror.getId(w.host(X.target)):this.mirror.getId(X.target);if(r(X.target,this.blockClass,this.blockSelector,!1)||s9(Z,this.mirror,this.slimDOMOptions)||!uq(Z,this.mirror))return;if(this.addedSet.has(Z))$Z(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(Z8(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[PX(J,Y)])$Z(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:X1(X.target)&&Y1(X.target)?!0:void 0}),dq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(s9(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[PX(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!r(X,this.blockClass,this.blockSelector,!1)){if(w.childNodes(X).forEach((J)=>this.genAdds(J)),IZ(X))w.childNodes(w.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}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 $Z(X,Z){X.delete(Z),w.childNodes(Z).forEach((J)=>$Z(X,J))}function dq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),w.childNodes(Y).forEach((Q)=>J.push(Q))}return}function DX(X,Z,J){if(X.size===0)return!1;return iq(X,Z)}function iq(X,Z,J){let Y=w.parentNode(Z);if(!Y)return!1;return X.has(Y)}function FX(X,Z){if(X.size===0)return!1;return U8(X,Z)}function U8(X,Z){let J=w.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return U8(X,J)}var Q1;function sq(X){Q1=X}function aq(){Q1=void 0}var C=(X)=>{if(!Q1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(Q1&&Q1(Y)===!0)return;throw Y}}},M0=[];function A1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function W8(X,Z){let J=new V8;M0.push(J),J.init(X);let Y=new(r6())(C(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function rq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,K=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,q=[],V,G=j1(C((H)=>{let B=Date.now()-V;X(q.map((j)=>{return j.timeOffset-=B,j}),H),q=[],V=null}),K),U=C(j1(C((H)=>{let B=A1(H),{clientX:j,clientY:P}=EZ(H)?H.changedTouches[0]:H;if(!V)V=H9();q.push({x:j,y:P,id:Y.getId(B),timeOffset:H9()-V}),G(typeof DragEvent<"u"&&H instanceof DragEvent?_.Drag:H instanceof MouseEvent?_.MouseMove:_.TouchMove)}),Q,{trailing:!1})),W=[a("mousemove",U,J),a("touchmove",U,J),a("drag",U,J)];return C(()=>{W.forEach((H)=>H())})}function oq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){if(K.mouseInteraction===!1)return()=>{};let q=K.mouseInteraction===!0||K.mouseInteraction===void 0?{}:K.mouseInteraction,V=[],G=null,U=(W)=>{return(H)=>{let B=A1(H);if(r(B,Y,Q,!0))return;let j=null,P=W;if("pointerType"in H){switch(H.pointerType){case"mouse":j=U0.Mouse;break;case"touch":j=U0.Touch;break;case"pen":j=U0.Pen;break}if(j===U0.Touch){if(o[W]===o.MouseDown)P="TouchStart";else if(o[W]===o.MouseUp)P="TouchEnd"}else if(j===U0.Pen);}else if(EZ(H))j=U0.Touch;if(j!==null){if(G=j,P.startsWith("Touch")&&j===U0.Touch||P.startsWith("Mouse")&&j===U0.Mouse)j=null}else if(o[W]===o.Click)j=G,G=null;let L=EZ(H)?H.changedTouches[0]:H;if(!L)return;let z=J.getId(B),{clientX:O,clientY:A}=L;C(X)({type:o[P],id:z,x:O,y:A,...j!==null&&{pointerType:j}})}};return Object.keys(o).filter((W)=>Number.isNaN(Number(W))&&!W.endsWith("_Departed")&&q[W]!==!1).forEach((W)=>{let H=w0(W),B=U(W);if(window.PointerEvent)switch(o[W]){case o.MouseDown:case o.MouseUp:H=H.replace("mouse","pointer");break;case o.TouchStart:case o.TouchEnd:return}V.push(a(H,B,Z))}),C(()=>{V.forEach((W)=>W())})}function H8({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){let q=C(j1(C((V)=>{let G=A1(V);if(!G||r(G,Y,Q,!0))return;let U=J.getId(G);if(G===Z&&Z.defaultView){let W=o6(Z.defaultView);X({id:U,x:W.left,y:W.top})}else X({id:U,x:G.scrollLeft,y:G.scrollTop})}),K.scroll||100));return a("scroll",q,Z)}function nq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=C(j1(C(()=>{let K=n6(),q=t6();if(J!==K||Y!==q)X({width:Number(q),height:Number(K)}),J=K,Y=q}),200));return a("resize",Q,Z)}var tq=["INPUT","TEXTAREA","SELECT"],AX=new WeakMap;function eq({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:K,ignoreSelector:q,maskInputOptions:V,maskInputFn:G,sampling:U,userTriggeredOnInput:W}){function H(A){let D=A1(A),M=A.isTrusted,T=D&&D.tagName;if(D&&T==="OPTION")D=w.parentElement(D);if(!D||!T||tq.indexOf(T)<0||r(D,Y,Q,!0))return;if(D.classList.contains(K)||q&&D.matches(q))return;let f=D.value,p=!1,v=Z9(D)||"";if(v==="radio"||v==="checkbox")p=D.checked;else if(V[T.toLowerCase()]||V[v])f=e1({element:D,maskInputOptions:V,tagName:T,type:v,value:f,maskInputFn:G});B(D,W?{text:f,isChecked:p,userTriggered:M}:{text:f,isChecked:p});let c=D.name;if(v==="radio"&&c&&p)Z.querySelectorAll(`input[type="radio"][name="${c}"]`).forEach((i)=>{if(i!==D){let t=i.value;B(i,W?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function B(A,D){let M=AX.get(A);if(!M||M.text!==D.text||M.isChecked!==D.isChecked){AX.set(A,D);let T=J.getId(A);C(X)({...D,id:T})}}let P=(U.input==="last"?["change"]:["input","change"]).map((A)=>a(A,C(H),Z)),L=Z.defaultView;if(!L)return()=>{P.forEach((A)=>A())};let z=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),O=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];if(z&&z.set)P.push(...O.map((A)=>C9(A[0],A[1],{set(){C(H)({target:this,isTrusted:!1})}},!1,L)));return C(()=>{P.forEach((A)=>A())})}function z9(X){let Z=[];function J(Y,Q){if(d1("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||d1("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||d1("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||d1("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let q=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(q)}else if(Y.parentStyleSheet){let q=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(q)}return Q}return J(X,Z)}function P0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function ZG({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:C((W,H,B)=>{let[j,P]=B,{id:L,styleId:z}=P0(H,Z,J.styleMirror);if(L&&L!==-1||z&&z!==-1)X({id:L,styleId:z,adds:[{rule:j,index:P}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.addRule=function(W,H,B=this.cssRules.length){let j=`${W} { ${H} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[j,B])};let K=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(K,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,removes:[{index:j}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.removeRule=function(W){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[W])};let q;if(Y.CSSStyleSheet.prototype.replace)q=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(q,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replace:j});return W.apply(H,B)})});let V;if(Y.CSSStyleSheet.prototype.replaceSync)V=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(V,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replaceSync:j});return W.apply(H,B)})});let G={};if(i1("CSSGroupingRule"))G.CSSGroupingRule=Y.CSSGroupingRule;else{if(i1("CSSMediaRule"))G.CSSMediaRule=Y.CSSMediaRule;if(i1("CSSConditionRule"))G.CSSConditionRule=Y.CSSConditionRule;if(i1("CSSSupportsRule"))G.CSSSupportsRule=Y.CSSSupportsRule}let U={};return Object.entries(G).forEach(([W,H])=>{U[W]={insertRule:H.prototype.insertRule,deleteRule:H.prototype.deleteRule},H.prototype.insertRule=new Proxy(U[W].insertRule,{apply:C((B,j,P)=>{let[L,z]=P,{id:O,styleId:A}=P0(j.parentStyleSheet,Z,J.styleMirror);if(O&&O!==-1||A&&A!==-1)X({id:O,styleId:A,adds:[{rule:L,index:[...z9(j),z||0]}]});return B.apply(j,P)})}),H.prototype.deleteRule=new Proxy(U[W].deleteRule,{apply:C((B,j,P)=>{let[L]=P,{id:z,styleId:O}=P0(j.parentStyleSheet,Z,J.styleMirror);if(z&&z!==-1||O&&O!==-1)X({id:z,styleId:O,removes:[{index:[...z9(j),L]}]});return B.apply(j,P)})})}),C(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=K,q&&(Y.CSSStyleSheet.prototype.replace=q),V&&(Y.CSSStyleSheet.prototype.replaceSync=V),Object.entries(G).forEach(([W,H])=>{H.prototype.insertRule=U[W].insertRule,H.prototype.deleteRule=U[W].deleteRule})})}function z8({mirror:X,stylesheetManager:Z},J){var Y,Q,K;let q=null;if(J.nodeName==="#document")q=X.getId(J);else q=X.getId(w.host(J));let V=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(K=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:K.ShadowRoot,G=(V==null?void 0:V.prototype)?Object.getOwnPropertyDescriptor(V==null?void 0:V.prototype,"adoptedStyleSheets"):void 0;if(q===null||q===-1||!V||!G)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get(){var U;return(U=G.get)==null?void 0:U.call(this)},set(U){var W;let H=(W=G.set)==null?void 0:W.call(this,U);if(q!==null&&q!==-1)try{Z.adoptStyleSheets(U,q)}catch(B){}return H}}),C(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get:G.get,set:G.set})})}function JG({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let K=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(K,{apply:C((V,G,U)=>{var W;let[H,B,j]=U;if(J.has(H))return K.apply(G,[H,B,j]);let{id:P,styleId:L}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,set:{property:H,value:B,priority:j},index:z9(G.parentRule)});return V.apply(G,U)})});let q=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(q,{apply:C((V,G,U)=>{var W;let[H]=U;if(J.has(H))return q.apply(G,[H]);let{id:B,styleId:j}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(B&&B!==-1||j&&j!==-1)X({id:B,styleId:j,remove:{property:H},index:z9(G.parentRule)});return V.apply(G,U)})}),C(()=>{Q.CSSStyleDeclaration.prototype.setProperty=K,Q.CSSStyleDeclaration.prototype.removeProperty=q})}function XG({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:K}){let q=C((G)=>j1(C((U)=>{let W=A1(U);if(!W||r(W,Z,J,!0))return;let{currentTime:H,volume:B,muted:j,playbackRate:P,loop:L}=W;X({type:G,id:Y.getId(W),currentTime:H,volume:B,muted:j,playbackRate:P,loop:L})}),Q.media||500)),V=[a("play",q(x0.Play),K),a("pause",q(x0.Pause),K),a("seeked",q(x0.Seeked),K),a("volumechange",q(x0.VolumeChange),K),a("ratechange",q(x0.RateChange),K)];return C(()=>{V.forEach((G)=>G())})}function YG({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,K=J.FontFace;J.FontFace=function(G,U,W){let H=new K(G,U,W);return Q.set(H,{family:G,buffer:typeof U!=="string",descriptors:W,fontSource:typeof U==="string"?U:JSON.stringify(Array.from(new Uint8Array(U)))}),H};let q=R0(Z.fonts,"add",function(V){return function(G){return setTimeout(C(()=>{let U=Q.get(G);if(U)X(U),Q.delete(G)}),0),V.apply(this,[G])}});return Y.push(()=>{J.FontFace=K}),Y.push(q),C(()=>{Y.forEach((V)=>V())})}function QG(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:K}=X,q=!0,V=C(()=>{let G=Z.getSelection();if(!G||q&&(G==null?void 0:G.isCollapsed))return;q=G.isCollapsed||!1;let U=[],W=G.rangeCount||0;for(let H=0;H<W;H++){let B=G.getRangeAt(H),{startContainer:j,startOffset:P,endContainer:L,endOffset:z}=B;if(r(j,Y,Q,!0)||r(L,Y,Q,!0))continue;U.push({start:J.getId(j),startOffset:P,end:J.getId(L),endOffset:z})}K({ranges:U})});return V(),a("selectionchange",V)}function KG({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return R0(J.customElements,"define",function(Q){return function(K,q,V){try{Z({define:{name:K}})}catch(G){console.warn(`Custom element callback failed for ${K}`)}return Q.apply(this,[K,q,V])}})}function qG(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:K,viewportResizeCb:q,inputCb:V,mediaInteractionCb:G,styleSheetRuleCb:U,styleDeclarationCb:W,canvasMutationCb:H,fontCb:B,selectionCb:j,customElementCb:P}=X;X.mutationCb=(...L)=>{if(Z.mutation)Z.mutation(...L);J(...L)},X.mousemoveCb=(...L)=>{if(Z.mousemove)Z.mousemove(...L);Y(...L)},X.mouseInteractionCb=(...L)=>{if(Z.mouseInteraction)Z.mouseInteraction(...L);Q(...L)},X.scrollCb=(...L)=>{if(Z.scroll)Z.scroll(...L);K(...L)},X.viewportResizeCb=(...L)=>{if(Z.viewportResize)Z.viewportResize(...L);q(...L)},X.inputCb=(...L)=>{if(Z.input)Z.input(...L);V(...L)},X.mediaInteractionCb=(...L)=>{if(Z.mediaInteaction)Z.mediaInteaction(...L);G(...L)},X.styleSheetRuleCb=(...L)=>{if(Z.styleSheetRule)Z.styleSheetRule(...L);U(...L)},X.styleDeclarationCb=(...L)=>{if(Z.styleDeclaration)Z.styleDeclaration(...L);W(...L)},X.canvasMutationCb=(...L)=>{if(Z.canvasMutation)Z.canvasMutation(...L);H(...L)},X.fontCb=(...L)=>{if(Z.font)Z.font(...L);B(...L)},X.selectionCb=(...L)=>{if(Z.selection)Z.selection(...L);j(...L)},X.customElementCb=(...L)=>{if(Z.customElement)Z.customElement(...L);P(...L)}}function GG(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};qG(X,Z);let Y;if(X.recordDOM)Y=W8(X,X.doc);let Q=rq(X),K=oq(X),q=H8(X),V=nq(X,{win:J}),G=eq(X),U=XG(X),W=()=>{},H=()=>{},B=()=>{},j=()=>{};if(X.recordDOM){if(W=ZG(X,{win:J}),H=z8(X,X.doc),B=JG(X,{win:J}),X.collectFonts)j=YG(X)}let P=QG(X),L=KG(X),z=[];for(let O of X.plugins)z.push(O.observer(O.callback,J,O.options));return C(()=>{M0.forEach((O)=>O.reset()),Y==null||Y.disconnect(),Q(),K(),q(),V(),G(),U(),W(),H(),B(),j(),P(),L(),z.forEach((O)=>O())})}function d1(X){return typeof window[X]<"u"}function i1(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class NZ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),K=Y||this.getRemoteIdToIdMap(X),q=Q.get(Z);if(!q)q=this.generateIdFn(),Q.set(Z,q),K.set(q,Z);return q}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class B8{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new NZ(NX)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:R.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return Z;case R.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case R.IncrementalSnapshot:switch(Z.data.source){case _.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.Drag:case _.TouchMove:case _.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(Z.data,X,["id"]),Z;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case _.Font:return Z;case _.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case _.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==q8.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class j8{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!Y1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=W8({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(H8({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(w.host(X)));this.restoreHandlers.push(z8({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(R0(X.prototype,"attachShadow",function(Y){return function(Q){let K=Y.call(this,Q),q=w.shadowRoot(this);if(q&&K8(this))J.addShadowRoot(q,Z);return K}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var h0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(b0=0;b0<h0.length;b0++)VG[h0.charCodeAt(b0)]=b0;var b0,UG=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=h0[Z[J]>>2],Q+=h0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=h0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=h0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var OX=new Map;function WG(X,Z){let J=OX.get(X);if(!J)J=new Map,OX.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var L8=(X,Z,J)=>{if(!X||!(D8(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=WG(J,Y),K=Q.indexOf(X);if(K===-1)K=Q.length,Q.push(X);return K};function n1(X,Z,J){if(X instanceof Array)return X.map((Y)=>n1(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=UG(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[n1(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[n1(X.data,Z,J),X.width,X.height]};else if(D8(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=L8(X,Z,J);return{rr_type:Y,index:Q}}return X}var P8=(X,Z,J)=>{return X.map((Y)=>n1(Y,Z,J))},D8=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function HG(X,Z,J,Y){let Q=[],K=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let q of K)try{if(typeof Z.CanvasRenderingContext2D.prototype[q]!=="function")continue;let V=R0(Z.CanvasRenderingContext2D.prototype,q,function(G){return function(...U){if(!r(this.canvas,J,Y,!0))setTimeout(()=>{let W=P8(U,Z,this);X(this.canvas,{type:l0["2D"],property:q,args:W})},0);return G.apply(this,U)}});Q.push(V)}catch{let V=C9(Z.CanvasRenderingContext2D.prototype,q,{set(G){X(this.canvas,{type:l0["2D"],property:q,args:[G],setter:!0})}});Q.push(V)}return()=>{Q.forEach((q)=>q())}}function zG(X){return X==="experimental-webgl"?"webgl":X}function MX(X,Z,J,Y){let Q=[];try{let K=R0(X.HTMLCanvasElement.prototype,"getContext",function(q){return function(V,...G){if(!r(this,Z,J,!0)){let U=zG(V);if(!("__context"in this))this.__context=U;if(Y&&["webgl","webgl2"].includes(U))if(G[0]&&typeof G[0]==="object"){let W=G[0];if(!W.preserveDrawingBuffer)W.preserveDrawingBuffer=!0}else G.splice(0,1,{preserveDrawingBuffer:!0})}return q.apply(this,[V,...G])}});Q.push(K)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((K)=>K())}}function wX(X,Z,J,Y,Q,K){let q=[],V=Object.getOwnPropertyNames(X);for(let G of V){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G))continue;try{if(typeof X[G]!=="function")continue;let U=R0(X,G,function(W){return function(...H){let B=W.apply(this,H);if(L8(B,K,this),"tagName"in this.canvas&&!r(this.canvas,Y,Q,!0)){let j=P8(H,K,this),P={type:Z,property:G,args:j};J(this.canvas,P)}return B}});q.push(U)}catch{let U=C9(X,G,{set(W){J(this.canvas,{type:Z,property:G,args:[W],setter:!0})}});q.push(U)}}return q}function BG(X,Z,J,Y){let Q=[];if(Q.push(...wX(Z.WebGLRenderingContext.prototype,l0.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...wX(Z.WebGL2RenderingContext.prototype,l0.WebGL2,X,J,Y,Z));return()=>{Q.forEach((K)=>K())}}var F8="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",jG=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),_X=typeof window<"u"&&window.Blob&&new Blob([jG(F8)],{type:"text/javascript;charset=utf-8"});function LG(X){let Z;try{if(Z=_X&&(window.URL||window.webkitURL).createObjectURL(_X),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+F8,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class A8{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(V,G)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(V))this.pendingCanvasMutations.set(V,[]);this.pendingCanvasMutations.get(V).push(G)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:K,dataURLOptions:q}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,K&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(K&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:q})}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(X,Z,J,Y,Q){let K=MX(Z,J,Y,!0),q=new Map,V=new LG;V.onmessage=(j)=>{let{id:P}=j.data;if(q.set(P,!1),!("base64"in j.data))return;let{base64:L,type:z,width:O,height:A}=j.data;this.mutationCb({id:P,type:l0["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L}],type:z}]},0,0]}]})};let G=1000/X,U=0,W,H=()=>{let j=[];return Z.document.querySelectorAll("canvas").forEach((P)=>{if(!r(P,J,Y,!0))j.push(P)}),j},B=(j)=>{if(U&&j-U<G){W=requestAnimationFrame(B);return}U=j,H().forEach(async(P)=>{var L;let z=this.mirror.getId(P);if(q.get(z))return;if(P.width===0||P.height===0)return;if(q.set(z,!0),["webgl","webgl2"].includes(P.__context)){let A=P.getContext(P.__context);if(((L=A==null?void 0:A.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1)A.clear(A.COLOR_BUFFER_BIT)}let O=await createImageBitmap(P);V.postMessage({id:z,bitmap:O,width:P.width,height:P.height,dataURLOptions:Q.dataURLOptions},[O])}),W=requestAnimationFrame(B)};W=requestAnimationFrame(B),this.resetObservers=()=>{K(),cancelAnimationFrame(W)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=MX(X,Z,J,!1),Q=HG(this.processMutation.bind(this),X,Z,J),K=BG(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),K()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((K)=>{let{type:q,...V}=K;return V}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class O8{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new Y8),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let K;if(!this.styleMirror.has(Q))K=this.styleMirror.add(Q),Y.push({styleId:K,rules:Array.from(Q.rules||CSSRule,(q,V)=>({rule:IX(q,Q.href),index:V}))});else K=this.styleMirror.getId(Q);J.styleIds.push(K)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class M8{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var u,t1,a9,B9=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((RJ=X.contentWindow)==null?void 0:RJ.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var X0=FY();function E0(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:K=null,ignoreClass:q="rr-ignore",ignoreSelector:V=null,maskTextClass:G="rr-mask",maskTextSelector:U=null,inlineStylesheet:W=!0,maskAllInputs:H,maskInputOptions:B,slimDOMOptions:j,maskInputFn:P,maskTextFn:L,hooks:z,packFn:O,sampling:A={},dataURLOptions:D={},mousemoveWait:M,recordDOM:T=!0,recordCanvas:f=!1,recordCrossOriginIframes:p=!1,recordAfter:v=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:c=!1,collectFonts:i=!1,inlineImages:t=!1,plugins:K0,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:i0=new Set([]),errorHandler:s0}=X;sq(s0);let l=p?window.parent===window:!0,e=!1;if(!l)try{if(window.parent.document)e=!1}catch(I){e=!0}if(l&&!Z)throw Error("emit function is required");if(!l&&!e)return()=>{};if(M!==void 0&&A.mousemove===void 0)A.mousemove=M;X0.reset();let D0=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}:B!==void 0?B:{password:!0},q0=xX(j);cq();let HJ,T9=0,zJ=(I)=>{for(let J0 of K0||[])if(J0.eventProcessor)I=J0.eventProcessor(I);if(O&&!e)I=O(I);return I};u=(I,J0)=>{var g;let m=I;if(m.timestamp=H9(),((g=M0[0])==null?void 0:g.isFrozen())&&m.type!==R.FullSnapshot&&!(m.type===R.IncrementalSnapshot&&m.data.source===_.Mutation))M0.forEach((n)=>n.unfreeze());if(l)Z==null||Z(zJ(m),J0);else if(e){let n={type:"rrweb",event:zJ(m),origin:window.location.origin,isCheckout:J0};window.parent.postMessage(n,"*")}if(m.type===R.FullSnapshot)HJ=m,T9=0;else if(m.type===R.IncrementalSnapshot){if(m.data.source===_.Mutation&&m.data.isAttachIframe)return;T9++;let n=Y&&T9>=Y,S=J&&m.timestamp-HJ.timestamp>J;if(n||S)t1(!0)}};let M1=(I)=>{u({type:R.IncrementalSnapshot,data:{source:_.Mutation,...I}})},BJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.Scroll,...I}}),jJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.CanvasMutation,...I}}),F0=new O8({mutationCb:M1,adoptedStyleSheetCb:(I)=>u({type:R.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...I}})}),A0=new B8({mirror:X0,mutationCb:M1,stylesheetManager:F0,recordCrossOriginIframes:p,wrappedEmit:u});for(let I of K0||[])if(I.getMirror)I.getMirror({nodeMirror:X0,crossOriginIframeMirror:A0.crossOriginIframeMirror,crossOriginIframeStyleMirror:A0.crossOriginIframeStyleMirror});let S9=new M8;a9=new A8({recordCanvas:f,mutationCb:jJ,win:window,blockClass:Q,blockSelector:K,mirror:X0,sampling:A.canvas,dataURLOptions:D});let w1=new j8({mutationCb:M1,scrollCb:BJ,bypassOptions:{blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskInputOptions:D0,dataURLOptions:D,maskTextFn:L,maskInputFn:P,recordCanvas:f,inlineImages:t,sampling:A,slimDOMOptions:q0,iframeManager:A0,stylesheetManager:F0,canvasManager:a9,keepIframeSrcFn:E,processedNodeManager:S9},mirror:X0});t1=(I=!1)=>{if(!T)return;u({type:R.Meta,data:{href:window.location.href,width:t6(),height:n6()}},I),F0.reset(),w1.init(),M0.forEach((g)=>g.lock());let J0=cY(document,{mirror:X0,blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskAllInputs:D0,maskTextFn:L,maskInputFn:P,slimDOM:q0,dataURLOptions:D,recordCanvas:f,inlineImages:t,onSerialize:(g)=>{if(J8(g,X0))A0.addIframe(g);if(X8(g,X0))F0.trackLinkElement(g);if(IZ(g))w1.addShadowRoot(w.shadowRoot(g),document)},onIframeLoad:(g,m)=>{A0.attachIframe(g,m),w1.observeAttachShadow(g)},onStylesheetLoad:(g,m)=>{F0.attachLinkElement(g,m)},keepIframeSrcFn:E});if(!J0)return console.warn("Failed to snapshot the document");if(u({type:R.FullSnapshot,data:{node:J0,initialOffset:o6(window)}},I),M0.forEach((g)=>g.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)F0.adoptStyleSheets(document.adoptedStyleSheets,X0.getId(document))};try{let I=[],J0=(m)=>{var n;return C(GG)({mutationCb:M1,mousemoveCb:(S,f9)=>u({type:R.IncrementalSnapshot,data:{source:f9,positions:S}}),mouseInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MouseInteraction,...S}}),scrollCb:BJ,viewportResizeCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.ViewportResize,...S}}),inputCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Input,...S}}),mediaInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MediaInteraction,...S}}),styleSheetRuleCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleSheetRule,...S}}),styleDeclarationCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleDeclaration,...S}}),canvasMutationCb:jJ,fontCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Font,...S}}),selectionCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.Selection,...S}})},customElementCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.CustomElement,...S}})},blockClass:Q,ignoreClass:q,ignoreSelector:V,maskTextClass:G,maskTextSelector:U,maskInputOptions:D0,inlineStylesheet:W,sampling:A,recordDOM:T,recordCanvas:f,inlineImages:t,userTriggeredOnInput:c,collectFonts:i,doc:m,maskInputFn:P,maskTextFn:L,keepIframeSrcFn:E,blockSelector:K,slimDOMOptions:q0,dataURLOptions:D,mirror:X0,iframeManager:A0,stylesheetManager:F0,shadowDomManager:w1,processedNodeManager:S9,canvasManager:a9,ignoreCSSAttributes:i0,plugins:((n=K0==null?void 0:K0.filter((S)=>S.observer))==null?void 0:n.map((S)=>({observer:S.observer,options:S.options,callback:(f9)=>u({type:R.Plugin,data:{plugin:S.name,payload:f9}})})))||[]},z)};A0.addLoadListener((m)=>{try{I.push(J0(m.contentDocument))}catch(n){console.warn(n)}});let g=()=>{t1(),I.push(J0(document)),B9=!0};if(["interactive","complete"].includes(document.readyState))g();else I.push(a("DOMContentLoaded",()=>{if(u({type:R.DomContentLoaded,data:{}}),v==="DOMContentLoaded")g()})),I.push(a("load",()=>{if(u({type:R.Load,data:{}}),v==="load")g()},window));return()=>{I.forEach((m)=>{try{m()}catch(n){if(!String(n).toLowerCase().includes("cross-origin"))console.warn(n)}}),S9.destroy(),B9=!1,aq()}}catch(I){console.warn(I)}}E0.addCustomEvent=(X,Z)=>{if(!B9)throw Error("please add custom event after start recording");u({type:R.Custom,data:{tag:X,payload:Z}})};E0.freezePage=()=>{M0.forEach((X)=>X.freeze())};E0.takeFullSnapshot=(X)=>{if(!B9)throw Error("please take full snapshot after start recording");t1(X)};E0.mirror=X0;/*! *****************************************************************************
59
+ or you can use record.mirror to access the mirror instance during recording.`,_8={map:{},getId(){return console.error(b0),-1},getNode(){return console.error(b0),null},removeNodeFromMap(){console.error(b0)},has(){return console.error(b0),!1},reset(){console.error(b0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)_8=new Proxy(_8,{get(X,Z,J){if(Z==="map")console.error(b0);return Reflect.get(X,Z,J)}});function z1(X,Z,J={}){let Y=null,Q=0;return function(...G){let K=Date.now();if(!Q&&J.leading===!1)Q=K;let V=Z-(K-Q),q=this;if(V<=0||V>Z){if(Y)clearTimeout(Y),Y=null;Q=K,X.apply(q,G)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(q,G)},V)}}function M9(X,Z,J,Y,Q=window){let G=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(K){if(setTimeout(()=>{J.set.call(this,K)},0),G&&G.set)G.set.call(this,K)}}),()=>M9(X,Z,G||{},!0)}var V9=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))V9=()=>new Date().getTime();function GX(X){var Z,J,Y,Q;let G=X.document;return{left:G.scrollingElement?G.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:G.documentElement.scrollLeft||(G==null?void 0:G.body)&&((Z=w.parentElement(G.body))==null?void 0:Z.scrollLeft)||((J=G==null?void 0:G.body)==null?void 0:J.scrollLeft)||0,top:G.scrollingElement?G.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(G==null?void 0:G.documentElement.scrollTop)||(G==null?void 0:G.body)&&((Y=w.parentElement(G.body))==null?void 0:Y.scrollTop)||((Q=G==null?void 0:G.body)==null?void 0:Q.scrollTop)||0}}function KX(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qX(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function VX(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:w.parentElement(X)}function r(X,Z,J,Y){if(!X)return!1;let Q=VX(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(e1(Q,Z,Y))return!0}catch(G){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function eK(X,Z){return Z.getId(X)!==-1}function s9(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===X1}function WX(X,Z){if(e0(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=w.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return WX(Y,Z)}function EZ(X){return Boolean(X.changedTouches)}function Zq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function HX(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function zX(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function $Z(X){if(!X)return!1;if(X instanceof eZ&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(w.shadowRoot(X))}class UX{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function BX(X){var Z;let J=null;if("getRootNode"in X&&((Z=w.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&w.host(w.getRootNode(X)))J=w.host(w.getRootNode(X));return J}function Jq(X){let Z=X,J;while(J=BX(Z))Z=J;return Z}function Xq(X){let Z=w.ownerDocument(X);if(!Z)return!1;let J=Jq(X);return w.contains(Z,J)}function jX(X){let Z=w.ownerDocument(X);if(!Z)return!1;return w.contains(Z,X)||Xq(X)}var R=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(R||{}),_=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(_||{}),o=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(o||{}),H0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(H0||{}),d0=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(d0||{}),f0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(f0||{});var LX=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(LX||{});function C8(X){return"__ln"in X}class PX{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&C8(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&C8(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var R8=(X,Z)=>`${X}@${Z}`;class DX{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new PX,Y=(V)=>{let q=V,W=X1;while(W===X1)q=q&&q.nextSibling,W=q&&this.mirror.getId(q);return W},Q=(V)=>{let q=w.parentNode(V);if(!q||!jX(V))return;let W=!1;if(V.nodeType===Node.TEXT_NODE){let j=q.tagName;if(j==="TEXTAREA")return;else if(j==="STYLE"&&this.addedSet.has(q))W=!0}let H=e0(q)?this.mirror.getId(BX(V)):this.mirror.getId(q),z=Y(V);if(H===-1||z===-1)return J.addNode(V);let B=y0(V,{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:(j)=>{if(HX(j,this.mirror))this.iframeManager.addIframe(j);if(zX(j,this.mirror))this.stylesheetManager.trackLinkElement(j);if($Z(V))this.shadowDomManager.addShadowRoot(w.shadowRoot(V),this.doc)},onIframeLoad:(j,P)=>{this.iframeManager.attachIframe(j,P),this.shadowDomManager.observeAttachShadow(j)},onStylesheetLoad:(j,P)=>{this.stylesheetManager.attachLinkElement(j,P)},cssCaptured:W});if(B)X.push({parentId:H,nextId:z,node:B}),Z.add(B.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let V of this.movedSet){if(E8(this.removesSubTreeCache,V,this.mirror)&&!this.movedSet.has(w.parentNode(V)))continue;Q(V)}for(let V of this.addedSet)if(!$8(this.droppedSet,V)&&!E8(this.removesSubTreeCache,V,this.mirror))Q(V);else if($8(this.movedSet,V))Q(V);else this.droppedSet.add(V);let G=null;while(J.length){let V=null;if(G){let q=this.mirror.getId(w.parentNode(G.value)),W=Y(G.value);if(q!==-1&&W!==-1)V=G}if(!V){let q=J.tail;while(q){let W=q;if(q=q.previous,W){let H=this.mirror.getId(w.parentNode(W.value));if(Y(W.value)===-1)continue;else if(H!==-1){V=W;break}else{let B=W.value,j=w.parentNode(B);if(j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let P=w.host(j);if(this.mirror.getId(P)!==-1){V=W;break}}}}}}if(!V){while(J.head)J.removeNode(J.head.value);break}G=V.previous,J.removeNode(V.value),Q(V.value)}let K={texts:this.texts.map((V)=>{let q=V.node,W=w.parentNode(q);if(W&&W.tagName==="TEXTAREA")this.genTextAreaValueMutation(W);return{id:this.mirror.getId(q),value:V.value}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),attributes:this.attributes.map((V)=>{let{attributes:q}=V;if(typeof q.style==="string"){let W=JSON.stringify(V.styleDiff),H=JSON.stringify(V._unchangedStyles);if(W.length<q.style.length){if((W+H).split("var(").length===q.style.split("var(").length)q.style=V.styleDiff}}return{id:this.mirror.getId(V.node),attributes:q}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),removes:this.removes,adds:X};if(!K.texts.length&&!K.attributes.length&&!K.removes.length&&!K.adds.length)return;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(K)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);let J=Array.from(w.childNodes(X),(Y)=>w.textContent(Y)||"").join("");Z.attributes.value=o1({element:X,maskInputOptions:this.maskInputOptions,tagName:X.tagName,type:n1(X),value:J,maskInputFn:this.maskInputFn})}),F(this,"processMutation",(X)=>{if(s9(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=w.textContent(X.target);if(!r(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:u8(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,VX(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let G=n1(Z);Y=o1({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:G,value:Y,maskInputFn:this.maskInputFn})}if(r(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!m8(Z.tagName,J)){if(Q.attributes[J]=g8(this.doc,C0(Z.tagName),C0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(K){this.unattachedDoc=this.doc}let G=this.unattachedDoc.createElement("span");if(X.oldValue)G.setAttribute("style",X.oldValue);for(let K of Array.from(Z.style)){let V=Z.style.getPropertyValue(K),q=Z.style.getPropertyPriority(K);if(V!==G.style.getPropertyValue(K)||q!==G.style.getPropertyPriority(K))if(q==="")Q.styleDiff[K]=V;else Q.styleDiff[K]=[V,q];else Q._unchangedStyles[K]=[V,q]}for(let K of Array.from(G.style))if(Z.style.getPropertyValue(K)==="")Q.styleDiff[K]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(r(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=e0(X.target)?this.mirror.getId(w.host(X.target)):this.mirror.getId(X.target);if(r(X.target,this.blockClass,this.blockSelector,!1)||s9(Z,this.mirror,this.slimDOMOptions)||!eK(Z,this.mirror))return;if(this.addedSet.has(Z))IZ(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(WX(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[R8(J,Y)])IZ(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:e0(X.target)&&Z1(X.target)?!0:void 0}),Yq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(s9(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[R8(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!r(X,this.blockClass,this.blockSelector,!1)){if(w.childNodes(X).forEach((J)=>this.genAdds(J)),$Z(X))w.childNodes(w.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}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 IZ(X,Z){X.delete(Z),w.childNodes(Z).forEach((J)=>IZ(X,J))}function Yq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),w.childNodes(Y).forEach((Q)=>J.push(Q))}return}function E8(X,Z,J){if(X.size===0)return!1;return Qq(X,Z)}function Qq(X,Z,J){let Y=w.parentNode(Z);if(!Y)return!1;return X.has(Y)}function $8(X,Z){if(X.size===0)return!1;return FX(X,Z)}function FX(X,Z){let J=w.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return FX(X,J)}var J1;function Gq(X){J1=X}function Kq(){J1=void 0}var C=(X)=>{if(!J1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(J1&&J1(Y)===!0)return;throw Y}}},_0=[];function P1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function OX(X,Z){let J=new DX;_0.push(J),J.init(X);let Y=new(QX())(C(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function qq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,G=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,K=[],V,q=z1(C((z)=>{let B=Date.now()-V;X(K.map((j)=>{return j.timeOffset-=B,j}),z),K=[],V=null}),G),W=C(z1(C((z)=>{let B=P1(z),{clientX:j,clientY:P}=EZ(z)?z.changedTouches[0]:z;if(!V)V=V9();K.push({x:j,y:P,id:Y.getId(B),timeOffset:V9()-V}),q(typeof DragEvent<"u"&&z instanceof DragEvent?_.Drag:z instanceof MouseEvent?_.MouseMove:_.TouchMove)}),Q,{trailing:!1})),H=[a("mousemove",W,J),a("touchmove",W,J),a("drag",W,J)];return C(()=>{H.forEach((z)=>z())})}function Vq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:G}){if(G.mouseInteraction===!1)return()=>{};let K=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,V=[],q=null,W=(H)=>{return(z)=>{let B=P1(z);if(r(B,Y,Q,!0))return;let j=null,P=H;if("pointerType"in z){switch(z.pointerType){case"mouse":j=H0.Mouse;break;case"touch":j=H0.Touch;break;case"pen":j=H0.Pen;break}if(j===H0.Touch){if(o[H]===o.MouseDown)P="TouchStart";else if(o[H]===o.MouseUp)P="TouchEnd"}else if(j===H0.Pen);}else if(EZ(z))j=H0.Touch;if(j!==null){if(q=j,P.startsWith("Touch")&&j===H0.Touch||P.startsWith("Mouse")&&j===H0.Mouse)j=null}else if(o[H]===o.Click)j=q,q=null;let L=EZ(z)?z.changedTouches[0]:z;if(!L)return;let U=J.getId(B),{clientX:A,clientY:O}=L;C(X)({type:o[P],id:U,x:A,y:O,...j!==null&&{pointerType:j}})}};return Object.keys(o).filter((H)=>Number.isNaN(Number(H))&&!H.endsWith("_Departed")&&K[H]!==!1).forEach((H)=>{let z=C0(H),B=W(H);if(window.PointerEvent)switch(o[H]){case o.MouseDown:case o.MouseUp:z=z.replace("mouse","pointer");break;case o.TouchStart:case o.TouchEnd:return}V.push(a(z,B,Z))}),C(()=>{V.forEach((H)=>H())})}function AX({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:G}){let K=C(z1(C((V)=>{let q=P1(V);if(!q||r(q,Y,Q,!0))return;let W=J.getId(q);if(q===Z&&Z.defaultView){let H=GX(Z.defaultView);X({id:W,x:H.left,y:H.top})}else X({id:W,x:q.scrollLeft,y:q.scrollTop})}),G.scroll||100));return a("scroll",K,Z)}function Wq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=C(z1(C(()=>{let G=KX(),K=qX();if(J!==G||Y!==K)X({width:Number(K),height:Number(G)}),J=G,Y=K}),200));return a("resize",Q,Z)}var Hq=["INPUT","TEXTAREA","SELECT"],I8=new WeakMap;function zq({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:G,ignoreSelector:K,maskInputOptions:V,maskInputFn:q,sampling:W,userTriggeredOnInput:H}){function z(O){let D=P1(O),M=O.isTrusted,T=D&&D.tagName;if(D&&T==="OPTION")D=w.parentElement(D);if(!D||!T||Hq.indexOf(T)<0||r(D,Y,Q,!0))return;if(D.classList.contains(G)||K&&D.matches(K))return;let x=D.value,p=!1,v=n1(D)||"";if(v==="radio"||v==="checkbox")p=D.checked;else if(V[T.toLowerCase()]||V[v])x=o1({element:D,maskInputOptions:V,tagName:T,type:v,value:x,maskInputFn:q});B(D,H?{text:x,isChecked:p,userTriggered:M}:{text:x,isChecked:p});let c=D.name;if(v==="radio"&&c&&p)Z.querySelectorAll(`input[type="radio"][name="${c}"]`).forEach((i)=>{if(i!==D){let t=i.value;B(i,H?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function B(O,D){let M=I8.get(O);if(!M||M.text!==D.text||M.isChecked!==D.isChecked){I8.set(O,D);let T=J.getId(O);C(X)({...D,id:T})}}let P=(W.input==="last"?["change"]:["input","change"]).map((O)=>a(O,C(z),Z)),L=Z.defaultView;if(!L)return()=>{P.forEach((O)=>O())};let U=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),A=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];if(U&&U.set)P.push(...A.map((O)=>M9(O[0],O[1],{set(){C(z)({target:this,isTrusted:!1})}},!1,L)));return C(()=>{P.forEach((O)=>O())})}function W9(X){let Z=[];function J(Y,Q){if(c1("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||c1("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||c1("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||c1("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let K=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(K)}else if(Y.parentStyleSheet){let K=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(K)}return Q}return J(X,Z)}function D0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function Uq({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:C((H,z,B)=>{let[j,P]=B,{id:L,styleId:U}=D0(z,Z,J.styleMirror);if(L&&L!==-1||U&&U!==-1)X({id:L,styleId:U,adds:[{rule:j,index:P}]});return H.apply(z,B)})}),Y.CSSStyleSheet.prototype.addRule=function(H,z,B=this.cssRules.length){let j=`${H} { ${z} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[j,B])};let G=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(G,{apply:C((H,z,B)=>{let[j]=B,{id:P,styleId:L}=D0(z,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,removes:[{index:j}]});return H.apply(z,B)})}),Y.CSSStyleSheet.prototype.removeRule=function(H){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[H])};let K;if(Y.CSSStyleSheet.prototype.replace)K=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(K,{apply:C((H,z,B)=>{let[j]=B,{id:P,styleId:L}=D0(z,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replace:j});return H.apply(z,B)})});let V;if(Y.CSSStyleSheet.prototype.replaceSync)V=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(V,{apply:C((H,z,B)=>{let[j]=B,{id:P,styleId:L}=D0(z,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replaceSync:j});return H.apply(z,B)})});let q={};if(p1("CSSGroupingRule"))q.CSSGroupingRule=Y.CSSGroupingRule;else{if(p1("CSSMediaRule"))q.CSSMediaRule=Y.CSSMediaRule;if(p1("CSSConditionRule"))q.CSSConditionRule=Y.CSSConditionRule;if(p1("CSSSupportsRule"))q.CSSSupportsRule=Y.CSSSupportsRule}let W={};return Object.entries(q).forEach(([H,z])=>{W[H]={insertRule:z.prototype.insertRule,deleteRule:z.prototype.deleteRule},z.prototype.insertRule=new Proxy(W[H].insertRule,{apply:C((B,j,P)=>{let[L,U]=P,{id:A,styleId:O}=D0(j.parentStyleSheet,Z,J.styleMirror);if(A&&A!==-1||O&&O!==-1)X({id:A,styleId:O,adds:[{rule:L,index:[...W9(j),U||0]}]});return B.apply(j,P)})}),z.prototype.deleteRule=new Proxy(W[H].deleteRule,{apply:C((B,j,P)=>{let[L]=P,{id:U,styleId:A}=D0(j.parentStyleSheet,Z,J.styleMirror);if(U&&U!==-1||A&&A!==-1)X({id:U,styleId:A,removes:[{index:[...W9(j),L]}]});return B.apply(j,P)})})}),C(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=G,K&&(Y.CSSStyleSheet.prototype.replace=K),V&&(Y.CSSStyleSheet.prototype.replaceSync=V),Object.entries(q).forEach(([H,z])=>{z.prototype.insertRule=W[H].insertRule,z.prototype.deleteRule=W[H].deleteRule})})}function MX({mirror:X,stylesheetManager:Z},J){var Y,Q,G;let K=null;if(J.nodeName==="#document")K=X.getId(J);else K=X.getId(w.host(J));let V=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(G=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:G.ShadowRoot,q=(V==null?void 0:V.prototype)?Object.getOwnPropertyDescriptor(V==null?void 0:V.prototype,"adoptedStyleSheets"):void 0;if(K===null||K===-1||!V||!q)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get(){var W;return(W=q.get)==null?void 0:W.call(this)},set(W){var H;let z=(H=q.set)==null?void 0:H.call(this,W);if(K!==null&&K!==-1)try{Z.adoptStyleSheets(W,K)}catch(B){}return z}}),C(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get:q.get,set:q.set})})}function Bq({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let G=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(G,{apply:C((V,q,W)=>{var H;let[z,B,j]=W;if(J.has(z))return G.apply(q,[z,B,j]);let{id:P,styleId:L}=D0((H=q.parentRule)==null?void 0:H.parentStyleSheet,Z,Y.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,set:{property:z,value:B,priority:j},index:W9(q.parentRule)});return V.apply(q,W)})});let K=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:C((V,q,W)=>{var H;let[z]=W;if(J.has(z))return K.apply(q,[z]);let{id:B,styleId:j}=D0((H=q.parentRule)==null?void 0:H.parentStyleSheet,Z,Y.styleMirror);if(B&&B!==-1||j&&j!==-1)X({id:B,styleId:j,remove:{property:z},index:W9(q.parentRule)});return V.apply(q,W)})}),C(()=>{Q.CSSStyleDeclaration.prototype.setProperty=G,Q.CSSStyleDeclaration.prototype.removeProperty=K})}function jq({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:G}){let K=C((q)=>z1(C((W)=>{let H=P1(W);if(!H||r(H,Z,J,!0))return;let{currentTime:z,volume:B,muted:j,playbackRate:P,loop:L}=H;X({type:q,id:Y.getId(H),currentTime:z,volume:B,muted:j,playbackRate:P,loop:L})}),Q.media||500)),V=[a("play",K(f0.Play),G),a("pause",K(f0.Pause),G),a("seeked",K(f0.Seeked),G),a("volumechange",K(f0.VolumeChange),G),a("ratechange",K(f0.RateChange),G)];return C(()=>{V.forEach((q)=>q())})}function Lq({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,G=J.FontFace;J.FontFace=function(q,W,H){let z=new G(q,W,H);return Q.set(z,{family:q,buffer:typeof W!=="string",descriptors:H,fontSource:typeof W==="string"?W:JSON.stringify(Array.from(new Uint8Array(W)))}),z};let K=$0(Z.fonts,"add",function(V){return function(q){return setTimeout(C(()=>{let W=Q.get(q);if(W)X(W),Q.delete(q)}),0),V.apply(this,[q])}});return Y.push(()=>{J.FontFace=G}),Y.push(K),C(()=>{Y.forEach((V)=>V())})}function Pq(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:G}=X,K=!0,V=C(()=>{let q=Z.getSelection();if(!q||K&&(q==null?void 0:q.isCollapsed))return;K=q.isCollapsed||!1;let W=[],H=q.rangeCount||0;for(let z=0;z<H;z++){let B=q.getRangeAt(z),{startContainer:j,startOffset:P,endContainer:L,endOffset:U}=B;if(r(j,Y,Q,!0)||r(L,Y,Q,!0))continue;W.push({start:J.getId(j),startOffset:P,end:J.getId(L),endOffset:U})}G({ranges:W})});return V(),a("selectionchange",V)}function Dq({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return $0(J.customElements,"define",function(Q){return function(G,K,V){try{Z({define:{name:G}})}catch(q){console.warn(`Custom element callback failed for ${G}`)}return Q.apply(this,[G,K,V])}})}function Fq(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:G,viewportResizeCb:K,inputCb:V,mediaInteractionCb:q,styleSheetRuleCb:W,styleDeclarationCb:H,canvasMutationCb:z,fontCb:B,selectionCb:j,customElementCb:P}=X;X.mutationCb=(...L)=>{if(Z.mutation)Z.mutation(...L);J(...L)},X.mousemoveCb=(...L)=>{if(Z.mousemove)Z.mousemove(...L);Y(...L)},X.mouseInteractionCb=(...L)=>{if(Z.mouseInteraction)Z.mouseInteraction(...L);Q(...L)},X.scrollCb=(...L)=>{if(Z.scroll)Z.scroll(...L);G(...L)},X.viewportResizeCb=(...L)=>{if(Z.viewportResize)Z.viewportResize(...L);K(...L)},X.inputCb=(...L)=>{if(Z.input)Z.input(...L);V(...L)},X.mediaInteractionCb=(...L)=>{if(Z.mediaInteaction)Z.mediaInteaction(...L);q(...L)},X.styleSheetRuleCb=(...L)=>{if(Z.styleSheetRule)Z.styleSheetRule(...L);W(...L)},X.styleDeclarationCb=(...L)=>{if(Z.styleDeclaration)Z.styleDeclaration(...L);H(...L)},X.canvasMutationCb=(...L)=>{if(Z.canvasMutation)Z.canvasMutation(...L);z(...L)},X.fontCb=(...L)=>{if(Z.font)Z.font(...L);B(...L)},X.selectionCb=(...L)=>{if(Z.selection)Z.selection(...L);j(...L)},X.customElementCb=(...L)=>{if(Z.customElement)Z.customElement(...L);P(...L)}}function Oq(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};Fq(X,Z);let Y;if(X.recordDOM)Y=OX(X,X.doc);let Q=qq(X),G=Vq(X),K=AX(X),V=Wq(X,{win:J}),q=zq(X),W=jq(X),H=()=>{},z=()=>{},B=()=>{},j=()=>{};if(X.recordDOM){if(H=Uq(X,{win:J}),z=MX(X,X.doc),B=Bq(X,{win:J}),X.collectFonts)j=Lq(X)}let P=Pq(X),L=Dq(X),U=[];for(let A of X.plugins)U.push(A.observer(A.callback,J,A.options));return C(()=>{_0.forEach((A)=>A.reset()),Y==null||Y.disconnect(),Q(),G(),K(),V(),q(),W(),H(),z(),B(),j(),P(),L(),U.forEach((A)=>A())})}function c1(X){return typeof window[X]<"u"}function p1(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class NZ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),G=Y||this.getRemoteIdToIdMap(X),K=Q.get(Z);if(!K)K=this.generateIdFn(),Q.set(Z,K),G.set(K,Z);return K}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class wX{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new NZ(h8)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:R.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return Z;case R.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case R.IncrementalSnapshot:switch(Z.data.source){case _.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.Drag:case _.TouchMove:case _.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(Z.data,X,["id"]),Z;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case _.Font:return Z;case _.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case _.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==LX.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class _X{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!Z1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=OX({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(AX({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(w.host(X)));this.restoreHandlers.push(MX({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push($0(X.prototype,"attachShadow",function(Y){return function(Q){let G=Y.call(this,Q),K=w.shadowRoot(this);if(K&&jX(this))J.addShadowRoot(K,Z);return G}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var h0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Aq=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(k0=0;k0<h0.length;k0++)Aq[h0.charCodeAt(k0)]=k0;var k0,Mq=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=h0[Z[J]>>2],Q+=h0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=h0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=h0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var N8=new Map;function wq(X,Z){let J=N8.get(X);if(!J)J=new Map,N8.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var CX=(X,Z,J)=>{if(!X||!(EX(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=wq(J,Y),G=Q.indexOf(X);if(G===-1)G=Q.length,Q.push(X);return G};function a1(X,Z,J){if(X instanceof Array)return X.map((Y)=>a1(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=Mq(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[a1(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[a1(X.data,Z,J),X.width,X.height]};else if(EX(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=CX(X,Z,J);return{rr_type:Y,index:Q}}return X}var RX=(X,Z,J)=>{return X.map((Y)=>a1(Y,Z,J))},EX=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function _q(X,Z,J,Y){let Q=[],G=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let K of G)try{if(typeof Z.CanvasRenderingContext2D.prototype[K]!=="function")continue;let V=$0(Z.CanvasRenderingContext2D.prototype,K,function(q){return function(...W){if(!r(this.canvas,J,Y,!0))setTimeout(()=>{let H=RX(W,Z,this);X(this.canvas,{type:d0["2D"],property:K,args:H})},0);return q.apply(this,W)}});Q.push(V)}catch{let V=M9(Z.CanvasRenderingContext2D.prototype,K,{set(q){X(this.canvas,{type:d0["2D"],property:K,args:[q],setter:!0})}});Q.push(V)}return()=>{Q.forEach((K)=>K())}}function Cq(X){return X==="experimental-webgl"?"webgl":X}function T8(X,Z,J,Y){let Q=[];try{let G=$0(X.HTMLCanvasElement.prototype,"getContext",function(K){return function(V,...q){if(!r(this,Z,J,!0)){let W=Cq(V);if(!("__context"in this))this.__context=W;if(Y&&["webgl","webgl2"].includes(W))if(q[0]&&typeof q[0]==="object"){let H=q[0];if(!H.preserveDrawingBuffer)H.preserveDrawingBuffer=!0}else q.splice(0,1,{preserveDrawingBuffer:!0})}return K.apply(this,[V,...q])}});Q.push(G)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((G)=>G())}}function S8(X,Z,J,Y,Q,G){let K=[],V=Object.getOwnPropertyNames(X);for(let q of V){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(q))continue;try{if(typeof X[q]!=="function")continue;let W=$0(X,q,function(H){return function(...z){let B=H.apply(this,z);if(CX(B,G,this),"tagName"in this.canvas&&!r(this.canvas,Y,Q,!0)){let j=RX(z,G,this),P={type:Z,property:q,args:j};J(this.canvas,P)}return B}});K.push(W)}catch{let W=M9(X,q,{set(H){J(this.canvas,{type:Z,property:q,args:[H],setter:!0})}});K.push(W)}}return K}function Rq(X,Z,J,Y){let Q=[];if(Q.push(...S8(Z.WebGLRenderingContext.prototype,d0.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...S8(Z.WebGL2RenderingContext.prototype,d0.WebGL2,X,J,Y,Z));return()=>{Q.forEach((G)=>G())}}var $X="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Eq=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),x8=typeof window<"u"&&window.Blob&&new Blob([Eq($X)],{type:"text/javascript;charset=utf-8"});function $q(X){let Z;try{if(Z=x8&&(window.URL||window.webkitURL).createObjectURL(x8),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+$X,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class IX{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(V,q)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(V))this.pendingCanvasMutations.set(V,[]);this.pendingCanvasMutations.get(V).push(q)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:G,dataURLOptions:K}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,G&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(G&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:K})}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(X,Z,J,Y,Q){let G=T8(Z,J,Y,!0),K=new Map,V=new $q;V.onmessage=(j)=>{let{id:P}=j.data;if(K.set(P,!1),!("base64"in j.data))return;let{base64:L,type:U,width:A,height:O}=j.data;this.mutationCb({id:P,type:d0["2D"],commands:[{property:"clearRect",args:[0,0,A,O]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L}],type:U}]},0,0]}]})};let q=1000/X,W=0,H,z=()=>{let j=[];return Z.document.querySelectorAll("canvas").forEach((P)=>{if(!r(P,J,Y,!0))j.push(P)}),j},B=(j)=>{if(W&&j-W<q){H=requestAnimationFrame(B);return}W=j,z().forEach(async(P)=>{var L;let U=this.mirror.getId(P);if(K.get(U))return;if(P.width===0||P.height===0)return;if(K.set(U,!0),["webgl","webgl2"].includes(P.__context)){let O=P.getContext(P.__context);if(((L=O==null?void 0:O.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1)O.clear(O.COLOR_BUFFER_BIT)}let A=await createImageBitmap(P);V.postMessage({id:U,bitmap:A,width:P.width,height:P.height,dataURLOptions:Q.dataURLOptions},[A])}),H=requestAnimationFrame(B)};H=requestAnimationFrame(B),this.resetObservers=()=>{G(),cancelAnimationFrame(H)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=T8(X,Z,J,!1),Q=_q(this.processMutation.bind(this),X,Z,J),G=Rq(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),G()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((G)=>{let{type:K,...V}=G;return V}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class NX{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new UX),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let G;if(!this.styleMirror.has(Q))G=this.styleMirror.add(Q),Y.push({styleId:G,rules:Array.from(Q.rules||CSSRule,(K,V)=>({rule:v8(K,Q.href),index:V}))});else G=this.styleMirror.getId(Q);J.styleIds.push(G)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class TX{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var u,r1,a9,H9=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((fJ=X.contentWindow)==null?void 0:fJ.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var X0=TY();function I0(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:G=null,ignoreClass:K="rr-ignore",ignoreSelector:V=null,maskTextClass:q="rr-mask",maskTextSelector:W=null,inlineStylesheet:H=!0,maskAllInputs:z,maskInputOptions:B,slimDOMOptions:j,maskInputFn:P,maskTextFn:L,hooks:U,packFn:A,sampling:O={},dataURLOptions:D={},mousemoveWait:M,recordDOM:T=!0,recordCanvas:x=!1,recordCrossOriginIframes:p=!1,recordAfter:v=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:c=!1,collectFonts:i=!1,inlineImages:t=!1,plugins:G0,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:i0=new Set([]),errorHandler:s0}=X;Gq(s0);let l=p?window.parent===window:!0,e=!1;if(!l)try{if(window.parent.document)e=!1}catch($){e=!0}if(l&&!Z)throw Error("emit function is required");if(!l&&!e)return()=>{};if(M!==void 0&&O.mousemove===void 0)O.mousemove=M;X0.reset();let A0=z===!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}:B!==void 0?B:{password:!0},K0=c8(j);Zq();let jJ,N9=0,LJ=($)=>{for(let J0 of G0||[])if(J0.eventProcessor)$=J0.eventProcessor($);if(A&&!e)$=A($);return $};u=($,J0)=>{var g;let m=$;if(m.timestamp=V9(),((g=_0[0])==null?void 0:g.isFrozen())&&m.type!==R.FullSnapshot&&!(m.type===R.IncrementalSnapshot&&m.data.source===_.Mutation))_0.forEach((n)=>n.unfreeze());if(l)Z==null||Z(LJ(m),J0);else if(e){let n={type:"rrweb",event:LJ(m),origin:window.location.origin,isCheckout:J0};window.parent.postMessage(n,"*")}if(m.type===R.FullSnapshot)jJ=m,N9=0;else if(m.type===R.IncrementalSnapshot){if(m.data.source===_.Mutation&&m.data.isAttachIframe)return;N9++;let n=Y&&N9>=Y,S=J&&m.timestamp-jJ.timestamp>J;if(n||S)r1(!0)}};let F1=($)=>{u({type:R.IncrementalSnapshot,data:{source:_.Mutation,...$}})},PJ=($)=>u({type:R.IncrementalSnapshot,data:{source:_.Scroll,...$}}),DJ=($)=>u({type:R.IncrementalSnapshot,data:{source:_.CanvasMutation,...$}}),M0=new NX({mutationCb:F1,adoptedStyleSheetCb:($)=>u({type:R.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...$}})}),w0=new wX({mirror:X0,mutationCb:F1,stylesheetManager:M0,recordCrossOriginIframes:p,wrappedEmit:u});for(let $ of G0||[])if($.getMirror)$.getMirror({nodeMirror:X0,crossOriginIframeMirror:w0.crossOriginIframeMirror,crossOriginIframeStyleMirror:w0.crossOriginIframeStyleMirror});let T9=new TX;a9=new IX({recordCanvas:x,mutationCb:DJ,win:window,blockClass:Q,blockSelector:G,mirror:X0,sampling:O.canvas,dataURLOptions:D});let O1=new _X({mutationCb:F1,scrollCb:PJ,bypassOptions:{blockClass:Q,blockSelector:G,maskTextClass:q,maskTextSelector:W,inlineStylesheet:H,maskInputOptions:A0,dataURLOptions:D,maskTextFn:L,maskInputFn:P,recordCanvas:x,inlineImages:t,sampling:O,slimDOMOptions:K0,iframeManager:w0,stylesheetManager:M0,canvasManager:a9,keepIframeSrcFn:E,processedNodeManager:T9},mirror:X0});r1=($=!1)=>{if(!T)return;u({type:R.Meta,data:{href:window.location.href,width:qX(),height:KX()}},$),M0.reset(),O1.init(),_0.forEach((g)=>g.lock());let J0=ZQ(document,{mirror:X0,blockClass:Q,blockSelector:G,maskTextClass:q,maskTextSelector:W,inlineStylesheet:H,maskAllInputs:A0,maskTextFn:L,maskInputFn:P,slimDOM:K0,dataURLOptions:D,recordCanvas:x,inlineImages:t,onSerialize:(g)=>{if(HX(g,X0))w0.addIframe(g);if(zX(g,X0))M0.trackLinkElement(g);if($Z(g))O1.addShadowRoot(w.shadowRoot(g),document)},onIframeLoad:(g,m)=>{w0.attachIframe(g,m),O1.observeAttachShadow(g)},onStylesheetLoad:(g,m)=>{M0.attachLinkElement(g,m)},keepIframeSrcFn:E});if(!J0)return console.warn("Failed to snapshot the document");if(u({type:R.FullSnapshot,data:{node:J0,initialOffset:GX(window)}},$),_0.forEach((g)=>g.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)M0.adoptStyleSheets(document.adoptedStyleSheets,X0.getId(document))};try{let $=[],J0=(m)=>{var n;return C(Oq)({mutationCb:F1,mousemoveCb:(S,S9)=>u({type:R.IncrementalSnapshot,data:{source:S9,positions:S}}),mouseInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MouseInteraction,...S}}),scrollCb:PJ,viewportResizeCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.ViewportResize,...S}}),inputCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Input,...S}}),mediaInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MediaInteraction,...S}}),styleSheetRuleCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleSheetRule,...S}}),styleDeclarationCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleDeclaration,...S}}),canvasMutationCb:DJ,fontCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Font,...S}}),selectionCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.Selection,...S}})},customElementCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.CustomElement,...S}})},blockClass:Q,ignoreClass:K,ignoreSelector:V,maskTextClass:q,maskTextSelector:W,maskInputOptions:A0,inlineStylesheet:H,sampling:O,recordDOM:T,recordCanvas:x,inlineImages:t,userTriggeredOnInput:c,collectFonts:i,doc:m,maskInputFn:P,maskTextFn:L,keepIframeSrcFn:E,blockSelector:G,slimDOMOptions:K0,dataURLOptions:D,mirror:X0,iframeManager:w0,stylesheetManager:M0,shadowDomManager:O1,processedNodeManager:T9,canvasManager:a9,ignoreCSSAttributes:i0,plugins:((n=G0==null?void 0:G0.filter((S)=>S.observer))==null?void 0:n.map((S)=>({observer:S.observer,options:S.options,callback:(S9)=>u({type:R.Plugin,data:{plugin:S.name,payload:S9}})})))||[]},U)};w0.addLoadListener((m)=>{try{$.push(J0(m.contentDocument))}catch(n){console.warn(n)}});let g=()=>{r1(),$.push(J0(document)),H9=!0};if(["interactive","complete"].includes(document.readyState))g();else $.push(a("DOMContentLoaded",()=>{if(u({type:R.DomContentLoaded,data:{}}),v==="DOMContentLoaded")g()})),$.push(a("load",()=>{if(u({type:R.Load,data:{}}),v==="load")g()},window));return()=>{$.forEach((m)=>{try{m()}catch(n){if(!String(n).toLowerCase().includes("cross-origin"))console.warn(n)}}),T9.destroy(),H9=!1,Kq()}}catch($){console.warn($)}}I0.addCustomEvent=(X,Z)=>{if(!H9)throw Error("please add custom event after start recording");u({type:R.Custom,data:{tag:X,payload:Z}})};I0.freezePage=()=>{_0.forEach((X)=>X.freeze())};I0.takeFullSnapshot=(X)=>{if(!H9)throw Error("please take full snapshot after start recording");r1(X)};I0.mirror=X0;/*! *****************************************************************************
60
60
  Copyright (c) Microsoft Corporation.
61
61
 
62
62
  Permission to use, copy, modify, and/or distribute this software for any
@@ -69,5 +69,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69
69
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70
70
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71
71
  PERFORMANCE OF THIS SOFTWARE.
72
- ***************************************************************************** */var CX;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(CX||(CX={}));var{addCustomEvent:w8}=E0;var JJ=_1(),PG=61440,_8=(X,Z)=>{try{let J=new XMLHttpRequest;J.open("POST",X,!0),J.setRequestHeader("Content-Type","application/json"),J.send(Z)}catch(J){}},XJ=(X,Z)=>{let J=o0(),Y=!!J,Q=JJ??(Y?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});if(JJ||!Y){_8(Q,q);return}if(q.length>PG){_8(Q,q);return}if(typeof navigator.sendBeacon==="function"){let V=new Blob([q],{type:"application/json"});if(navigator.sendBeacon(Q,V))return}fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,keepalive:!0}).catch(()=>{})},C8=async(X,Z)=>{let J=o0(),Q=JJ??(J?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});try{let V=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,credentials:"omit"});if(!V.ok)return null;return await V.json()}catch{return null}};var YJ="_fs_vid",QJ="_fs_sid",KJ="_fs_sts",DG=1800000,R8="_fs_vid",E8="_fs_sid",FG=(X)=>{let Z=document.cookie.match(new RegExp(`(?:^|; )${X}=([^;]*)`));return Z?decodeURIComponent(Z[1]):null},I8=(X,Z,J)=>{let Y=new Date(Date.now()+J*86400000).toUTCString(),Q=DJ(),K=Q?`;domain=.${Q}`:"";document.cookie=`${X}=${encodeURIComponent(Z)};expires=${Y};path=/${K};SameSite=Lax;Secure`};var AG=()=>{let X=new URLSearchParams(window.location.search),Z=X.get(R8)||void 0,J=X.get(E8)||void 0;if(Z||J){X.delete(R8),X.delete(E8);let Y=X.toString(),Q=window.location.pathname+(Y?`?${Y}`:"")+window.location.hash;history.replaceState(null,"",Q)}return{vid:Z,sid:J}},qJ=null,$8=()=>{if(qJ===null)qJ=AG();return qJ},N8=()=>{if(b9())return;let X=$8();if(X.vid){I8(YJ,X.vid,730);let J=X.vid;return X.vid=void 0,J}let Z=FG(YJ);if(!Z)Z=a0(),I8(YJ,Z,730);return Z},T8=()=>{if(b9())return;let X=$8();if(X.sid){let Q=X.sid;return sessionStorage.setItem(QJ,Q),sessionStorage.setItem(KJ,Date.now().toString()),X.sid=void 0,Q}let Z=Date.now(),J=parseInt(sessionStorage.getItem(KJ)||"0",10),Y=sessionStorage.getItem(QJ);if(!Y||Z-J>DG)Y=a0(),sessionStorage.setItem(QJ,Y);return sessionStorage.setItem(KJ,Z.toString()),Y};var S8="_fs_rid",OG=15000,MG=262144,wG=500,$0=[],VJ=0,I9=0,f8=0,O1=!1,T0=!1,j0=null,R9=null,k8=OG,$9="",E9,N0=v8(),I0=[];function v8(){return{hasClicks:!1,hasInputs:!1,hasErrors:!1,hasRageClicks:!1}}var h8=[],_G=()=>{let X=[],Z=_1();if(Z)X.push(Z);let J=o0();if(J)X.push(`${J}/api/track`);let Y=n0();if(Y)X.push(`${Y}/events`);return X},GJ=(X)=>h8.some((Z)=>X.indexOf(Z)===0)||X.indexOf("analytics.flowsery.com")!==-1,CG=(X)=>{if(typeof X==="string")return X;if(X instanceof URL)return X.href;return X?.url??""},d0=(X,Z)=>{if(!O1||T0)return;try{w8(X,Z)}catch{}},RG=()=>{try{let Z=sessionStorage.getItem(S8);if(Z)return Z}catch{}let X=a0();try{sessionStorage.setItem(S8,X)}catch{}return X},EG=async(X)=>{let Z=window.CompressionStream;if(typeof Z>"u")return{encoding:"identity+base64+jsonl",payload:btoa(unescape(encodeURIComponent(X)))};let Y=new Blob([X]).stream().pipeThrough(new Z("gzip")),Q=await new Response(Y).arrayBuffer(),K=new Uint8Array(Q),q="";for(let V=0;V<K.length;V++)q+=String.fromCharCode(K[V]);return{encoding:"gzip+base64+jsonl",payload:btoa(q)}},IG=(X)=>{let Z=Date.now();I0.push({t:Z,x:X.x||0,y:X.y||0});while(I0.length&&Z-I0[0].t>500)I0.shift();if(I0.length<3)return!1;let J=I0[0];return I0.every((Y)=>Math.abs(Y.x-J.x)<30&&Math.abs(Y.y-J.y)<30)},N9=async(X)=>{if(T0)return;if($0.length===0&&!X)return;if(!O1&&$0.length===0)return;let Z=Date.now(),J=I9||Z,Y=$0.length,Q=$0.map((V)=>JSON.stringify(V)).join(`
73
- `),K=N0;if($0=[],VJ=0,I9=0,N0=v8(),Y===0&&X){XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:0,payload:"",finalize:!0,encoding:"identity+base64+jsonl"});return}let q=await EG(Q);XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:Y,encoding:q.encoding,payload:q.payload,hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X})},$G=()=>{if(j0)return;j0=setTimeout(()=>{j0=null,N9(!1)},k8)},UJ=(X)=>{if(T0)return;if(j0)clearTimeout(j0),j0=null;if(R9)clearTimeout(R9),R9=null;if(N9(X),E9)E9(),E9=void 0;T0=!0,O1=!1},NG=(X)=>{if(typeof X!=="number"||X===-1)return;if(!Number.isFinite(X)||X<=0){UJ(!0);return}R9=setTimeout(()=>{UJ(!0)},X)},TG=(X)=>{if(!O1||T0)return;if(!I9)I9=X.timestamp||Date.now();let Z=JSON.stringify(X);if(VJ+=Z.length,$0.push(X),X.type===3&&X.data){if(X.data.source===2&&X.data.type===2){if(N0.hasClicks=!0,IG(X.data))N0.hasRageClicks=!0}if(X.data.source===5)N0.hasInputs=!0}if($0.length>=wG||VJ>=MG){if(j0)clearTimeout(j0),j0=null;N9(!1)}else $G()},SG=(X)=>{if(X==="strict")return{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"video, audio, canvas",recordCanvas:!1};if(X==="relaxed")return{maskAllInputs:!1};return{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0}}},fG=(X)=>{let Z=SG(X);Z.emit=TG;try{let J=E0(Z);if(typeof J==="function")E9=J}catch{T0=!0}},xG=()=>{window.addEventListener("error",(X)=>{N0.hasErrors=!0,d0("error",{message:X.message,source:X.filename,line:X.lineno,column:X.colno,stack:X.error?.stack?.slice(0,2000)})}),window.addEventListener("unhandledrejection",(X)=>{N0.hasErrors=!0;let Z=X.reason;d0("error",{message:typeof Z==="string"?Z:Z?.message,stack:typeof Z==="object"?Z?.stack?.slice(0,2000):void 0,unhandledRejection:!0})})},x8=!1,bG=()=>{if(x8)return;x8=!0,h8=_G();let X=window.fetch;if(typeof X==="function"){let Q=X.bind(window);window.fetch=(K,q)=>{let V=CG(K),G=q?.method||K?.method||"GET",U=Date.now();return Q(K,q).then((W)=>{if(W.status>=400&&!GJ(V))d0("network",{url:V,method:G,status:W.status,durationMs:Date.now()-U});return W},(W)=>{if(!GJ(V))d0("network",{url:V,method:G,status:0,error:W?.message,durationMs:Date.now()-U});throw W})}}let Z=XMLHttpRequest.prototype,J=Z.open,Y=Z.send;Z.open=function(Q,K,...q){return this.__fsNet={method:Q,url:typeof K==="string"?K:K.href,startedAt:0},J.apply(this,[Q,K,...q])},Z.send=function(...Q){let K=this.__fsNet;if(K)K.startedAt=Date.now(),this.addEventListener("loadend",()=>{if((this.status===0||this.status>=400)&&!GJ(K.url))d0("network",{url:K.url,method:K.method,status:this.status,durationMs:Date.now()-K.startedAt})});return Y.apply(this,Q)}},b8=!1,kG=()=>{if(b8)return;b8=!0;let X=location.href,Z=()=>{if(location.href===X)return;X=location.href,d0("navigation",{url:location.href,title:document.title})},J=history.pushState,Y=history.replaceState;history.pushState=function(...Q){let K=J.apply(this,Q);return Z(),K},history.replaceState=function(...Q){let K=Y.apply(this,Q);return Z(),K},window.addEventListener("popstate",Z),window.addEventListener("hashchange",Z)},vG=()=>{let X=()=>{UJ(!0)};document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")N9(!1)}),window.addEventListener("pagehide",X),window.addEventListener("beforeunload",X)},WJ=async()=>{let X=N8(),Z=T8();if(!X||!Z)return;$9=RG();let J=await C8("recording_start",{recordingUid:$9,visitorUid:X,sessionUid:Z,startUrl:location.href,startTitle:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight});if(!J||J.accepted!==!0){T0=!0;return}if(O1=!0,typeof J.flushIntervalMs==="number"&&J.flushIntervalMs>=1000&&J.flushIntervalMs<=60000)k8=J.flushIntervalMs;fG(J.privacyLevel||"balanced"),xG(),bG(),kG(),vG(),NG(J.maxDurationMs)};var y8=()=>{if(PJ())return;if(!r0())return;if(CJ())return;if(FJ()&&!AJ())return;if(OJ()&&!MJ())return;if(wJ()&&!_J())return;WJ()};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",y8);else y8();})();
72
+ ***************************************************************************** */var b8;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(b8||(b8={}));var{addCustomEvent:SX}=I0;var w9=MJ(),xX=61440,bX=3,Iq=1000,fX=(X,Z,J)=>{try{let Y=new XMLHttpRequest;if(Y.open("POST",X,!0),Y.setRequestHeader("Content-Type","application/json"),J>0){let Q=()=>{let G=bX-J;setTimeout(()=>fX(X,Z,J-1),Iq*Math.pow(2,G))};Y.onreadystatechange=()=>{if(Y.readyState!==4)return;if(Y.status===0||Y.status>=500)Q()},Y.onerror=Q}Y.send(Z)}catch(Y){}},JJ=(X,Z,J=!1)=>{fX(X,Z,J?bX:0)},kX=(X,Z)=>w9??(X?`${Z}/api/track`:`${b9()}/events`),vX=(X,Z,J)=>{let Y=A1(),Q=!!Y,G=kX(Q,Y),K=S0(),V=JSON.stringify({...Z,websiteId:K,type:X}),q=J?.retry??!1;if(w9||!Q){JJ(G,V,q);return}if(V.length>xX){JJ(G,V,q);return}if(typeof navigator.sendBeacon==="function"){let W=new Blob([V],{type:"application/json"});if(navigator.sendBeacon(G,W))return}fetch(G,{method:"POST",headers:{"Content-Type":"application/json"},body:V,keepalive:!0}).catch(()=>{})},yX=(X,Z)=>{let J=A1(),Y=!!J,Q=kX(Y,J),G=JSON.stringify({...Z,websiteId:S0(),type:X});if(G.length<=xX){if(!w9&&Y&&typeof navigator.sendBeacon==="function"){let K=new Blob([G],{type:"application/json"});if(navigator.sendBeacon(Q,K))return}if(typeof fetch==="function")try{fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:G,keepalive:!0,credentials:"omit"}).catch(()=>{});return}catch(K){}}JJ(Q,G)},hX=async(X,Z)=>{let J=A1(),Q=w9??(J?`${J}/api/track`:`${b9()}/events`),G=S0(),K=JSON.stringify({...Z,websiteId:G,type:X});try{let V=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:K,credentials:"omit"});if(!V.ok)return null;return await V.json()}catch{return null}};var XJ="_fs_vid",YJ="_fs_sid",QJ="_fs_sts",Nq=1800000,gX="_fs_vid",mX="_fs_sid",Tq=(X)=>{let Z=document.cookie.match(new RegExp(`(?:^|; )${X}=([^;]*)`));return Z?decodeURIComponent(Z[1]):null},uX=(X,Z,J)=>{let Y=new Date(Date.now()+J*86400000).toUTCString(),Q=wJ(),G=Q?`;domain=.${Q}`:"";document.cookie=`${X}=${encodeURIComponent(Z)};expires=${Y};path=/${G};SameSite=Lax;Secure`};var Sq=()=>{let X=new URLSearchParams(window.location.search),Z=X.get(gX)||void 0,J=X.get(mX)||void 0;if(Z||J){X.delete(gX),X.delete(mX);let Y=X.toString(),Q=window.location.pathname+(Y?`?${Y}`:"")+window.location.hash;history.replaceState(null,"",Q)}return{vid:Z,sid:J}},GJ=null,cX=()=>{if(GJ===null)GJ=Sq();return GJ},pX=()=>{if(f9())return;let X=cX();if(X.vid){uX(XJ,X.vid,730);let J=X.vid;return X.vid=void 0,J}let Z=Tq(XJ);if(!Z)Z=a0(),uX(XJ,Z,730);return Z},lX=()=>{if(f9())return;let X=cX();if(X.sid){let Q=X.sid;return sessionStorage.setItem(YJ,Q),sessionStorage.setItem(QJ,Date.now().toString()),X.sid=void 0,Q}let Z=Date.now(),J=parseInt(sessionStorage.getItem(QJ)||"0",10),Y=sessionStorage.getItem(YJ);if(!Y||Z-J>Nq)Y=a0(),sessionStorage.setItem(YJ,Y);return sessionStorage.setItem(QJ,Z.toString()),Y};var KJ="_fs_rid",xq=15000,bq=262144,fq=500,kq=50,vq=100,yq=100,T0=[],qJ=0,R9=0,hq=0,D1=!1,O0=!1,VJ=!1,L0=null,_9=null,sX=xq,E9="",C9,F0=aX(),WJ=0,HJ=0,zJ=0,N0=[];function aX(){return{hasClicks:!1,hasInputs:!1,hasErrors:!1,hasRageClicks:!1}}var $9=(X,Z)=>{if(!D1||O0)return;try{SX(X,Z)}catch{}},dX=(X,Z)=>{if(X==="console"){if(WJ>=kq)return;WJ++}else if(Z.ok===!1){if(zJ>=yq)return;zJ++}else{if(HJ>=vq)return;HJ++}$9(X,Z)},gq=()=>{try{let Z=sessionStorage.getItem(KJ);if(Z)return Z}catch{}let X=a0();try{sessionStorage.setItem(KJ,X)}catch{}return X},mq=async(X)=>{let Z=window.CompressionStream;if(typeof Z>"u")return{encoding:"identity+base64+jsonl",payload:btoa(unescape(encodeURIComponent(X)))};let Y=new Blob([X]).stream().pipeThrough(new Z("gzip")),Q=await new Response(Y).arrayBuffer(),G=new Uint8Array(Q),K="";for(let V=0;V<G.length;V++)K+=String.fromCharCode(G[V]);return{encoding:"gzip+base64+jsonl",payload:btoa(K)}},uq=(X)=>{let Z=Date.now();N0.push({t:Z,x:X.x||0,y:X.y||0});while(N0.length&&Z-N0[0].t>500)N0.shift();if(N0.length<3)return!1;let J=N0[0];return N0.every((Y)=>Math.abs(Y.x-J.x)<30&&Math.abs(Y.y-J.y)<30)},I9=async(X,Z=!1)=>{if(O0)return;if(T0.length===0&&!X)return;if(!D1&&T0.length===0)return;let J=Date.now(),Y=R9||J,Q=T0.length,G=T0.map((H)=>JSON.stringify(H)).join(`
73
+ `),K=F0,V=hq++,q=J;if(T0=[],qJ=0,R9=0,F0=aX(),WJ=0,HJ=0,zJ=0,X||Z||VJ){yX("recording_chunk",{recordingUid:E9,seq:V,startedAt:Y,endedAt:q,eventCount:Q,encoding:"identity+base64+jsonl",payload:Q===0?"":btoa(unescape(encodeURIComponent(G))),hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X});return}let W=await mq(G);vX("recording_chunk",{recordingUid:E9,seq:V,startedAt:Y,endedAt:q,eventCount:Q,encoding:W.encoding,payload:W.payload,hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X},{retry:!0})},cq=()=>{if(L0)return;L0=setTimeout(()=>{L0=null,I9(!1)},sX)},UJ=(X)=>{if(O0)return;if(L0)clearTimeout(L0),L0=null;if(_9)clearTimeout(_9),_9=null;if(I9(X),C9)C9(),C9=void 0;if(O0=!0,D1=!1,X)try{sessionStorage.removeItem(KJ)}catch{}},pq=(X)=>{if(typeof X!=="number"||X===-1)return;if(!Number.isFinite(X)||X<=0){UJ(!0);return}_9=setTimeout(()=>{UJ(!0)},X)},lq=(X)=>{if(!D1||O0)return;if(!R9)R9=X.timestamp||Date.now();let Z=JSON.stringify(X);if(qJ+=Z.length,T0.push(X),X.type===3&&X.data){if(X.data.source===2&&X.data.type===2){if(F0.hasClicks=!0,uq(X.data))F0.hasRageClicks=!0}if(X.data.source===5)F0.hasInputs=!0}if(T0.length>=fq||qJ>=bq){if(L0)clearTimeout(L0),L0=null;I9(!1)}else cq()},dq=(X)=>{if(X==="strict")return{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"video, audio, canvas",recordCanvas:!1};if(X==="relaxed")return{maskAllInputs:!1};return{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0}}},iq=(X)=>{let Z=dq(X);Z.emit=lq;try{let J=I0(Z);if(typeof J==="function")C9=J}catch{O0=!0}},iX=!1,sq=()=>{if(iX)return;iX=!0;let X=location.href,Z=()=>{if(location.href===X)return;X=location.href,$9("navigation",{url:location.href,title:document.title})},J=history.pushState,Y=history.replaceState;history.pushState=function(...Q){let G=J.apply(this,Q);return Z(),G},history.replaceState=function(...Q){let G=Y.apply(this,Q);return Z(),G},window.addEventListener("popstate",Z),window.addEventListener("hashchange",Z)},aq=()=>{let X=()=>{UJ(!0)};document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")VJ=!0,I9(!1,!0);else VJ=!1}),window.addEventListener("pagehide",X),window.addEventListener("beforeunload",X)},BJ=async()=>{let X=pX(),Z=lX();if(!X||!Z)return;if(E9=gq(),!NJ(Z,SJ())){O0=!0;return}let J=await hX("recording_start",{recordingUid:E9,visitorUid:X,sessionUid:Z,startUrl:location.href,startTitle:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,aiSampleRate:xJ()});if(!J||J.accepted!==!0){window.__flEarly?.stop(),O0=!0;return}if(D1=!0,typeof J.flushIntervalMs==="number"&&J.flushIntervalMs>=1000&&J.flushIntervalMs<=60000)sX=J.flushIntervalMs;iq(J.privacyLevel||"balanced"),window.__flEarly?.drain((Y,Q)=>{if(Y==="error"){F0.hasErrors=!0,$9("error",Q);return}if(Y==="console"){if(Q.level==="error")F0.hasErrors=!0;dX("console",Q);return}if(Y==="network"){if(Q.ok===!1)F0.hasErrors=!0;dX("network",Q);return}$9(Y,Q)}),sq(),aq(),pq(J.maxDurationMs)};var rX=()=>{if(AJ())return;if(!S0())return;if(bJ())return;if(_J()&&!CJ())return;if(RJ()&&!EJ())return;if($J()&&!IJ())return;BJ()};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",rX);else rX();})();