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