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