@appsurify-testmap/rrweb-snapshot 2.0.0-alpha.41 → 2.1.0-alpha.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.
@@ -11,33 +11,33 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var li=Object.defineProperty,ai=Object.defineProperties;var ui=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var kt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var _t=(i,e,t)=>e in i?li(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,D=(i,e)=>{for(var t in e||(e={}))kt.call(e,t)&&_t(i,t,e[t]);if(ce)for(var t of ce(e))It.call(e,t)&&_t(i,t,e[t]);return i},Z=(i,e)=>ai(i,ui(e));var We=(i,e)=>{var t={};for(var r in i)kt.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&ce)for(var r of ce(i))e.indexOf(r)<0&&It.call(i,r)&&(t[r]=i[r]);return t};var ci=Object.defineProperty,fi=(i,e,t)=>e in i?ci(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Tt=(i,e,t)=>fi(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(g||{});const Pt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Lt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fe={},hi=()=>!!globalThis.Zone;function ht(i){if(fe[i])return fe[i];const e=globalThis[i],t=e.prototype,r=i in Pt?Pt[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=i in Lt?Lt[i]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n&&!hi())return fe[i]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[i].prototype;return document.body.removeChild(l),u?fe[i]=u:t}catch(l){return t}}const je={};function F(i,e,t){var r;const s=`${i}.${String(t)}`;if(je[s])return je[s].call(e);const o=ht(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(je[s]=n,n.call(e)):e[t]}const Ve={};function ir(i,e,t){const r=`${i}.${String(t)}`;if(Ve[r])return Ve[r].bind(e);const o=ht(i)[t];return typeof o!="function"?e[t]:(Ve[r]=o,o.bind(e))}function pi(i){return F("Node",i,"childNodes")}function di(i){return F("Node",i,"parentNode")}function mi(i){return F("Node",i,"parentElement")}function gi(i){return F("Node",i,"textContent")}function yi(i,e){return ir("Node",i,"contains")(e)}function wi(i){return ir("Node",i,"getRootNode")()}function bi(i){return!i||!("host"in i)?null:F("ShadowRoot",i,"host")}function Ci(i){return i.styleSheets}function Si(i){return!i||!("shadowRoot"in i)?null:F("Element",i,"shadowRoot")}function vi(i,e){return F("Element",i,"querySelector")(e)}function xi(i,e){return F("Element",i,"querySelectorAll")(e)}function Ei(){return ht("MutationObserver").constructor}const R={childNodes:pi,parentNode:di,parentElement:mi,textContent:gi,contains:yi,getRootNode:wi,host:bi,styleSheets:Ci,shadowRoot:Si,querySelector:vi,querySelectorAll:xi,mutationObserver:Ei};function sr(i){const e=i&&"host"in i&&"mode"in i&&R.host(i)||null;return!!(e&&"shadowRoot"in e&&R.shadowRoot(e)===i)}function Se(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function Ni(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function nr(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Ne(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>or(s,t)).join("");return Ni(r)}catch(e){return null}}function or(i,e){if(ar(i)){let t;try{t=Ne(i.styleSheet)||nr(i)}catch(r){t=i.cssText}return i.styleSheet.href?re(t,i.styleSheet.href):t}else{let t=i.cssText;return ur(i)&&i.selectorText.includes(":")&&(t=lr(t)),e?re(t,e):t}}function lr(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function ar(i){return"styleSheet"in i}function ur(i){return"selectorText"in i}class ke{constructor(){Tt(this,"idNodeMap",new Map),Tt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Oi(){return new ke}function cr({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const l=r&&le(r);return(e[t.toLowerCase()]||l&&e[l])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function le(i){return i.toLowerCase()}const $t="__rrweb_original__";function fr(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=$t in o?o[$t]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function hr(i,e){return!i||!e||i.type!==e.type?!1:i.type===g.Document?i.compatMode===e.compatMode:i.type===g.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===g.Comment||i.type===g.Text||i.type===g.CDATA?i.textContent===e.textContent:i.type===g.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function pr(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?le(e):null}function pt(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function Ri(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const Ai=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mi=/^(?:[a-z+]+:)?\/\//i,_i=/^www\..*/i,ki=/^(data:)([^,]*),(.*)/i;function re(i,e){return(i||"").replace(Ai,(t,r,s,o,n,l)=>{const a=s||n||l,u=r||o||"";if(!a)return t;if(Mi.test(a)||_i.test(a))return`url(${u}${a}${u})`;if(ki.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Ri(e)+a}${u})`;const c=e.split("/"),f=a.split("/");c.pop();for(const h of f)h!=="."&&(h===".."?c.pop():c.push(h));return`url(${u}${c.join("/")}${u})`})}function ve(i){return i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function dr(i,e){const t=Array.from(e.childNodes),r=[];let s=0;if(t.length>1&&i&&typeof i=="string"){let o=ve(i);const n=o.length/i.length;for(let l=1;l<t.length;l++)if(t[l].textContent&&typeof t[l].textContent=="string"){const a=ve(t[l].textContent);let u=3;for(;u<a.length&&(a[u].match(/[a-zA-Z0-9]/)||a.indexOf(a.substring(0,u),1)!==-1);u++);for(;u<a.length;u++){const c=a.substring(0,u),f=o.split(c);let h=-1;if(f.length===2?h=o.indexOf(c):f.length>2&&f[0]===""&&t[l-1].textContent!==""&&(h=o.indexOf(c,1)),h!==-1){let y=Math.floor(h/n);for(;y>0&&y<i.length;){if(s+=1,s>50*t.length)return r.push(i),r;const w=ve(i.substring(0,y));if(w.length===h){r.push(i.substring(0,y)),i=i.substring(y),o=o.substring(h);break}else w.length<h?y+=Math.max(1,Math.floor((h-w.length)/n)):y-=Math.max(1,Math.floor((w.length-h)*n))}break}}}}return r.push(i),r}function mr(i,e){return dr(i,e).join("/* rr_split */")}function V(i){if(i.nodeType===Node.DOCUMENT_NODE)return"/";if(i.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(i.nodeType===Node.ELEMENT_NODE){const e=i;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t)return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),s=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${V(t)}/${e.tagName.toLowerCase()}${s}`}if(i.nodeType===Node.TEXT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.CDATA_SECTION_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.COMMENT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/comment()${r}`}return""}function Ie(i){return i.nodeType===i.ELEMENT_NODE}function gr(i){var e;const t=R.parentNode(i),r=t&&t;return!r||!dt(r)?!1:((e=i.textContent)==null?void 0:e.trim())!==""}function dt(i){var l;var e;const t=(l=(e=i.ownerDocument)==null?void 0:e.defaultView)!=null?l:null,r=t?t.getComputedStyle(i):null,s=r!=null&&r.display!=="none"&&r.visibility!=="hidden"&&parseFloat(r.opacity)!==0,o=i.getBoundingClientRect();return s&&Ii(o,t)}function Ii(i,e){var a,u,c,f;var t,r,s,o;const n=(u=(a=e==null?void 0:e.innerHeight)!=null?a:(r=(t=e==null?void 0:e.document)==null?void 0:t.documentElement)==null?void 0:r.clientHeight)!=null?u:0,l=(f=(c=e==null?void 0:e.innerWidth)!=null?c:(o=(s=e==null?void 0:e.document)==null?void 0:s.documentElement)==null?void 0:o.clientWidth)!=null?f:0;return i.width>0&&i.height>0&&i.top>=0&&i.left>=0&&i.bottom<=n&&i.right<=l}const mt=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],yr=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Ti=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],gt=new WeakSet;if(typeof Element!="undefined"&&typeof EventTarget!="undefined"){const i=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,r){if(i.call(this,e,t,r),this instanceof Element){const s=e.toLowerCase();mt.includes(s)&&gt.add(this)}}}if(typeof Element!="undefined"&&typeof EventTarget!="undefined"){const i=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(e,t,r){if(i.call(this,e,t,r),this instanceof Element){const s=e.toLowerCase();mt.includes(s)}}}function Pi(i){return i instanceof Element&&gt.has(i)}function yt(i){if(i.nodeType===Node.ELEMENT_NODE){const e=i,t=e.tagName.toLowerCase();if(yr.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",s=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return Pi(e)||r||s||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Ye(i){if(!i||typeof i.querySelectorAll!="function")return;i.querySelectorAll("*").forEach(t=>{Ti.forEach(r=>{t.hasAttribute(r)&&gt.add(t)})})}function wr(i){if(!(!i||typeof i.addEventListener!="function"||typeof i.querySelectorAll!="function"))try{i.readyState==="complete"||i.readyState==="interactive"?Ye(i):i.addEventListener("DOMContentLoaded",()=>Ye(i),{once:!0,capture:!1})}catch(e){console.warn("[inlineEventInspection] Failed to inspect document:",e)}}let br=1;const Li=new RegExp("[^a-z0-9-_:]"),Ke=-2;function Cr(){return br++}function Sr(i){if(i instanceof HTMLFormElement)return"form";const e=le(i.tagName);return Li.test(e)?"div":e}let j,Dt;const $i=/^[^ \t\n\r\u000c]+/,Di=/^[, \t\n\r\u000c]+/;function Ui(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const l=o.exec(e.substring(t));return l?(n=l[0],t+=n.length,n):""}const s=[];for(;r(Di),!(t>=e.length);){let o=r($i);if(o.slice(-1)===",")o=G(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=G(i,o);let l=!1;for(;;){const a=e.charAt(t);if(a===""){s.push((o+n).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((o+n).trim());break}else a==="("&&(l=!0);n+=a,t+=1}}}return s.join(", ")}const Ut=new WeakMap;function G(i,e){return!e||e.trim()===""?e:wt(i,e)}function Fi(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function wt(i,e){let t=Ut.get(i);if(t||(t=i.createElement("a"),Ut.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function vr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?G(i,r):t==="srcset"?Ui(i,r):t==="style"?re(r,wt(i)):e==="object"&&t==="data"?G(i,r):r)}function xr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function Bi(i,e,t){const r=Sr(e),s={},o=e.attributes.length;for(let n=0;n<o;n++){const l=e.attributes[n],a=l.name,u=l.value;!(typeof t=="string"?a===t:t.test(a))&&!xr(r,a)&&(s[a]=vr(i,r,le(a),u))}return s}function zi(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Oe(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Oe(R.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Oe(R.parentNode(i),e,t):!1}function Er(i,e,t,r){let s;if(Ie(i)){if(s=i,!R.childNodes(s).length)return!1}else{if(R.parentElement(i)===null)return!1;s=R.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Oe(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function Wi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){const l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function ji(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Vi(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:n,needsMask:l,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:f,dataURLOptions:h={},inlineImages:y,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:p=!1,cssCaptured:C=!1}=e,m=Gi(t,r),O=V(i);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:g.Document,childNodes:[],xPath:O,compatMode:i.compatMode}:{type:g.Document,childNodes:[],xPath:O};case i.DOCUMENT_TYPE_NODE:return{type:g.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:m,xPath:O};case i.ELEMENT_NODE:return qi(i,{doc:t,blockClass:s,blockSelector:o,ignoreAttribute:n,inlineStylesheet:a,maskInputOptions:u,maskInputFn:f,dataURLOptions:h,inlineImages:y,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:p,rootId:m,xPath:O});case i.TEXT_NODE:return Hi(i,{doc:t,needsMask:l,maskTextFn:c,rootId:m,cssCaptured:C,xPath:O});case i.CDATA_SECTION_NODE:return{type:g.CDATA,textContent:"",rootId:m,xPath:O};case i.COMMENT_NODE:return{type:g.Comment,textContent:R.textContent(i)||"",rootId:m,xPath:O};default:return!1}}function Gi(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Hi(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o,xPath:n}=e,l=R.parentNode(i),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;f?u="SCRIPT_PLACEHOLDER":o||(u=R.textContent(i),c&&u&&(u=re(u,wt(e.doc)))),!c&&!f&&u&&t&&(u=r?r(u,R.parentElement(i)):u.replace(/[\S]/g,"*"));const h=gr(i),y=yt(i);return{type:g.Text,textContent:u||"",rootId:s,isVisible:h,isInteractive:y,xPath:n}}function qi(i,e){const{doc:t,blockClass:r,blockSelector:s,ignoreAttribute:o,inlineStylesheet:n,maskInputOptions:l={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:y=!1,rootId:w,xPath:_}=e,p=zi(i,r,s),C=Sr(i);let m=Bi(t,i,o);if(C==="link"&&n){const d=Array.from(t.styleSheets).find(A=>A.href===i.href);let N=null;d&&(N=Ne(d)),N&&(delete m.rel,delete m.href,m._cssText=N)}if(C==="style"&&i.sheet){let d=Ne(i.sheet);d&&(i.childNodes.length>1&&(d=mr(d,i)),m._cssText=d)}if(C==="input"||C==="textarea"||C==="select"){const d=i.value,N=i.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&d?m.value=cr({element:i,type:pr(i),tagName:C,value:d,maskInputOptions:l,maskInputFn:a}):N&&(m.checked=N)}if(C==="option"&&(i.selected&&!l.select?m.selected=!0:delete m.selected),C==="dialog"&&i.open&&(m.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&f){if(i.__context==="2d")fr(i)||(m.rr_dataURL=i.toDataURL(u.type,u.quality));else if(!("__context"in i)){const d=i.toDataURL(u.type,u.quality),N=t.createElement("canvas");N.width=i.width,N.height=i.height;const A=N.toDataURL(u.type,u.quality);d!==A&&(m.rr_dataURL=d)}}if(C==="img"&&c){j||(j=t.createElement("canvas"),Dt=j.getContext("2d"));const d=i,N=d.currentSrc||d.getAttribute("src")||"<unknown-src>",A=d.crossOrigin,P=()=>{d.removeEventListener("load",P);try{j.width=d.naturalWidth,j.height=d.naturalHeight,Dt.drawImage(d,0,0),m.rr_dataURL=j.toDataURL(u.type,u.quality)}catch(I){if(d.crossOrigin!=="anonymous"){d.crossOrigin="anonymous",d.complete&&d.naturalWidth!==0?P():d.addEventListener("load",P);return}else console.warn(`Cannot inline img src=${N}! Error: ${I}`)}d.crossOrigin==="anonymous"&&(A?m.crossOrigin=A:d.removeAttribute("crossorigin"))};d.complete&&d.naturalWidth!==0?P():d.addEventListener("load",P)}if(C==="audio"||C==="video"){const d=m;d.rr_mediaState=i.paused?"paused":"played",d.rr_mediaCurrentTime=i.currentTime,d.rr_mediaPlaybackRate=i.playbackRate,d.rr_mediaMuted=i.muted,d.rr_mediaLoop=i.loop,d.rr_mediaVolume=i.volume}if(y||(i.scrollLeft&&(m.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(m.rr_scrollTop=i.scrollTop)),p){const{width:d,height:N}=i.getBoundingClientRect();m={class:m.class,rr_width:`${d}px`,rr_height:`${N}px`}}C==="iframe"&&!h(m.src)&&(i.contentDocument||(m.rr_src=m.src),delete m.src);let O;try{customElements.get(C)&&(O=!0)}catch(d){}const k=dt(i),T=yt(i);return{type:g.Element,tagName:C,attributes:m,childNodes:[],isSVG:Fi(i)||void 0,needBlock:p,rootId:w,isCustom:O,isVisible:k,isInteractive:T,xPath:_}}function v(i){return i==null?"":i.toLowerCase()}function Ji(i,e){if(e.comment&&i.type===g.Comment)return!0;if(i.type===g.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"||i.attributes.rel==="modulepreload")&&i.attributes.as==="script"||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&pt(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(v(i.attributes.name).match(/^msapplication-tile(image|color)$/)||v(i.attributes.name)==="application-name"||v(i.attributes.rel)==="icon"||v(i.attributes.rel)==="apple-touch-icon"||v(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&v(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(v(i.attributes.property).match(/^(og|twitter|fb):/)||v(i.attributes.name).match(/^(og|twitter):/)||v(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(v(i.attributes.name)==="robots"||v(i.attributes.name)==="googlebot"||v(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(v(i.attributes.name)==="author"||v(i.attributes.name)==="generator"||v(i.attributes.name)==="framework"||v(i.attributes.name)==="publisher"||v(i.attributes.name)==="progid"||v(i.attributes.property).match(/^article:/)||v(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(v(i.attributes.name)==="google-site-verification"||v(i.attributes.name)==="yandex-verification"||v(i.attributes.name)==="csrf-token"||v(i.attributes.name)==="p:domain_verify"||v(i.attributes.name)==="verify-v1"||v(i.attributes.name)==="verification"||v(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function H(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:y,slimDOMOptions:w,dataURLOptions:_={},inlineImages:p=!1,recordCanvas:C=!1,onSerialize:m,onIframeLoad:O,iframeLoadTimeout:k=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:d=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:A=!1,cssCaptured:P=!1}=e;let{needsMask:I}=e,{preserveWhiteSpace:K=!0}=e;I||(I=Er(i,n,l,I===void 0));const Q=Vi(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:a,needsMask:I,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,dataURLOptions:_,inlineImages:p,recordCanvas:C,keepIframeSrcFn:N,newlyAddedElement:A,cssCaptured:P});if(!Q)return console.warn(i,"not serialized"),null;let X;r.hasNode(i)?X=r.getId(i):Ji(Q,w)||!K&&Q.type===g.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?X=Ke:X=Cr();const S=Object.assign(Q,{id:X});if(r.add(i,S),X===Ke)return null;m&&m(i);let Fe=!u;if(S.type===g.Element){Fe=Fe&&!S.needBlock,delete S.needBlock;const M=R.shadowRoot(i);M&&Se(M)&&(S.isShadowHost=!0)}if((S.type===g.Document||S.type===g.Element)&&Fe){w.headWhitespace&&S.type===g.Element&&S.tagName==="head"&&(K=!1);const M={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:w,dataURLOptions:_,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:m,onIframeLoad:O,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:d,keepIframeSrcFn:N,cssCaptured:!1};if(!(S.type===g.Element&&S.tagName==="textarea"&&S.attributes.value!==void 0)){S.type===g.Element&&S.attributes._cssText!==void 0&&typeof S.attributes._cssText=="string"&&(M.cssCaptured=!0);for(const ze of Array.from(R.childNodes(i))){const W=H(ze,M);W&&S.childNodes.push(W)}}let z=null;if(Ie(i)&&(z=R.shadowRoot(i)))for(const ze of Array.from(R.childNodes(z))){const W=H(ze,M);W&&(Se(z)&&(W.isShadow=!0),S.childNodes.push(W))}}const Be=R.parentNode(i);return Be&&sr(Be)&&Se(Be)&&(S.isShadow=!0),S.type===g.Element&&S.tagName==="iframe"&&Wi(i,()=>{const M=i.contentDocument;if(M&&O){const z=H(M,{doc:M,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:w,dataURLOptions:_,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:m,onIframeLoad:O,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:d,keepIframeSrcFn:N});z&&O(i,z)}},k),S.type===g.Element&&S.tagName==="link"&&typeof S.attributes.rel=="string"&&(S.attributes.rel==="stylesheet"||S.attributes.rel==="preload"&&typeof S.attributes.href=="string"&&pt(S.attributes.href)==="css")&&ji(i,()=>{if(T){const M=H(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:w,dataURLOptions:_,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:m,onIframeLoad:O,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:d,keepIframeSrcFn:N});M&&T(i,M)}},d),S}function Yi(i,e){const{mirror:t=new ke,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,ignoreAttribute:l="rr-ignore-attr",inlineStylesheet:a=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:f=!1,maskTextFn:h,maskInputFn:y,slimDOM:w=!1,dataURLOptions:_,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:m,iframeLoadTimeout:O,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:d=()=>!1}=e||{};return wr(i),H(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,ignoreAttribute:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:f===!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}:f===!1?{password:!0}:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:_,inlineImages:u,recordCanvas:c,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:m,iframeLoadTimeout:O,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:d,newlyAddedElement:!1})}function Ki(i,e){function t(r){e(r),(r.type===g.Document||r.type===g.Element)&&r.childNodes.forEach(t)}t(i)}function Qi(){br=1}const Xi=/(max|min)-device-(width|height)/,Ft=new RegExp(Xi.source,"g"),Zi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Ft)&&(i.params=i.params.replace(Ft,"$1-$2"))}}}},es={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
15
- `+t.replace(/:hover/g,".\\:hover"))}))}}}};function ts(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function rs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var bt={exports:{}},x=String,Nr=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x}};bt.exports=Nr();bt.exports.createColors=Nr;var is=bt.exports;const ss={},ns=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),L=rs(ns);let Bt=is,zt=L,Qe=class Or extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Or)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Bt.isColorSupported),zt&&e&&(t=zt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:f}=Bt.createColors(!0);l=h=>u(f(h)),a=h=>c(h)}else l=a=u=>u;return r.slice(s,o).map((u,c)=>{let f=s+1+c,h=" "+(" "+f).slice(-n)+" | ";if(f===this.line){let y=a(h.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(h)+u+`
14
+ "use strict";var oi=Object.defineProperty,li=Object.defineProperties;var ai=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var At=(i,e,t)=>e in i?oi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,D=(i,e)=>{for(var t in e||(e={}))Mt.call(e,t)&&At(i,t,e[t]);if(fe)for(var t of fe(e))_t.call(e,t)&&At(i,t,e[t]);return i},Z=(i,e)=>li(i,ai(e));var We=(i,e)=>{var t={};for(var r in i)Mt.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&fe)for(var r of fe(i))e.indexOf(r)<0&&_t.call(i,r)&&(t[r]=i[r]);return t};var ui=Object.defineProperty,ci=(i,e,t)=>e in i?ui(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,kt=(i,e,t)=>ci(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var w=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(w||{});const It={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},he={},fi=()=>!!globalThis.Zone;function ht(i){if(he[i])return he[i];const e=globalThis[i],t=e.prototype,r=i in It?It[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=i in Pt?Pt[i]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n&&!fi())return he[i]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[i].prototype;return document.body.removeChild(l),u?he[i]=u:t}catch(l){return t}}const Ve={};function F(i,e,t){var r;const s=`${i}.${String(t)}`;if(Ve[s])return Ve[s].call(e);const o=ht(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Ve[s]=n,n.call(e)):e[t]}const Ge={};function rr(i,e,t){const r=`${i}.${String(t)}`;if(Ge[r])return Ge[r].bind(e);const o=ht(i)[t];return typeof o!="function"?e[t]:(Ge[r]=o,o.bind(e))}function hi(i){return F("Node",i,"childNodes")}function pi(i){return F("Node",i,"parentNode")}function di(i){return F("Node",i,"parentElement")}function mi(i){return F("Node",i,"textContent")}function gi(i,e){return rr("Node",i,"contains")(e)}function yi(i){return rr("Node",i,"getRootNode")()}function wi(i){return!i||!("host"in i)?null:F("ShadowRoot",i,"host")}function bi(i){return i.styleSheets}function Ci(i){return!i||!("shadowRoot"in i)?null:F("Element",i,"shadowRoot")}function Si(i,e){return F("Element",i,"querySelector")(e)}function vi(i,e){return F("Element",i,"querySelectorAll")(e)}function xi(){return ht("MutationObserver").constructor}function Ei(i,e,t){try{if(!(e in i))return()=>{};const r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch(r){return()=>{}}}const A={childNodes:hi,parentNode:pi,parentElement:di,textContent:mi,contains:gi,getRootNode:yi,host:wi,styleSheets:bi,shadowRoot:Ci,querySelector:Si,querySelectorAll:vi,mutationObserver:xi,patch:Ei};function ke(i){return i.nodeType===i.ELEMENT_NODE}function ir(i){const e=i&&"host"in i&&"mode"in i&&A.host(i)||null;return!!(e&&"shadowRoot"in e&&A.shadowRoot(e)===i)}function ve(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function Ni(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function sr(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Ne(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>nr(s,t)).join("");return Ni(r)}catch(e){return null}}function nr(i,e){if(lr(i)){let t;try{t=Ne(i.styleSheet)||sr(i)}catch(r){t=i.cssText}return i.styleSheet.href?ie(t,i.styleSheet.href):t}else{let t=i.cssText;return ar(i)&&i.selectorText.includes(":")&&(t=or(t)),e?ie(t,e):t}}function or(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function lr(i){return"styleSheet"in i}function ar(i){return"selectorText"in i}class Ie{constructor(){kt(this,"idNodeMap",new Map),kt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Oi(){return new Ie}function ur({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const l=r&&ae(r);return(e[t.toLowerCase()]||l&&e[l])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function ae(i){return i.toLowerCase()}const Tt="__rrweb_original__";function cr(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=Tt in o?o[Tt]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function fr(i,e){return!i||!e||i.type!==e.type?!1:i.type===w.Document?i.compatMode===e.compatMode:i.type===w.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===w.Comment||i.type===w.Text||i.type===w.CDATA?i.textContent===e.textContent:i.type===w.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function hr(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?ae(e):null}function Pe(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function Ri(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const Ai=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mi=/^(?:[a-z+]+:)?\/\//i,_i=/^www\..*/i,ki=/^(data:)([^,]*),(.*)/i;function ie(i,e){return(i||"").replace(Ai,(t,r,s,o,n,l)=>{const a=s||n||l,u=r||o||"";if(!a)return t;if(Mi.test(a)||_i.test(a))return`url(${u}${a}${u})`;if(ki.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Ri(e)+a}${u})`;const c=e.split("/"),f=a.split("/");c.pop();for(const h of f)h!=="."&&(h===".."?c.pop():c.push(h));return`url(${u}${c.join("/")}${u})`})}function re(i,e=!1){return e?i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pr(i,e,t=!1){const r=Array.from(e.childNodes),s=[];let o=0;if(r.length>1&&i&&typeof i=="string"){let n=re(i,t);const l=n.length/i.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const u=re(r[a].textContent,t),c=100;let f=3;for(;f<u.length&&(u[f].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,f),1)!==-1);f++);for(;f<u.length;f++){let h=u.substring(0,f),y=n.split(h),m=-1;if(y.length===2)m=y[0].length;else if(y.length>2&&y[0]===""&&r[a-1].textContent!=="")m=n.indexOf(h,1);else if(y.length===1){if(h=h.substring(0,h.length-1),y=n.split(h),y.length<=1)return s.push(i),s;f=c+1}else f===u.length-1&&(m=n.indexOf(h));if(y.length>=2&&f>c){const x=r[a-1].textContent;if(x&&typeof x=="string"){const p=re(x).length;m=n.indexOf(h,p)}m===-1&&(m=y[0].length)}if(m!==-1){let x=Math.floor(m/l);for(;x>0&&x<i.length;){if(o+=1,o>50*r.length)return s.push(i),s;const p=re(i.substring(0,x),t);if(p.length===m){s.push(i.substring(0,x)),i=i.substring(x),n=n.substring(m);break}else p.length<m?x+=Math.max(1,Math.floor((m-p.length)/l)):x-=Math.max(1,Math.floor((p.length-m)*l))}break}}}}return s.push(i),s}function dr(i,e){return pr(i,e).join("/* rr_split */")}function V(i){if(i.nodeType===Node.DOCUMENT_NODE)return"/";if(i.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(i.nodeType===Node.ELEMENT_NODE){const e=i;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t)return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),s=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${V(t)}/${e.tagName.toLowerCase()}${s}`}if(i.nodeType===Node.TEXT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.CDATA_SECTION_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.COMMENT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/comment()${r}`}return""}function mr(i){var e;const t=A.parentNode(i),r=t&&t;return!r||!pt(r)?!1:((e=i.textContent)==null?void 0:e.trim())!==""}function pt(i){var l;var e;const t=(l=(e=i.ownerDocument)==null?void 0:e.defaultView)!=null?l:null,r=t?t.getComputedStyle(i):null,s=r!=null&&r.display!=="none"&&r.visibility!=="hidden"&&parseFloat(r.opacity)!==0,o=i.getBoundingClientRect();return s&&Ii(o)}function Ii(i,e=window){var a,u,c,f;var t,r,s,o;const n=(u=(a=e==null?void 0:e.innerHeight)!=null?a:(r=(t=e==null?void 0:e.document)==null?void 0:t.documentElement)==null?void 0:r.clientHeight)!=null?u:0,l=(f=(c=e==null?void 0:e.innerWidth)!=null?c:(o=(s=e==null?void 0:e.document)==null?void 0:s.documentElement)==null?void 0:o.clientWidth)!=null?f:0;return i.width>0&&i.height>0&&i.top>=0&&i.left>=0&&i.bottom<=n&&i.right<=l}const gr=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],yr=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Pi=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],dt=new WeakSet,Ti=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ti.call(this,i,e,t),this instanceof Element){const r=i.toLowerCase();gr.includes(r)&&dt.add(this)}};const Li=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Li.call(this,i,e,t)};function $i(i){return i instanceof Element&&dt.has(i)}function mt(i){if(i.nodeType===Node.ELEMENT_NODE){const e=i,t=e.tagName.toLowerCase();if(yr.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",s=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return $i(e)||r||s||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Lt(){document.querySelectorAll("*").forEach(e=>{Pi.forEach(t=>{e.hasAttribute(t)&&dt.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Lt():document.addEventListener("DOMContentLoaded",Lt);let wr=1;const Di=new RegExp("[^a-z0-9-_:]"),Ke=-2;function br(){return wr++}function Cr(i){if(i instanceof HTMLFormElement)return"form";const e=ae(i.tagName);return Di.test(e)?"div":e}let W,$t;const Ui=/^[^ \t\n\r\u000c]+/,Fi=/^[, \t\n\r\u000c]+/;function Bi(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const l=o.exec(e.substring(t));return l?(n=l[0],t+=n.length,n):""}const s=[];for(;r(Fi),!(t>=e.length);){let o=r(Ui);if(o.slice(-1)===",")o=G(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=G(i,o);let l=!1;for(;;){const a=e.charAt(t);if(a===""){s.push((o+n).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((o+n).trim());break}else a==="("&&(l=!0);n+=a,t+=1}}}return s.join(", ")}const Dt=new WeakMap;function G(i,e){return!e||e.trim()===""?e:gt(i,e)}function zi(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function gt(i,e){let t=Dt.get(i);if(t||(t=i.createElement("a"),Dt.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Sr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?G(i,r):t==="srcset"?Bi(i,r):t==="style"?ie(r,gt(i)):e==="object"&&t==="data"?G(i,r):r)}function vr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function ji(i,e,t){const r=Cr(e),s={},o=e.attributes.length;for(let n=0;n<o;n++){const l=e.attributes[n],a=l.name,u=l.value;!(typeof t=="string"?a===t:t.test(a))&&!vr(r,a)&&(s[a]=Sr(i,r,ae(a),u))}return s}function Wi(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Oe(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Oe(A.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Oe(A.parentNode(i),e,t):!1}function xr(i,e,t,r){let s;if(ke(i)){if(s=i,!A.childNodes(s).length)return!1}else{if(A.parentElement(i)===null)return!1;s=A.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Oe(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function Vi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){const l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function Gi(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Hi(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:n,needsMask:l,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:f,dataURLOptions:h={},inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p=!1,cssCaptured:C=!1}=e,g=qi(t,r),R=V(i);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:w.Document,childNodes:[],xPath:R,compatMode:i.compatMode}:{type:w.Document,childNodes:[],xPath:R};case i.DOCUMENT_TYPE_NODE:return{type:w.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:g,xPath:R};case i.ELEMENT_NODE:return Yi(i,{doc:t,blockClass:s,blockSelector:o,ignoreAttribute:n,inlineStylesheet:a,maskInputOptions:u,maskInputFn:f,dataURLOptions:h,inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p,rootId:g,xPath:R});case i.TEXT_NODE:return Ji(i,{doc:t,needsMask:l,maskTextFn:c,rootId:g,cssCaptured:C,xPath:R});case i.CDATA_SECTION_NODE:return{type:w.CDATA,textContent:"",rootId:g,xPath:R};case i.COMMENT_NODE:return{type:w.Comment,textContent:A.textContent(i)||"",rootId:g,xPath:R};default:return!1}}function qi(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Ji(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o,xPath:n}=e,l=A.parentNode(i),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;f?u="SCRIPT_PLACEHOLDER":o||(u=A.textContent(i),c&&u&&(u=ie(u,gt(e.doc)))),!c&&!f&&u&&t&&(u=r?r(u,A.parentElement(i)):u.replace(/[\S]/g,"*"));const h=mr(i),y=mt(i);return{type:w.Text,textContent:u||"",rootId:s,isVisible:h,isInteractive:y,xPath:n}}function Yi(i,e){const{doc:t,blockClass:r,blockSelector:s,ignoreAttribute:o,inlineStylesheet:n,maskInputOptions:l={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:y=!1,rootId:m,xPath:x}=e,p=Wi(i,r,s),C=Cr(i);let g=ji(t,i,o);if(C==="link"&&n){const d=Array.from(t.styleSheets).find(M=>M.href===i.href);let O=null;d&&(O=Ne(d)),O&&(delete g.rel,delete g.href,g._cssText=O)}if(C==="style"&&i.sheet){let d=Ne(i.sheet);d&&(i.childNodes.length>1&&(d=dr(d,i)),g._cssText=d)}if(C==="input"||C==="textarea"||C==="select"){const d=i.value,O=i.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&d?g.value=ur({element:i,type:hr(i),tagName:C,value:d,maskInputOptions:l,maskInputFn:a}):O&&(g.checked=O)}if(C==="option"&&(i.selected&&!l.select?g.selected=!0:delete g.selected),C==="dialog"&&i.open&&(g.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&f){if(i.__context==="2d")cr(i)||(g.rr_dataURL=i.toDataURL(u.type,u.quality));else if(!("__context"in i)){const d=i.toDataURL(u.type,u.quality),O=t.createElement("canvas");O.width=i.width,O.height=i.height;const M=O.toDataURL(u.type,u.quality);d!==M&&(g.rr_dataURL=d)}}if(C==="img"&&c){W||(W=t.createElement("canvas"),$t=W.getContext("2d"));const d=i,O=d.currentSrc||d.getAttribute("src")||"<unknown-src>",M=d.crossOrigin,T=()=>{d.removeEventListener("load",T);try{W.width=d.naturalWidth,W.height=d.naturalHeight,$t.drawImage(d,0,0),g.rr_dataURL=W.toDataURL(u.type,u.quality)}catch(I){if(d.crossOrigin!=="anonymous"){d.crossOrigin="anonymous",d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T);return}else console.warn(`Cannot inline img src=${O}! Error: ${I}`)}d.crossOrigin==="anonymous"&&(M?g.crossOrigin=M:d.removeAttribute("crossorigin"))};d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T)}if(C==="audio"||C==="video"){const d=g;d.rr_mediaState=i.paused?"paused":"played",d.rr_mediaCurrentTime=i.currentTime,d.rr_mediaPlaybackRate=i.playbackRate,d.rr_mediaMuted=i.muted,d.rr_mediaLoop=i.loop,d.rr_mediaVolume=i.volume}if(y||(i.scrollLeft&&(g.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(g.rr_scrollTop=i.scrollTop)),p){const{width:d,height:O}=i.getBoundingClientRect();g={class:g.class,rr_width:`${d}px`,rr_height:`${O}px`}}C==="iframe"&&!h(g.src)&&(i.contentDocument||(g.rr_src=g.src),delete g.src);let R;try{customElements.get(C)&&(R=!0)}catch(d){}const k=pt(i),P=mt(i);return{type:w.Element,tagName:C,attributes:g,childNodes:[],isSVG:zi(i)||void 0,needBlock:p,rootId:m,isCustom:R,isVisible:k,isInteractive:P,xPath:x}}function v(i){return i==null?"":i.toLowerCase()}function Ki(i,e){if(e.comment&&i.type===w.Comment)return!0;if(i.type===w.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Pe(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(v(i.attributes.name).match(/^msapplication-tile(image|color)$/)||v(i.attributes.name)==="application-name"||v(i.attributes.rel)==="icon"||v(i.attributes.rel)==="apple-touch-icon"||v(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&v(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(v(i.attributes.property).match(/^(og|twitter|fb):/)||v(i.attributes.name).match(/^(og|twitter):/)||v(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(v(i.attributes.name)==="robots"||v(i.attributes.name)==="googlebot"||v(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(v(i.attributes.name)==="author"||v(i.attributes.name)==="generator"||v(i.attributes.name)==="framework"||v(i.attributes.name)==="publisher"||v(i.attributes.name)==="progid"||v(i.attributes.property).match(/^article:/)||v(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(v(i.attributes.name)==="google-site-verification"||v(i.attributes.name)==="yandex-verification"||v(i.attributes.name)==="csrf-token"||v(i.attributes.name)==="p:domain_verify"||v(i.attributes.name)==="verify-v1"||v(i.attributes.name)==="verification"||v(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function H(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x={},inlineImages:p=!1,recordCanvas:C=!1,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k=5e3,onStylesheetLoad:P,stylesheetLoadTimeout:d=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:M=!1,cssCaptured:T=!1}=e;let{needsMask:I}=e,{preserveWhiteSpace:K=!0}=e;I||(I=xr(i,n,l,I===void 0));const Q=Hi(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:a,needsMask:I,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,dataURLOptions:x,inlineImages:p,recordCanvas:C,keepIframeSrcFn:O,newlyAddedElement:M,cssCaptured:T});if(!Q)return console.warn(i,"not serialized"),null;let X;r.hasNode(i)?X=r.getId(i):Ki(Q,m)||!K&&Q.type===w.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?X=Ke:X=br();const S=Object.assign(Q,{id:X});if(r.add(i,S),X===Ke)return null;g&&g(i);let Be=!u;if(S.type===w.Element){Be=Be&&!S.needBlock,delete S.needBlock;const _=A.shadowRoot(i);_&&ve(_)&&(S.isShadowHost=!0)}if((S.type===w.Document||S.type===w.Element)&&Be){m.headWhitespace&&S.type===w.Element&&S.tagName==="head"&&(K=!1);const _={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O,cssCaptured:!1};if(!(S.type===w.Element&&S.tagName==="textarea"&&S.attributes.value!==void 0)){S.type===w.Element&&S.attributes._cssText!==void 0&&typeof S.attributes._cssText=="string"&&(_.cssCaptured=!0);for(const je of Array.from(A.childNodes(i))){const j=H(je,_);j&&S.childNodes.push(j)}}let z=null;if(ke(i)&&(z=A.shadowRoot(i)))for(const je of Array.from(A.childNodes(z))){const j=H(je,_);j&&(ve(z)&&(j.isShadow=!0),S.childNodes.push(j))}}const ze=A.parentNode(i);return ze&&ir(ze)&&ve(ze)&&(S.isShadow=!0),S.type===w.Element&&S.tagName==="iframe"&&Vi(i,()=>{const _=i.contentDocument;if(_&&R){const z=H(_,{doc:_,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});z&&R(i,z)}},k),S.type===w.Element&&S.tagName==="link"&&typeof S.attributes.rel=="string"&&(S.attributes.rel==="stylesheet"||S.attributes.rel==="preload"&&typeof S.attributes.href=="string"&&Pe(S.attributes.href)==="css")&&Gi(i,()=>{if(P){const _=H(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});_&&P(i,_)}},d),S}function Qi(i,e){const{mirror:t=new Ie,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,ignoreAttribute:l="rr-ignore",inlineStylesheet:a=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:f=!1,maskTextFn:h,maskInputFn:y,slimDOM:m=!1,dataURLOptions:x,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d=()=>!1}=e||{};return H(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,ignoreAttribute:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:f===!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}:f===!1?{password:!0}:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:x,inlineImages:u,recordCanvas:c,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d,newlyAddedElement:!1})}function Xi(i,e){function t(r){e(r),(r.type===w.Document||r.type===w.Element)&&r.childNodes.forEach(t)}t(i)}function Zi(){wr=1}const es=/(max|min)-device-(width|height)/,Ut=new RegExp(es.source,"g"),ts={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Ut)&&(i.params=i.params.replace(Ut,"$1-$2"))}}}},rs={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
15
+ `+t.replace(/:hover/g,".\\:hover"))}))}}}};function is(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ss(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var yt={exports:{}},E=String,Er=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};yt.exports=Er();yt.exports.createColors=Er;var ns=yt.exports;const os={},ls=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),L=ss(ls);let Ft=ns,Bt=L,Qe=class Nr extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Nr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ft.isColorSupported),Bt&&e&&(t=Bt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:f}=Ft.createColors(!0);l=h=>u(f(h)),a=h=>c(h)}else l=a=u=>u;return r.slice(s,o).map((u,c)=>{let f=s+1+c,h=" "+(" "+f).slice(-n)+" | ";if(f===this.line){let y=a(h.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(h)+u+`
16
16
  `+y+l("^")}return" "+a(h)+u}).join(`
17
17
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
18
18
 
19
19
  `+e+`
20
- `),this.name+": "+this.message+e}};var Ct=Qe;Qe.default=Qe;var ae={};ae.isClean=Symbol("isClean");ae.my=Symbol("my");const Wt={after:`
20
+ `),this.name+": "+this.message+e}};var wt=Qe;Qe.default=Qe;var ue={};ue.isClean=Symbol("isClean");ue.my=Symbol("my");const zt={after:`
21
21
  `,beforeClose:`
22
22
  `,beforeComment:`
23
23
  `,beforeDecl:`
24
24
  `,beforeOpen:" ",beforeRule:`
25
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function os(i){return i[0].toUpperCase()+i.slice(1)}let Xe=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+s+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(r.includes(`
26
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)r+=n}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Wt[r];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[r]!="undefined")return n.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+os(r);this[l]?s=this[l](n,e):n.walk(a=>{if(s=a.raws[t],typeof s!="undefined")return!1})}return typeof s=="undefined"&&(s=Wt[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
25
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function as(i){return i[0].toUpperCase()+i.slice(1)}let Xe=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+s+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(r.includes(`
26
+ `)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)r+=n}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return zt[r];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[r]!="undefined")return n.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+as(r);this[l]?s=this[l](n,e):n.walk(a=>{if(s=a.raws[t],typeof s!="undefined")return!1})}return typeof s=="undefined"&&(s=zt[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
27
27
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
28
28
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
29
29
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
30
30
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before!="undefined"){let o=r.raws.before.split(`
31
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Rr=Xe;Xe.default=Xe;let ls=Rr;function Ze(i,e){new ls(e).stringify(i)}var Te=Ze;Ze.default=Ze;let{isClean:he,my:as}=ae,us=Ct,cs=Rr,fs=Te;function et(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],o=typeof s;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(n=>et(n,t)):(o==="object"&&s!==null&&(s=et(s)),t[r]=s)}return t}let tt=class{constructor(e={}){this.raws={},this[he]=!1,this[as]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=et(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new us(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[he]){this[he]=!1;let e=this;for(;e=e.parent;)e[he]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
32
- `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),r=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new cs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))r[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),r[n]={end:l.end,inputId:a,start:l.start}}else r[n]=l}return s&&(r.inputs=[...t.keys()].map(n=>n.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=fs){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let o in r)s[o]=r[o];return e.warn(t,s)}get proxyOf(){return this}};var Pe=tt;tt.default=tt;let hs=Pe,rt=class extends hs{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=Z(D({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Le=rt;rt.default=rt;let ps="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ds=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},ms=(i=21)=>{let e="",t=i;for(;t--;)e+=ps[Math.random()*64|0];return e};var gs={nanoid:ms,customAlphabet:ds};let{SourceMapConsumer:jt,SourceMapGenerator:Vt}=L,{existsSync:ys,readFileSync:ws}=L,{dirname:Ge,join:bs}=L;function Cs(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let it=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ge(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new jt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Cs(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=Ge(e),ys(e))return this.mapFile=e,ws(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof jt)return Vt.fromSourceMap(t).toString();if(t instanceof Vt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=bs(Ge(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ar=it;it.default=it;let{SourceMapConsumer:Ss,SourceMapGenerator:vs}=L,{fileURLToPath:Gt,pathToFileURL:pe}=L,{isAbsolute:st,resolve:nt}=L,{nanoid:xs}=gs,He=L,Ht=Ct,Es=Ar,qe=Symbol("fromOffsetCache"),Ns=!!(Ss&&vs),qt=!!(nt&&st),Re=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!qt||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=nt(t.from)),qt&&Ns){let r=new Es(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+xs(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let o,n,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);t=f.line,r=f.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);n=f.line,l=f.col}else n=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,n,l);return a?o=new Ht(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new Ht(e,n===void 0?t:{column:r,line:t},n===void 0?r:{column:l,line:n},this.css,this.file,s.plugin),o.input={column:r,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(pe&&(o.input.url=pe(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[qe])r=this[qe];else{let o=this.css.split(`
33
- `);r=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)r[l]=n,n+=o[l].length+1;this[qe]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<r[n])o=n-1;else if(e>=r[n+1])s=n+1;else{s=n;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof r=="number"&&(l=o.originalPositionFor({column:s,line:r}));let a;st(n.source)?a=pe(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||pe(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(Gt)u.file=Gt(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=D({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var $e=Re;Re.default=Re;He&&He.registerInput&&He.registerInput(Re);let{SourceMapConsumer:Mr,SourceMapGenerator:xe}=L,{dirname:Ee,relative:_r,resolve:kr,sep:Ir}=L,{pathToFileURL:Jt}=L,Os=$e,Rs=!!(Mr&&xe),As=!!(Ee&&kr&&_r&&Ir),Ms=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
31
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Or=Xe;Xe.default=Xe;let us=Or;function Ze(i,e){new us(e).stringify(i)}var Te=Ze;Ze.default=Ze;let{isClean:pe,my:cs}=ue,fs=wt,hs=Or,ps=Te;function et(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],o=typeof s;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(n=>et(n,t)):(o==="object"&&s!==null&&(s=et(s)),t[r]=s)}return t}let tt=class{constructor(e={}){this.raws={},this[pe]=!1,this[cs]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=et(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new fs(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[pe]){this[pe]=!1;let e=this;for(;e=e.parent;)e[pe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
32
+ `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),r=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new hs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))r[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),r[n]={end:l.end,inputId:a,start:l.start}}else r[n]=l}return s&&(r.inputs=[...t.keys()].map(n=>n.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ps){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let o in r)s[o]=r[o];return e.warn(t,s)}get proxyOf(){return this}};var Le=tt;tt.default=tt;let ds=Le,rt=class extends ds{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=Z(D({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var $e=rt;rt.default=rt;let ms="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",gs=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},ys=(i=21)=>{let e="",t=i;for(;t--;)e+=ms[Math.random()*64|0];return e};var ws={nanoid:ys,customAlphabet:gs};let{SourceMapConsumer:jt,SourceMapGenerator:Wt}=L,{existsSync:bs,readFileSync:Cs}=L,{dirname:He,join:Ss}=L;function vs(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let it=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=He(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new jt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return vs(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=He(e),bs(e))return this.mapFile=e,Cs(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof jt)return Wt.fromSourceMap(t).toString();if(t instanceof Wt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Ss(He(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Rr=it;it.default=it;let{SourceMapConsumer:xs,SourceMapGenerator:Es}=L,{fileURLToPath:Vt,pathToFileURL:de}=L,{isAbsolute:st,resolve:nt}=L,{nanoid:Ns}=ws,qe=L,Gt=wt,Os=Rr,Je=Symbol("fromOffsetCache"),Rs=!!(xs&&Es),Ht=!!(nt&&st),Re=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ht||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=nt(t.from)),Ht&&Rs){let r=new Os(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Ns(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let o,n,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);t=f.line,r=f.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);n=f.line,l=f.col}else n=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,n,l);return a?o=new Gt(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new Gt(e,n===void 0?t:{column:r,line:t},n===void 0?r:{column:l,line:n},this.css,this.file,s.plugin),o.input={column:r,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(de&&(o.input.url=de(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[Je])r=this[Je];else{let o=this.css.split(`
33
+ `);r=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)r[l]=n,n+=o[l].length+1;this[Je]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<r[n])o=n-1;else if(e>=r[n+1])s=n+1;else{s=n;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof r=="number"&&(l=o.originalPositionFor({column:s,line:r}));let a;st(n.source)?a=de(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||de(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(Vt)u.file=Vt(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=D({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var De=Re;Re.default=Re;qe&&qe.registerInput&&qe.registerInput(Re);let{SourceMapConsumer:Ar,SourceMapGenerator:xe}=L,{dirname:Ee,relative:Mr,resolve:_r,sep:kr}=L,{pathToFileURL:qt}=L,As=De,Ms=!!(Ar&&xe),_s=!!(Ee&&_r&&Mr&&kr),ks=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
34
34
  `;this.css.includes(`\r
35
35
  `)&&(t=`\r
36
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Ee(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Mr(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),As&&Rs&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=xe.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new xe({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new xe({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
37
- `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ee(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Ee(kr(r,this.mapOpts.annotation)));let s=_r(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Os(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Jt){let r=Jt(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ir==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Tr=Ms;let _s=Pe,ot=class extends _s{constructor(e){super(e),this.type="comment"}};var De=ot;ot.default=ot;let{isClean:Pr,my:Lr}=ae,$r=Le,Dr=De,ks=Pe,Ur,St,vt,Fr;function Br(i){return i.map(e=>(e.nodes&&(e.nodes=Br(e.nodes)),delete e.source,e))}function zr(i){if(i[Pr]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)zr(e)}let U=class Wr extends ks{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of s)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of o)this.proxyOf.nodes.splice(r,0,l);let n;for(let l in this.indexes)n=this.indexes[l],r<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Br(Ur(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new $r(e)]}else if(e.selector)e=[new St(e)];else if(e.name)e=[new vt(e)];else if(e.text)e=[new Dr(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Lr]||Wr.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Pr]&&zr(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};U.registerParse=i=>{Ur=i};U.registerRule=i=>{St=i};U.registerAtRule=i=>{vt=i};U.registerRoot=i=>{Fr=i};var B=U;U.default=U;U.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,vt.prototype):i.type==="rule"?Object.setPrototypeOf(i,St.prototype):i.type==="decl"?Object.setPrototypeOf(i,$r.prototype):i.type==="comment"?Object.setPrototypeOf(i,Dr.prototype):i.type==="root"&&Object.setPrototypeOf(i,Fr.prototype),i[Lr]=!0,i.nodes&&i.nodes.forEach(e=>{U.rebuild(e)})};let Is=B,jr,Vr,ie=class extends Is{constructor(e){super(D({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new jr(new Vr,this,e).stringify()}};ie.registerLazyResult=i=>{jr=i};ie.registerProcessor=i=>{Vr=i};var xt=ie;ie.default=ie;let lt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Gr=lt;lt.default=lt;let Ts=Gr,at=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Ts(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Et=at;at.default=at;const Je=39,Yt=34,de=92,Kt=47,me=10,ee=32,ge=12,ye=9,we=13,Ps=91,Ls=93,$s=40,Ds=41,Us=123,Fs=125,Bs=59,zs=42,Ws=58,js=64,be=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ce=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vs=/.[\r\n"'(/\\]/,Qt=/[\da-f]/i;var Gs=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,f,h,y,w,_=r.length,p=0,C=[],m=[];function O(){return p}function k(A){throw e.error("Unclosed "+A,p)}function T(){return m.length===0&&p>=_}function d(A){if(m.length)return m.pop();if(p>=_)return;let P=A?A.ignoreUnclosed:!1;switch(o=r.charCodeAt(p),o){case me:case ee:case ye:case we:case ge:{n=p;do n+=1,o=r.charCodeAt(n);while(o===ee||o===me||o===ye||o===we||o===ge);w=["space",r.slice(p,n)],p=n-1;break}case Ps:case Ls:case Us:case Fs:case Ws:case Bs:case Ds:{let I=String.fromCharCode(o);w=[I,I,p];break}case $s:{if(h=C.length?C.pop()[1]:"",y=r.charCodeAt(p+1),h==="url"&&y!==Je&&y!==Yt&&y!==ee&&y!==me&&y!==ye&&y!==ge&&y!==we){n=p;do{if(c=!1,n=r.indexOf(")",n+1),n===-1)if(s||P){n=p;break}else k("bracket");for(f=n;r.charCodeAt(f-1)===de;)f-=1,c=!c}while(c);w=["brackets",r.slice(p,n+1),p,n],p=n}else n=r.indexOf(")",p+1),a=r.slice(p,n+1),n===-1||Vs.test(a)?w=["(","(",p]:(w=["brackets",a,p,n],p=n);break}case Je:case Yt:{l=o===Je?"'":'"',n=p;do{if(c=!1,n=r.indexOf(l,n+1),n===-1)if(s||P){n=p+1;break}else k("string");for(f=n;r.charCodeAt(f-1)===de;)f-=1,c=!c}while(c);w=["string",r.slice(p,n+1),p,n],p=n;break}case js:{be.lastIndex=p+1,be.test(r),be.lastIndex===0?n=r.length-1:n=be.lastIndex-2,w=["at-word",r.slice(p,n+1),p,n],p=n;break}case de:{for(n=p,u=!0;r.charCodeAt(n+1)===de;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==Kt&&o!==ee&&o!==me&&o!==ye&&o!==we&&o!==ge&&(n+=1,Qt.test(r.charAt(n)))){for(;Qt.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===ee&&(n+=1)}w=["word",r.slice(p,n+1),p,n],p=n;break}default:{o===Kt&&r.charCodeAt(p+1)===zs?(n=r.indexOf("*/",p+2)+1,n===0&&(s||P?n=r.length:k("comment")),w=["comment",r.slice(p,n+1),p,n],p=n):(Ce.lastIndex=p+1,Ce.test(r),Ce.lastIndex===0?n=r.length-1:n=Ce.lastIndex-2,w=["word",r.slice(p,n+1),p,n],C.push(w),p=n);break}}return p++,w}function N(A){m.push(A)}return{back:N,endOfFile:T,nextToken:d,position:O}};let Hr=B,Ae=class extends Hr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Nt=Ae;Ae.default=Ae;Hr.registerAtRule(Ae);let qr=B,Jr,Yr,q=class extends qr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Jr(new Yr,this,e).stringify()}};q.registerLazyResult=i=>{Jr=i};q.registerProcessor=i=>{Yr=i};var ue=q;q.default=q;qr.registerRoot(q);let se={comma(i){return se.split(i,[","],!0)},space(i){let e=[" ",`
38
- `," "];return se.split(i,e)},split(i,e,t){let r=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}};var Kr=se;se.default=se;let Qr=B,Hs=Kr,Me=class extends Qr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Hs.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Ot=Me;Me.default=Me;Qr.registerRule(Me);let qs=Le,Js=Gs,Ys=De,Ks=Nt,Qs=ue,Xt=Ot;const Zt={empty:!0,space:!0};function Xs(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let Zs=class{constructor(e){this.input=e,this.root=new Qs,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Ks;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[n,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new Ys;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Js(this.input)}decl(e,t){let r=new qs;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Xs(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),f="";for(let h=u;h>0;h--){let y=c[h][0];if(f.trim().indexOf("!")===0&&y!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Xt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(l&&s&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,n,l=r.length,a="",u=!0,c,f;for(let h=0;h<l;h+=1)o=r[h],n=o[0],n==="space"&&h===l-1&&!s?u=!1:n==="comment"?(f=r[h-1]?r[h-1][0]:"empty",c=r[h+1]?r[h+1][0]:"empty",!Zt[f]&&!Zt[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let h=r.reduce((y,w)=>y+w[1],"");e.raws[t]={raw:h,value:a}}e[t]=a}rule(e){e.pop();let t=new Xt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var en=Zs;let tn=B,rn=en,sn=$e;function _e(i,e){let t=new sn(i,e),r=new rn(t);try{r.parse()}catch(s){throw s}return r.root}var Rt=_e;_e.default=_e;tn.registerParse(_e);let{isClean:$,my:nn}=ae,on=Tr,ln=Te,an=B,un=xt;let er=Et,cn=Rt,fn=ue;const hn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pn={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},dn={Once:!0,postcssPlugin:!0,prepare:!0},J=0;function te(i){return typeof i=="object"&&typeof i.then=="function"}function Xr(i){let e=!1,t=hn[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,J,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,J,t+"Exit"]:[t,t+"Exit"]}function tr(i){let e;return i.type==="document"?e=["Document",J,"DocumentExit"]:i.type==="root"?e=["Root",J,"RootExit"]:e=Xr(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function ut(i){return i[$]=!1,i.nodes&&i.nodes.forEach(e=>ut(e)),i}let ct={},Y=class Zr{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=ut(t);else if(t instanceof Zr||t instanceof er)s=ut(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=cn;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[nn]&&an.rebuild(s)}this.result=new er(e,s,r),this.helpers=Z(D({},ct),{postcss:ct,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?D(D({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!pn[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!dn[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(te(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];){e[$]=!0;let t=[tr(e)];for(;t.length>0;){let r=this.visitTick(t);if(te(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return te(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ln;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new on(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(te(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];)e[$]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(te(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!l[$]){l[$]=!0,e.push(tr(l));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===J){r.nodes&&r.nodes.length&&(r[$]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[$]=!0;let t=Xr(e);for(let r of t)if(r===J)e.nodes&&e.each(s=>{s[$]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Y.registerPostcss=i=>{ct=i};var ei=Y;Y.default=Y;fn.registerLazyResult(Y);un.registerLazyResult(Y);let mn=Tr,gn=Te;let yn=Rt;const wn=Et;let ft=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=gn;this.result=new wn(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new mn(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=yn;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var bn=ft;ft.default=ft;let Cn=bn,Sn=ei,vn=xt,xn=ue,ne=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Cn(this,e,t):new Sn(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var En=ne;ne.default=ne;xn.registerProcessor(ne);vn.registerProcessor(ne);let Nn=Le,On=Ar,Rn=De,An=Nt,Mn=$e,_n=ue,kn=Ot;function oe(i,e){if(Array.isArray(i))return i.map(n=>oe(n));let s=i,{inputs:t}=s,r=We(s,["inputs"]);if(t){e=[];for(let n of t){let l=Z(D({},n),{__proto__:Mn.prototype});l.map&&(l.map=Z(D({},l.map),{__proto__:On.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>oe(n,e))),r.source){let o=r.source,{inputId:n}=o,l=We(o,["inputId"]);r.source=l,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new _n(r);if(r.type==="decl")return new Nn(r);if(r.type==="rule")return new kn(r);if(r.type==="comment")return new Rn(r);if(r.type==="atrule")return new An(r);throw new Error("Unknown node type: "+i.type)}var In=oe;oe.default=oe;let Tn=Ct,ti=Le,Pn=ei,Ln=B,At=En,$n=Te,Dn=In,ri=xt,Un=Gr,ii=De,si=Nt,Fn=Et,Bn=$e,zn=Rt,Wn=Kr,ni=Ot,oi=ue,jn=Pe;function b(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new At(i)}b.plugin=function(e,t){let r=!1;function s(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
36
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Ee(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Ar(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),_s&&Ms&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=xe.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new xe({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new xe({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
37
+ `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ee(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Ee(_r(r,this.mapOpts.annotation)));let s=Mr(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new As(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(qt){let r=qt(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;kr==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Ir=ks;let Is=Le,ot=class extends Is{constructor(e){super(e),this.type="comment"}};var Ue=ot;ot.default=ot;let{isClean:Pr,my:Tr}=ue,Lr=$e,$r=Ue,Ps=Le,Dr,bt,Ct,Ur;function Fr(i){return i.map(e=>(e.nodes&&(e.nodes=Fr(e.nodes)),delete e.source,e))}function Br(i){if(i[Pr]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Br(e)}let U=class zr extends Ps{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of s)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of o)this.proxyOf.nodes.splice(r,0,l);let n;for(let l in this.indexes)n=this.indexes[l],r<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Fr(Dr(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Lr(e)]}else if(e.selector)e=[new bt(e)];else if(e.name)e=[new Ct(e)];else if(e.text)e=[new $r(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Tr]||zr.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Pr]&&Br(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};U.registerParse=i=>{Dr=i};U.registerRule=i=>{bt=i};U.registerAtRule=i=>{Ct=i};U.registerRoot=i=>{Ur=i};var B=U;U.default=U;U.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ct.prototype):i.type==="rule"?Object.setPrototypeOf(i,bt.prototype):i.type==="decl"?Object.setPrototypeOf(i,Lr.prototype):i.type==="comment"?Object.setPrototypeOf(i,$r.prototype):i.type==="root"&&Object.setPrototypeOf(i,Ur.prototype),i[Tr]=!0,i.nodes&&i.nodes.forEach(e=>{U.rebuild(e)})};let Ts=B,jr,Wr,se=class extends Ts{constructor(e){super(D({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new jr(new Wr,this,e).stringify()}};se.registerLazyResult=i=>{jr=i};se.registerProcessor=i=>{Wr=i};var St=se;se.default=se;let lt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Vr=lt;lt.default=lt;let Ls=Vr,at=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Ls(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var vt=at;at.default=at;const Ye=39,Jt=34,me=92,Yt=47,ge=10,ee=32,ye=12,we=9,be=13,$s=91,Ds=93,Us=40,Fs=41,Bs=123,zs=125,js=59,Ws=42,Vs=58,Gs=64,Ce=/[\t\n\f\r "#'()/;[\\\]{}]/g,Se=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Hs=/.[\r\n"'(/\\]/,Kt=/[\da-f]/i;var qs=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,f,h,y,m,x=r.length,p=0,C=[],g=[];function R(){return p}function k(M){throw e.error("Unclosed "+M,p)}function P(){return g.length===0&&p>=x}function d(M){if(g.length)return g.pop();if(p>=x)return;let T=M?M.ignoreUnclosed:!1;switch(o=r.charCodeAt(p),o){case ge:case ee:case we:case be:case ye:{n=p;do n+=1,o=r.charCodeAt(n);while(o===ee||o===ge||o===we||o===be||o===ye);m=["space",r.slice(p,n)],p=n-1;break}case $s:case Ds:case Bs:case zs:case Vs:case js:case Fs:{let I=String.fromCharCode(o);m=[I,I,p];break}case Us:{if(h=C.length?C.pop()[1]:"",y=r.charCodeAt(p+1),h==="url"&&y!==Ye&&y!==Jt&&y!==ee&&y!==ge&&y!==we&&y!==ye&&y!==be){n=p;do{if(c=!1,n=r.indexOf(")",n+1),n===-1)if(s||T){n=p;break}else k("bracket");for(f=n;r.charCodeAt(f-1)===me;)f-=1,c=!c}while(c);m=["brackets",r.slice(p,n+1),p,n],p=n}else n=r.indexOf(")",p+1),a=r.slice(p,n+1),n===-1||Hs.test(a)?m=["(","(",p]:(m=["brackets",a,p,n],p=n);break}case Ye:case Jt:{l=o===Ye?"'":'"',n=p;do{if(c=!1,n=r.indexOf(l,n+1),n===-1)if(s||T){n=p+1;break}else k("string");for(f=n;r.charCodeAt(f-1)===me;)f-=1,c=!c}while(c);m=["string",r.slice(p,n+1),p,n],p=n;break}case Gs:{Ce.lastIndex=p+1,Ce.test(r),Ce.lastIndex===0?n=r.length-1:n=Ce.lastIndex-2,m=["at-word",r.slice(p,n+1),p,n],p=n;break}case me:{for(n=p,u=!0;r.charCodeAt(n+1)===me;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==Yt&&o!==ee&&o!==ge&&o!==we&&o!==be&&o!==ye&&(n+=1,Kt.test(r.charAt(n)))){for(;Kt.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===ee&&(n+=1)}m=["word",r.slice(p,n+1),p,n],p=n;break}default:{o===Yt&&r.charCodeAt(p+1)===Ws?(n=r.indexOf("*/",p+2)+1,n===0&&(s||T?n=r.length:k("comment")),m=["comment",r.slice(p,n+1),p,n],p=n):(Se.lastIndex=p+1,Se.test(r),Se.lastIndex===0?n=r.length-1:n=Se.lastIndex-2,m=["word",r.slice(p,n+1),p,n],C.push(m),p=n);break}}return p++,m}function O(M){g.push(M)}return{back:O,endOfFile:P,nextToken:d,position:R}};let Gr=B,Ae=class extends Gr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var xt=Ae;Ae.default=Ae;Gr.registerAtRule(Ae);let Hr=B,qr,Jr,q=class extends Hr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new qr(new Jr,this,e).stringify()}};q.registerLazyResult=i=>{qr=i};q.registerProcessor=i=>{Jr=i};var ce=q;q.default=q;Hr.registerRoot(q);let ne={comma(i){return ne.split(i,[","],!0)},space(i){let e=[" ",`
38
+ `," "];return ne.split(i,e)},split(i,e,t){let r=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}};var Yr=ne;ne.default=ne;let Kr=B,Js=Yr,Me=class extends Kr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Js.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Et=Me;Me.default=Me;Kr.registerRule(Me);let Ys=$e,Ks=qs,Qs=Ue,Xs=xt,Zs=ce,Qt=Et;const Xt={empty:!0,space:!0};function en(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let tn=class{constructor(e){this.input=e,this.root=new Zs,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Xs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[n,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new Qs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Ks(this.input)}decl(e,t){let r=new Ys;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||en(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),f="";for(let h=u;h>0;h--){let y=c[h][0];if(f.trim().indexOf("!")===0&&y!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Qt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(l&&s&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,n,l=r.length,a="",u=!0,c,f;for(let h=0;h<l;h+=1)o=r[h],n=o[0],n==="space"&&h===l-1&&!s?u=!1:n==="comment"?(f=r[h-1]?r[h-1][0]:"empty",c=r[h+1]?r[h+1][0]:"empty",!Xt[f]&&!Xt[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let h=r.reduce((y,m)=>y+m[1],"");e.raws[t]={raw:h,value:a}}e[t]=a}rule(e){e.pop();let t=new Qt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var rn=tn;let sn=B,nn=rn,on=De;function _e(i,e){let t=new on(i,e),r=new nn(t);try{r.parse()}catch(s){throw s}return r.root}var Nt=_e;_e.default=_e;sn.registerParse(_e);let{isClean:$,my:ln}=ue,an=Ir,un=Te,cn=B,fn=St;let Zt=vt,hn=Nt,pn=ce;const dn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mn={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},gn={Once:!0,postcssPlugin:!0,prepare:!0},J=0;function te(i){return typeof i=="object"&&typeof i.then=="function"}function Qr(i){let e=!1,t=dn[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,J,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,J,t+"Exit"]:[t,t+"Exit"]}function er(i){let e;return i.type==="document"?e=["Document",J,"DocumentExit"]:i.type==="root"?e=["Root",J,"RootExit"]:e=Qr(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function ut(i){return i[$]=!1,i.nodes&&i.nodes.forEach(e=>ut(e)),i}let ct={},Y=class Xr{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=ut(t);else if(t instanceof Xr||t instanceof Zt)s=ut(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=hn;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[ln]&&cn.rebuild(s)}this.result=new Zt(e,s,r),this.helpers=Z(D({},ct),{postcss:ct,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?D(D({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!mn[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!gn[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(te(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];){e[$]=!0;let t=[er(e)];for(;t.length>0;){let r=this.visitTick(t);if(te(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return te(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=un;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new an(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(te(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$];)e[$]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(te(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!l[$]){l[$]=!0,e.push(er(l));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===J){r.nodes&&r.nodes.length&&(r[$]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[$]=!0;let t=Qr(e);for(let r of t)if(r===J)e.nodes&&e.each(s=>{s[$]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Y.registerPostcss=i=>{ct=i};var Zr=Y;Y.default=Y;pn.registerLazyResult(Y);fn.registerLazyResult(Y);let yn=Ir,wn=Te;let bn=Nt;const Cn=vt;let ft=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=wn;this.result=new Cn(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new yn(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=bn;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Sn=ft;ft.default=ft;let vn=Sn,xn=Zr,En=St,Nn=ce,oe=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new vn(this,e,t):new xn(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var On=oe;oe.default=oe;Nn.registerProcessor(oe);En.registerProcessor(oe);let Rn=$e,An=Rr,Mn=Ue,_n=xt,kn=De,In=ce,Pn=Et;function le(i,e){if(Array.isArray(i))return i.map(n=>le(n));let s=i,{inputs:t}=s,r=We(s,["inputs"]);if(t){e=[];for(let n of t){let l=Z(D({},n),{__proto__:kn.prototype});l.map&&(l.map=Z(D({},l.map),{__proto__:An.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>le(n,e))),r.source){let o=r.source,{inputId:n}=o,l=We(o,["inputId"]);r.source=l,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new In(r);if(r.type==="decl")return new Rn(r);if(r.type==="rule")return new Pn(r);if(r.type==="comment")return new Mn(r);if(r.type==="atrule")return new _n(r);throw new Error("Unknown node type: "+i.type)}var Tn=le;le.default=le;let Ln=wt,ei=$e,$n=Zr,Dn=B,Ot=On,Un=Te,Fn=Tn,ti=St,Bn=Vr,ri=Ue,ii=xt,zn=vt,jn=De,Wn=Nt,Vn=Yr,si=Et,ni=ce,Gn=Le;function b(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ot(i)}b.plugin=function(e,t){let r=!1;function s(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
39
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
40
- https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new At().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return b([s(a)]).process(n,l)},s};b.stringify=$n;b.parse=zn;b.fromJSON=Dn;b.list=Wn;b.comment=i=>new ii(i);b.atRule=i=>new si(i);b.decl=i=>new ti(i);b.rule=i=>new ni(i);b.root=i=>new oi(i);b.document=i=>new ri(i);b.CssSyntaxError=Tn;b.Declaration=ti;b.Container=Ln;b.Processor=At;b.Document=ri;b.Comment=ii;b.Warning=Un;b.AtRule=si;b.Result=Fn;b.Input=Bn;b.Rule=ni;b.Root=oi;b.Node=jn;Pn.registerPostcss(b);var Vn=b;b.default=b;const E=ts(Vn);E.stringify;E.fromJSON;E.plugin;E.parse;E.list;E.document;E.comment;E.atRule;E.rule;E.decl;E.root;E.CssSyntaxError;E.Declaration;E.Container;E.Processor;E.Document;E.Comment;E.Warning;E.AtRule;E.Result;E.Input;E.Rule;E.Root;E.Node;const rr={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Gn(i){let e=rr[i.tagName]?rr[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function Ue(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;const s=E([Zi,es]).process(i).css;return e==null||e.stylesWithHoverClass.set(i,s),s}function Hn(){return{stylesWithHoverClass:new Map}}function qn(i,e,t,r){const s=[];for(const n of i.childNodes)n.type===g.Text&&s.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const l=s[n],a=o[n];l&&a&&(l.textContent=t?Ue(a,r):a)}}function Jn(i,e,t,r){const{doc:s,hackCss:o,cache:n}=r;i.childNodes.length?qn(i,t,o,n):(o&&(t=Ue(t,n)),e.appendChild(s.createTextNode(t)))}function Yn(i,e){var t;const{doc:r,hackCss:s,cache:o}=e;switch(i.type){case g.Document:return r.implementation.createDocument(null,"",null);case g.DocumentType:return r.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case g.Element:{const n=Gn(i);let l;i.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(i.tagName)&&r.defaultView.customElements.define(i.tagName,class extends r.defaultView.HTMLElement{}),l=r.createElement(n));const a={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let c=i.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){Jn(i,l,c,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(r.createTextNode(c)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,c.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else n==="link"&&(i.attributes.rel==="preload"||i.attributes.rel==="modulepreload")&&i.attributes.as==="script"||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&i.attributes.href.endsWith(".js")||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",i.attributes.srcset):l.setAttribute(u,c.toString()))}catch(f){}}}for(const u in a){const c=a[u];if(n==="canvas"&&u==="rr_dataURL"){const f=r.createElement("img");f.onload=()=>{const h=l.getContext("2d");h&&h.drawImage(f,0,0,f.width,f.height)},f.src=c.toString(),l.RRNodeType&&(l.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const f=l;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",i.attributes.src),f.src=c.toString())}if(u==="rr_width")l.style.setProperty("width",c.toString());else if(u==="rr_height")l.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")l.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":l.play().catch(f=>console.warn("media playback error",f));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?l.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?l.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?l.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?l.volume=c:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",c)}if(i.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case g.Text:return i.isStyle&&s?r.createTextNode(Ue(i.textContent,o)):r.createTextNode(i.textContent);case g.CDATA:return r.createCDATASection(i.textContent);case g.Comment:return r.createComment(i.textContent);default:return null}}function Mt(i,e){const{doc:t,mirror:r,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(r.has(i.id)){const u=r.getNode(i.id),c=r.getMeta(u);if(hr(c,i))return r.getNode(i.id)}let a=Yn(i,{doc:t,hackCss:o,cache:l});if(!a)return null;if(i.rootId&&r.getNode(i.rootId)!==t&&r.replace(i.rootId,t),i.type===g.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==g.DocumentType&&(i.childNodes[0].type===g.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),r.add(a,i),(i.type===g.Document||i.type===g.Element)&&!s)for(const u of i.childNodes){const c=Mt(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&Ie(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(i.type===g.Document&&u.type==g.Element){const f=c;let h=null;f.childNodes.forEach(y=>{y.nodeName==="BODY"&&(h=y)}),h?(f.removeChild(h),a.appendChild(c),f.appendChild(h)):a.appendChild(c)}else a.appendChild(c);n&&n(c,u.id)}return a}function Kn(i,e){function t(r){e(r)}for(const r of i.getIds())i.has(r)&&t(i.getNode(r))}function Qn(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==g.Element)return;const r=i;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(r.scrollLeft=o),s==="rr_scrollTop"&&(r.scrollTop=o)}}function Xn(i,e){const{doc:t,onVisit:r,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new ke}=e,a=Mt(i,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return Kn(l,u=>{r&&r(u),Qn(u,l)}),a}exports.IGNORED_NODE=Ke;exports.Mirror=ke;exports.absolutifyURLs=re;exports.adaptCssForReplay=Ue;exports.buildNodeWithSN=Mt;exports.classMatchesRegex=Oe;exports.cleanupSnapshot=Qi;exports.createCache=Hn;exports.createMirror=Oi;exports.escapeImportStatement=nr;exports.extractFileExtension=pt;exports.fixSafariColons=lr;exports.genId=Cr;exports.getInputType=pr;exports.getXPath=V;exports.inspectInlineEventHandlers=Ye;exports.interactiveEvents=mt;exports.interactiveTags=yr;exports.is2DCanvasBlank=fr;exports.isCSSImportRule=ar;exports.isCSSStyleRule=ur;exports.isElement=Ie;exports.isElementInteractive=yt;exports.isElementVisible=dt;exports.isIgnoreAttribute=xr;exports.isNativeShadowDom=Se;exports.isNodeMetaEqual=hr;exports.isShadowRoot=sr;exports.isTextVisible=gr;exports.markCssSplits=mr;exports.maskInputValue=cr;exports.needMaskingText=Er;exports.normalizeCssString=ve;exports.rebuild=Xn;exports.scheduleInlineEventInspection=wr;exports.serializeNodeWithId=H;exports.snapshot=Yi;exports.splitCssText=dr;exports.stringifyRule=or;exports.stringifyStylesheet=Ne;exports.toLowerCase=le;exports.transformAttribute=vr;exports.visitSnapshot=Ki;
40
+ https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new Ot().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return b([s(a)]).process(n,l)},s};b.stringify=Un;b.parse=Wn;b.fromJSON=Fn;b.list=Vn;b.comment=i=>new ri(i);b.atRule=i=>new ii(i);b.decl=i=>new ei(i);b.rule=i=>new si(i);b.root=i=>new ni(i);b.document=i=>new ti(i);b.CssSyntaxError=Ln;b.Declaration=ei;b.Container=Dn;b.Processor=Ot;b.Document=ti;b.Comment=ri;b.Warning=Bn;b.AtRule=ii;b.Result=zn;b.Input=jn;b.Rule=si;b.Root=ni;b.Node=Gn;$n.registerPostcss(b);var Hn=b;b.default=b;const N=is(Hn);N.stringify;N.fromJSON;N.plugin;N.parse;N.list;N.document;N.comment;N.atRule;N.rule;N.decl;N.root;N.CssSyntaxError;N.Declaration;N.Container;N.Processor;N.Document;N.Comment;N.Warning;N.AtRule;N.Result;N.Input;N.Rule;N.Root;N.Node;const tr={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function qn(i){let e=tr[i.tagName]?tr[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function Fe(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;let r=i;try{r=N([ts,rs]).process(i).css}catch(s){console.warn("Failed to adapt css for replay",s)}return e==null||e.stylesWithHoverClass.set(i,r),r}function Jn(){return{stylesWithHoverClass:new Map}}function Yn(i,e,t,r){const s=[];for(const a of i.childNodes)a.type===w.Text&&s.push(a);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=Fe(o.join(""),r));let l=0;for(let a=0;a<s.length&&a!==o.length;a++){const u=s[a];if(!t)u.textContent=o[a];else if(a<o.length-1){let c=l,f=o[a+1].length;f=Math.min(f,30);let h=!1;for(;f>2;f--){const y=o[a+1].substring(0,f),m=n.substring(l).indexOf(y);if(h=m!==-1,h){c+=m;break}}h||(c+=o[a].length),u.textContent=n.substring(l,c),l=c}else u.textContent=n.substring(l)}}function Kn(i,e,t,r){const{doc:s,hackCss:o,cache:n}=r;i.childNodes.length?Yn(i,t,o,n):(o&&(t=Fe(t,n)),e.appendChild(s.createTextNode(t)))}function Qn(i,e){var t;const{doc:r,hackCss:s,cache:o}=e;switch(i.type){case w.Document:return r.implementation.createDocument(null,"",null);case w.DocumentType:return r.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case w.Element:{const n=qn(i);let l;i.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(i.tagName)&&r.defaultView.customElements.define(i.tagName,class extends r.defaultView.HTMLElement{}),l=r.createElement(n));const a={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let c=i.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){Kn(i,l,c,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(r.createTextNode(c)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,c.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else n==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Pe(i.attributes.href)==="js"||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",i.attributes.srcset):l.setAttribute(u,c.toString()))}catch(f){}}}for(const u in a){const c=a[u];if(n==="canvas"&&u==="rr_dataURL"){const f=r.createElement("img");f.onload=()=>{const h=l.getContext("2d");h&&h.drawImage(f,0,0,f.width,f.height)},f.src=c.toString(),l.RRNodeType&&(l.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const f=l;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",i.attributes.src),f.src=c.toString())}if(u==="rr_width")l.style.setProperty("width",c.toString());else if(u==="rr_height")l.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")l.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":l.play().catch(f=>console.warn("media playback error",f));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?l.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?l.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?l.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?l.volume=c:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",c)}if(i.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case w.Text:return i.isStyle&&s?r.createTextNode(Fe(i.textContent,o)):r.createTextNode(i.textContent);case w.CDATA:return r.createCDATASection(i.textContent);case w.Comment:return r.createComment(i.textContent);default:return null}}function Rt(i,e){const{doc:t,mirror:r,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(r.has(i.id)){const u=r.getNode(i.id),c=r.getMeta(u);if(fr(c,i))return r.getNode(i.id)}let a=Qn(i,{doc:t,hackCss:o,cache:l});if(!a)return null;if(i.rootId&&r.getNode(i.rootId)!==t&&r.replace(i.rootId,t),i.type===w.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==w.DocumentType&&(i.childNodes[0].type===w.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),r.add(a,i),(i.type===w.Document||i.type===w.Element)&&!s)for(const u of i.childNodes){const c=Rt(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&ke(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(i.type===w.Document&&u.type==w.Element){const f=c;let h=null;f.childNodes.forEach(y=>{y.nodeName==="BODY"&&(h=y)}),h?(f.removeChild(h),a.appendChild(c),f.appendChild(h)):a.appendChild(c)}else a.appendChild(c);n&&n(c,u.id)}return a}function Xn(i,e){function t(r){e(r)}for(const r of i.getIds())i.has(r)&&t(i.getNode(r))}function Zn(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==w.Element)return;const r=i;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(r.scrollLeft=o),s==="rr_scrollTop"&&(r.scrollTop=o)}}function eo(i,e){const{doc:t,onVisit:r,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new Ie}=e,a=Rt(i,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return Xn(l,u=>{r&&r(u),Zn(u,l)}),a}exports.IGNORED_NODE=Ke;exports.Mirror=Ie;exports.absolutifyURLs=ie;exports.adaptCssForReplay=Fe;exports.buildNodeWithSN=Rt;exports.classMatchesRegex=Oe;exports.cleanupSnapshot=Zi;exports.createCache=Jn;exports.createMirror=Oi;exports.escapeImportStatement=sr;exports.extractFileExtension=Pe;exports.fixSafariColons=or;exports.genId=br;exports.getInputType=hr;exports.getXPath=V;exports.interactiveEvents=gr;exports.interactiveTags=yr;exports.is2DCanvasBlank=cr;exports.isCSSImportRule=lr;exports.isCSSStyleRule=ar;exports.isElement=ke;exports.isElementInteractive=mt;exports.isElementVisible=pt;exports.isIgnoreAttribute=vr;exports.isNativeShadowDom=ve;exports.isNodeMetaEqual=fr;exports.isShadowRoot=ir;exports.isTextVisible=mr;exports.markCssSplits=dr;exports.maskInputValue=ur;exports.needMaskingText=xr;exports.normalizeCssString=re;exports.rebuild=eo;exports.serializeNodeWithId=H;exports.snapshot=Qi;exports.splitCssText=pr;exports.stringifyRule=nr;exports.stringifyStylesheet=Ne;exports.toLowerCase=ae;exports.transformAttribute=Sr;exports.visitSnapshot=Xi;
41
41
  if (typeof module.exports == "object" && typeof exports == "object") {
42
42
  var __cp = (to, from, except, desc) => {
43
43
  if ((from && typeof from === "object") || typeof from === "function") {