@appsurify-testmap/rrweb 2.0.0-alpha.31 → 2.0.0-alpha.32
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/rrweb.cjs +0 -2
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +0 -2
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +0 -2
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +2 -2
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +5 -5
package/dist/rrweb.umd.min.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var il=Object.defineProperty,nl=Object.defineProperties;var ol=Object.getOwnPropertyDescriptors;var _t=Object.getOwnPropertySymbols;var Li=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable;var $i=(s,e,t)=>e in s?il(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))Li.call(e,t)&&$i(s,t,e[t]);if(_t)for(var t of _t(e))Pi.call(e,t)&&$i(s,t,e[t]);return s},q=(s,e)=>nl(s,ol(e));var Ue=(s,e)=>{var t={};for(var r in s)Li.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&_t)for(var r of _t(s))e.indexOf(r)<0&&Pi.call(s,r)&&(t[r]=s[r]);return t};var al=Object.defineProperty,ll=(s,e,t)=>e in s?al(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>ll(s,typeof e!="symbol"?e+"":e,t),Fi;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ul=Object.defineProperty,cl=(s,e,t)=>e in s?ul(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Bi=(s,e,t)=>cl(s,typeof e!="symbol"?e+"":e,t),A=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(A||{});const Ui={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},kt={},hl=()=>!!globalThis.Zone;function Us(s){if(kt[s])return kt[s];const e=globalThis[s],t=e.prototype,r=s in Ui?Ui[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),o=s in Wi?Wi[s]:void 0,n=!!(o&&o.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&n&&!hl())return kt[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const u=l[s].prototype;return document.body.removeChild(a),u?kt[s]=u:t}catch(a){return t}}const Vr={};function Re(s,e,t){var r;const i=`${s}.${String(t)}`;if(Vr[i])return Vr[i].call(e);const o=Us(s),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Vr[i]=n,n.call(e)):e[t]}const zr={};function qn(s,e,t){const r=`${s}.${String(t)}`;if(zr[r])return zr[r].bind(e);const o=Us(s)[t];return typeof o!="function"?e[t]:(zr[r]=o,o.bind(e))}function fl(s){return Re("Node",s,"childNodes")}function dl(s){return Re("Node",s,"parentNode")}function pl(s){return Re("Node",s,"parentElement")}function ml(s){return Re("Node",s,"textContent")}function gl(s,e){return qn("Node",s,"contains")(e)}function yl(s){return qn("Node",s,"getRootNode")()}function wl(s){return!s||!("host"in s)?null:Re("ShadowRoot",s,"host")}function bl(s){return s.styleSheets}function vl(s){return!s||!("shadowRoot"in s)?null:Re("Element",s,"shadowRoot")}function Sl(s,e){return Re("Element",s,"querySelector")(e)}function Cl(s,e){return Re("Element",s,"querySelectorAll")(e)}function El(){return Us("MutationObserver").constructor}const ee={childNodes:fl,parentNode:dl,parentElement:pl,textContent:ml,contains:gl,getRootNode:yl,host:wl,styleSheets:bl,shadowRoot:vl,querySelector:Sl,querySelectorAll:Cl,mutationObserver:El};function ht(s){const e=s&&"host"in s&&"mode"in s&&ee.host(s)||null;return!!(e&&"shadowRoot"in e&&ee.shadowRoot(e)===s)}function ft(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Il(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function xl(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function is(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>eo(i,t)).join("");return Il(r)}catch(e){return null}}function eo(s,e){if(Nl(s)){let t;try{t=is(s.styleSheet)||xl(s)}catch(r){t=s.cssText}return s.styleSheet.href?hr(t,s.styleSheet.href):t}else{let t=s.cssText;return Rl(s)&&s.selectorText.includes(":")&&(t=Ml(t)),e?hr(t,e):t}}function Ml(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Nl(s){return"styleSheet"in s}function Rl(s){return"selectorText"in s}class Ws{constructor(){Bi(this,"idNodeMap",new Map),Bi(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function to(){return new Ws}function Vs({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:o}){let n=i||"";const a=r&&Ne(r);return(e[t.toLowerCase()]||a&&e[a])&&(o?n=o(n,s):n="*".repeat(n.length)),n}function Ne(s){return s.toLowerCase()}const Vi="__rrweb_original__";function Al(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const o=e.getImageData,n=Vi in o?o[Vi]:o;if(new Uint32Array(n.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Ol(s,e){return!s||!e||s.type!==e.type?!1:s.type===A.Document?s.compatMode===e.compatMode:s.type===A.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===A.Comment||s.type===A.Text||s.type===A.CDATA?s.textContent===e.textContent:s.type===A.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function zs(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ne(e):null}function ro(s,e){var o;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(o=i==null?void 0:i[1])!=null?o:null}function Dl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Tl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,_l=/^(?:[a-z+]+:)?\/\//i,kl=/^www\..*/i,$l=/^(data:)([^,]*),(.*)/i;function hr(s,e){return(s||"").replace(Tl,(t,r,i,o,n,a)=>{const l=i||n||a,u=r||o||"";if(!l)return t;if(_l.test(l)||kl.test(l))return`url(${u}${l}${u})`;if($l.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Dl(e)+l}${u})`;const c=e.split("/"),h=l.split("/");c.pop();for(const f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function Gr(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Ll(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let o=Gr(s);const n=o.length/s.length;for(let a=1;a<t.length;a++)if(t[a].textContent&&typeof t[a].textContent=="string"){const l=Gr(t[a].textContent);let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,u),1)!==-1);u++);for(;u<l.length;u++){const c=l.substring(0,u),h=o.split(c);let f=-1;if(h.length===2?f=o.indexOf(c):h.length>2&&h[0]===""&&t[a-1].textContent!==""&&(f=o.indexOf(c,1)),f!==-1){let p=Math.floor(f/n);for(;p>0&&p<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const m=Gr(s.substring(0,p));if(m.length===f){r.push(s.substring(0,p)),s=s.substring(p),o=o.substring(f);break}else m.length<f?p+=Math.max(1,Math.floor((f-m.length)/n)):p-=Math.max(1,Math.floor((m.length-f)*n))}break}}}}return r.push(s),r}function Pl(s,e){return Ll(s,e).join("/* rr_split */")}function ut(s){if(s.nodeType===Node.DOCUMENT_NODE)return"/";if(s.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(s.nodeType===Node.ELEMENT_NODE){const e=s;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t||!(t instanceof Element))return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),i=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${ut(t)}/${e.tagName.toLowerCase()}${i}`}if(s.nodeType===Node.TEXT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/text()${r}`}if(s.nodeType===Node.CDATA_SECTION_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/text()${r}`}if(s.nodeType===Node.COMMENT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/comment()${r}`}return""}function Gs(s){return s.nodeType===s.ELEMENT_NODE}function Fl(s){var e;const t=ee.parentNode(s),r=t&&t;return!r||!js(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function js(s){return Bl(s)&&Ul(s.getBoundingClientRect())}function Bl(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function Ul(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}const Wl=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],zi=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Vl=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Hs=new WeakSet,zl=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(zl.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();console.info("Event type: ",r),Wl.includes(r)&&Hs.add(this)}};const Gl=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Gl.call(this,s,e,t)};function jl(s){return s instanceof Element&&Hs.has(s)}function Ys(s){var e;if(s.nodeType===Node.ELEMENT_NODE){const t=s,r=t.tagName.toLowerCase();if(zi.includes(r))return!0;const i=t.hasAttribute("tabindex")&&t.getAttribute("tabindex")!=="-1",o=["button","link","checkbox","switch","menuitem"].includes(t.getAttribute("role")||"");return jl(t)||i||o||t instanceof HTMLAnchorElement&&t.hasAttribute("href")||t instanceof HTMLButtonElement&&!t.disabled}if(s.nodeType===Node.TEXT_NODE){const t=s,r=t.parentElement;return r!==null&&zi.includes(r.tagName.toLowerCase())?!0:r!==null&&js(r)&&((e=t.textContent)==null?void 0:e.trim().length)!==0&&Ys(r)}return!1}function Gi(){document.querySelectorAll("*").forEach(e=>{Vl.forEach(t=>{e.hasAttribute(t)&&Hs.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Gi():document.addEventListener("DOMContentLoaded",Gi);let Hl=1;const Yl=new RegExp("[^a-z0-9-_:]"),mt=-2;function so(){return Hl++}function Zl(s){if(s instanceof HTMLFormElement)return"form";const e=Ne(s.tagName);return Yl.test(e)?"div":e}let We,ji;const Xl=/^[^ \t\n\r\u000c]+/,Jl=/^[, \t\n\r\u000c]+/;function Kl(s,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const a=o.exec(e.substring(t));return a?(n=a[0],t+=n.length,n):""}const i=[];for(;r(Jl),!(t>=e.length);){let o=r(Xl);if(o.slice(-1)===",")o=je(s,o.substring(0,o.length-1)),i.push(o);else{let n="";o=je(s,o);let a=!1;for(;;){const l=e.charAt(t);if(l===""){i.push((o+n).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((o+n).trim());break}else l==="("&&(a=!0);n+=l,t+=1}}}return i.join(", ")}const Hi=new WeakMap;function je(s,e){return!e||e.trim()===""?e:Zs(s,e)}function Ql(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Zs(s,e){let t=Hi.get(s);if(t||(t=s.createElement("a"),Hi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function io(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?je(s,r):t==="srcset"?Kl(s,r):t==="style"?hr(r,Zs(s)):e==="object"&&t==="data"?je(s,r):r)}function no(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function ql(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function fr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?fr(ee.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?fr(ee.parentNode(s),e,t):!1}function oo(s,e,t,r){let i;if(Gs(s)){if(i=s,!ee.childNodes(i).length)return!1}else{if(ee.parentElement(s)===null)return!1;i=ee.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(fr(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(o){}return!1}function eu(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,o;try{o=r.document.readyState}catch(a){return}if(o!=="complete"){const a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}const n="about:blank";if(r.location.href!==n||s.src===n||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function tu(s,e,t){let r=!1,i;try{i=s.sheet}catch(n){return}if(i)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function ru(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:n,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:d=!1}=e,g=su(t,r),b=ut(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:A.Document,childNodes:[],xPath:b,compatMode:s.compatMode}:{type:A.Document,childNodes:[],xPath:b};case s.DOCUMENT_TYPE_NODE:return{type:A.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:g,xPath:b};case s.ELEMENT_NODE:return nu(s,{doc:t,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y,rootId:g,xPath:b});case s.TEXT_NODE:return iu(s,{doc:t,needsMask:n,maskTextFn:u,rootId:g,cssCaptured:d,xPath:b});case s.CDATA_SECTION_NODE:return{type:A.CDATA,textContent:"",rootId:g,xPath:b};case s.COMMENT_NODE:return{type:A.Comment,textContent:ee.textContent(s)||"",rootId:g,xPath:b};default:return!1}}function su(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function iu(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:o,xPath:n}=e,a=ee.parentNode(s),l=a&&a.tagName;let u="";const c=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":o||(u=ee.textContent(s),c&&u&&(u=hr(u,Zs(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,ee.parentElement(s)):u.replace(/[\S]/g,"*"));const f=Fl(s),p=Ys(s);return{type:A.Text,textContent:u||"",rootId:i,isVisible:f,isInteractive:p,xPath:n}}function nu(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:p,xPath:m}=e,y=ql(s,r,i),d=Zl(s);let g={};const b=s.attributes.length;for(let S=0;S<b;S++){const N=s.attributes[S];no(d,N.name,N.value)||(g[N.name]=io(t,d,Ne(N.name),N.value))}if(d==="link"&&o){const S=Array.from(t.styleSheets).find(T=>T.href===s.href);let N=null;S&&(N=is(S)),N&&(delete g.rel,delete g.href,g._cssText=N)}if(d==="style"&&s.sheet){let S=is(s.sheet);S&&(s.childNodes.length>1&&(S=Pl(S,s)),g._cssText=S)}if(d==="input"||d==="textarea"||d==="select"){const S=s.value,N=s.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Vs({element:s,type:zs(s),tagName:d,value:S,maskInputOptions:n,maskInputFn:a}):N&&(g.checked=N)}if(d==="option"&&(s.selected&&!n.select?g.selected=!0:delete g.selected),d==="dialog"&&s.open&&(g.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(s.__context==="2d")Al(s)||(g.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){const S=s.toDataURL(l.type,l.quality),N=t.createElement("canvas");N.width=s.width,N.height=s.height;const T=N.toDataURL(l.type,l.quality);S!==T&&(g.rr_dataURL=S)}}if(d==="img"&&u){We||(We=t.createElement("canvas"),ji=We.getContext("2d"));const S=s,N=S.currentSrc||S.getAttribute("src")||"<unknown-src>",T=S.crossOrigin,F=()=>{S.removeEventListener("load",F);try{We.width=S.naturalWidth,We.height=S.naturalHeight,ji.drawImage(S,0,0),g.rr_dataURL=We.toDataURL(l.type,l.quality)}catch(K){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?F():S.addEventListener("load",F);return}else console.warn(`Cannot inline img src=${N}! Error: ${K}`)}S.crossOrigin==="anonymous"&&(T?g.crossOrigin=T:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?F():S.addEventListener("load",F)}if(d==="audio"||d==="video"){const S=g;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(g.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(g.rr_scrollTop=s.scrollTop)),y){const{width:S,height:N}=s.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${N}px`}}d==="iframe"&&!h(g.src)&&(s.contentDocument||(g.rr_src=g.src),delete g.src);let v;try{customElements.get(d)&&(v=!0)}catch(S){}const I=js(s),R=Ys(s);return{type:A.Element,tagName:d,attributes:g,childNodes:[],isSVG:Ql(s)||void 0,needBlock:y,rootId:p,isCustom:v,isVisible:I,isInteractive:R,xPath:m}}function z(s){return s==null?"":s.toLowerCase()}function ou(s,e){if(e.comment&&s.type===A.Comment)return!0;if(s.type===A.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&ro(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(z(s.attributes.name).match(/^msapplication-tile(image|color)$/)||z(s.attributes.name)==="application-name"||z(s.attributes.rel)==="icon"||z(s.attributes.rel)==="apple-touch-icon"||z(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&z(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(z(s.attributes.property).match(/^(og|twitter|fb):/)||z(s.attributes.name).match(/^(og|twitter):/)||z(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(z(s.attributes.name)==="robots"||z(s.attributes.name)==="googlebot"||z(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(z(s.attributes.name)==="author"||z(s.attributes.name)==="generator"||z(s.attributes.name)==="framework"||z(s.attributes.name)==="publisher"||z(s.attributes.name)==="progid"||z(s.attributes.property).match(/^article:/)||z(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(z(s.attributes.name)==="google-site-verification"||z(s.attributes.name)==="yandex-verification"||z(s.attributes.name)==="csrf-token"||z(s.attributes.name)==="p:domain_verify"||z(s.attributes.name)==="verify-v1"||z(s.attributes.name)==="verification"||z(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function He(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:o,maskTextClass:n,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:y=!1,recordCanvas:d=!1,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:N=!1,cssCaptured:T=!1}=e;let{needsMask:F}=e,{preserveWhiteSpace:K=!0}=e;F||(F=oo(s,n,a,F===void 0));const ae=ru(s,{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:y,recordCanvas:d,keepIframeSrcFn:S,newlyAddedElement:N,cssCaptured:T});if(!ae)return console.warn(s,"not serialized"),null;let se;r.hasNode(s)?se=r.getId(s):ou(ae,p)||!K&&ae.type===A.Text&&!ae.textContent.replace(/^\s+|\s+$/gm,"").length?se=mt:se=so();const O=Object.assign(ae,{id:se});if(r.add(s,O),se===mt)return null;g&&g(s);let ye=!l;if(O.type===A.Element){ye=ye&&!O.needBlock,delete O.needBlock;const Q=ee.shadowRoot(s);Q&&ft(Q)&&(O.isShadowHost=!0)}if((O.type===A.Document||O.type===A.Element)&&ye){p.headWhitespace&&O.type===A.Element&&O.tagName==="head"&&(K=!1);const Q={doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S,cssCaptured:!1};if(!(O.type===A.Element&&O.tagName==="textarea"&&O.attributes.value!==void 0)){O.type===A.Element&&O.attributes._cssText!==void 0&&typeof O.attributes._cssText=="string"&&(Q.cssCaptured=!0);for(const ie of Array.from(ee.childNodes(s))){const ne=He(ie,Q);ne&&O.childNodes.push(ne)}}let V=null;if(Gs(s)&&(V=ee.shadowRoot(s)))for(const ie of Array.from(ee.childNodes(V))){const ne=He(ie,Q);ne&&(ft(V)&&(ne.isShadow=!0),O.childNodes.push(ne))}}const De=ee.parentNode(s);return De&&ht(De)&&ft(De)&&(O.isShadow=!0),O.type===A.Element&&O.tagName==="iframe"&&eu(s,()=>{const Q=s.contentDocument;if(Q&&b){const V=He(Q,{doc:Q,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S});V&&b(s,V)}},v),O.type===A.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&ro(O.attributes.href)==="css")&&tu(s,()=>{if(I){const Q=He(s,{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S});Q&&I(s,Q)}},R),O}function au(s,e){const{mirror:t=new Ws,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:I,keepIframeSrcFn:R=()=>!1}=e||{};return He(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:a,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:I,keepIframeSrcFn:R,newlyAddedElement:!1})}const lu=/(max|min)-device-(width|height)/,Yi=new RegExp(lu.source,"g"),uu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(Yi)&&(s.params=s.params.replace(Yi,"$1-$2"))}}}},cu={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
14
|
+
"use strict";var il=Object.defineProperty,nl=Object.defineProperties;var ol=Object.getOwnPropertyDescriptors;var _t=Object.getOwnPropertySymbols;var Li=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable;var $i=(s,e,t)=>e in s?il(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))Li.call(e,t)&&$i(s,t,e[t]);if(_t)for(var t of _t(e))Pi.call(e,t)&&$i(s,t,e[t]);return s},q=(s,e)=>nl(s,ol(e));var Ue=(s,e)=>{var t={};for(var r in s)Li.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&_t)for(var r of _t(s))e.indexOf(r)<0&&Pi.call(s,r)&&(t[r]=s[r]);return t};var al=Object.defineProperty,ll=(s,e,t)=>e in s?al(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>ll(s,typeof e!="symbol"?e+"":e,t),Fi;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ul=Object.defineProperty,cl=(s,e,t)=>e in s?ul(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Bi=(s,e,t)=>cl(s,typeof e!="symbol"?e+"":e,t),A=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(A||{});const Ui={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},kt={},hl=()=>!!globalThis.Zone;function Us(s){if(kt[s])return kt[s];const e=globalThis[s],t=e.prototype,r=s in Ui?Ui[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),o=s in Wi?Wi[s]:void 0,n=!!(o&&o.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&n&&!hl())return kt[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const u=l[s].prototype;return document.body.removeChild(a),u?kt[s]=u:t}catch(a){return t}}const Vr={};function Re(s,e,t){var r;const i=`${s}.${String(t)}`;if(Vr[i])return Vr[i].call(e);const o=Us(s),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Vr[i]=n,n.call(e)):e[t]}const zr={};function qn(s,e,t){const r=`${s}.${String(t)}`;if(zr[r])return zr[r].bind(e);const o=Us(s)[t];return typeof o!="function"?e[t]:(zr[r]=o,o.bind(e))}function fl(s){return Re("Node",s,"childNodes")}function dl(s){return Re("Node",s,"parentNode")}function pl(s){return Re("Node",s,"parentElement")}function ml(s){return Re("Node",s,"textContent")}function gl(s,e){return qn("Node",s,"contains")(e)}function yl(s){return qn("Node",s,"getRootNode")()}function wl(s){return!s||!("host"in s)?null:Re("ShadowRoot",s,"host")}function bl(s){return s.styleSheets}function vl(s){return!s||!("shadowRoot"in s)?null:Re("Element",s,"shadowRoot")}function Sl(s,e){return Re("Element",s,"querySelector")(e)}function Cl(s,e){return Re("Element",s,"querySelectorAll")(e)}function El(){return Us("MutationObserver").constructor}const ee={childNodes:fl,parentNode:dl,parentElement:pl,textContent:ml,contains:gl,getRootNode:yl,host:wl,styleSheets:bl,shadowRoot:vl,querySelector:Sl,querySelectorAll:Cl,mutationObserver:El};function ht(s){const e=s&&"host"in s&&"mode"in s&&ee.host(s)||null;return!!(e&&"shadowRoot"in e&&ee.shadowRoot(e)===s)}function ft(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Il(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function xl(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function is(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>eo(i,t)).join("");return Il(r)}catch(e){return null}}function eo(s,e){if(Nl(s)){let t;try{t=is(s.styleSheet)||xl(s)}catch(r){t=s.cssText}return s.styleSheet.href?hr(t,s.styleSheet.href):t}else{let t=s.cssText;return Rl(s)&&s.selectorText.includes(":")&&(t=Ml(t)),e?hr(t,e):t}}function Ml(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Nl(s){return"styleSheet"in s}function Rl(s){return"selectorText"in s}class Ws{constructor(){Bi(this,"idNodeMap",new Map),Bi(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function to(){return new Ws}function Vs({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:o}){let n=i||"";const a=r&&Ne(r);return(e[t.toLowerCase()]||a&&e[a])&&(o?n=o(n,s):n="*".repeat(n.length)),n}function Ne(s){return s.toLowerCase()}const Vi="__rrweb_original__";function Al(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const o=e.getImageData,n=Vi in o?o[Vi]:o;if(new Uint32Array(n.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Ol(s,e){return!s||!e||s.type!==e.type?!1:s.type===A.Document?s.compatMode===e.compatMode:s.type===A.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===A.Comment||s.type===A.Text||s.type===A.CDATA?s.textContent===e.textContent:s.type===A.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function zs(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ne(e):null}function ro(s,e){var o;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(o=i==null?void 0:i[1])!=null?o:null}function Dl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Tl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,_l=/^(?:[a-z+]+:)?\/\//i,kl=/^www\..*/i,$l=/^(data:)([^,]*),(.*)/i;function hr(s,e){return(s||"").replace(Tl,(t,r,i,o,n,a)=>{const l=i||n||a,u=r||o||"";if(!l)return t;if(_l.test(l)||kl.test(l))return`url(${u}${l}${u})`;if($l.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Dl(e)+l}${u})`;const c=e.split("/"),h=l.split("/");c.pop();for(const f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function Gr(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Ll(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let o=Gr(s);const n=o.length/s.length;for(let a=1;a<t.length;a++)if(t[a].textContent&&typeof t[a].textContent=="string"){const l=Gr(t[a].textContent);let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,u),1)!==-1);u++);for(;u<l.length;u++){const c=l.substring(0,u),h=o.split(c);let f=-1;if(h.length===2?f=o.indexOf(c):h.length>2&&h[0]===""&&t[a-1].textContent!==""&&(f=o.indexOf(c,1)),f!==-1){let p=Math.floor(f/n);for(;p>0&&p<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const m=Gr(s.substring(0,p));if(m.length===f){r.push(s.substring(0,p)),s=s.substring(p),o=o.substring(f);break}else m.length<f?p+=Math.max(1,Math.floor((f-m.length)/n)):p-=Math.max(1,Math.floor((m.length-f)*n))}break}}}}return r.push(s),r}function Pl(s,e){return Ll(s,e).join("/* rr_split */")}function ut(s){if(s.nodeType===Node.DOCUMENT_NODE)return"/";if(s.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(s.nodeType===Node.ELEMENT_NODE){const e=s;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t||!(t instanceof Element))return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),i=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${ut(t)}/${e.tagName.toLowerCase()}${i}`}if(s.nodeType===Node.TEXT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/text()${r}`}if(s.nodeType===Node.CDATA_SECTION_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/text()${r}`}if(s.nodeType===Node.COMMENT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${ut(e)}/comment()${r}`}return""}function Gs(s){return s.nodeType===s.ELEMENT_NODE}function Fl(s){var e;const t=ee.parentNode(s),r=t&&t;return!r||!js(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function js(s){return Bl(s)&&Ul(s.getBoundingClientRect())}function Bl(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function Ul(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}const Wl=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],zi=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Vl=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Hs=new WeakSet,zl=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(zl.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();Wl.includes(r)&&Hs.add(this)}};const Gl=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Gl.call(this,s,e,t)};function jl(s){return s instanceof Element&&Hs.has(s)}function Ys(s){var e;if(s.nodeType===Node.ELEMENT_NODE){const t=s,r=t.tagName.toLowerCase();if(zi.includes(r))return!0;const i=t.hasAttribute("tabindex")&&t.getAttribute("tabindex")!=="-1",o=["button","link","checkbox","switch","menuitem"].includes(t.getAttribute("role")||"");return jl(t)||i||o||t instanceof HTMLAnchorElement&&t.hasAttribute("href")||t instanceof HTMLButtonElement&&!t.disabled}if(s.nodeType===Node.TEXT_NODE){const t=s,r=t.parentElement;return r!==null&&zi.includes(r.tagName.toLowerCase())?!0:r!==null&&js(r)&&((e=t.textContent)==null?void 0:e.trim().length)!==0&&Ys(r)}return!1}function Gi(){document.querySelectorAll("*").forEach(e=>{Vl.forEach(t=>{e.hasAttribute(t)&&Hs.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Gi():document.addEventListener("DOMContentLoaded",Gi);let Hl=1;const Yl=new RegExp("[^a-z0-9-_:]"),mt=-2;function so(){return Hl++}function Zl(s){if(s instanceof HTMLFormElement)return"form";const e=Ne(s.tagName);return Yl.test(e)?"div":e}let We,ji;const Xl=/^[^ \t\n\r\u000c]+/,Jl=/^[, \t\n\r\u000c]+/;function Kl(s,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const a=o.exec(e.substring(t));return a?(n=a[0],t+=n.length,n):""}const i=[];for(;r(Jl),!(t>=e.length);){let o=r(Xl);if(o.slice(-1)===",")o=je(s,o.substring(0,o.length-1)),i.push(o);else{let n="";o=je(s,o);let a=!1;for(;;){const l=e.charAt(t);if(l===""){i.push((o+n).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((o+n).trim());break}else l==="("&&(a=!0);n+=l,t+=1}}}return i.join(", ")}const Hi=new WeakMap;function je(s,e){return!e||e.trim()===""?e:Zs(s,e)}function Ql(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Zs(s,e){let t=Hi.get(s);if(t||(t=s.createElement("a"),Hi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function io(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?je(s,r):t==="srcset"?Kl(s,r):t==="style"?hr(r,Zs(s)):e==="object"&&t==="data"?je(s,r):r)}function no(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function ql(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function fr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?fr(ee.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?fr(ee.parentNode(s),e,t):!1}function oo(s,e,t,r){let i;if(Gs(s)){if(i=s,!ee.childNodes(i).length)return!1}else{if(ee.parentElement(s)===null)return!1;i=ee.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(fr(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(o){}return!1}function eu(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,o;try{o=r.document.readyState}catch(a){return}if(o!=="complete"){const a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}const n="about:blank";if(r.location.href!==n||s.src===n||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function tu(s,e,t){let r=!1,i;try{i=s.sheet}catch(n){return}if(i)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function ru(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:n,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:d=!1}=e,g=su(t,r),b=ut(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:A.Document,childNodes:[],xPath:b,compatMode:s.compatMode}:{type:A.Document,childNodes:[],xPath:b};case s.DOCUMENT_TYPE_NODE:return{type:A.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:g,xPath:b};case s.ELEMENT_NODE:return nu(s,{doc:t,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y,rootId:g,xPath:b});case s.TEXT_NODE:return iu(s,{doc:t,needsMask:n,maskTextFn:u,rootId:g,cssCaptured:d,xPath:b});case s.CDATA_SECTION_NODE:return{type:A.CDATA,textContent:"",rootId:g,xPath:b};case s.COMMENT_NODE:return{type:A.Comment,textContent:ee.textContent(s)||"",rootId:g,xPath:b};default:return!1}}function su(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function iu(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:o,xPath:n}=e,a=ee.parentNode(s),l=a&&a.tagName;let u="";const c=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":o||(u=ee.textContent(s),c&&u&&(u=hr(u,Zs(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,ee.parentElement(s)):u.replace(/[\S]/g,"*"));const f=Fl(s),p=Ys(s);return{type:A.Text,textContent:u||"",rootId:i,isVisible:f,isInteractive:p,xPath:n}}function nu(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:p,xPath:m}=e,y=ql(s,r,i),d=Zl(s);let g={};const b=s.attributes.length;for(let S=0;S<b;S++){const N=s.attributes[S];no(d,N.name,N.value)||(g[N.name]=io(t,d,Ne(N.name),N.value))}if(d==="link"&&o){const S=Array.from(t.styleSheets).find(T=>T.href===s.href);let N=null;S&&(N=is(S)),N&&(delete g.rel,delete g.href,g._cssText=N)}if(d==="style"&&s.sheet){let S=is(s.sheet);S&&(s.childNodes.length>1&&(S=Pl(S,s)),g._cssText=S)}if(d==="input"||d==="textarea"||d==="select"){const S=s.value,N=s.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Vs({element:s,type:zs(s),tagName:d,value:S,maskInputOptions:n,maskInputFn:a}):N&&(g.checked=N)}if(d==="option"&&(s.selected&&!n.select?g.selected=!0:delete g.selected),d==="dialog"&&s.open&&(g.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(s.__context==="2d")Al(s)||(g.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){const S=s.toDataURL(l.type,l.quality),N=t.createElement("canvas");N.width=s.width,N.height=s.height;const T=N.toDataURL(l.type,l.quality);S!==T&&(g.rr_dataURL=S)}}if(d==="img"&&u){We||(We=t.createElement("canvas"),ji=We.getContext("2d"));const S=s,N=S.currentSrc||S.getAttribute("src")||"<unknown-src>",T=S.crossOrigin,F=()=>{S.removeEventListener("load",F);try{We.width=S.naturalWidth,We.height=S.naturalHeight,ji.drawImage(S,0,0),g.rr_dataURL=We.toDataURL(l.type,l.quality)}catch(K){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?F():S.addEventListener("load",F);return}else console.warn(`Cannot inline img src=${N}! Error: ${K}`)}S.crossOrigin==="anonymous"&&(T?g.crossOrigin=T:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?F():S.addEventListener("load",F)}if(d==="audio"||d==="video"){const S=g;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(g.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(g.rr_scrollTop=s.scrollTop)),y){const{width:S,height:N}=s.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${N}px`}}d==="iframe"&&!h(g.src)&&(s.contentDocument||(g.rr_src=g.src),delete g.src);let v;try{customElements.get(d)&&(v=!0)}catch(S){}const I=js(s),R=Ys(s);return{type:A.Element,tagName:d,attributes:g,childNodes:[],isSVG:Ql(s)||void 0,needBlock:y,rootId:p,isCustom:v,isVisible:I,isInteractive:R,xPath:m}}function z(s){return s==null?"":s.toLowerCase()}function ou(s,e){if(e.comment&&s.type===A.Comment)return!0;if(s.type===A.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&ro(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(z(s.attributes.name).match(/^msapplication-tile(image|color)$/)||z(s.attributes.name)==="application-name"||z(s.attributes.rel)==="icon"||z(s.attributes.rel)==="apple-touch-icon"||z(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&z(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(z(s.attributes.property).match(/^(og|twitter|fb):/)||z(s.attributes.name).match(/^(og|twitter):/)||z(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(z(s.attributes.name)==="robots"||z(s.attributes.name)==="googlebot"||z(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(z(s.attributes.name)==="author"||z(s.attributes.name)==="generator"||z(s.attributes.name)==="framework"||z(s.attributes.name)==="publisher"||z(s.attributes.name)==="progid"||z(s.attributes.property).match(/^article:/)||z(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(z(s.attributes.name)==="google-site-verification"||z(s.attributes.name)==="yandex-verification"||z(s.attributes.name)==="csrf-token"||z(s.attributes.name)==="p:domain_verify"||z(s.attributes.name)==="verify-v1"||z(s.attributes.name)==="verification"||z(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function He(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:o,maskTextClass:n,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:y=!1,recordCanvas:d=!1,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:N=!1,cssCaptured:T=!1}=e;let{needsMask:F}=e,{preserveWhiteSpace:K=!0}=e;F||(F=oo(s,n,a,F===void 0));const ae=ru(s,{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:y,recordCanvas:d,keepIframeSrcFn:S,newlyAddedElement:N,cssCaptured:T});if(!ae)return console.warn(s,"not serialized"),null;let se;r.hasNode(s)?se=r.getId(s):ou(ae,p)||!K&&ae.type===A.Text&&!ae.textContent.replace(/^\s+|\s+$/gm,"").length?se=mt:se=so();const O=Object.assign(ae,{id:se});if(r.add(s,O),se===mt)return null;g&&g(s);let ye=!l;if(O.type===A.Element){ye=ye&&!O.needBlock,delete O.needBlock;const Q=ee.shadowRoot(s);Q&&ft(Q)&&(O.isShadowHost=!0)}if((O.type===A.Document||O.type===A.Element)&&ye){p.headWhitespace&&O.type===A.Element&&O.tagName==="head"&&(K=!1);const Q={doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S,cssCaptured:!1};if(!(O.type===A.Element&&O.tagName==="textarea"&&O.attributes.value!==void 0)){O.type===A.Element&&O.attributes._cssText!==void 0&&typeof O.attributes._cssText=="string"&&(Q.cssCaptured=!0);for(const ie of Array.from(ee.childNodes(s))){const ne=He(ie,Q);ne&&O.childNodes.push(ne)}}let V=null;if(Gs(s)&&(V=ee.shadowRoot(s)))for(const ie of Array.from(ee.childNodes(V))){const ne=He(ie,Q);ne&&(ft(V)&&(ne.isShadow=!0),O.childNodes.push(ne))}}const De=ee.parentNode(s);return De&&ht(De)&&ft(De)&&(O.isShadow=!0),O.type===A.Element&&O.tagName==="iframe"&&eu(s,()=>{const Q=s.contentDocument;if(Q&&b){const V=He(Q,{doc:Q,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S});V&&b(s,V)}},v),O.type===A.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&ro(O.attributes.href)==="css")&&tu(s,()=>{if(I){const Q=He(s,{doc:t,mirror:r,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:S});Q&&I(s,Q)}},R),O}function au(s,e){const{mirror:t=new Ws,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:I,keepIframeSrcFn:R=()=>!1}=e||{};return He(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:a,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:I,keepIframeSrcFn:R,newlyAddedElement:!1})}const lu=/(max|min)-device-(width|height)/,Yi=new RegExp(lu.source,"g"),uu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(Yi)&&(s.params=s.params.replace(Yi,"$1-$2"))}}}},cu={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
15
15
|
`+t.replace(/:hover/g,".\\:hover"))}))}}}};function hu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function fu(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Xs={exports:{}},G=String,ao=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};Xs.exports=ao();Xs.exports.createColors=ao;var du=Xs.exports;const pu={},mu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"})),ce=fu(mu);let Zi=du,Xi=ce,ns=class lo extends Error{constructor(e,t,r,i,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,lo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Zi.isColorSupported),Xi&&e&&(t=Xi(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=Zi.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,o).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
|
|
16
16
|
`+p+a("^")}return" "+l(f)+u}).join(`
|
|
17
17
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
@@ -37,7 +37,7 @@ var module = { exports };
|
|
|
37
37
|
`),t=a.length-n):t+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?nr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=nr(po(r,this.mapOpts.annotation)));let i=fo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Lu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rn){let r=rn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;mo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var go=Bu;let Uu=Rr,ps=class extends Uu{constructor(e){super(e),this.type="comment"}};var Dr=ps;ps.default=ps;let{isClean:yo,my:wo}=xt,bo=Ar,vo=Dr,Wu=Rr,So,Ks,Qs,Co;function Eo(s){return s.map(e=>(e.nodes&&(e.nodes=Eo(e.nodes)),delete e.source,e))}function Io(s){if(s[yo]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Io(e)}let ve=class xo extends Wu{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(o,n)=>i(o.toProxy(),n):i)):t==="every"||t==="some"?r=>e[t]((i,...o)=>r(i.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of i)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of o)this.proxyOf.nodes.splice(r,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<=n&&(this.indexes[a]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Eo(So(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new bo(e)]}else if(e.selector)e=[new Ks(e)];else if(e.name)e=[new Qs(e)];else if(e.text)e=[new vo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[wo]||xo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[yo]&&Io(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(o){throw t.addToError(o)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ve.registerParse=s=>{So=s};ve.registerRule=s=>{Ks=s};ve.registerAtRule=s=>{Qs=s};ve.registerRoot=s=>{Co=s};var Le=ve;ve.default=ve;ve.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Qs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Ks.prototype):s.type==="decl"?Object.setPrototypeOf(s,bo.prototype):s.type==="comment"?Object.setPrototypeOf(s,vo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Co.prototype),s[wo]=!0,s.nodes&&s.nodes.forEach(e=>{ve.rebuild(e)})};let Vu=Le,Mo,No,gt=class extends Vu{constructor(e){super(M({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Mo(new No,this,e).stringify()}};gt.registerLazyResult=s=>{Mo=s};gt.registerProcessor=s=>{No=s};var qs=gt;gt.default=gt;let ms=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Ro=ms;ms.default=ms;let zu=Ro,gs=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new zu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ei=gs;gs.default=gs;const Zr=39,sn=34,Pt=92,nn=47,Ft=10,nt=32,Bt=12,Ut=9,Wt=13,Gu=91,ju=93,Hu=40,Yu=41,Zu=123,Xu=125,Ju=59,Ku=42,Qu=58,qu=64,Vt=/[\t\n\f\r "#'()/;[\\\]{}]/g,zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ec=/.[\r\n"'(/\\]/,on=/[\da-f]/i;var tc=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,o,n,a,l,u,c,h,f,p,m,y=r.length,d=0,g=[],b=[];function v(){return d}function I(T){throw e.error("Unclosed "+T,d)}function R(){return b.length===0&&d>=y}function S(T){if(b.length)return b.pop();if(d>=y)return;let F=T?T.ignoreUnclosed:!1;switch(o=r.charCodeAt(d),o){case Ft:case nt:case Ut:case Wt:case Bt:{n=d;do n+=1,o=r.charCodeAt(n);while(o===nt||o===Ft||o===Ut||o===Wt||o===Bt);m=["space",r.slice(d,n)],d=n-1;break}case Gu:case ju:case Zu:case Xu:case Qu:case Ju:case Yu:{let K=String.fromCharCode(o);m=[K,K,d];break}case Hu:{if(f=g.length?g.pop()[1]:"",p=r.charCodeAt(d+1),f==="url"&&p!==Zr&&p!==sn&&p!==nt&&p!==Ft&&p!==Ut&&p!==Bt&&p!==Wt){n=d;do{if(c=!1,n=r.indexOf(")",n+1),n===-1)if(i||F){n=d;break}else I("bracket");for(h=n;r.charCodeAt(h-1)===Pt;)h-=1,c=!c}while(c);m=["brackets",r.slice(d,n+1),d,n],d=n}else n=r.indexOf(")",d+1),l=r.slice(d,n+1),n===-1||ec.test(l)?m=["(","(",d]:(m=["brackets",l,d,n],d=n);break}case Zr:case sn:{a=o===Zr?"'":'"',n=d;do{if(c=!1,n=r.indexOf(a,n+1),n===-1)if(i||F){n=d+1;break}else I("string");for(h=n;r.charCodeAt(h-1)===Pt;)h-=1,c=!c}while(c);m=["string",r.slice(d,n+1),d,n],d=n;break}case qu:{Vt.lastIndex=d+1,Vt.test(r),Vt.lastIndex===0?n=r.length-1:n=Vt.lastIndex-2,m=["at-word",r.slice(d,n+1),d,n],d=n;break}case Pt:{for(n=d,u=!0;r.charCodeAt(n+1)===Pt;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==nn&&o!==nt&&o!==Ft&&o!==Ut&&o!==Wt&&o!==Bt&&(n+=1,on.test(r.charAt(n)))){for(;on.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===nt&&(n+=1)}m=["word",r.slice(d,n+1),d,n],d=n;break}default:{o===nn&&r.charCodeAt(d+1)===Ku?(n=r.indexOf("*/",d+2)+1,n===0&&(i||F?n=r.length:I("comment")),m=["comment",r.slice(d,n+1),d,n],d=n):(zt.lastIndex=d+1,zt.test(r),zt.lastIndex===0?n=r.length-1:n=zt.lastIndex-2,m=["word",r.slice(d,n+1),d,n],g.push(m),d=n);break}}return d++,m}function N(T){b.push(T)}return{back:N,endOfFile:R,nextToken:S,position:v}};let Ao=Le,pr=class extends Ao{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var ti=pr;pr.default=pr;Ao.registerAtRule(pr);let Oo=Le,Do,To,Ke=class extends Oo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of i)o.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Do(new To,this,e).stringify()}};Ke.registerLazyResult=s=>{Do=s};Ke.registerProcessor=s=>{To=s};var Mt=Ke;Ke.default=Ke;Oo.registerRoot(Ke);let yt={comma(s){return yt.split(s,[","],!0)},space(s){let e=[" ",`
|
|
38
38
|
`," "];return yt.split(s,e)},split(s,e,t){let r=[],i="",o=!1,n=0,a=!1,l="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(i!==""&&r.push(i.trim()),i="",o=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}};var _o=yt;yt.default=yt;let ko=Le,rc=_o,mr=class extends ko{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var ri=mr;mr.default=mr;ko.registerRule(mr);let sc=Ar,ic=tc,nc=Dr,oc=ti,ac=Mt,an=ri;const ln={empty:!0,space:!0};function lc(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let uc=class{constructor(e){this.input=e,this.root=new ac,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new oc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,o,n=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,i=l[o];i&&i[0]==="space";)i=l[--o];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let o=t-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,o;for(let[n,a]of e.entries()){if(r=a,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new nc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=ic(this.input)}decl(e,t){let r=new sc;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||lc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let p=c[f][0];if(h.trim().indexOf("!")===0&&p!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new an;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,o=null,n=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(a&&i&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&i){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let o,n,a=r.length,l="",u=!0,c,h;for(let f=0;f<a;f+=1)o=r[f],n=o[0],n==="space"&&f===a-1&&!i?u=!1:n==="comment"?(h=r[f-1]?r[f-1][0]:"empty",c=r[f+1]?r[f+1][0]:"empty",!ln[h]&&!ln[c]?l.slice(-1)===","?u=!1:l+=o[1]:u=!1):l+=o[1];if(!u){let f=r.reduce((p,m)=>p+m[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new an;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var cc=uc;let hc=Le,fc=cc,dc=Or;function gr(s,e){let t=new dc(s,e),r=new fc(t);try{r.parse()}catch(i){throw i}return r.root}var si=gr;gr.default=gr;hc.registerParse(gr);let{isClean:pe,my:pc}=xt,mc=go,gc=Nr,yc=Le,wc=qs;let un=ei,bc=si,vc=Mt;const Sc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cc={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},Ec={Once:!0,postcssPlugin:!0,prepare:!0},Qe=0;function ot(s){return typeof s=="object"&&typeof s.then=="function"}function $o(s){let e=!1,t=Sc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function cn(s){let e;return s.type==="document"?e=["Document",Qe,"DocumentExit"]:s.type==="root"?e=["Root",Qe,"RootExit"]:e=$o(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ys(s){return s[pe]=!1,s.nodes&&s.nodes.forEach(e=>ys(e)),s}let ws={},qe=class Lo{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ys(t);else if(t instanceof Lo||t instanceof un)i=ys(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=bc;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(t,r)}catch(n){this.processed=!0,this.error=n}i&&!i[pc]&&yc.rebuild(i)}this.result=new un(e,i,r),this.helpers=q(M({},ws),{postcss:ws,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?M(M({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Cc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ec[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(ot(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[pe];){e[pe]=!0;let t=[cn(e)];for(;t.length>0;){let r=this.visitTick(t);if(ot(r))try{await r}catch(i){let o=t[t.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(o=>r(o,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return ot(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=gc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new mc(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ot(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[pe];)e[pe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let o;try{o=i(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ot(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[n,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let n=t.iterator,a;for(;a=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!a[pe]){a[pe]=!0,e.push(cn(a));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===Qe){r.nodes&&r.nodes.length&&(r[pe]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[pe]=!0;let t=$o(e);for(let r of t)if(r===Qe)e.nodes&&e.each(i=>{i[pe]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};qe.registerPostcss=s=>{ws=s};var Po=qe;qe.default=qe;vc.registerLazyResult(qe);wc.registerLazyResult(qe);let Ic=go,xc=Nr;let Mc=si;const Nc=ei;let bs=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,o=xc;this.result=new Nc(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let a=new Ic(o,i,this._opts,t);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Mc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Rc=bs;bs.default=bs;let Ac=Rc,Oc=Po,Dc=qs,Tc=Mt,wt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Ac(this,e,t):new Oc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var _c=wt;wt.default=wt;Tc.registerProcessor(wt);Dc.registerProcessor(wt);let kc=Ar,$c=co,Lc=Dr,Pc=ti,Fc=Or,Bc=Mt,Uc=ri;function bt(s,e){if(Array.isArray(s))return s.map(n=>bt(n));let i=s,{inputs:t}=i,r=Ue(i,["inputs"]);if(t){e=[];for(let n of t){let a=q(M({},n),{__proto__:Fc.prototype});a.map&&(a.map=q(M({},a.map),{__proto__:$c.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=s.nodes.map(n=>bt(n,e))),r.source){let o=r.source,{inputId:n}=o,a=Ue(o,["inputId"]);r.source=a,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Bc(r);if(r.type==="decl")return new kc(r);if(r.type==="rule")return new Uc(r);if(r.type==="comment")return new Lc(r);if(r.type==="atrule")return new Pc(r);throw new Error("Unknown node type: "+s.type)}var Wc=bt;bt.default=bt;let Vc=Js,Fo=Ar,zc=Po,Gc=Le,ii=_c,jc=Nr,Hc=Wc,Bo=qs,Yc=Ro,Uo=Dr,Wo=ti,Zc=ei,Xc=Or,Jc=si,Kc=_o,Vo=ri,zo=Mt,Qc=Rr;function U(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new ii(s)}U.plugin=function(e,t){let r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
39
39
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
40
|
-
https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new ii().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(n,a,l){return U([i(l)]).process(n,a)},i};U.stringify=jc;U.parse=Jc;U.fromJSON=Hc;U.list=Kc;U.comment=s=>new Uo(s);U.atRule=s=>new Wo(s);U.decl=s=>new Fo(s);U.rule=s=>new Vo(s);U.root=s=>new zo(s);U.document=s=>new Bo(s);U.CssSyntaxError=Vc;U.Declaration=Fo;U.Container=Gc;U.Processor=ii;U.Document=Bo;U.Comment=Uo;U.Warning=Yc;U.AtRule=Wo;U.Result=Zc;U.Input=Xc;U.Rule=Vo;U.Root=zo;U.Node=Qc;zc.registerPostcss(U);var qc=U;U.default=U;const H=hu(qc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;const hn={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 eh(s){let e=hn[s.tagName]?hn[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Tr(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;const i=H([uu,cu]).process(s).css;return e==null||e.stylesWithHoverClass.set(s,i),i}function fn(){return{stylesWithHoverClass:new Map}}function th(s,e,t,r){const i=[];for(const n of s.childNodes)n.type===A.Text&&i.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>i.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<i.length;n++){const a=i[n],l=o[n];a&&l&&(a.textContent=t?Tr(l,r):l)}}function rh(s,e,t,r){const{doc:i,hackCss:o,cache:n}=r;s.childNodes.length?th(s,t,o,n):(o&&(t=Tr(t,n)),e.appendChild(i.createTextNode(t)))}function sh(s,e){var t;const{doc:r,hackCss:i,cache:o}=e;switch(s.type){case A.Document:return r.implementation.createDocument(null,"",null);case A.DocumentType:return r.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case A.Element:{const n=eh(s);let a;s.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",n):(s.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(s.tagName)&&r.defaultView.customElements.define(s.tagName,class extends r.defaultView.HTMLElement{}),a=r.createElement(n));const l={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){rh(s,a,c,e);continue}else if(n==="textarea"&&u==="value"){a.appendChild(r.createTextNode(c)),s.childNodes=[];continue}}try{if(s.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(n==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else n==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||n==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&s.attributes.href.endsWith(".js")||(n==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",s.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(n==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(s.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case A.Text:return s.isStyle&&i?r.createTextNode(Tr(s.textContent,o)):r.createTextNode(s.textContent);case A.CDATA:return r.createCDATASection(s.textContent);case A.Comment:return r.createComment(s.textContent);default:return null}}function dt(s,e){const{doc:t,mirror:r,skipChild:i=!1,hackCss:o=!0,afterAppend:n,cache:a}=e;if(r.has(s.id)){const u=r.getNode(s.id),c=r.getMeta(u);if(Ol(c,s))return r.getNode(s.id)}let l=sh(s,{doc:t,hackCss:o,cache:a});if(!l)return null;if(s.rootId&&r.getNode(s.rootId)!==t&&r.replace(s.rootId,t),s.type===A.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==A.DocumentType&&(s.childNodes[0].type===A.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),r.add(l,s),(s.type===A.Document||s.type===A.Element)&&!i)for(const u of s.childNodes){const c=dt(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&Gs(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(s.type===A.Document&&u.type==A.Element){const h=c;let f=null;h.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);n&&n(c,u.id)}return l}function ih(s,e){function t(r){e(r)}for(const r of s.getIds())s.has(r)&&t(s.getNode(r))}function nh(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==A.Element)return;const r=s;for(const i in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,i)&&i.startsWith("rr_")))continue;const o=t.attributes[i];i==="rr_scrollLeft"&&(r.scrollLeft=o),i==="rr_scrollTop"&&(r.scrollTop=o)}}function oh(s,e){const{doc:t,onVisit:r,hackCss:i=!0,afterAppend:o,cache:n,mirror:a=new Ws}=e,l=dt(s,{doc:t,mirror:a,skipChild:!1,hackCss:i,afterAppend:o,cache:n});return ih(a,u=>{r&&r(u),nh(u,a)}),l}var ah=Object.defineProperty,lh=(s,e,t)=>e in s?ah(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,E=(s,e,t)=>lh(s,typeof e!="symbol"?e+"":e,t),uh=Object.defineProperty,ch=(s,e,t)=>e in s?uh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,dn=(s,e,t)=>ch(s,typeof e!="symbol"?e+"":e,t);let hh=class{constructor(){dn(this,"idNodeMap",new Map),dn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function fh(){return new hh}const dh=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],ph=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Go=new WeakSet,mh=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(mh.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();console.info("Event type: ",r),dh.includes(r)&&Go.add(this)}};const gh=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){gh.call(this,s,e,t)};function pn(){document.querySelectorAll("*").forEach(e=>{ph.forEach(t=>{e.hasAttribute(t)&&Go.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?pn():document.addEventListener("DOMContentLoaded",pn);function yh(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function wh(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ni={exports:{}},j=String,jo=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};ni.exports=jo();ni.exports.createColors=jo;var bh=ni.exports;const vh={},Sh=Object.freeze(Object.defineProperty({__proto__:null,default:vh},Symbol.toStringTag,{value:"Module"})),he=wh(Sh);let mn=bh,gn=he,vs=class Ho extends Error{constructor(e,t,r,i,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ho)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=mn.isColorSupported),gn&&e&&(t=gn(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=mn.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,o).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
|
|
40
|
+
https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new ii().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(n,a,l){return U([i(l)]).process(n,a)},i};U.stringify=jc;U.parse=Jc;U.fromJSON=Hc;U.list=Kc;U.comment=s=>new Uo(s);U.atRule=s=>new Wo(s);U.decl=s=>new Fo(s);U.rule=s=>new Vo(s);U.root=s=>new zo(s);U.document=s=>new Bo(s);U.CssSyntaxError=Vc;U.Declaration=Fo;U.Container=Gc;U.Processor=ii;U.Document=Bo;U.Comment=Uo;U.Warning=Yc;U.AtRule=Wo;U.Result=Zc;U.Input=Xc;U.Rule=Vo;U.Root=zo;U.Node=Qc;zc.registerPostcss(U);var qc=U;U.default=U;const H=hu(qc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;const hn={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 eh(s){let e=hn[s.tagName]?hn[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Tr(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;const i=H([uu,cu]).process(s).css;return e==null||e.stylesWithHoverClass.set(s,i),i}function fn(){return{stylesWithHoverClass:new Map}}function th(s,e,t,r){const i=[];for(const n of s.childNodes)n.type===A.Text&&i.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>i.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<i.length;n++){const a=i[n],l=o[n];a&&l&&(a.textContent=t?Tr(l,r):l)}}function rh(s,e,t,r){const{doc:i,hackCss:o,cache:n}=r;s.childNodes.length?th(s,t,o,n):(o&&(t=Tr(t,n)),e.appendChild(i.createTextNode(t)))}function sh(s,e){var t;const{doc:r,hackCss:i,cache:o}=e;switch(s.type){case A.Document:return r.implementation.createDocument(null,"",null);case A.DocumentType:return r.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case A.Element:{const n=eh(s);let a;s.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",n):(s.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(s.tagName)&&r.defaultView.customElements.define(s.tagName,class extends r.defaultView.HTMLElement{}),a=r.createElement(n));const l={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){rh(s,a,c,e);continue}else if(n==="textarea"&&u==="value"){a.appendChild(r.createTextNode(c)),s.childNodes=[];continue}}try{if(s.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(n==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else n==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||n==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&s.attributes.href.endsWith(".js")||(n==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",s.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(n==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(s.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case A.Text:return s.isStyle&&i?r.createTextNode(Tr(s.textContent,o)):r.createTextNode(s.textContent);case A.CDATA:return r.createCDATASection(s.textContent);case A.Comment:return r.createComment(s.textContent);default:return null}}function dt(s,e){const{doc:t,mirror:r,skipChild:i=!1,hackCss:o=!0,afterAppend:n,cache:a}=e;if(r.has(s.id)){const u=r.getNode(s.id),c=r.getMeta(u);if(Ol(c,s))return r.getNode(s.id)}let l=sh(s,{doc:t,hackCss:o,cache:a});if(!l)return null;if(s.rootId&&r.getNode(s.rootId)!==t&&r.replace(s.rootId,t),s.type===A.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==A.DocumentType&&(s.childNodes[0].type===A.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),r.add(l,s),(s.type===A.Document||s.type===A.Element)&&!i)for(const u of s.childNodes){const c=dt(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&Gs(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(s.type===A.Document&&u.type==A.Element){const h=c;let f=null;h.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);n&&n(c,u.id)}return l}function ih(s,e){function t(r){e(r)}for(const r of s.getIds())s.has(r)&&t(s.getNode(r))}function nh(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==A.Element)return;const r=s;for(const i in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,i)&&i.startsWith("rr_")))continue;const o=t.attributes[i];i==="rr_scrollLeft"&&(r.scrollLeft=o),i==="rr_scrollTop"&&(r.scrollTop=o)}}function oh(s,e){const{doc:t,onVisit:r,hackCss:i=!0,afterAppend:o,cache:n,mirror:a=new Ws}=e,l=dt(s,{doc:t,mirror:a,skipChild:!1,hackCss:i,afterAppend:o,cache:n});return ih(a,u=>{r&&r(u),nh(u,a)}),l}var ah=Object.defineProperty,lh=(s,e,t)=>e in s?ah(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,E=(s,e,t)=>lh(s,typeof e!="symbol"?e+"":e,t),uh=Object.defineProperty,ch=(s,e,t)=>e in s?uh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,dn=(s,e,t)=>ch(s,typeof e!="symbol"?e+"":e,t);let hh=class{constructor(){dn(this,"idNodeMap",new Map),dn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function fh(){return new hh}const dh=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],ph=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],Go=new WeakSet,mh=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(mh.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();dh.includes(r)&&Go.add(this)}};const gh=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){gh.call(this,s,e,t)};function pn(){document.querySelectorAll("*").forEach(e=>{ph.forEach(t=>{e.hasAttribute(t)&&Go.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?pn():document.addEventListener("DOMContentLoaded",pn);function yh(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function wh(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ni={exports:{}},j=String,jo=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};ni.exports=jo();ni.exports.createColors=jo;var bh=ni.exports;const vh={},Sh=Object.freeze(Object.defineProperty({__proto__:null,default:vh},Symbol.toStringTag,{value:"Module"})),he=wh(Sh);let mn=bh,gn=he,vs=class Ho extends Error{constructor(e,t,r,i,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ho)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=mn.isColorSupported),gn&&e&&(t=gn(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=mn.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,o).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
|
|
41
41
|
`+p+a("^")}return" "+l(f)+u}).join(`
|
|
42
42
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
43
43
|
|