@v-tilt/browser 1.1.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/entrypoints/array.d.ts +1 -0
- package/dist/entrypoints/external-scripts-loader.d.ts +24 -0
- package/dist/entrypoints/module.es.d.ts +1 -0
- package/dist/entrypoints/recorder.d.ts +23 -0
- package/dist/extensions/replay/index.d.ts +13 -0
- package/dist/extensions/replay/session-recording-utils.d.ts +92 -0
- package/dist/extensions/replay/session-recording-wrapper.d.ts +61 -0
- package/dist/extensions/replay/session-recording.d.ts +95 -0
- package/dist/extensions/replay/types.d.ts +211 -0
- package/dist/external-scripts-loader.js +2 -0
- package/dist/external-scripts-loader.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +264 -5
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +264 -5
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/recorder.js +2 -0
- package/dist/recorder.js.map +1 -0
- package/dist/types.d.ts +84 -4
- package/dist/utils/globals.d.ts +42 -0
- package/dist/vtilt.d.ts +36 -0
- package/lib/config.js +2 -0
- package/lib/entrypoints/array.d.ts +1 -0
- package/lib/entrypoints/array.js +1 -0
- package/lib/entrypoints/external-scripts-loader.d.ts +24 -0
- package/lib/entrypoints/external-scripts-loader.js +107 -0
- package/lib/entrypoints/module.es.d.ts +1 -0
- package/lib/entrypoints/module.es.js +1 -0
- package/lib/entrypoints/recorder.d.ts +23 -0
- package/lib/entrypoints/recorder.js +42 -0
- package/lib/extensions/replay/index.d.ts +13 -0
- package/lib/extensions/replay/index.js +31 -0
- package/lib/extensions/replay/session-recording-utils.d.ts +92 -0
- package/lib/extensions/replay/session-recording-utils.js +212 -0
- package/lib/extensions/replay/session-recording-wrapper.d.ts +61 -0
- package/lib/extensions/replay/session-recording-wrapper.js +149 -0
- package/lib/extensions/replay/session-recording.d.ts +95 -0
- package/lib/extensions/replay/session-recording.js +700 -0
- package/lib/extensions/replay/types.d.ts +211 -0
- package/lib/extensions/replay/types.js +8 -0
- package/lib/types.d.ts +84 -4
- package/lib/utils/globals.d.ts +42 -0
- package/lib/utils/globals.js +2 -0
- package/lib/vtilt.d.ts +36 -0
- package/lib/vtilt.js +106 -0
- package/package.json +4 -1
package/dist/recorder.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(t){"use strict";function e(t,e,r,i,s,n,o){try{var a=t[n](o),h=a.value}catch(t){return void r(t)}a.done?e(h):Promise.resolve(h).then(i,s)}function r(t){return function(){var r=this,i=arguments;return new Promise(function(s,n){var o=t.apply(r,i);function a(t){e(o,s,n,a,h,"next",t)}function h(t){e(o,s,n,a,h,"throw",t)}a(void 0)})}}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)({}).hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},i.apply(null,arguments)}function s(t,e){if(null==t)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;r[i]=t[i]}return r}var n,o=["inputs"],a=["inputId"],h=["inputs"],u=["inputId"],l=["type"],c=Object.defineProperty,f=(t,e,r)=>((t,e,r)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),d=Object.defineProperty,v=(t,e,r)=>((t,e,r)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),p=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(p||{}),m={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},w={};function y(t){if(w[t])return w[t];var e=globalThis[t],r=e.prototype,i=t in m?m[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in g?g[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return w[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?w[t]=u:r}catch(t){return r}}var b={};function C(t,e,r){var i,s=t+"."+String(r);if(b[s])return b[s].call(e);var n=y(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(b[s]=o,o.call(e)):e[r]}var S={};function I(t,e,r){var i=t+"."+String(r);if(S[i])return S[i].bind(e);var s=y(t)[r];return"function"!=typeof s?e[r]:(S[i]=s,s.bind(e))}var k={childNodes:function(t){return C("Node",t,"childNodes")},parentNode:function(t){return C("Node",t,"parentNode")},parentElement:function(t){return C("Node",t,"parentElement")},textContent:function(t){return C("Node",t,"textContent")},contains:function(t,e){return I("Node",t,"contains")(e)},getRootNode:function(t){return I("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?C("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?C("Element",t,"shadowRoot"):null},querySelector:function(t,e){return C("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return C("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return y("MutationObserver").constructor}};function A(t){return t.nodeType===t.ELEMENT_NODE}function R(t){var e=t&&"host"in t&&"mode"in t&&k.host(t)||null;return Boolean(e&&"shadowRoot"in e&&k.shadowRoot(e)===t)}function x(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function M(t){try{var e=t.rules||t.cssRules;if(!e)return null;var r=Array.from(e,e=>O(e,t.href)).join("");return(i=r).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(t){return null}var i}function O(t,e){if(function(t){return"styleSheet"in t}(t)){var r;try{r=M(t.styleSheet)||function(t){var{cssText:e}=t;if(e.split('"').length<3)return e;var r=["@import","url("+JSON.stringify(t.href)+")"];return""===t.layerName?r.push("layer"):t.layerName&&r.push("layer("+t.layerName+")"),t.supportsText&&r.push("supports("+t.supportsText+")"),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}(t)}catch(e){r=t.cssText}return t.styleSheet.href?U(r,t.styleSheet.href):r}var i,s=t.cssText;return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")&&(i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,s=s.replace(i,"$1\\$2")),e?U(s,e):s}let E=class{constructor(){v(this,"idNodeMap",new Map),v(this,"nodeMetaMap",new WeakMap)}getId(t){var e;if(!t)return-1;var r=null==(e=this.getMeta(t))?void 0:e.id;return null!=r?r:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){var e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){var r=e.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,e)}replace(t,e){var r=this.getNode(t);if(r){var i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(e,i)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function N(t){var{element:e,maskInputOptions:r,tagName:i,type:s,value:n,maskInputFn:o}=t,a=n||"",h=s&&B(s);return(r[i.toLowerCase()]||h&&r[h])&&(a=o?o(a,e):"*".repeat(a.length)),a}function B(t){return t.toLowerCase()}var T="__rrweb_original__";function j(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?B(e):null}function F(t,e){var r,i;try{i=new URL(t,null!=e?e:window.location.href)}catch(t){return null}var s=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==s?void 0:s[1])&&void 0!==r?r:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Y=/^(?:[a-z+]+:)?\/\//i,L=/^www\..*/i,D=/^(data:)([^,]*),(.*)/i;function U(t,e){return(t||"").replace(Z,(t,r,i,s,n,o)=>{var a,h=i||n||o,u=r||s||"";if(!h)return t;if(Y.test(h)||L.test(h))return"url("+u+h+u+")";if(D.test(h))return"url("+u+h+u+")";if("/"===h[0])return"url("+u+(((a=e).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+h)+u+")";var l=e.split("/"),c=h.split("/");for(var f of(l.pop(),c))"."!==f&&(".."===f?l.pop():l.push(f));return"url("+u+l.join("/")+u+")"})}var P,G,W=1,V=new RegExp("[^a-z0-9-_:]");function X(){return W++}var J=/^[^ \t\n\r\u000c]+/,z=/^[, \t\n\r\u000c]+/;var _=new WeakMap;function K(t,e){return e&&""!==e.trim()?Q(t,e):e}function H(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function Q(t,e){var r=_.get(t);if(r||(r=t.createElement("a"),_.set(t,r)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return r.setAttribute("href",e),r.href}function q(t,e,r,i){return i?"src"===r||"href"===r&&("use"!==e||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0]?K(t,i):"background"!==r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===r?function(t,e){if(""===e.trim())return e;var r=0;function i(t){var i,s=t.exec(e.substring(r));return s?(i=s[0],r+=i.length,i):""}for(var s=[];i(z),!(r>=e.length);){var n=i(J);if(","===n.slice(-1))n=K(t,n.substring(0,n.length-1)),s.push(n);else{var o="";n=K(t,n);for(var a=!1;;){var h=e.charAt(r);if(""===h){s.push((n+o).trim());break}if(a)")"===h&&(a=!1);else{if(","===h){r+=1,s.push((n+o).trim());break}"("===h&&(a=!0)}o+=h,r+=1}}}return s.join(", ")}(t,i):"style"===r?U(i,Q(t)):"object"===e&&"data"===r?K(t,i):i:K(t,i):i}function tt(t,e,r){return("video"===t||"audio"===t)&&"autoplay"===e}function et(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&et(k.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&et(k.parentNode(t),e,r)}function rt(t,e,r,i){var s;if(A(t)){if(s=t,!k.childNodes(s).length)return!1}else{if(null===k.parentElement(t))return!1;s=k.parentElement(t)}try{if("string"==typeof e){if(i){if(s.closest("."+e))return!0}else if(s.classList.contains(e))return!0}else if(et(s,e,i))return!0;if(r)if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}catch(t){}return!1}function it(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:h={},maskTextFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:v,newlyAddedElement:m=!1}=e,g=function(t,e){if(!e.hasNode(t))return;var r=e.getId(t);return 1===r?void 0:r}(r,i);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:p.Document,childNodes:[],compatMode:t.compatMode}:{type:p.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:p.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:g};case t.ELEMENT_NODE:return function(t,e){for(var r,{doc:i,blockClass:s,blockSelector:n,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:h,dataURLOptions:u={},inlineImages:l,recordCanvas:c,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:v}=e,m=function(t,e,r){try{if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}if(r)return t.matches(r)}catch(t){}return!1}(t,s,n),g=function(t){if(t instanceof HTMLFormElement)return"form";var e=B(t.tagName);return V.test(e)?"div":e}(t),w={},y=t.attributes.length,b=0;b<y;b++){var C=t.attributes[b];tt(g,C.name,C.value)||(w[C.name]=q(i,g,B(C.name),C.value))}if("link"===g&&o){var S=Array.from(i.styleSheets).find(e=>e.href===t.href),I=null;S&&(I=M(S)),I&&(delete w.rel,delete w.href,w._cssText=I)}if("style"===g&&t.sheet&&!(t.innerText||k.textContent(t)||"").trim().length){var A=M(t.sheet);A&&(w._cssText=A)}if("input"===g||"textarea"===g||"select"===g){var R=t.value,x=t.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&R?w.value=N({element:t,type:j(t),tagName:g,value:R,maskInputOptions:a,maskInputFn:h}):x&&(w.checked=x)}"option"===g&&(t.selected&&!a.select?w.selected=!0:delete w.selected);"dialog"===g&&t.open&&(w.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal");if("canvas"===g&&c)if("2d"===t.__context)(function(t){var e=t.getContext("2d");if(!e)return!0;for(var r=0;r<t.width;r+=50)for(var i=0;i<t.height;i+=50){var s=e.getImageData,n=T in s?s[T]:s;if(new Uint32Array(n.call(e,r,i,Math.min(50,t.width-r),Math.min(50,t.height-i)).data.buffer).some(t=>0!==t))return!1}return!0})(t)||(w.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){var O=t.toDataURL(u.type,u.quality),E=i.createElement("canvas");E.width=t.width,E.height=t.height,O!==E.toDataURL(u.type,u.quality)&&(w.rr_dataURL=O)}if("img"===g&&l){P||(P=i.createElement("canvas"),G=P.getContext("2d"));var F=t,Z=F.currentSrc||F.getAttribute("src")||"<unknown-src>",Y=F.crossOrigin,L=()=>{F.removeEventListener("load",L);try{P.width=F.naturalWidth,P.height=F.naturalHeight,G.drawImage(F,0,0),w.rr_dataURL=P.toDataURL(u.type,u.quality)}catch(t){if("anonymous"!==F.crossOrigin)return F.crossOrigin="anonymous",void(F.complete&&0!==F.naturalWidth?L():F.addEventListener("load",L));console.warn("Cannot inline img src="+Z+"! Error: "+t)}"anonymous"===F.crossOrigin&&(Y?w.crossOrigin=Y:F.removeAttribute("crossorigin"))};F.complete&&0!==F.naturalWidth?L():F.addEventListener("load",L)}if("audio"===g||"video"===g){var D=w;D.rr_mediaState=t.paused?"paused":"played",D.rr_mediaCurrentTime=t.currentTime,D.rr_mediaPlaybackRate=t.playbackRate,D.rr_mediaMuted=t.muted,D.rr_mediaLoop=t.loop,D.rr_mediaVolume=t.volume}d||(t.scrollLeft&&(w.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(w.rr_scrollTop=t.scrollTop));if(m){var{width:U,height:W}=t.getBoundingClientRect();w={class:w.class,rr_width:U+"px",rr_height:W+"px"}}"iframe"!==g||f(w.src)||(t.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(g)&&(r=!0)}catch(t){}return{type:p.Element,tagName:g,attributes:w,childNodes:[],isSVG:H(t)||void 0,needBlock:m,rootId:v,isCustom:r}}(t,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:a,maskInputOptions:h,maskInputFn:l,dataURLOptions:c,inlineImages:f,recordCanvas:d,keepIframeSrcFn:v,newlyAddedElement:m,rootId:g});case t.TEXT_NODE:return function(t,e){var r,{needsMask:i,maskTextFn:s,rootId:n}=e,o=k.parentNode(t),a=o&&o.tagName,h=k.textContent(t),u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;if(u&&h){try{t.nextSibling||t.previousSibling||(null==(r=o.sheet)?void 0:r.cssRules)&&(h=M(o.sheet))}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: "+e,t)}h=U(h,Q(e.doc))}l&&(h="SCRIPT_PLACEHOLDER");!u&&!l&&h&&i&&(h=s?s(h,k.parentElement(t)):h.replace(/[\S]/g,"*"));return{type:p.Text,textContent:h||"",isStyle:u,rootId:n}}(t,{doc:r,needsMask:o,maskTextFn:u,rootId:g});case t.CDATA_SECTION_NODE:return{type:p.CDATA,textContent:"",rootId:g};case t.COMMENT_NODE:return{type:p.Comment,textContent:k.textContent(t)||"",rootId:g};default:return!1}}function st(t){return null==t?"":t.toLowerCase()}function nt(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:h=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:v={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:M=!1}=e,{needsMask:O}=e,{preserveWhiteSpace:E=!0}=e;O||(O=rt(t,o,a,void 0===O));var N,B=it(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:O,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,dataURLOptions:v,inlineImages:m,recordCanvas:g,keepIframeSrcFn:I,newlyAddedElement:M});if(!B)return console.warn(t,"not serialized"),null;N=i.hasNode(t)?i.getId(t):!function(t,e){if(e.comment&&t.type===p.Comment)return!0;if(t.type===p.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===F(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(st(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===st(t.attributes.name)||"icon"===st(t.attributes.rel)||"apple-touch-icon"===st(t.attributes.rel)||"shortcut icon"===st(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&st(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(st(t.attributes.property).match(/^(og|twitter|fb):/)||st(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===st(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===st(t.attributes.name)||"googlebot"===st(t.attributes.name)||"bingbot"===st(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===st(t.attributes.name)||"generator"===st(t.attributes.name)||"framework"===st(t.attributes.name)||"publisher"===st(t.attributes.name)||"progid"===st(t.attributes.name)||st(t.attributes.property).match(/^article:/)||st(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===st(t.attributes.name)||"yandex-verification"===st(t.attributes.name)||"csrf-token"===st(t.attributes.name)||"p:domain_verify"===st(t.attributes.name)||"verify-v1"===st(t.attributes.name)||"verification"===st(t.attributes.name)||"shopify-checkout-api-token"===st(t.attributes.name)))return!0}}return!1}(B,d)&&(E||B.type!==p.Text||B.isStyle||B.textContent.replace(/^\s+|\s+$/gm,"").length)?X():-2;var T=Object.assign(B,{id:N});if(i.add(t,T),-2===N)return null;w&&w(t);var j=!h;if(T.type===p.Element){j=j&&!T.needBlock,delete T.needBlock;var Z=k.shadowRoot(t);Z&&x(Z)&&(T.isShadowHost=!0)}if((T.type===p.Document||T.type===p.Element)&&j){d.headWhitespace&&T.type===p.Element&&"head"===T.tagName&&(E=!1);var Y={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:O,maskTextClass:o,maskTextSelector:a,skipChild:h,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:v,inlineImages:m,recordCanvas:g,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:I};if(T.type===p.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(var L of Array.from(k.childNodes(t))){var D=nt(L,Y);D&&T.childNodes.push(D)}var U=null;if(A(t)&&(U=k.shadowRoot(t)))for(var P of Array.from(k.childNodes(U))){var G=nt(P,Y);G&&(x(U)&&(G.isShadow=!0),T.childNodes.push(G))}}var W=k.parentNode(t);return W&&R(W)&&x(W)&&(T.isShadow=!0),T.type===p.Element&&"iframe"===T.tagName&&function(t,e,r){var i=t.contentWindow;if(i){var s,n=!1;try{s=i.document.readyState}catch(t){return}if("complete"===s){var o="about:blank";if(i.location.href!==o||t.src===o||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}else{var a=setTimeout(()=>{n||(e(),n=!0)},r);t.addEventListener("load",()=>{clearTimeout(a),n=!0,e()})}}}(t,()=>{var e=t.contentDocument;if(e&&y){var r=nt(e,{doc:e,mirror:i,blockClass:s,blockSelector:n,needsMask:O,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:v,inlineImages:m,recordCanvas:g,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:I});r&&y(t,r)}},b),T.type===p.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===F(T.attributes.href))&&function(t,e,r){var i,s=!1;try{i=t.sheet}catch(t){return}if(!i){var n=setTimeout(()=>{s||(e(),s=!0)},r);t.addEventListener("load",()=>{clearTimeout(n),s=!0,e()})}}(t,()=>{if(C){var e=nt(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:O,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:d,dataURLOptions:v,inlineImages:m,recordCanvas:g,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:I});e&&C(t,e)}},S),T}function ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function at(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var ht={exports:{}},ut=String,lt=function(){return{isColorSupported:!1,reset:ut,bold:ut,dim:ut,italic:ut,underline:ut,inverse:ut,hidden:ut,strikethrough:ut,black:ut,red:ut,green:ut,yellow:ut,blue:ut,magenta:ut,cyan:ut,white:ut,gray:ut,bgBlack:ut,bgRed:ut,bgGreen:ut,bgYellow:ut,bgBlue:ut,bgMagenta:ut,bgCyan:ut,bgWhite:ut}};ht.exports=lt(),ht.exports.createColors=lt;var ct=ht.exports,ft=at(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),dt=ct,vt=ft,pt=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=dt.isColorSupported),vt&&t&&(e=vt(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=dt.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},mt=pt;pt.default=pt;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var wt={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var yt=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return wt[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=wt[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},bt=yt;yt.default=yt;var Ct=bt;function St(t,e){new Ct(e).stringify(t)}var It=St;St.default=St;var{isClean:kt,my:At}=gt,Rt=mt,xt=bt,Mt=It;function Ot(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>Ot(t,r)):("object"===n&&null!==s&&(s=Ot(s)),r[i]=s)}return r}var Et=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[kt]=!1,this[At]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=Ot(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new Rt(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[kt]){this[kt]=!1;for(var t=this;t=t.parent;)t[kt]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new xt).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=Mt),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},Nt=Et;Et.default=Et;var Bt=Nt,Tt=class extends Bt{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=i({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},jt=Tt;Tt.default=Tt;var Ft={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:Zt,SourceMapGenerator:Yt}=ft,{existsSync:Lt,readFileSync:Dt}=ft,{dirname:Ut,join:Pt}=ft;var Gt=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ut(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Zt(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Ut(t),Lt(t))return this.mapFile=t,Dt(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof Zt)return Yt.fromSourceMap(e).toString();if(e instanceof Yt)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=Pt(Ut(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Wt=Gt;Gt.default=Gt;var{SourceMapConsumer:Vt,SourceMapGenerator:Xt}=ft,{fileURLToPath:Jt,pathToFileURL:zt}=ft,{isAbsolute:_t,resolve:Kt}=ft,{nanoid:Ht}=Ft,Qt=ft,$t=mt,qt=Wt,te=Symbol("fromOffsetCache"),ee=Boolean(Vt&&Xt),re=Boolean(Kt&&_t),ie=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!re||/^\w+:\/\//.test(e.from)||_t(e.from)?this.file=e.from:this.file=Kt(e.from)),re&&ee){var r=new qt(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Ht(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new $t(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new $t(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(zt&&(s.input.url=zt(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[te])e=this[te];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[te]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Kt(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=_t(a.source)?zt(a.source):new URL(a.source,this.map.consumer().sourceRoot||zt(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Jt)throw new Error("file: protocol is not available in this PostCSS build");h.file=Jt(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=i({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},se=ie;ie.default=ie,Qt&&Qt.registerInput&&Qt.registerInput(ie);var{SourceMapConsumer:ne,SourceMapGenerator:oe}=ft,{dirname:ae,relative:he,resolve:ue,sep:le}=ft,{pathToFileURL:ce}=ft,fe=se,de=Boolean(ne&&oe),ve=Boolean(ae&&ue&&he&&le),pe=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||ae(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new ne(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ve&&de&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=oe.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new oe({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new oe({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?ae(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ae(ue(r,this.mapOpts.annotation)));var i=he(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new fe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(ce){var r=ce(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===le&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},me=Nt,ge=class extends me{constructor(t){super(t),this.type="comment"}},we=ge;ge.default=ge;var ye,be,Ce,Se,{isClean:Ie,my:ke}=gt,Ae=jt,Re=we,xe=Nt;function Me(t){return t.map(t=>(t.nodes&&(t.nodes=Me(t.nodes)),delete t.source,t))}function Oe(t){if(t[Ie]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)Oe(e)}var Ee=class t extends xe{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=Me(ye(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ae(e)]}else if(e.selector)e=[new be(e)];else if(e.name)e=[new Ce(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Re(e)]}var n=e.map(e=>(e[ke]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ie]&&Oe(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}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]}};Ee.registerParse=t=>{ye=t},Ee.registerRule=t=>{be=t},Ee.registerAtRule=t=>{Ce=t},Ee.registerRoot=t=>{Se=t};var Ne=Ee;Ee.default=Ee,Ee.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Ce.prototype):"rule"===t.type?Object.setPrototypeOf(t,be.prototype):"decl"===t.type?Object.setPrototypeOf(t,Ae.prototype):"comment"===t.type?Object.setPrototypeOf(t,Re.prototype):"root"===t.type&&Object.setPrototypeOf(t,Se.prototype),t[ke]=!0,t.nodes&&t.nodes.forEach(t=>{Ee.rebuild(t)})};var Be,Te,je=Ne,Fe=class extends je{constructor(t){super(i({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new Be(new Te,this,t).stringify()}};Fe.registerLazyResult=t=>{Be=t},Fe.registerProcessor=t=>{Te=t};var Ze=Fe;Fe.default=Fe;var Ye={},Le=function(t){Ye[t]||(Ye[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},De=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Ue=De;De.default=De;var Pe=Ue,Ge=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new Pe(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},We=Ge;Ge.default=Ge;var Ve="'".charCodeAt(0),Xe='"'.charCodeAt(0),Je="\\".charCodeAt(0),ze="/".charCodeAt(0),_e="\n".charCodeAt(0),Ke=" ".charCodeAt(0),He="\f".charCodeAt(0),Qe="\t".charCodeAt(0),$e="\r".charCodeAt(0),qe="[".charCodeAt(0),tr="]".charCodeAt(0),er="(".charCodeAt(0),rr=")".charCodeAt(0),ir="{".charCodeAt(0),sr="}".charCodeAt(0),nr=";".charCodeAt(0),or="*".charCodeAt(0),ar=":".charCodeAt(0),hr="@".charCodeAt(0),ur=/[\t\n\f\r "#'()/;[\\\]{}]/g,lr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cr=/.[\r\n"'(/\\]/,fr=/[\da-f]/i,dr=Ne,vr=class extends dr{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},pr=vr;vr.default=vr,dr.registerAtRule(vr);var mr,gr,wr=Ne,yr=class extends wr{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new mr(new gr,this,t).stringify()}};yr.registerLazyResult=t=>{mr=t},yr.registerProcessor=t=>{gr=t};var br=yr;yr.default=yr,wr.registerRoot(yr);var Cr={comma:t=>Cr.split(t,[","],!0),space:t=>Cr.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},Sr=Cr;Cr.default=Cr;var Ir=Ne,kr=Sr,Ar=class extends Ir{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return kr.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},Rr=Ar;Ar.default=Ar,Ir.registerRule(Ar);var xr=jt,Mr=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case _e:case Ke:case Qe:case $e:case He:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Ke||r===_e||r===Qe||r===$e||r===He);c=["space",f.slice(p,i)],p=i-1;break;case qe:case tr:case ir:case sr:case ar:case nr:case rr:var y=String.fromCharCode(r);c=[y,y,p];break;case er:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==Ve&&l!==Xe&&l!==Ke&&l!==_e&&l!==Qe&&l!==He&&l!==$e){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Je;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||cr.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case Ve:case Xe:s=r===Ve?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Je;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case hr:ur.lastIndex=p+1,ur.test(f),i=0===ur.lastIndex?f.length-1:ur.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Je:for(i=p,o=!0;f.charCodeAt(i+1)===Je;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==ze&&r!==Ke&&r!==_e&&r!==Qe&&r!==$e&&r!==He&&(i+=1,fr.test(f.charAt(i)))){for(;fr.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Ke&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===ze&&f.charCodeAt(p+1)===or?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(lr.lastIndex=p+1,lr.test(f),i=0===lr.lastIndex?f.length-1:lr.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},Or=we,Er=pr,Nr=br,Br=Rr,Tr={empty:!0,space:!0};var jr=Ne,Fr=class{constructor(t){this.input=t,this.root=new Nr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new Er;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new Or;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=Mr(this.input)}decl(t,e){var r=new xr;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new Br;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",Tr[a]||Tr[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new Br;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Zr=se;function Yr(t,e){var r=new Zr(t,e),i=new Fr(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var Lr=Yr;Yr.default=Yr,jr.registerParse(Yr);var{isClean:Dr,my:Ur}=gt,Pr=pe,Gr=It,Wr=Ne,Vr=Ze,Xr=Le,Jr=We,zr=Lr,_r=br,Kr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Hr={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},Qr={Once:!0,postcssPlugin:!0,prepare:!0};function $r(t){return"object"==typeof t&&"function"==typeof t.then}function qr(t){var e=!1,r=Kr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ti(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:qr(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function ei(t){return t[Dr]=!1,t.nodes&&t.nodes.forEach(t=>ei(t)),t}var ri={},ii=class t{constructor(e,r,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof Jr)n=ei(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{var o=zr;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(r,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Ur]&&Wr.rebuild(n)}else n=ei(r);this.result=new Jr(e,n,s),this.helpers=i({},ri,{postcss:ri,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?i({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Hr[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Qr[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return r(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if($r(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[Dr];){s[Dr]=!0;for(var n=[ti(s)];n.length>0;){var o=t.visitTick(n);if($r(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return $r(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(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();var t=this.result.opts,e=Gr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new Pr(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if($r(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[Dr];)e[Dr]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Xr("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if($r(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[Dr])return o[Dr]=!0,void t.push(ti(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[Dr]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[Dr]=!0;var e=qr(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[Dr]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};ii.registerPostcss=t=>{ri=t};var si=ii;ii.default=ii,_r.registerLazyResult(ii),Vr.registerLazyResult(ii);var ni=pe,oi=It,ai=Le,hi=Lr,ui=We,li=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=oi;this.result=new ui(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new ni(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||ai("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=hi;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},ci=li;li.default=li;var fi=ci,di=si,vi=Ze,pi=br,mi=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new di(this,t,e):new fi(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},gi=mi;mi.default=mi,pi.registerProcessor(mi),vi.registerProcessor(mi);var wi=jt,yi=Wt,bi=we,Ci=pr,Si=se,Ii=br,ki=Rr;function Ai(t,e){if(Array.isArray(t))return t.map(t=>Ai(t));var{inputs:r}=t,n=s(t,o);if(r)for(var h of(e=[],r)){var u=i({},h,{__proto__:Si.prototype});u.map&&(u.map=i({},u.map,{__proto__:yi.prototype})),e.push(u)}if(n.nodes&&(n.nodes=t.nodes.map(t=>Ai(t,e))),n.source){var l=n.source,{inputId:c}=l,f=s(l,a);n.source=f,null!=c&&(n.source.input=e[c])}if("root"===n.type)return new Ii(n);if("decl"===n.type)return new wi(n);if("rule"===n.type)return new ki(n);if("comment"===n.type)return new bi(n);if("atrule"===n.type)return new Ci(n);throw new Error("Unknown node type: "+t.type)}var Ri=Ai;Ai.default=Ai;var xi=mt,Mi=jt,Oi=si,Ei=Ne,Ni=gi,Bi=It,Ti=Ri,ji=Ze,Fi=Ue,Zi=we,Yi=pr,Li=We,Di=se,Ui=Lr,Pi=Sr,Gi=Rr,Wi=br,Vi=Nt;function Xi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Ni(e)}Xi.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new Ni).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Xi([s(r)]).process(t,e)},s},Xi.stringify=Bi,Xi.parse=Ui,Xi.fromJSON=Ti,Xi.list=Pi,Xi.comment=t=>new Zi(t),Xi.atRule=t=>new Yi(t),Xi.decl=t=>new Mi(t),Xi.rule=t=>new Gi(t),Xi.root=t=>new Wi(t),Xi.document=t=>new ji(t),Xi.CssSyntaxError=xi,Xi.Declaration=Mi,Xi.Container=Ei,Xi.Processor=Ni,Xi.Document=ji,Xi.Comment=Zi,Xi.Warning=Fi,Xi.AtRule=Yi,Xi.Result=Li,Xi.Input=Di,Xi.Rule=Gi,Xi.Root=Wi,Xi.Node=Vi,Oi.registerPostcss(Xi);var Ji=Xi;Xi.default=Xi;var zi=ot(Ji);zi.stringify,zi.fromJSON,zi.plugin,zi.parse,zi.list,zi.document,zi.comment,zi.atRule,zi.rule,zi.decl,zi.root,zi.CssSyntaxError,zi.Declaration,zi.Container,zi.Processor,zi.Document,zi.Comment,zi.Warning,zi.AtRule,zi.Result,zi.Input,zi.Rule,zi.Root,zi.Node;var _i=Object.defineProperty,Ki=(t,e,r)=>((t,e,r)=>e in t?_i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function Hi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qi(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var $i={exports:{}},qi=String,ts=function(){return{isColorSupported:!1,reset:qi,bold:qi,dim:qi,italic:qi,underline:qi,inverse:qi,hidden:qi,strikethrough:qi,black:qi,red:qi,green:qi,yellow:qi,blue:qi,magenta:qi,cyan:qi,white:qi,gray:qi,bgBlack:qi,bgRed:qi,bgGreen:qi,bgYellow:qi,bgBlue:qi,bgMagenta:qi,bgCyan:qi,bgWhite:qi}};$i.exports=ts(),$i.exports.createColors=ts;var es=$i.exports,rs=Qi(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),is=es,ss=rs,ns=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=is.isColorSupported),ss&&t&&(e=ss(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=is.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},os=ns;ns.default=ns;var as={};as.isClean=Symbol("isClean"),as.my=Symbol("my");var hs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var us=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return hs[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=hs[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},ls=us;us.default=us;var cs=ls;function fs(t,e){new cs(e).stringify(t)}var ds=fs;fs.default=fs;var{isClean:vs,my:ps}=as,ms=os,gs=ls,ws=ds;function ys(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>ys(t,r)):("object"===n&&null!==s&&(s=ys(s)),r[i]=s)}return r}var bs=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[vs]=!1,this[ps]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=ys(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new ms(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[vs]){this[vs]=!1;for(var t=this;t=t.parent;)t[vs]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new gs).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=ws),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},Cs=bs;bs.default=bs;var Ss=Cs,Is=class extends Ss{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=i({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},ks=Is;Is.default=Is;var As={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:Rs,SourceMapGenerator:xs}=rs,{existsSync:Ms,readFileSync:Os}=rs,{dirname:Es,join:Ns}=rs;var Bs=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Es(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Rs(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Es(t),Ms(t))return this.mapFile=t,Os(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof Rs)return xs.fromSourceMap(e).toString();if(e instanceof xs)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=Ns(Es(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Ts=Bs;Bs.default=Bs;var{SourceMapConsumer:js,SourceMapGenerator:Fs}=rs,{fileURLToPath:Zs,pathToFileURL:Ys}=rs,{isAbsolute:Ls,resolve:Ds}=rs,{nanoid:Us}=As,Ps=rs,Gs=os,Ws=Ts,Vs=Symbol("fromOffsetCache"),Xs=Boolean(js&&Fs),Js=Boolean(Ds&&Ls),zs=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Js||/^\w+:\/\//.test(e.from)||Ls(e.from)?this.file=e.from:this.file=Ds(e.from)),Js&&Xs){var r=new Ws(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Us(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Gs(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Gs(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Ys&&(s.input.url=Ys(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Vs])e=this[Vs];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Vs]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Ds(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=Ls(a.source)?Ys(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ys(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Zs)throw new Error("file: protocol is not available in this PostCSS build");h.file=Zs(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=i({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},_s=zs;zs.default=zs,Ps&&Ps.registerInput&&Ps.registerInput(zs);var{SourceMapConsumer:Ks,SourceMapGenerator:Hs}=rs,{dirname:Qs,relative:$s,resolve:qs,sep:tn}=rs,{pathToFileURL:en}=rs,rn=_s,sn=Boolean(Ks&&Hs),nn=Boolean(Qs&&qs&&$s&&tn),on=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Qs(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Ks(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),nn&&sn&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Hs.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Hs({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Hs({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Qs(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Qs(qs(r,this.mapOpts.annotation)));var i=$s(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new rn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(en){var r=en(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===tn&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},an=Cs,hn=class extends an{constructor(t){super(t),this.type="comment"}},un=hn;hn.default=hn;var ln,cn,fn,dn,{isClean:vn,my:pn}=as,mn=ks,gn=un,wn=Cs;function yn(t){return t.map(t=>(t.nodes&&(t.nodes=yn(t.nodes)),delete t.source,t))}function bn(t){if(t[vn]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)bn(e)}var Cn=class t extends wn{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=yn(ln(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new mn(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new fn(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new gn(e)]}var n=e.map(e=>(e[pn]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[vn]&&bn(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}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]}};Cn.registerParse=t=>{ln=t},Cn.registerRule=t=>{cn=t},Cn.registerAtRule=t=>{fn=t},Cn.registerRoot=t=>{dn=t};var Sn=Cn;Cn.default=Cn,Cn.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,fn.prototype):"rule"===t.type?Object.setPrototypeOf(t,cn.prototype):"decl"===t.type?Object.setPrototypeOf(t,mn.prototype):"comment"===t.type?Object.setPrototypeOf(t,gn.prototype):"root"===t.type&&Object.setPrototypeOf(t,dn.prototype),t[pn]=!0,t.nodes&&t.nodes.forEach(t=>{Cn.rebuild(t)})};var In,kn,An=Sn,Rn=class extends An{constructor(t){super(i({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new In(new kn,this,t).stringify()}};Rn.registerLazyResult=t=>{In=t},Rn.registerProcessor=t=>{kn=t};var xn=Rn;Rn.default=Rn;var Mn={},On=function(t){Mn[t]||(Mn[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},En=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Nn=En;En.default=En;var Bn=Nn,Tn=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new Bn(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},jn=Tn;Tn.default=Tn;var Fn="'".charCodeAt(0),Zn='"'.charCodeAt(0),Yn="\\".charCodeAt(0),Ln="/".charCodeAt(0),Dn="\n".charCodeAt(0),Un=" ".charCodeAt(0),Pn="\f".charCodeAt(0),Gn="\t".charCodeAt(0),Wn="\r".charCodeAt(0),Vn="[".charCodeAt(0),Xn="]".charCodeAt(0),Jn="(".charCodeAt(0),zn=")".charCodeAt(0),_n="{".charCodeAt(0),Kn="}".charCodeAt(0),Hn=";".charCodeAt(0),Qn="*".charCodeAt(0),$n=":".charCodeAt(0),qn="@".charCodeAt(0),to=/[\t\n\f\r "#'()/;[\\\]{}]/g,eo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ro=/.[\r\n"'(/\\]/,io=/[\da-f]/i,so=Sn,no=class extends so{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},oo=no;no.default=no,so.registerAtRule(no);var ao,ho,uo=Sn,lo=class extends uo{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new ao(new ho,this,t).stringify()}};lo.registerLazyResult=t=>{ao=t},lo.registerProcessor=t=>{ho=t};var co=lo;lo.default=lo,uo.registerRoot(lo);var fo={comma:t=>fo.split(t,[","],!0),space:t=>fo.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},vo=fo;fo.default=fo;var po=Sn,mo=vo,go=class extends po{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return mo.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},wo=go;go.default=go,po.registerRule(go);var yo=ks,bo=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case Dn:case Un:case Gn:case Wn:case Pn:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Un||r===Dn||r===Gn||r===Wn||r===Pn);c=["space",f.slice(p,i)],p=i-1;break;case Vn:case Xn:case _n:case Kn:case $n:case Hn:case zn:var y=String.fromCharCode(r);c=[y,y,p];break;case Jn:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==Fn&&l!==Zn&&l!==Un&&l!==Dn&&l!==Gn&&l!==Pn&&l!==Wn){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Yn;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||ro.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case Fn:case Zn:s=r===Fn?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Yn;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case qn:to.lastIndex=p+1,to.test(f),i=0===to.lastIndex?f.length-1:to.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Yn:for(i=p,o=!0;f.charCodeAt(i+1)===Yn;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Ln&&r!==Un&&r!==Dn&&r!==Gn&&r!==Wn&&r!==Pn&&(i+=1,io.test(f.charAt(i)))){for(;io.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Un&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Ln&&f.charCodeAt(p+1)===Qn?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(eo.lastIndex=p+1,eo.test(f),i=0===eo.lastIndex?f.length-1:eo.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},Co=un,So=oo,Io=co,ko=wo,Ao={empty:!0,space:!0};var Ro=Sn,xo=class{constructor(t){this.input=t,this.root=new Io,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new So;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new Co;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=bo(this.input)}decl(t,e){var r=new yo;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new ko;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",Ao[a]||Ao[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new ko;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Mo=_s;function Oo(t,e){var r=new Mo(t,e),i=new xo(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var Eo=Oo;Oo.default=Oo,Ro.registerParse(Oo);var{isClean:No,my:Bo}=as,To=on,jo=ds,Fo=Sn,Zo=xn,Yo=On,Lo=jn,Do=Eo,Uo=co,Po={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Go={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},Wo={Once:!0,postcssPlugin:!0,prepare:!0};function Vo(t){return"object"==typeof t&&"function"==typeof t.then}function Xo(t){var e=!1,r=Po[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Jo(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Xo(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function zo(t){return t[No]=!1,t.nodes&&t.nodes.forEach(t=>zo(t)),t}var _o={},Ko=class t{constructor(e,r,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof Lo)n=zo(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{var o=Do;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(r,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Bo]&&Fo.rebuild(n)}else n=zo(r);this.result=new Lo(e,n,s),this.helpers=i({},_o,{postcss:_o,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?i({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Go[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Wo[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return r(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Vo(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[No];){s[No]=!0;for(var n=[Jo(s)];n.length>0;){var o=t.visitTick(n);if(Vo(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Vo(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(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();var t=this.result.opts,e=jo;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new To(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Vo(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[No];)e[No]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Yo("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Vo(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[No])return o[No]=!0,void t.push(Jo(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[No]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[No]=!0;var e=Xo(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[No]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};Ko.registerPostcss=t=>{_o=t};var Ho=Ko;Ko.default=Ko,Uo.registerLazyResult(Ko),Zo.registerLazyResult(Ko);var Qo=on,$o=ds,qo=On,ta=Eo,ea=jn,ra=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=$o;this.result=new ea(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Qo(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||qo("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=ta;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},ia=ra;ra.default=ra;var sa=ia,na=Ho,oa=xn,aa=co,ha=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new na(this,t,e):new sa(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},ua=ha;ha.default=ha,aa.registerProcessor(ha),oa.registerProcessor(ha);var la=ks,ca=Ts,fa=un,da=oo,va=_s,pa=co,ma=wo;function ga(t,e){if(Array.isArray(t))return t.map(t=>ga(t));var{inputs:r}=t,n=s(t,h);if(r)for(var o of(e=[],r)){var a=i({},o,{__proto__:va.prototype});a.map&&(a.map=i({},a.map,{__proto__:ca.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>ga(t,e))),n.source){var l=n.source,{inputId:c}=l,f=s(l,u);n.source=f,null!=c&&(n.source.input=e[c])}if("root"===n.type)return new pa(n);if("decl"===n.type)return new la(n);if("rule"===n.type)return new ma(n);if("comment"===n.type)return new fa(n);if("atrule"===n.type)return new da(n);throw new Error("Unknown node type: "+t.type)}var wa=ga;ga.default=ga;var ya=os,ba=ks,Ca=Ho,Sa=Sn,Ia=ua,ka=ds,Aa=wa,Ra=xn,xa=Nn,Ma=un,Oa=oo,Ea=jn,Na=_s,Ba=Eo,Ta=vo,ja=wo,Fa=co,Za=Cs;function Ya(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Ia(e)}Ya.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new Ia).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Ya([s(r)]).process(t,e)},s},Ya.stringify=ka,Ya.parse=Ba,Ya.fromJSON=Aa,Ya.list=Ta,Ya.comment=t=>new Ma(t),Ya.atRule=t=>new Oa(t),Ya.decl=t=>new ba(t),Ya.rule=t=>new ja(t),Ya.root=t=>new Fa(t),Ya.document=t=>new Ra(t),Ya.CssSyntaxError=ya,Ya.Declaration=ba,Ya.Container=Sa,Ya.Processor=Ia,Ya.Document=Ra,Ya.Comment=Ma,Ya.Warning=xa,Ya.AtRule=Oa,Ya.Result=Ea,Ya.Input=Na,Ya.Rule=ja,Ya.Root=Fa,Ya.Node=Za,Ca.registerPostcss(Ya);var La=Ya;Ya.default=Ya;var Da=Hi(La);Da.stringify,Da.fromJSON,Da.plugin,Da.parse,Da.list,Da.document,Da.comment,Da.atRule,Da.rule,Da.decl,Da.root,Da.CssSyntaxError,Da.Declaration,Da.Container,Da.Processor,Da.Document,Da.Comment,Da.Warning,Da.AtRule,Da.Result,Da.Input,Da.Rule,Da.Root,Da.Node;let Ua=class t{constructor(){Ki(this,"parentElement",null),Ki(this,"parentNode",null),Ki(this,"ownerDocument"),Ki(this,"firstChild",null),Ki(this,"lastChild",null),Ki(this,"previousSibling",null),Ki(this,"nextSibling",null),Ki(this,"ELEMENT_NODE",1),Ki(this,"TEXT_NODE",3),Ki(this,"nodeType"),Ki(this,"nodeName"),Ki(this,"RRNodeType")}get childNodes(){for(var t=[],e=this.firstChild;e;)t.push(e),e=e.nextSibling;return t}contains(e){if(!(e instanceof t))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var Pa={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ga={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wa={};function Va(t){if(Wa[t])return Wa[t];var e=globalThis[t],r=e.prototype,i=t in Pa?Pa[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Ga?Ga[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return Wa[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?Wa[t]=u:r}catch(t){return r}}var Xa={};function Ja(t,e,r){var i,s=t+"."+String(r);if(Xa[s])return Xa[s].call(e);var n=Va(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Xa[s]=o,o.call(e)):e[r]}var za={};function _a(t,e,r){var i=t+"."+String(r);if(za[i])return za[i].bind(e);var s=Va(t)[r];return"function"!=typeof s?e[r]:(za[i]=s,s.bind(e))}function Ka(){return Va("MutationObserver").constructor}var Ha={childNodes:function(t){return Ja("Node",t,"childNodes")},parentNode:function(t){return Ja("Node",t,"parentNode")},parentElement:function(t){return Ja("Node",t,"parentElement")},textContent:function(t){return Ja("Node",t,"textContent")},contains:function(t,e){return _a("Node",t,"contains")(e)},getRootNode:function(t){return _a("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Ja("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Ja("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Ja("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Ja("Element",t,"querySelectorAll")(e)},mutationObserver:Ka};function Qa(t,e,r){void 0===r&&(r=document);var i={capture:!0,passive:!0};return r.addEventListener(t,e,i),()=>r.removeEventListener(t,e,i)}var $a="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",qa={map:{},getId:()=>(console.error($a),-1),getNode:()=>(console.error($a),null),removeNodeFromMap(){console.error($a)},has:()=>(console.error($a),!1),reset(){console.error($a)}};function th(t,e,r){void 0===r&&(r={});var i=null,s=0;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var h=Date.now();s||!1!==r.leading||(s=h);var u=e-(h-s),l=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(l,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(l,o)},u))}}function eh(t,e,r,i,s){void 0===s&&(s=window);var n=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,i?r:{set(t){setTimeout(()=>{r.set.call(this,t)},0),n&&n.set&&n.set.call(this,t)}}),()=>eh(t,e,n||{},!0)}function rh(t,e,r){try{if(!(e in t))return()=>{};var i=t[e],s=r(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),t[e]=s,()=>{t[e]=i}}catch(t){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(qa=new Proxy(qa,{get:(t,e,r)=>("map"===e&&console.error($a),Reflect.get(t,e,r))}));var ih=Date.now;function sh(t){var e,r,i,s,n=t.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(e=Ha.parentElement(n.body))?void 0:e.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(i=Ha.parentElement(n.body))?void 0:i.scrollTop)||(null==(s=null==n?void 0:n.body)?void 0:s.scrollTop)||0}}function nh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ah(t){return t?t.nodeType===t.ELEMENT_NODE?t:Ha.parentElement(t):null}function hh(t,e,r,i){if(!t)return!1;var s=ah(t);if(!s)return!1;try{if("string"==typeof e){if(s.classList.contains(e))return!0;if(i&&null!==s.closest("."+e))return!0}else if(et(s,e,i))return!0}catch(t){}if(r){if(s.matches(r))return!0;if(i&&null!==s.closest(r))return!0}return!1}function uh(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||-2===e.getId(t)}function lh(t,e){if(R(t))return!1;var r=e.getId(t);if(!e.has(r))return!0;var i=Ha.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||lh(i,e))}function ch(t){return Boolean(t.changedTouches)}function fh(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function dh(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function vh(t){return!!t&&(t instanceof Ua&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Ha.shadowRoot(t)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ih=()=>(new Date).getTime());let ph=class{constructor(){f(this,"id",1),f(this,"styleIDMap",new WeakMap),f(this,"idStyleMap",new Map)}getId(t){var e;return null!==(e=this.styleIDMap.get(t))&&void 0!==e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){return this.has(t)?this.getId(t):(r=void 0===e?this.id++:e,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r);var r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function mh(t){var e,r=null;return"getRootNode"in t&&(null==(e=Ha.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Ha.host(Ha.getRootNode(t))&&(r=Ha.host(Ha.getRootNode(t))),r}function gh(t){var e=t.ownerDocument;if(!e)return!1;var r=function(t){for(var e,r=t;e=mh(r);)r=e;return r}(t);return Ha.contains(e,r)}function wh(t){var e=t.ownerDocument;return!!e&&(Ha.contains(e,t)||gh(t))}var yh=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(yh||{}),bh=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(bh||{}),Ch=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Ch||{}),Sh=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Sh||{}),Ih=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Ih||{}),kh=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(kh||{});function Ah(t){return"__ln"in t}class Rh{constructor(){f(this,"length",0),f(this,"head",null),f(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");for(var e=this.head,r=0;r<t;r++)e=(null==e?void 0:e.next)||null;return e}addNode(t){var e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Ah(t.previousSibling)){var r=t.previousSibling.__ln.next;e.next=r,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,r&&(r.previous=e)}else if(t.nextSibling&&Ah(t.nextSibling)&&t.nextSibling.__ln.previous){var i=t.nextSibling.__ln.previous;e.previous=i,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,i&&(i.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){var e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}var xh,Mh=(t,e)=>t+"@"+e;class Oh{constructor(){f(this,"frozen",!1),f(this,"locked",!1),f(this,"texts",[]),f(this,"attributes",[]),f(this,"attributeMap",new WeakMap),f(this,"removes",[]),f(this,"mapRemoves",[]),f(this,"movedMap",{}),f(this,"addedSet",new Set),f(this,"movedSet",new Set),f(this,"droppedSet",new Set),f(this,"mutationCb"),f(this,"blockClass"),f(this,"blockSelector"),f(this,"maskTextClass"),f(this,"maskTextSelector"),f(this,"inlineStylesheet"),f(this,"maskInputOptions"),f(this,"maskTextFn"),f(this,"maskInputFn"),f(this,"keepIframeSrcFn"),f(this,"recordCanvas"),f(this,"inlineImages"),f(this,"slimDOMOptions"),f(this,"dataURLOptions"),f(this,"doc"),f(this,"mirror"),f(this,"iframeManager"),f(this,"stylesheetManager"),f(this,"shadowDomManager"),f(this,"canvasManager"),f(this,"processedNodeManager"),f(this,"unattachedDoc"),f(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),f(this,"emit",()=>{if(!this.frozen&&!this.locked){for(var t=[],e=new Set,r=new Rh,i=t=>{for(var e=t,r=-2;-2===r;)r=(e=e&&e.nextSibling)&&this.mirror.getId(e);return r},s=s=>{var n=Ha.parentNode(s);if(n&&wh(s)&&"TEXTAREA"!==n.tagName){var o=R(n)?this.mirror.getId(mh(s)):this.mirror.getId(n),a=i(s);if(-1===o||-1===a)return r.addNode(s);var h=nt(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{fh(t,this.mirror)&&this.iframeManager.addIframe(t),dh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),vh(s)&&this.shadowDomManager.addShadowRoot(Ha.shadowRoot(s),this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});h&&(t.push({parentId:o,nextId:a,node:h}),e.add(h.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var n of this.movedSet)Nh(this.removes,n,this.mirror)&&!this.movedSet.has(Ha.parentNode(n))||s(n);for(var o of this.addedSet)Bh(this.droppedSet,o)||Nh(this.removes,o,this.mirror)?Bh(this.movedSet,o)?s(o):this.droppedSet.add(o):s(o);for(var a=null;r.length;){var h=null;if(a){var u=this.mirror.getId(Ha.parentNode(a.value)),l=i(a.value);-1!==u&&-1!==l&&(h=a)}if(!h)for(var c=r.tail;c;){var f=c;if(c=c.previous,f){var d=this.mirror.getId(Ha.parentNode(f.value));if(-1===i(f.value))continue;if(-1!==d){h=f;break}var v=f.value,p=Ha.parentNode(v);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var m=Ha.host(p);if(-1!==this.mirror.getId(m)){h=f;break}}}}if(!h){for(;r.head;)r.removeNode(r.head.value);break}a=h.previous,r.removeNode(h.value),s(h.value)}var g={texts:this.texts.map(t=>{var e=t.node,r=Ha.parentNode(e);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(e),value:t.value}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{var{attributes:e}=t;if("string"==typeof e.style){var r=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);r.length<e.style.length&&(r+i).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(g.texts.length||g.attributes.length||g.removes.length||g.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(g))}}),f(this,"genTextAreaValueMutation",t=>{var e=this.attributeMap.get(t);e||(e={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(e),this.attributeMap.set(t,e)),e.attributes.value=Array.from(Ha.childNodes(t),t=>Ha.textContent(t)||"").join("")}),f(this,"processMutation",t=>{if(!uh(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":var e=Ha.textContent(t.target);hh(t.target,this.blockClass,this.blockSelector,!1)||e===t.oldValue||this.texts.push({value:rt(t.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,ah(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break;case"attributes":var r=t.target,i=t.attributeName,s=t.target.getAttribute(i);if("value"===i){var n=j(r);s=N({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:n,value:s,maskInputFn:this.maskInputFn})}if(hh(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;var o=this.attributeMap.get(t.target);if("IFRAME"===r.tagName&&"src"===i&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;i="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===i&&"INPUT"===r.tagName&&"password"===(t.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!tt(r.tagName,i))if(o.attributes[i]=q(this.doc,B(r.tagName),B(i),s),"style"===i){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}var a=this.unattachedDoc.createElement("span");for(var h of(t.oldValue&&a.setAttribute("style",t.oldValue),Array.from(r.style))){var u=r.style.getPropertyValue(h),l=r.style.getPropertyPriority(h);u!==a.style.getPropertyValue(h)||l!==a.style.getPropertyPriority(h)?o.styleDiff[h]=""===l?u:[u,l]:o._unchangedStyles[h]=[u,l]}for(var c of Array.from(a.style))""===r.style.getPropertyValue(c)&&(o.styleDiff[c]=!1)}else"open"===i&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break;case"childList":if(hh(t.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void this.genTextAreaValueMutation(t.target);t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{var r=this.mirror.getId(e),i=R(t.target)?this.mirror.getId(Ha.host(t.target)):this.mirror.getId(t.target);hh(t.target,this.blockClass,this.blockSelector,!1)||uh(e,this.mirror,this.slimDOMOptions)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Eh(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===r||lh(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Mh(r,i)]?Eh(this.movedSet,e):this.removes.push({parentId:i,id:r,isShadow:!(!R(t.target)||!x(t.target))||void 0})),this.mapRemoves.push(e))})}}),f(this,"genAdds",(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(uh(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);var r=null;e&&this.mirror.hasNode(e)&&(r=this.mirror.getId(e)),r&&-1!==r&&(this.movedMap[Mh(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);hh(t,this.blockClass,this.blockSelector,!1)||(Ha.childNodes(t).forEach(t=>this.genAdds(t)),vh(t)&&Ha.childNodes(Ha.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Eh(t,e){t.delete(e),Ha.childNodes(e).forEach(e=>Eh(t,e))}function Nh(t,e,r){return 0!==t.length&&function(t,e,r){var i,s=Ha.parentNode(e),n=function(){var e=r.getId(s);if(t.some(t=>t.id===e))return{v:!0};s=Ha.parentNode(s)};for(;s;)if(i=n())return i.v;return!1}(t,e,r)}function Bh(t,e){return 0!==t.size&&Th(t,e)}function Th(t,e){var r=Ha.parentNode(e);return!!r&&(!!t.has(r)||Th(t,r))}var jh=t=>{if(!xh)return t;return function(){try{return t(...arguments)}catch(t){if(xh&&!0===xh(t))return;throw t}}},Fh=[];function Zh(t){try{if("composedPath"in t){var e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function Yh(t,e){var r=new Oh;Fh.push(r),r.init(t);var i=new(Ka())(jh(r.processMutations.bind(r)));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Lh(t){var{mouseInteractionCb:e,doc:r,mirror:s,blockClass:n,blockSelector:o,sampling:a}=t;if(!1===a.mouseInteraction)return()=>{};var h=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],l=null;return Object.keys(Ch).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==h[t]).forEach(t=>{var a=B(t),h=(t=>r=>{var a=Zh(r);if(!hh(a,n,o,!0)){var h=null,u=t;if("pointerType"in r){switch(r.pointerType){case"mouse":h=Sh.Mouse;break;case"touch":h=Sh.Touch;break;case"pen":h=Sh.Pen}h===Sh.Touch?Ch[t]===Ch.MouseDown?u="TouchStart":Ch[t]===Ch.MouseUp&&(u="TouchEnd"):Sh.Pen}else ch(r)&&(h=Sh.Touch);null!==h?(l=h,(u.startsWith("Touch")&&h===Sh.Touch||u.startsWith("Mouse")&&h===Sh.Mouse)&&(h=null)):Ch[t]===Ch.Click&&(h=l,l=null);var c=ch(r)?r.changedTouches[0]:r;if(c){var f=s.getId(a),{clientX:d,clientY:v}=c;jh(e)(i({type:Ch[u],id:f,x:d,y:v},null!==h&&{pointerType:h}))}}})(t);if(window.PointerEvent)switch(Ch[t]){case Ch.MouseDown:case Ch.MouseUp:a=a.replace("mouse","pointer");break;case Ch.TouchStart:case Ch.TouchEnd:return}u.push(Qa(a,h,r))}),jh(()=>{u.forEach(t=>t())})}function Dh(t){var{scrollCb:e,doc:r,mirror:i,blockClass:s,blockSelector:n,sampling:o}=t;return Qa("scroll",jh(th(jh(t=>{var o=Zh(t);if(o&&!hh(o,s,n,!0)){var a=i.getId(o);if(o===r&&r.defaultView){var h=sh(r.defaultView);e({id:a,x:h.left,y:h.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),r)}var Uh=["INPUT","TEXTAREA","SELECT"],Ph=new WeakMap;function Gh(t){return function(t,e){if(Jh("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Jh("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Jh("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Jh("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){var r=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(r)}else if(t.parentStyleSheet){var i=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(i)}return e}(t,[])}function Wh(t,e,r){var i,s;return t?(t.ownerNode?i=e.getId(t.ownerNode):s=r.getId(t),{styleId:s,id:i}):{}}function Vh(t,e){var r,i,s,{mirror:n,stylesheetManager:o}=t,a=null;a="#document"===e.nodeName?n.getId(e):n.getId(Ha.host(e));var h="#document"===e.nodeName?null==(r=e.defaultView)?void 0:r.Document:null==(s=null==(i=e.ownerDocument)?void 0:i.defaultView)?void 0:s.ShadowRoot,u=(null==h?void 0:h.prototype)?Object.getOwnPropertyDescriptor(null==h?void 0:h.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&h&&u?(Object.defineProperty(e,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var t;return null==(t=u.get)?void 0:t.call(this)},set(t){var e,r=null==(e=u.set)?void 0:e.call(this,t);if(null!==a&&-1!==a)try{o.adoptStyleSheets(t,a)}catch(t){}return r}}),jh(()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):()=>{}}function Xh(t,e){void 0===e&&(e={});var r,s=t.doc.defaultView;if(!s)return()=>{};!function(t,e){var{mutationCb:r,mousemoveCb:i,mouseInteractionCb:s,scrollCb:n,viewportResizeCb:o,inputCb:a,mediaInteractionCb:h,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:c,fontCb:f,selectionCb:d,customElementCb:v}=t;t.mutationCb=function(){e.mutation&&e.mutation(...arguments),r(...arguments)},t.mousemoveCb=function(){e.mousemove&&e.mousemove(...arguments),i(...arguments)},t.mouseInteractionCb=function(){e.mouseInteraction&&e.mouseInteraction(...arguments),s(...arguments)},t.scrollCb=function(){e.scroll&&e.scroll(...arguments),n(...arguments)},t.viewportResizeCb=function(){e.viewportResize&&e.viewportResize(...arguments),o(...arguments)},t.inputCb=function(){e.input&&e.input(...arguments),a(...arguments)},t.mediaInteractionCb=function(){e.mediaInteaction&&e.mediaInteaction(...arguments),h(...arguments)},t.styleSheetRuleCb=function(){e.styleSheetRule&&e.styleSheetRule(...arguments),u(...arguments)},t.styleDeclarationCb=function(){e.styleDeclaration&&e.styleDeclaration(...arguments),l(...arguments)},t.canvasMutationCb=function(){e.canvasMutation&&e.canvasMutation(...arguments),c(...arguments)},t.fontCb=function(){e.font&&e.font(...arguments),f(...arguments)},t.selectionCb=function(){e.selection&&e.selection(...arguments),d(...arguments)},t.customElementCb=function(){e.customElement&&e.customElement(...arguments),v(...arguments)}}(t,e),t.recordDOM&&(r=Yh(t,t.doc));var n=function(t){var{mousemoveCb:e,sampling:r,doc:i,mirror:s}=t;if(!1===r.mousemove)return()=>{};var n,o="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,h=[],u=th(jh(t=>{var r=Date.now()-n;e(h.map(t=>(t.timeOffset-=r,t)),t),h=[],n=null}),a),l=jh(th(jh(t=>{var e=Zh(t),{clientX:r,clientY:i}=ch(t)?t.changedTouches[0]:t;n||(n=ih()),h.push({x:r,y:i,id:s.getId(e),timeOffset:ih()-n}),u("undefined"!=typeof DragEvent&&t instanceof DragEvent?bh.Drag:t instanceof MouseEvent?bh.MouseMove:bh.TouchMove)}),o,{trailing:!1})),c=[Qa("mousemove",l,i),Qa("touchmove",l,i),Qa("drag",l,i)];return jh(()=>{c.forEach(t=>t())})}(t),o=Lh(t),a=Dh(t),h=function(t,e){var{viewportResizeCb:r}=t,{win:i}=e,s=-1,n=-1;return Qa("resize",jh(th(jh(()=>{var t=nh(),e=oh();s===t&&n===e||(r({width:Number(e),height:Number(t)}),s=t,n=e)}),200)),i)}(t,{win:s}),u=function(t){var{inputCb:e,doc:r,mirror:s,blockClass:n,blockSelector:o,ignoreClass:a,ignoreSelector:h,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:f}=t;function d(t){var e=Zh(t),i=t.isTrusted,s=e&&e.tagName;if(e&&"OPTION"===s&&(e=Ha.parentElement(e)),e&&s&&!(Uh.indexOf(s)<0)&&!hh(e,n,o,!0)&&!(e.classList.contains(a)||h&&e.matches(h))){var c=e.value,d=!1,p=j(e)||"";"radio"===p||"checkbox"===p?d=e.checked:(u[s.toLowerCase()]||u[p])&&(c=N({element:e,maskInputOptions:u,tagName:s,type:p,value:c,maskInputFn:l})),v(e,f?{text:c,isChecked:d,userTriggered:i}:{text:c,isChecked:d});var m=e.name;"radio"===p&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(t=>{if(t!==e){var r=t.value;v(t,f?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function v(t,r){var n=Ph.get(t);if(!n||n.text!==r.text||n.isChecked!==r.isChecked){Ph.set(t,r);var o=s.getId(t);jh(e)(i({},r,{id:o}))}}var p=("last"===c.input?["change"]:["input","change"]).map(t=>Qa(t,jh(d),r)),m=r.defaultView;if(!m)return()=>{p.forEach(t=>t())};var g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),w=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&p.push(...w.map(t=>eh(t[0],t[1],{set(){jh(d)({target:this,isTrusted:!1})}},!1,m))),jh(()=>{p.forEach(t=>t())})}(t),l=function(t){var{mediaInteractionCb:e,blockClass:r,blockSelector:i,mirror:s,sampling:n,doc:o}=t,a=jh(t=>th(jh(n=>{var o=Zh(n);if(o&&!hh(o,r,i,!0)){var{currentTime:a,volume:h,muted:u,playbackRate:l,loop:c}=o;e({type:t,id:s.getId(o),currentTime:a,volume:h,muted:u,playbackRate:l,loop:c})}}),n.media||500)),h=[Qa("play",a(kh.Play),o),Qa("pause",a(kh.Pause),o),Qa("seeked",a(kh.Seeked),o),Qa("volumechange",a(kh.VolumeChange),o),Qa("ratechange",a(kh.RateChange),o)];return jh(()=>{h.forEach(t=>t())})}(t),c=()=>{},f=()=>{},d=()=>{},v=()=>{};t.recordDOM&&(c=function(t,e){var{styleSheetRuleCb:r,mirror:i,stylesheetManager:s}=t,{win:n}=e;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};var o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:jh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Wh(e,i,s.styleMirror);return(h&&-1!==h||u&&-1!==u)&&r({id:h,styleId:u,adds:[{rule:o,index:a}]}),t.apply(e,n)})}),n.CSSStyleSheet.prototype.addRule=function(t,e,r){void 0===r&&(r=this.cssRules.length);var i=t+" { "+e+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[i,r])};var a,h,u=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Wh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,removes:[{index:o}]}),t.apply(e,n)})}),n.CSSStyleSheet.prototype.removeRule=function(t){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[t])},n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Wh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,replace:o}),t.apply(e,n)})})),n.CSSStyleSheet.prototype.replaceSync&&(h=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(h,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Wh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,replaceSync:o}),t.apply(e,n)})}));var l={};zh("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(zh("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),zh("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),zh("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(l).forEach(t=>{var[e,n]=t;c[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(c[e].insertRule,{apply:jh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Wh(e.parentStyleSheet,i,s.styleMirror);return(h&&-1!==h||u&&-1!==u)&&r({id:h,styleId:u,adds:[{rule:o,index:[...Gh(e),a||0]}]}),t.apply(e,n)})}),n.prototype.deleteRule=new Proxy(c[e].deleteRule,{apply:jh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Wh(e.parentStyleSheet,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,removes:[{index:[...Gh(e),o]}]}),t.apply(e,n)})})}),jh(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=u,a&&(n.CSSStyleSheet.prototype.replace=a),h&&(n.CSSStyleSheet.prototype.replaceSync=h),Object.entries(l).forEach(t=>{var[e,r]=t;r.prototype.insertRule=c[e].insertRule,r.prototype.deleteRule=c[e].deleteRule})})}(t,{win:s}),f=Vh(t,t.doc),d=function(t,e){var{styleDeclarationCb:r,mirror:i,ignoreCSSAttributes:s,stylesheetManager:n}=t,{win:o}=e,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:jh((t,e,o)=>{var h,[u,l,c]=o;if(s.has(u))return a.apply(e,[u,l,c]);var{id:f,styleId:d}=Wh(null==(h=e.parentRule)?void 0:h.parentStyleSheet,i,n.styleMirror);return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:c},index:Gh(e.parentRule)}),t.apply(e,o)})});var h=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(h,{apply:jh((t,e,o)=>{var a,[u]=o;if(s.has(u))return h.apply(e,[u]);var{id:l,styleId:c}=Wh(null==(a=e.parentRule)?void 0:a.parentStyleSheet,i,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,remove:{property:u},index:Gh(e.parentRule)}),t.apply(e,o)})}),jh(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=h})}(t,{win:s}),t.collectFonts&&(v=function(t){var{fontCb:e,doc:r}=t,i=r.defaultView;if(!i)return()=>{};var s=[],n=new WeakMap,o=i.FontFace;i.FontFace=function(t,e,r){var i=new o(t,e,r);return n.set(i,{family:t,buffer:"string"!=typeof e,descriptors:r,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),i};var a=rh(r.fonts,"add",function(t){return function(r){return setTimeout(jh(()=>{var t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return s.push(()=>{i.FontFace=o}),s.push(a),jh(()=>{s.forEach(t=>t())})}(t)));var p=function(t){var{doc:e,mirror:r,blockClass:i,blockSelector:s,selectionCb:n}=t,o=!0,a=jh(()=>{var t=e.getSelection();if(!(!t||o&&(null==t?void 0:t.isCollapsed))){o=t.isCollapsed||!1;for(var a=[],h=t.rangeCount||0,u=0;u<h;u++){var l=t.getRangeAt(u),{startContainer:c,startOffset:f,endContainer:d,endOffset:v}=l;hh(c,i,s,!0)||hh(d,i,s,!0)||a.push({start:r.getId(c),startOffset:f,end:r.getId(d),endOffset:v})}n({ranges:a})}});return a(),Qa("selectionchange",a)}(t),m=function(t){var{doc:e,customElementCb:r}=t,i=e.defaultView;return i&&i.customElements?rh(i.customElements,"define",function(t){return function(e,i,s){try{r({define:{name:e}})}catch(t){console.warn("Custom element callback failed for "+e)}return t.apply(this,[e,i,s])}}):()=>{}}(t),g=[];for(var w of t.plugins)g.push(w.observer(w.callback,s,w.options));return jh(()=>{Fh.forEach(t=>t.reset()),null==r||r.disconnect(),n(),o(),a(),h(),u(),l(),c(),f(),d(),v(),p(),m(),g.forEach(t=>t())})}function Jh(t){return void 0!==window[t]}function zh(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class _h{constructor(t){f(this,"iframeIdToRemoteIdMap",new WeakMap),f(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,e,r,i){var s=r||this.getIdToRemoteIdMap(t),n=i||this.getRemoteIdToIdMap(t),o=s.get(e);return o||(o=this.generateIdFn(),s.set(e,o),n.set(o,e)),o}getIds(t,e){var r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,r,i))}getRemoteId(t,e,r){var i=r||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;var s=i.get(e);return s||-1}getRemoteIds(t,e){var r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,r))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){var e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){var e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}class Kh{constructor(t){f(this,"iframes",new WeakMap),f(this,"crossOriginIframeMap",new WeakMap),f(this,"crossOriginIframeMirror",new _h(X)),f(this,"crossOriginIframeStyleMirror"),f(this,"crossOriginIframeRootIdMap",new WeakMap),f(this,"mirror"),f(this,"mutationCb"),f(this,"wrappedEmit"),f(this,"loadListener"),f(this,"stylesheetManager"),f(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _h(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=t.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(i=this.loadListener)||i.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){var e=t;if("rrweb"===e.data.type&&e.origin===e.data.origin&&t.source){var r=this.crossOriginIframeMap.get(t.source);if(r){var i=this.transformCrossOriginEvent(r,e.data.event);i&&this.wrappedEmit(i,e.data.isCheckout)}}}transformCrossOriginEvent(t,e){var r;switch(e.type){case yh.FullSnapshot:this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:yh.IncrementalSnapshot,data:{source:bh.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case yh.Meta:case yh.Load:case yh.DomContentLoaded:return!1;case yh.Plugin:return e;case yh.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case yh.IncrementalSnapshot:switch(e.data.source){case bh.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);var r=this.crossOriginIframeRootIdMap.get(t);r&&this.patchRootIdOnNode(e.node,r)}),e.data.removes.forEach(e=>{this.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,t,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case bh.Drag:case bh.TouchMove:case bh.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case bh.ViewportResize:return!1;case bh.MediaInteraction:case bh.MouseInteraction:case bh.Scroll:case bh.CanvasMutation:case bh.Input:return this.replaceIds(e.data,t,["id"]),e;case bh.StyleSheetRule:case bh.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case bh.Font:return e;case bh.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case bh.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),null==(r=e.data.styles)||r.forEach(e=>{this.replaceStyleIds(e,t,["styleId"])}),e}}return!1}replace(t,e,r,i){for(var s of i)(Array.isArray(e[s])||"number"==typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(r,e[s]):e[s]=t.getId(r,e[s]));return e}replaceIds(t,e,r){return this.replace(this.crossOriginIframeMirror,t,e,r)}replaceStyleIds(t,e,r){return this.replace(this.crossOriginIframeStyleMirror,t,e,r)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(t,e){t.type===p.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}}class Hh{constructor(t){f(this,"shadowDoms",new WeakSet),f(this,"mutationCb"),f(this,"scrollCb"),f(this,"bypassOptions"),f(this,"mirror"),f(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(x(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var r=Yh(i({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Dh(i({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(Ha.host(t))),this.restoreHandlers.push(Vh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){var r=this;this.restoreHandlers.push(rh(t.prototype,"attachShadow",function(t){return function(i){var s=t.call(this,i),n=Ha.shadowRoot(this);return n&&wh(this)&&r.addShadowRoot(n,e),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Qh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),qh=0;qh<64;qh++)$h[Qh.charCodeAt(qh)]=qh;var tu=new Map;var eu=(t,e,r)=>{if(t&&(su(t,e)||"object"==typeof t)){var i=function(t,e){var r=tu.get(t);return r||(r=new Map,tu.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}(r,t.constructor.name),s=i.indexOf(t);return-1===s&&(s=i.length,i.push(t)),s}};function ru(t,e,r){if(t instanceof Array)return t.map(t=>ru(t,e,r));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:function(t){var e,r=new Uint8Array(t),i=r.length,s="";for(e=0;e<i;e+=3)s+=Qh[r[e]>>2],s+=Qh[(3&r[e])<<4|r[e+1]>>4],s+=Qh[(15&r[e+1])<<2|r[e+2]>>6],s+=Qh[63&r[e+2]];return i%3==2?s=s.substring(0,s.length-1)+"=":i%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(t)};if(t instanceof DataView)return{rr_type:t.constructor.name,args:[ru(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){var i=t.constructor.name,{src:s}=t;return{rr_type:i,src:s}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}return t instanceof ImageData?{rr_type:t.constructor.name,args:[ru(t.data,e,r),t.width,t.height]}:su(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:eu(t,e,r)}:t}var iu=(t,e,r)=>t.map(t=>ru(t,e,r)),su=(t,e)=>{var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]);return Boolean(r.find(r=>t instanceof e[r]))};function nu(t,e,r,i){var s=[];try{var n=rh(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(s){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(!hh(this,e,r,!0)){var h=function(t){return"experimental-webgl"===t?"webgl":t}(s);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(o[0]&&"object"==typeof o[0]){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[s,...o])}});s.push(n)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(t=>t())}}function ou(t,e,r,i,s,n){var o=[],a=Object.getOwnPropertyNames(t),h=function(a){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return 0;try{if("function"!=typeof t[a])return 0;var h=rh(t,a,function(t){return function(){for(var o=arguments.length,h=new Array(o),u=0;u<o;u++)h[u]=arguments[u];var l=t.apply(this,h);if(eu(l,n,this),"tagName"in this.canvas&&!hh(this.canvas,i,s,!0)){var c=iu(h,n,this),f={type:e,property:a,args:c};r(this.canvas,f)}return l}});o.push(h)}catch(i){var u=eh(t,a,{set(t){r(this.canvas,{type:e,property:a,args:[t],setter:!0})}});o.push(u)}};for(var u of a)h(u);return o}var au,hu,uu,lu,cu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",fu="undefined"!=typeof window&&window.Blob&&new Blob([(au=cu,Uint8Array.from(atob(au),t=>t.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});function du(t){var e;try{if(!(e=fu&&(window.URL||window.webkitURL).createObjectURL(fu)))throw"";var r=new Worker(e,{name:null==t?void 0:t.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),r}catch(e){return new Worker("data:text/javascript;base64,"+cu,{name:null==t?void 0:t.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class vu{constructor(t){f(this,"pendingCanvasMutations",new Map),f(this,"rafStamps",{latestId:0,invokeId:null}),f(this,"mirror"),f(this,"mutationCb"),f(this,"resetObservers"),f(this,"frozen",!1),f(this,"locked",!1),f(this,"processMutation",(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)});var{sampling:e="all",win:r,blockClass:i,blockSelector:s,recordCanvas:n,dataURLOptions:o}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,n&&"all"===e&&this.initCanvasMutationObserver(r,i,s),n&&"number"==typeof e&&this.initCanvasFPSObserver(e,r,i,s,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,e,i,s,n){var o=this,a=nu(e,i,s,!0),h=new Map,u=new du;u.onmessage=t=>{var{id:e}=t.data;if(h.set(e,!1),"base64"in t.data){var{base64:r,type:i,width:s,height:n}=t.data;this.mutationCb({id:e,type:Ih["2D"],commands:[{property:"clearRect",args:[0,0,s,n]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})}};var l,c=1e3/t,f=0,d=t=>{var a;f&&t-f<c?l=requestAnimationFrame(d):(f=t,(a=[],e.document.querySelectorAll("canvas").forEach(t=>{hh(t,i,s,!0)||a.push(t)}),a).forEach(function(){var t=r(function*(t){var e,r=o.mirror.getId(t);if(!h.get(r)&&0!==t.width&&0!==t.height){if(h.set(r,!0),["webgl","webgl2"].includes(t.__context)){var i=t.getContext(t.__context);!1===(null==(e=null==i?void 0:i.getContextAttributes())?void 0:e.preserveDrawingBuffer)&&i.clear(i.COLOR_BUFFER_BIT)}var s=yield createImageBitmap(t);u.postMessage({id:r,bitmap:s,width:t.width,height:t.height,dataURLOptions:n.dataURLOptions},[s])}});return function(e){return t.apply(this,arguments)}}()),l=requestAnimationFrame(d))};l=requestAnimationFrame(d),this.resetObservers=()=>{a(),cancelAnimationFrame(l)}}initCanvasMutationObserver(t,e,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var i=nu(t,e,r,!1),s=function(t,e,r,i){var s=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype),o=function(n){try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[n])return 1;var o=rh(e.CanvasRenderingContext2D.prototype,n,function(s){return function(){for(var o=arguments.length,a=new Array(o),h=0;h<o;h++)a[h]=arguments[h];return hh(this.canvas,r,i,!0)||setTimeout(()=>{var r=iu(a,e,this);t(this.canvas,{type:Ih["2D"],property:n,args:r})},0),s.apply(this,a)}});s.push(o)}catch(r){var a=eh(e.CanvasRenderingContext2D.prototype,n,{set(e){t(this.canvas,{type:Ih["2D"],property:n,args:[e],setter:!0})}});s.push(a)}};for(var a of n)o(a);return()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,r),n=function(t,e,r,i){var s=[];return s.push(...ou(e.WebGLRenderingContext.prototype,Ih.WebGL,t,r,i,e)),void 0!==e.WebGL2RenderingContext&&s.push(...ou(e.WebGL2RenderingContext.prototype,Ih.WebGL2,t,r,i,e)),()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,r);this.resetObservers=()=>{i(),s(),n()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){var t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{var r=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(t);if(r&&-1!==e){var i=r.map(t=>s(t,l)),{type:n}=r[0];this.mutationCb({id:e,type:n,commands:i}),this.pendingCanvasMutations.delete(t)}}}}class pu{constructor(t){f(this,"trackedLinkElements",new WeakSet),f(this,"mutationCb"),f(this,"adoptedStyleSheetCb"),f(this,"styleMirror",new ph),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){var r=this;if(0!==t.length){var i={id:e,styleIds:[]},s=[],n=function(t){var e;r.styleMirror.has(t)?e=r.styleMirror.getId(t):(e=r.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:O(e,t.href),index:r}))})),i.styleIds.push(e)};for(var o of t)n(o);s.length>0&&(i.styles=s),this.adoptedStyleSheetCb(i)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class mu{constructor(){f(this,"nodeMap",new WeakMap),f(this,"active",!1)}inOtherBuffer(t,e){var r=this.nodeMap.get(t);return r&&Array.from(r).some(t=>t!==e)}add(t,e){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}var gu=!1;try{if(2!==Array.from([1],t=>2*t)[0]){var wu=document.createElement("iframe");document.body.appendChild(wu),Array.from=(null==(n=wu.contentWindow)?void 0:n.Array.from)||Array.from,document.body.removeChild(wu)}}catch(t){console.debug("Unable to override Array.from",t)}var yu,bu,Cu=new E;function Su(t){void 0===t&&(t={});var{emit:e,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:h=null,maskTextClass:u="rr-mask",maskTextSelector:l=null,inlineStylesheet:c=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:v,maskInputFn:p,maskTextFn:m,hooks:g,packFn:w,sampling:y={},dataURLOptions:b={},mousemoveWait:C,recordDOM:S=!0,recordCanvas:I=!1,recordCrossOriginIframes:k=!1,recordAfter:A=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:x=!1,inlineImages:M=!1,plugins:O,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:T}=t;xh=T;var j=!k||window.parent===window,F=!1;if(!j)try{window.parent.document&&(F=!1)}catch(t){F=!0}if(j&&!e)throw new Error("emit function is required");if(!j&&!F)return()=>{};void 0!==C&&void 0===y.mousemove&&(y.mousemove=C),Cu.reset();var Z,Y=!0===f?{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}:void 0!==d?d:{password:!0},L=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v,headTitleMutations:"all"===v}:v||{};!function(t){void 0===t&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var D=0,U=t=>{for(var e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!F&&(t=w(t)),t};hu=(t,i)=>{var n,o=t;if(o.timestamp=ih(),!(null==(n=Fh[0])?void 0:n.isFrozen())||o.type===yh.FullSnapshot||o.type===yh.IncrementalSnapshot&&o.data.source===bh.Mutation||Fh.forEach(t=>t.unfreeze()),j)null==e||e(U(o),i);else if(F){var a={type:"rrweb",event:U(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(o.type===yh.FullSnapshot)Z=o,D=0;else if(o.type===yh.IncrementalSnapshot){if(o.data.source===bh.Mutation&&o.data.isAttachIframe)return;D++;var h=s&&D>=s,u=r&&o.timestamp-Z.timestamp>r;(h||u)&&uu(!0)}};var P=t=>{hu({type:yh.IncrementalSnapshot,data:i({source:bh.Mutation},t)})},G=t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.Scroll},t)}),W=t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.CanvasMutation},t)}),V=new pu({mutationCb:P,adoptedStyleSheetCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.AdoptedStyleSheet},t)})}),X=new Kh({mirror:Cu,mutationCb:P,stylesheetManager:V,recordCrossOriginIframes:k,wrappedEmit:hu});for(var J of O||[])J.getMirror&&J.getMirror({nodeMirror:Cu,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});var z=new mu;lu=new vu({recordCanvas:I,mutationCb:W,win:window,blockClass:n,blockSelector:o,mirror:Cu,sampling:y.canvas,dataURLOptions:b});var _=new Hh({mutationCb:P,scrollCb:G,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:l,inlineStylesheet:c,maskInputOptions:Y,dataURLOptions:b,maskTextFn:m,maskInputFn:p,recordCanvas:I,inlineImages:M,sampling:y,slimDOMOptions:L,iframeManager:X,stylesheetManager:V,canvasManager:lu,keepIframeSrcFn:N,processedNodeManager:z},mirror:Cu});uu=function(t){if(void 0===t&&(t=!1),S){hu({type:yh.Meta,data:{href:window.location.href,width:oh(),height:nh()}},t),V.reset(),_.init(),Fh.forEach(t=>t.lock());var e=function(t,e){var{mirror:r=new E,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:h=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:c,maskInputFn:f,slimDOM:d=!1,dataURLOptions:v,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:g,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:C=()=>!1}=e||{};return nt(t,{doc:t,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===l?{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}:!1===l?{password:!0}:l,maskTextFn:c,maskInputFn:f,slimDOMOptions:!0===d||"all"===d?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===d,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===d?{}:d,dataURLOptions:v,inlineImages:h,recordCanvas:u,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:g,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:Cu,blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:l,inlineStylesheet:c,maskAllInputs:Y,maskTextFn:m,maskInputFn:p,slimDOM:L,dataURLOptions:b,recordCanvas:I,inlineImages:M,onSerialize:t=>{fh(t,Cu)&&X.addIframe(t),dh(t,Cu)&&V.trackLinkElement(t),vh(t)&&_.addShadowRoot(Ha.shadowRoot(t),document)},onIframeLoad:(t,e)=>{X.attachIframe(t,e),_.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{V.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");hu({type:yh.FullSnapshot,data:{node:e,initialOffset:sh(window)}},t),Fh.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Cu.getId(document))}};try{var K=[],H=t=>{var e;return jh(Xh)({mutationCb:P,mousemoveCb:(t,e)=>hu({type:yh.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.MouseInteraction},t)}),scrollCb:G,viewportResizeCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.ViewportResize},t)}),inputCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.Input},t)}),mediaInteractionCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.MediaInteraction},t)}),styleSheetRuleCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.StyleSheetRule},t)}),styleDeclarationCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.StyleDeclaration},t)}),canvasMutationCb:W,fontCb:t=>hu({type:yh.IncrementalSnapshot,data:i({source:bh.Font},t)}),selectionCb:t=>{hu({type:yh.IncrementalSnapshot,data:i({source:bh.Selection},t)})},customElementCb:t=>{hu({type:yh.IncrementalSnapshot,data:i({source:bh.CustomElement},t)})},blockClass:n,ignoreClass:a,ignoreSelector:h,maskTextClass:u,maskTextSelector:l,maskInputOptions:Y,inlineStylesheet:c,sampling:y,recordDOM:S,recordCanvas:I,inlineImages:M,userTriggeredOnInput:R,collectFonts:x,doc:t,maskInputFn:p,maskTextFn:m,keepIframeSrcFn:N,blockSelector:o,slimDOMOptions:L,dataURLOptions:b,mirror:Cu,iframeManager:X,stylesheetManager:V,shadowDomManager:_,processedNodeManager:z,canvasManager:lu,ignoreCSSAttributes:B,plugins:(null==(e=null==O?void 0:O.filter(t=>t.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>hu({type:yh.Plugin,data:{plugin:t.name,payload:e}})})))||[]},g)};X.addLoadListener(t=>{try{K.push(H(t.contentDocument))}catch(t){console.warn(t)}});var Q=()=>{uu(),K.push(H(document)),gu=!0};return"interactive"===document.readyState||"complete"===document.readyState?Q():(K.push(Qa("DOMContentLoaded",()=>{hu({type:yh.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&Q()})),K.push(Qa("load",()=>{hu({type:yh.Load,data:{}}),"load"===A&&Q()},window))),()=>{K.forEach(t=>t()),z.destroy(),gu=!1,xh=void 0}}catch(t){console.warn(t)}}Su.addCustomEvent=(t,e)=>{if(!gu)throw new Error("please add custom event after start recording");hu({type:yh.Custom,data:{tag:t,payload:e}})},Su.freezePage=()=>{Fh.forEach(t=>t.freeze())},Su.takeFullSnapshot=t=>{if(!gu)throw new Error("please take full snapshot after start recording");uu(t)},Su.mirror=Cu,(bu=yu||(yu={}))[bu.NotStarted=0]="NotStarted",bu[bu.Running=1]="Running",bu[bu.Stopped=2]="Stopped";var Iu,ku=["inputs"],Au=["inputId"],Ru=["inputs"],xu=["inputId"],Mu=Object.defineProperty,Ou=(t,e,r)=>((t,e,r)=>e in t?Mu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Eu=Object.defineProperty,Nu=(t,e,r)=>((t,e,r)=>e in t?Eu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Bu=Object.defineProperty,Tu=(t,e,r)=>((t,e,r)=>e in t?Bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),ju={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Zu={};function Yu(t){if(Zu[t])return Zu[t];var e=globalThis[t],r=e.prototype,i=t in ju?ju[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Fu?Fu[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return Zu[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?Zu[t]=u:r}catch(t){return r}}var Lu={};function Du(t,e,r){var i,s=t+"."+String(r);if(Lu[s])return Lu[s].call(e);var n=Yu(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Lu[s]=o,o.call(e)):e[r]}var Uu={};function Pu(t,e,r){var i=t+"."+String(r);if(Uu[i])return Uu[i].bind(e);var s=Yu(t)[r];return"function"!=typeof s?e[r]:(Uu[i]=s,s.bind(e))}var Gu={childNodes:function(t){return Du("Node",t,"childNodes")},parentNode:function(t){return Du("Node",t,"parentNode")},parentElement:function(t){return Du("Node",t,"parentElement")},textContent:function(t){return Du("Node",t,"textContent")},contains:function(t,e){return Pu("Node",t,"contains")(e)},getRootNode:function(t){return Pu("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Du("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Du("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Du("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Du("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Yu("MutationObserver").constructor}};class Wu{constructor(){Tu(this,"idNodeMap",new Map),Tu(this,"nodeMetaMap",new WeakMap)}getId(t){var e;if(!t)return-1;var r=null==(e=this.getMeta(t))?void 0:e.id;return null!=r?r:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){var e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){var r=e.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,e)}replace(t,e){var r=this.getNode(t);if(r){var i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(e,i)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vu(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&Vu(Gu.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&Vu(Gu.parentNode(t),e,r)}function Xu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ju(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var zu={exports:{}},_u=String,Ku=function(){return{isColorSupported:!1,reset:_u,bold:_u,dim:_u,italic:_u,underline:_u,inverse:_u,hidden:_u,strikethrough:_u,black:_u,red:_u,green:_u,yellow:_u,blue:_u,magenta:_u,cyan:_u,white:_u,gray:_u,bgBlack:_u,bgRed:_u,bgGreen:_u,bgYellow:_u,bgBlue:_u,bgMagenta:_u,bgCyan:_u,bgWhite:_u}};zu.exports=Ku(),zu.exports.createColors=Ku;var Hu=zu.exports,Qu=Ju(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),$u=Hu,qu=Qu,tl=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=$u.isColorSupported),qu&&t&&(e=qu(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=$u.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},el=tl;tl.default=tl;var rl={};rl.isClean=Symbol("isClean"),rl.my=Symbol("my");var il={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var sl=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return il[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=il[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},nl=sl;sl.default=sl;var ol=nl;function al(t,e){new ol(e).stringify(t)}var hl=al;al.default=al;var{isClean:ul,my:ll}=rl,cl=el,fl=nl,dl=hl;function vl(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>vl(t,r)):("object"===n&&null!==s&&(s=vl(s)),r[i]=s)}return r}var pl=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[ul]=!1,this[ll]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=vl(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new cl(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[ul]){this[ul]=!1;for(var t=this;t=t.parent;)t[ul]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new fl).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=dl),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},ml=pl;pl.default=pl;var gl=ml,wl=class extends gl{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=i({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},yl=wl;wl.default=wl;var bl={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:Cl,SourceMapGenerator:Sl}=Qu,{existsSync:Il,readFileSync:kl}=Qu,{dirname:Al,join:Rl}=Qu;var xl=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Al(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Cl(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=Al(t),Il(t))return this.mapFile=t,kl(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof Cl)return Sl.fromSourceMap(e).toString();if(e instanceof Sl)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=Rl(Al(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Ml=xl;xl.default=xl;var{SourceMapConsumer:Ol,SourceMapGenerator:El}=Qu,{fileURLToPath:Nl,pathToFileURL:Bl}=Qu,{isAbsolute:Tl,resolve:jl}=Qu,{nanoid:Fl}=bl,Zl=Qu,Yl=el,Ll=Ml,Dl=Symbol("fromOffsetCache"),Ul=Boolean(Ol&&El),Pl=Boolean(jl&&Tl),Gl=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Pl||/^\w+:\/\//.test(e.from)||Tl(e.from)?this.file=e.from:this.file=jl(e.from)),Pl&&Ul){var r=new Ll(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Fl(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Yl(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Yl(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Bl&&(s.input.url=Bl(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Dl])e=this[Dl];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Dl]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:jl(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=Tl(a.source)?Bl(a.source):new URL(a.source,this.map.consumer().sourceRoot||Bl(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Nl)throw new Error("file: protocol is not available in this PostCSS build");h.file=Nl(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=i({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Wl=Gl;Gl.default=Gl,Zl&&Zl.registerInput&&Zl.registerInput(Gl);var{SourceMapConsumer:Vl,SourceMapGenerator:Xl}=Qu,{dirname:Jl,relative:zl,resolve:_l,sep:Kl}=Qu,{pathToFileURL:Hl}=Qu,Ql=Wl,$l=Boolean(Vl&&Xl),ql=Boolean(Jl&&_l&&zl&&Kl),tc=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Jl(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Vl(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ql&&$l&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Xl.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Xl({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Xl({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Jl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Jl(_l(r,this.mapOpts.annotation)));var i=zl(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new Ql(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(Hl){var r=Hl(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===Kl&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},ec=ml,rc=class extends ec{constructor(t){super(t),this.type="comment"}},ic=rc;rc.default=rc;var sc,nc,oc,ac,{isClean:hc,my:uc}=rl,lc=yl,cc=ic,fc=ml;function dc(t){return t.map(t=>(t.nodes&&(t.nodes=dc(t.nodes)),delete t.source,t))}function vc(t){if(t[hc]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)vc(e)}var pc=class t extends fc{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=dc(sc(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new lc(e)]}else if(e.selector)e=[new nc(e)];else if(e.name)e=[new oc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new cc(e)]}var n=e.map(e=>(e[uc]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[hc]&&vc(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}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]}};pc.registerParse=t=>{sc=t},pc.registerRule=t=>{nc=t},pc.registerAtRule=t=>{oc=t},pc.registerRoot=t=>{ac=t};var mc=pc;pc.default=pc,pc.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,oc.prototype):"rule"===t.type?Object.setPrototypeOf(t,nc.prototype):"decl"===t.type?Object.setPrototypeOf(t,lc.prototype):"comment"===t.type?Object.setPrototypeOf(t,cc.prototype):"root"===t.type&&Object.setPrototypeOf(t,ac.prototype),t[uc]=!0,t.nodes&&t.nodes.forEach(t=>{pc.rebuild(t)})};var gc,wc,yc=mc,bc=class extends yc{constructor(t){super(i({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new gc(new wc,this,t).stringify()}};bc.registerLazyResult=t=>{gc=t},bc.registerProcessor=t=>{wc=t};var Cc=bc;bc.default=bc;var Sc={},Ic=function(t){Sc[t]||(Sc[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},kc=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Ac=kc;kc.default=kc;var Rc=Ac,xc=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new Rc(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},Mc=xc;xc.default=xc;var Oc="'".charCodeAt(0),Ec='"'.charCodeAt(0),Nc="\\".charCodeAt(0),Bc="/".charCodeAt(0),Tc="\n".charCodeAt(0),jc=" ".charCodeAt(0),Fc="\f".charCodeAt(0),Zc="\t".charCodeAt(0),Yc="\r".charCodeAt(0),Lc="[".charCodeAt(0),Dc="]".charCodeAt(0),Uc="(".charCodeAt(0),Pc=")".charCodeAt(0),Gc="{".charCodeAt(0),Wc="}".charCodeAt(0),Vc=";".charCodeAt(0),Xc="*".charCodeAt(0),Jc=":".charCodeAt(0),zc="@".charCodeAt(0),_c=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Hc=/.[\r\n"'(/\\]/,Qc=/[\da-f]/i,$c=mc,qc=class extends $c{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},tf=qc;qc.default=qc,$c.registerAtRule(qc);var ef,rf,sf=mc,nf=class extends sf{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new ef(new rf,this,t).stringify()}};nf.registerLazyResult=t=>{ef=t},nf.registerProcessor=t=>{rf=t};var of=nf;nf.default=nf,sf.registerRoot(nf);var af={comma:t=>af.split(t,[","],!0),space:t=>af.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},hf=af;af.default=af;var uf=mc,lf=hf,cf=class extends uf{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return lf.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},ff=cf;cf.default=cf,uf.registerRule(cf);var df=yl,vf=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case Tc:case jc:case Zc:case Yc:case Fc:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===jc||r===Tc||r===Zc||r===Yc||r===Fc);c=["space",f.slice(p,i)],p=i-1;break;case Lc:case Dc:case Gc:case Wc:case Jc:case Vc:case Pc:var y=String.fromCharCode(r);c=[y,y,p];break;case Uc:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==Oc&&l!==Ec&&l!==jc&&l!==Tc&&l!==Zc&&l!==Fc&&l!==Yc){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Nc;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Hc.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case Oc:case Ec:s=r===Oc?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Nc;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case zc:_c.lastIndex=p+1,_c.test(f),i=0===_c.lastIndex?f.length-1:_c.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Nc:for(i=p,o=!0;f.charCodeAt(i+1)===Nc;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Bc&&r!==jc&&r!==Tc&&r!==Zc&&r!==Yc&&r!==Fc&&(i+=1,Qc.test(f.charAt(i)))){for(;Qc.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===jc&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Bc&&f.charCodeAt(p+1)===Xc?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(Kc.lastIndex=p+1,Kc.test(f),i=0===Kc.lastIndex?f.length-1:Kc.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},pf=ic,mf=tf,gf=of,wf=ff,yf={empty:!0,space:!0};var bf=mc,Cf=class{constructor(t){this.input=t,this.root=new gf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new mf;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new pf;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=vf(this.input)}decl(t,e){var r=new df;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new wf;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",yf[a]||yf[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new wf;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Sf=Wl;function If(t,e){var r=new Sf(t,e),i=new Cf(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var kf=If;If.default=If,bf.registerParse(If);var{isClean:Af,my:Rf}=rl,xf=tc,Mf=hl,Of=mc,Ef=Cc,Nf=Ic,Bf=Mc,Tf=kf,jf=of,Ff={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Zf={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},Yf={Once:!0,postcssPlugin:!0,prepare:!0};function Lf(t){return"object"==typeof t&&"function"==typeof t.then}function Df(t){var e=!1,r=Ff[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Uf(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Df(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Pf(t){return t[Af]=!1,t.nodes&&t.nodes.forEach(t=>Pf(t)),t}var Gf={},Wf=class t{constructor(e,r,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof Bf)n=Pf(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{var o=Tf;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(r,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Rf]&&Of.rebuild(n)}else n=Pf(r);this.result=new Bf(e,n,s),this.helpers=i({},Gf,{postcss:Gf,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?i({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Zf[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Yf[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return r(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Lf(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[Af];){s[Af]=!0;for(var n=[Uf(s)];n.length>0;){var o=t.visitTick(n);if(Lf(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Lf(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(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();var t=this.result.opts,e=Mf;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new xf(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Lf(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[Af];)e[Af]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Nf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Lf(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[Af])return o[Af]=!0,void t.push(Uf(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[Af]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[Af]=!0;var e=Df(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[Af]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};Wf.registerPostcss=t=>{Gf=t};var Vf=Wf;Wf.default=Wf,jf.registerLazyResult(Wf),Ef.registerLazyResult(Wf);var Xf=tc,Jf=hl,zf=Ic,_f=kf,Kf=Mc,Hf=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=Jf;this.result=new Kf(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Xf(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||zf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=_f;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},Qf=Hf;Hf.default=Hf;var $f=Qf,qf=Vf,td=Cc,ed=of,rd=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new qf(this,t,e):new $f(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},id=rd;rd.default=rd,ed.registerProcessor(rd),td.registerProcessor(rd);var sd=yl,nd=Ml,od=ic,ad=tf,hd=Wl,ud=of,ld=ff;function cd(t,e){if(Array.isArray(t))return t.map(t=>cd(t));var{inputs:r}=t,n=s(t,ku);if(r)for(var o of(e=[],r)){var a=i({},o,{__proto__:hd.prototype});a.map&&(a.map=i({},a.map,{__proto__:nd.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>cd(t,e))),n.source){var h=n.source,{inputId:u}=h,l=s(h,Au);n.source=l,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new ud(n);if("decl"===n.type)return new sd(n);if("rule"===n.type)return new ld(n);if("comment"===n.type)return new od(n);if("atrule"===n.type)return new ad(n);throw new Error("Unknown node type: "+t.type)}var fd=cd;cd.default=cd;var dd=el,vd=yl,pd=Vf,md=mc,gd=id,wd=hl,yd=fd,bd=Cc,Cd=Ac,Sd=ic,Id=tf,kd=Mc,Ad=Wl,Rd=kf,xd=hf,Md=ff,Od=of,Ed=ml;function Nd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new gd(e)}Nd.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new gd).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Nd([s(r)]).process(t,e)},s},Nd.stringify=wd,Nd.parse=Rd,Nd.fromJSON=yd,Nd.list=xd,Nd.comment=t=>new Sd(t),Nd.atRule=t=>new Id(t),Nd.decl=t=>new vd(t),Nd.rule=t=>new Md(t),Nd.root=t=>new Od(t),Nd.document=t=>new bd(t),Nd.CssSyntaxError=dd,Nd.Declaration=vd,Nd.Container=md,Nd.Processor=gd,Nd.Document=bd,Nd.Comment=Sd,Nd.Warning=Cd,Nd.AtRule=Id,Nd.Result=kd,Nd.Input=Ad,Nd.Rule=Md,Nd.Root=Od,Nd.Node=Ed,pd.registerPostcss(Nd);var Bd=Nd;Nd.default=Nd;var Td=Xu(Bd);Td.stringify,Td.fromJSON,Td.plugin,Td.parse,Td.list,Td.document,Td.comment,Td.atRule,Td.rule,Td.decl,Td.root,Td.CssSyntaxError,Td.Declaration,Td.Container,Td.Processor,Td.Document,Td.Comment,Td.Warning,Td.AtRule,Td.Result,Td.Input,Td.Rule,Td.Root,Td.Node;var jd=Object.defineProperty,Fd=(t,e,r)=>((t,e,r)=>e in t?jd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function Zd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yd(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),r}var Ld={exports:{}},Dd=String,Ud=function(){return{isColorSupported:!1,reset:Dd,bold:Dd,dim:Dd,italic:Dd,underline:Dd,inverse:Dd,hidden:Dd,strikethrough:Dd,black:Dd,red:Dd,green:Dd,yellow:Dd,blue:Dd,magenta:Dd,cyan:Dd,white:Dd,gray:Dd,bgBlack:Dd,bgRed:Dd,bgGreen:Dd,bgYellow:Dd,bgBlue:Dd,bgMagenta:Dd,bgCyan:Dd,bgWhite:Dd}};Ld.exports=Ud(),Ld.exports.createColors=Ud;var Pd=Ld.exports,Gd=Yd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Wd=Pd,Vd=Gd,Xd=class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";var e=this.source;null==t&&(t=Wd.isColorSupported),Vd&&t&&(e=Vd(e));var r,i,s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(t){var{bold:h,gray:u,red:l}=Wd.createColors(!0);r=t=>h(l(t)),i=t=>u(t)}else r=i=t=>t;return s.slice(n,o).map((t,e)=>{var s=n+1+e,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){var h=i(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(o)+t+"\n "+h+r("^")}return" "+i(o)+t}).join("\n")}toString(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}},Jd=Xd;Xd.default=Xd;var zd={};zd.isClean=Symbol("isClean"),zd.my=Symbol("my");var _d={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Kd=class{constructor(t){this.builder=t}atrule(t,e){var r="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:i&&(r+=" "),t.nodes)this.block(t,r+i);else{var s=(t.raws.between||"")+(e?";":"");this.builder(r+i+s,t)}}beforeAfter(t,e){var r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var i=t.parent,s=0;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){var n=this.raw(t,null,"indent");if(n.length)for(var o=0;o<s;o++)r+=n}return r}block(t,e){var r,i=this.raw(t,"between","beforeOpen");this.builder(e+i+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){for(var e=t.nodes.length-1;e>0&&"comment"===t.nodes[e].type;)e-=1;for(var r=this.raw(t,"semicolon"),i=0;i<t.nodes.length;i++){var s=t.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==i||r)}}comment(t){var e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){var r=this.raw(t,"between","colon"),i=t.prop+r+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),e&&(i+=";"),this.builder(i,t)}document(t){this.body(t)}raw(t,e,r){var i;if(r||(r=e),e&&void 0!==(i=t.raws[e]))return i;var s=t.parent;if("before"===r){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return _d[r];var n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);var o,a="raw"+((o=r)[0].toUpperCase()+o.slice(1));return this[a]?i=this[a](n,t):n.walk(t=>{if(void 0!==(i=t.raws[e]))return!1}),void 0===i&&(i=_d[r]),n.rawCache[r]=i,i}rawBeforeClose(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){var r;return t.walkComments(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){var r;return t.walkDecls(t=>{if(void 0!==t.raws.before)return(r=t.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){var e;return t.walk(t=>{if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e}rawBeforeRule(t){var e;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return(e=r.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){var e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){var e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e}rawIndent(t){return t.raws.indent?t.raws.indent:(t.walk(r=>{var i=r.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return e=(e=s[s.length-1]).replace(/\S/g,""),!1}}),e);var e}rawSemicolon(t){var e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e}rawValue(t,e){var r=t[e],i=t.raws[e];return i&&i.value===r?i.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}},Hd=Kd;Kd.default=Kd;var Qd=Hd;function $d(t,e){new Qd(e).stringify(t)}var qd=$d;$d.default=$d;var{isClean:tv,my:ev}=zd,rv=Jd,iv=Hd,sv=qd;function nv(t,e){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var s=t[i],n=typeof s;"parent"===i&&"object"===n?e&&(r[i]=e):"source"===i?r[i]=s:Array.isArray(s)?r[i]=s.map(t=>nv(t,r)):("object"===n&&null!==s&&(s=nv(s)),r[i]=s)}return r}var ov=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[tv]=!1,this[ev]=!0,t)if("nodes"===e)for(var r of(this.nodes=[],t[e]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t){void 0===t&&(t={});var e=nv(this);for(var r in t)e[r]=t[r];return e}cloneAfter(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e){if(void 0===e&&(e={}),this.source){var{end:r,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new rv(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[tv]){this[tv]=!1;for(var t=this;t=t.parent;)t[tv]=!1}}next(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}}positionBy(t,e){var r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){var i=(e=this.toString()).indexOf(t.word);-1!==i&&(r=this.positionInside(i,e))}return r}positionInside(t,e){for(var r=e||this.toString(),i=this.source.start.column,s=this.source.start.line,n=0;n<t;n++)"\n"===r[n]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}}rangeBy(t){var e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){var i=this.toString(),s=i.indexOf(t.word);-1!==s&&(e=this.positionInside(s,i),r=this.positionInside(s+t.word.length,i))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new iv).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var t=this,e=!1,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var n of i)n===this?e=!0:e?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);e||this.remove()}return this}root(){for(var t=this;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){var r={},i=null==e;e=e||new Map;var s=0;for(var n in this)if(Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n){var o=this[n];if(Array.isArray(o))r[n]=o.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof o&&o.toJSON)r[n]=o.toJSON(null,e);else if("source"===n){var a=e.get(o.input);null==a&&(a=s,e.set(o.input,s),s++),r[n]={end:o.end,inputId:a,start:o.start}}else r[n]=o}return i&&(r.inputs=[...e.keys()].map(t=>t.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t){void 0===t&&(t=sv),t.stringify&&(t=t.stringify);var e="";return t(this,t=>{e+=t}),e}warn(t,e,r){var i={node:this};for(var s in r)i[s]=r[s];return t.warn(e,i)}get proxyOf(){return this}},av=ov;ov.default=ov;var hv=av,uv=class extends hv{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=i({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},lv=uv;uv.default=uv;var cv={nanoid:function(t){void 0===t&&(t=21);for(var e="",r=t;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}},{SourceMapConsumer:fv,SourceMapGenerator:dv}=Gd,{existsSync:vv,readFileSync:pv}=Gd,{dirname:mv,join:gv}=Gd;var wv=class{constructor(t,e){if(!1!==e.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=mv(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new fv(this.text)),this.consumerCache}decodeInline(t){var e;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){var e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var r=t.lastIndexOf(e.pop()),i=t.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,i)))}}loadFile(t){if(this.root=mv(t),vv(t))return this.mapFile=t,pv(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof fv)return dv.fromSourceMap(e).toString();if(e instanceof dv)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}var r=e(t);if(r){var i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return t&&(s=gv(mv(t),s)),this.loadFile(s)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},yv=wv;wv.default=wv;var{SourceMapConsumer:bv,SourceMapGenerator:Cv}=Gd,{fileURLToPath:Sv,pathToFileURL:Iv}=Gd,{isAbsolute:kv,resolve:Av}=Gd,{nanoid:Rv}=cv,xv=Gd,Mv=Jd,Ov=yv,Ev=Symbol("fromOffsetCache"),Nv=Boolean(bv&&Cv),Bv=Boolean(Av&&kv),Tv=class{constructor(t,e){if(void 0===e&&(e={}),null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Bv||/^\w+:\/\//.test(e.from)||kv(e.from)?this.file=e.from:this.file=Av(e.from)),Bv&&Nv){var r=new Ov(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Rv(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r,i){var s,n,o;if(void 0===i&&(i={}),e&&"object"==typeof e){var a=e,h=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,r=u.col}else e=a.line,r=a.column;if("number"==typeof h.offset){var l=this.fromOffset(h.offset);n=l.line,o=l.col}else n=h.line,o=h.column}else if(!r){var c=this.fromOffset(e);e=c.line,r=c.col}var f=this.origin(e,r,n,o);return(s=f?new Mv(t,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):new Mv(t,void 0===n?e:{column:r,line:e},void 0===n?r:{column:o,line:n},this.css,this.file,i.plugin)).input={column:r,endColumn:o,endLine:n,line:e,source:this.css},this.file&&(Iv&&(s.input.url=Iv(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Ev])e=this[Ev];else{var r=this.css.split("\n");e=new Array(r.length);for(var i=0,s=0,n=r.length;s<n;s++)e[s]=i,i+=r[s].length+1;this[Ev]=e}var o=0;if(t>=e[e.length-1])o=e.length-1;else for(var a,h=e.length-2;o<h;)if(t<e[a=o+(h-o>>1)])h=a-1;else{if(!(t>=e[a+1])){o=a;break}o=a+1}return{col:t-e[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Av(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,i){if(!this.map)return!1;var s,n,o=this.map.consumer(),a=o.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:i,line:r})),n=kv(a.source)?Iv(a.source):new URL(a.source,this.map.consumer().sourceRoot||Iv(this.map.mapFile));var h={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:n.toString()};if("file:"===n.protocol){if(!Sv)throw new Error("file: protocol is not available in this PostCSS build");h.file=Sv(n)}var u=o.sourceContentFor(a.source);return u&&(h.source=u),h}toJSON(){var t={};for(var e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map=i({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},jv=Tv;Tv.default=Tv,xv&&xv.registerInput&&xv.registerInput(Tv);var{SourceMapConsumer:Fv,SourceMapGenerator:Zv}=Gd,{dirname:Yv,relative:Lv,resolve:Dv,sep:Uv}=Gd,{pathToFileURL:Pv}=Gd,Gv=jv,Wv=Boolean(Fv&&Zv),Vv=Boolean(Yv&&Dv&&Lv&&Uv),Xv=class{constructor(t,e,r,i){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(var t of this.previous()){var e=this.toUrl(this.path(t.file)),r=t.root||Yv(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Fv(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,e,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var t,e=this.root.nodes.length-1;e>=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Vv&&Wv&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,e=>{t+=e}),[t]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Zv.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Zv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Zv({file:this.outputFile(),ignoreInvalidMapping:!0});var t,e,r=1,i=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,h)=>{if(this.css+=o,a&&"end"!==h&&(n.generated.line=r,n.generated.column=i-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),i=o.length-e):i+=o.length,a&&"start"!==h){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=i-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=i-1,this.map.addMapping(n)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var r=this.opts.to?Yv(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Yv(Dv(r,this.mapOpts.annotation)));var i=Lv(r,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){var e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{var t=new Gv(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){var t={};if(this.root)this.root.walk(e=>{if(e.source){var r=e.source.input.from;if(r&&!t[r]){t[r]=!0;var i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){var e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(Pv){var r=Pv(t).toString();return this.memoizedFileURLs.set(t,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===Uv&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},Jv=av,zv=class extends Jv{constructor(t){super(t),this.type="comment"}},_v=zv;zv.default=zv;var Kv,Hv,Qv,$v,{isClean:qv,my:tp}=zd,ep=lv,rp=_v,ip=av;function sp(t){return t.map(t=>(t.nodes&&(t.nodes=sp(t.nodes)),delete t.source,t))}function np(t){if(t[qv]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)np(e)}var op=class t extends ip{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e){var s=this.normalize(i,this.last);for(var n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(var e of this.nodes)e.cleanRaws(t)}each(t){if(this.proxyOf.nodes){for(var e,r,i=this.getIterator();this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],!1!==(r=t(this.proxyOf.nodes[e],e)));)this.indexes[i]+=1;return delete this.indexes[i],r}}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t[e](...i.map(t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))}:"every"===e||"some"===e?r=>t[e](function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return r(t.toProxy(),...i)}):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){var r,i=this.index(t),s=this.normalize(e,this.proxyOf.nodes[i]).reverse();for(var n of(i=this.index(t),s))this.proxyOf.nodes.splice(i+1,0,n);for(var o in this.indexes)i<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(t,e){var r,i=this.index(t),s=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],s).reverse();for(var o of(i=this.index(t),n))this.proxyOf.nodes.splice(i,0,o);for(var a in this.indexes)i<=(r=this.indexes[a])&&(this.indexes[a]=r+n.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=sp(Kv(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i of e=e.slice(0))i.parent&&i.parent.removeChild(i,"ignore");else if("root"===e.type&&"document"!==this.type)for(var s of e=e.nodes.slice(0))s.parent&&s.parent.removeChild(s,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ep(e)]}else if(e.selector)e=[new Hv(e)];else if(e.name)e=[new Qv(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new rp(e)]}var n=e.map(e=>(e[tp]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[qv]&&np(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return n}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i of e=e.reverse()){var s=this.normalize(i,this.first,"prepend").reverse();for(var n of s)this.proxyOf.nodes.unshift(n);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(var t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){var e;for(var r in t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,r)=>{var i;try{i=t(e,r)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&t.test(r.name))return e(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("atrule"===t.type)return e(t,r)}))}walkComments(t){return this.walk((e,r)=>{if("comment"===e.type)return t(e,r)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&t.test(r.prop))return e(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("decl"===t.type)return e(t,r)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&t.test(r.selector))return e(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===t)return e(r,i)}):(e=t,this.walk((t,r)=>{if("rule"===t.type)return e(t,r)}))}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]}};op.registerParse=t=>{Kv=t},op.registerRule=t=>{Hv=t},op.registerAtRule=t=>{Qv=t},op.registerRoot=t=>{$v=t};var ap=op;op.default=op,op.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Qv.prototype):"rule"===t.type?Object.setPrototypeOf(t,Hv.prototype):"decl"===t.type?Object.setPrototypeOf(t,ep.prototype):"comment"===t.type?Object.setPrototypeOf(t,rp.prototype):"root"===t.type&&Object.setPrototypeOf(t,$v.prototype),t[tp]=!0,t.nodes&&t.nodes.forEach(t=>{op.rebuild(t)})};var hp,up,lp=ap,cp=class extends lp{constructor(t){super(i({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new hp(new up,this,t).stringify()}};cp.registerLazyResult=t=>{hp=t},cp.registerProcessor=t=>{up=t};var fp=cp;cp.default=cp;var dp={},vp=function(t){dp[t]||(dp[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},pp=class{constructor(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},mp=pp;pp.default=pp;var gp=mp,wp=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e){void 0===e&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var r=new gp(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},yp=wp;wp.default=wp;var bp="'".charCodeAt(0),Cp='"'.charCodeAt(0),Sp="\\".charCodeAt(0),Ip="/".charCodeAt(0),kp="\n".charCodeAt(0),Ap=" ".charCodeAt(0),Rp="\f".charCodeAt(0),xp="\t".charCodeAt(0),Mp="\r".charCodeAt(0),Op="[".charCodeAt(0),Ep="]".charCodeAt(0),Np="(".charCodeAt(0),Bp=")".charCodeAt(0),Tp="{".charCodeAt(0),jp="}".charCodeAt(0),Fp=";".charCodeAt(0),Zp="*".charCodeAt(0),Yp=":".charCodeAt(0),Lp="@".charCodeAt(0),Dp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Up=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pp=/.[\r\n"'(/\\]/,Gp=/[\da-f]/i,Wp=ap,Vp=class extends Wp{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}},Xp=Vp;Vp.default=Vp,Wp.registerAtRule(Vp);var Jp,zp,_p=ap,Kp=class extends _p{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){var i=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(var s of i)s.raws.before=e.raws.before;return i}removeChild(t,e){var r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t){return void 0===t&&(t={}),new Jp(new zp,this,t).stringify()}};Kp.registerLazyResult=t=>{Jp=t},Kp.registerProcessor=t=>{zp=t};var Hp=Kp;Kp.default=Kp,_p.registerRoot(Kp);var Qp={comma:t=>Qp.split(t,[","],!0),space:t=>Qp.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var l of t)u?u=!1:"\\"===l?u=!0:a?l===h&&(a=!1):'"'===l||"'"===l?(a=!0,h=l):"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&e.includes(l)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=l;return(r||""!==s)&&i.push(s.trim()),i}},$p=Qp;Qp.default=Qp;var qp=ap,tm=$p,em=class extends qp{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tm.comma(this.selector)}set selectors(t){var e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}},rm=em;em.default=em,qp.registerRule(em);var im=lv,sm=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,l,c,f=t.css.valueOf(),d=e.ignoreErrors,v=f.length,p=0,m=[],g=[];function w(e){throw t.error("Unclosed "+e,p)}return{back:function(t){g.push(t)},endOfFile:function(){return 0===g.length&&p>=v},nextToken:function(t){if(g.length)return g.pop();if(!(p>=v)){var e=!!t&&t.ignoreUnclosed;switch(r=f.charCodeAt(p)){case kp:case Ap:case xp:case Mp:case Rp:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Ap||r===kp||r===xp||r===Mp||r===Rp);c=["space",f.slice(p,i)],p=i-1;break;case Op:case Ep:case Tp:case jp:case Yp:case Fp:case Bp:var y=String.fromCharCode(r);c=[y,y,p];break;case Np:if(u=m.length?m.pop()[1]:"",l=f.charCodeAt(p+1),"url"===u&&l!==bp&&l!==Cp&&l!==Ap&&l!==kp&&l!==xp&&l!==Rp&&l!==Mp){i=p;do{if(a=!1,-1===(i=f.indexOf(")",i+1))){if(d||e){i=p;break}w("bracket")}for(h=i;f.charCodeAt(h-1)===Sp;)h-=1,a=!a}while(a);c=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Pp.test(n)?c=["(","(",p]:(c=["brackets",n,p,i],p=i);break;case bp:case Cp:s=r===bp?"'":'"',i=p;do{if(a=!1,-1===(i=f.indexOf(s,i+1))){if(d||e){i=p+1;break}w("string")}for(h=i;f.charCodeAt(h-1)===Sp;)h-=1,a=!a}while(a);c=["string",f.slice(p,i+1),p,i],p=i;break;case Lp:Dp.lastIndex=p+1,Dp.test(f),i=0===Dp.lastIndex?f.length-1:Dp.lastIndex-2,c=["at-word",f.slice(p,i+1),p,i],p=i;break;case Sp:for(i=p,o=!0;f.charCodeAt(i+1)===Sp;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Ip&&r!==Ap&&r!==kp&&r!==xp&&r!==Mp&&r!==Rp&&(i+=1,Gp.test(f.charAt(i)))){for(;Gp.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Ap&&(i+=1)}c=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Ip&&f.charCodeAt(p+1)===Zp?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),c=["comment",f.slice(p,i+1),p,i],p=i):(Up.lastIndex=p+1,Up.test(f),i=0===Up.lastIndex?f.length-1:Up.lastIndex-2,c=["word",f.slice(p,i+1),p,i],m.push(c),p=i)}return p++,c}},position:function(){return p}}},nm=_v,om=Xp,am=Hp,hm=rm,um={empty:!0,space:!0};var lm=ap,cm=class{constructor(t){this.input=t,this.root=new am,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){var e,r,i,s=new om;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);for(var n=!1,o=!1,a=[],h=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?h.push("("===e?")":"]"):"{"===e&&h.length>0?h.push("}"):e===h[h.length-1]&&h.pop(),0===h.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(r=a[i=a.length-1];r&&"space"===r[0];)r=a[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),n&&(t=a[a.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){var e=this.colon(t);if(!1!==e){for(var r,i=0,s=e-1;s>=0&&("space"===(r=t[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(t){var e,r,i,s=0;for(var[n,o]of t.entries()){if("("===(r=(e=o)[0])&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return n}this.doubleColon(e)}i=e}return!1}comment(t){var e=new nm;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{var i=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=i[2],e.raws.left=i[1],e.raws.right=i[3]}}createTokenizer(){this.tokenizer=sm(this.input)}decl(t,e){var r=new im;this.init(r,t[0][2]);var i,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(t){for(var e=t.length-1;e>=0;e--){var r=t[e],i=r[3]||r[2];if(i)return i}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){var n=t[0][0];if(":"===n||"space"===n||"comment"===n)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(":"===(i=t.shift())[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var o,a=[];t.length&&("space"===(o=t[0][0])||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var h=t.length-1;h>=0;h--){if("!important"===(i=t[h])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(t,h);" !important"!==(u=this.spacesFromEnd(t)+u)&&(r.raws.important=u);break}if("important"===i[1].toLowerCase()){for(var l=t.slice(0),c="",f=h;f>0;f--){var d=l[f][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(r.important=!0,r.raws.important=c,t=l)}if("space"!==i[0]&&"comment"!==i[0])break}var v=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);v&&(r.raws.between+=a.map(t=>t[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){var e=new hm;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){for(var e=!1,r=null,i=!1,s=null,n=[],o=t[1].startsWith("--"),a=[],h=t;h;){if(r=h[0],a.push(h),"("===r||"["===r)s||(s=h),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=h),n.push("}");else if(0===n.length){if(";"===r){if(i)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&i){if(!o)for(;a.length&&("space"===(h=a[a.length-1][0])||"comment"===h);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,i){for(var s,n,o,a,h=r.length,u="",l=!0,c=0;c<h;c+=1)"space"!==(n=(s=r[c])[0])||c!==h-1||i?"comment"===n?(a=r[c-1]?r[c-1][0]:"empty",o=r[c+1]?r[c+1][0]:"empty",um[a]||um[o]||","===u.slice(-1)?l=!1:u+=s[1]):u+=s[1]:l=!1;if(!l){var f=r.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:f,value:u}}t[e]=u}rule(t){t.pop();var e=new hm;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){for(var e,r="";t.length&&("space"===(e=t[t.length-1][0])||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){for(var e,r="";t.length&&("space"===(e=t[0][0])||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){for(var e="";t.length&&"space"===t[t.length-1][0];)e=t.pop()[1]+e;return e}stringFrom(t,e){for(var r="",i=e;i<t.length;i++)r+=t[i][1];return t.splice(e,t.length-e),r}unclosedBlock(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},fm=jv;function dm(t,e){var r=new fm(t,e),i=new cm(r);try{i.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return i.root}var vm=dm;dm.default=dm,lm.registerParse(dm);var{isClean:pm,my:mm}=zd,gm=Xv,wm=qd,ym=ap,bm=fp,Cm=vp,Sm=yp,Im=vm,km=Hp,Am={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Rm={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},xm={Once:!0,postcssPlugin:!0,prepare:!0};function Mm(t){return"object"==typeof t&&"function"==typeof t.then}function Om(t){var e=!1,r=Am[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Em(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Om(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Nm(t){return t[pm]=!1,t.nodes&&t.nodes.forEach(t=>Nm(t)),t}var Bm={},Tm=class t{constructor(e,r,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof Sm)n=Nm(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{var o=Im;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(r,s)}catch(t){this.processed=!0,this.error=t}n&&!n[mm]&&ym.rebuild(n)}else n=Nm(r);this.result=new Sm(e,n,s),this.helpers=i({},Bm,{postcss:Bm,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?i({},t,t.prepare(this.result)):t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){var r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var i=r.postcssPlugin,s=r.postcssVersion,n=this.result.processor.version,o=s.split("."),a=n.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};var t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(var e of this.plugins)if("object"==typeof e)for(var r in e){if(!Rm[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!xm[r])if("object"==typeof e[r])for(var i in e[r])t(e,"*"===i?r:r+"-"+i.toLowerCase(),e[r][i]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var t=this;return r(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Mm(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[pm];){s[pm]=!0;for(var n=[Em(s)];n.length>0;){var o=t.visitTick(n);if(Mm(o))try{yield o}catch(e){var a=n[n.length-1].node;throw t.handleError(e,a)}}}if(t.listeners.OnceExit){var h=function*(e){t.result.lastPlugin=u;try{if("document"===s.type){var r=s.nodes.map(r=>e(r,t.helpers));yield Promise.all(r)}else yield e(s,t.helpers)}catch(e){throw t.handleError(e)}};for(var[u,l]of t.listeners.OnceExit)yield*h(l)}}return t.processed=!0,t.stringify()})()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){var e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return Mm(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(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();var t=this.result.opts,e=wm;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new gm(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t of this.plugins){if(Mm(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[pm];)e[pm]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(var r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Cm("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(var[r,i]of t){this.result.lastPlugin=r;var s=void 0;try{s=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Mm(s))throw this.getAsyncError()}}visitTick(t){var e=t[t.length-1],{node:r,visitors:i}=e;if("root"===r.type||"document"===r.type||r.parent){if(i.length>0&&e.visitorIndex<i.length){var[s,n]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=s;try{return n(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){for(var o,a=e.iterator;o=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!o[pm])return o[pm]=!0,void t.push(Em(o));e.iterator=0,delete r.indexes[a]}for(var h=e.events;e.eventIndex<h.length;){var u=h[e.eventIndex];if(e.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[pm]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[pm]=!0;var e=Om(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[pm]||this.walkSync(t)});else{var i=this.listeners[r];if(i&&this.visitSync(i,t.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"}};Tm.registerPostcss=t=>{Bm=t};var jm=Tm;Tm.default=Tm,km.registerLazyResult(Tm),bm.registerLazyResult(Tm);var Fm=Xv,Zm=qd,Ym=vp,Lm=vm,Dm=yp,Um=class{constructor(t,e,r){var i;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;var s=Zm;this.result=new Dm(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Fm(s,i,this._opts,e);if(o.isMap()){var[a,h]=o.generate();a&&(this.result.css=a),h&&(this.result.map=h)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Ym("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}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;var t,e=Lm;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}},Pm=Um;Um.default=Um;var Gm=Pm,Wm=jm,Vm=fp,Xm=Hp,Jm=class{constructor(t){void 0===t&&(t=[]),this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){var e=[];for(var r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e){return void 0===e&&(e={}),this.plugins.length||e.parser||e.stringifier||e.syntax?new Wm(this,t,e):new Gm(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},zm=Jm;Jm.default=Jm,Xm.registerProcessor(Jm),Vm.registerProcessor(Jm);var _m=lv,Km=yv,Hm=_v,Qm=Xp,$m=jv,qm=Hp,tg=rm;function eg(t,e){if(Array.isArray(t))return t.map(t=>eg(t));var{inputs:r}=t,n=s(t,Ru);if(r)for(var o of(e=[],r)){var a=i({},o,{__proto__:$m.prototype});a.map&&(a.map=i({},a.map,{__proto__:Km.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>eg(t,e))),n.source){var h=n.source,{inputId:u}=h,l=s(h,xu);n.source=l,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new qm(n);if("decl"===n.type)return new _m(n);if("rule"===n.type)return new tg(n);if("comment"===n.type)return new Hm(n);if("atrule"===n.type)return new Qm(n);throw new Error("Unknown node type: "+t.type)}var rg=eg;eg.default=eg;var ig=Jd,sg=lv,ng=jm,og=ap,ag=zm,hg=qd,ug=rg,lg=fp,cg=mp,fg=_v,dg=Xp,vg=yp,pg=jv,mg=vm,gg=$p,wg=rm,yg=Hp,bg=av;function Cg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ag(e)}Cg.plugin=function(t,e){var r,i=!1;function s(){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new ag).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Cg([s(r)]).process(t,e)},s},Cg.stringify=hg,Cg.parse=mg,Cg.fromJSON=ug,Cg.list=gg,Cg.comment=t=>new fg(t),Cg.atRule=t=>new dg(t),Cg.decl=t=>new sg(t),Cg.rule=t=>new wg(t),Cg.root=t=>new yg(t),Cg.document=t=>new lg(t),Cg.CssSyntaxError=ig,Cg.Declaration=sg,Cg.Container=og,Cg.Processor=ag,Cg.Document=lg,Cg.Comment=fg,Cg.Warning=cg,Cg.AtRule=dg,Cg.Result=vg,Cg.Input=pg,Cg.Rule=wg,Cg.Root=yg,Cg.Node=bg,ng.registerPostcss(Cg);var Sg=Cg;Cg.default=Cg;var Ig=Zd(Sg);Ig.stringify,Ig.fromJSON,Ig.plugin,Ig.parse,Ig.list,Ig.document,Ig.comment,Ig.atRule,Ig.rule,Ig.decl,Ig.root,Ig.CssSyntaxError,Ig.Declaration,Ig.Container,Ig.Processor,Ig.Document,Ig.Comment,Ig.Warning,Ig.AtRule,Ig.Result,Ig.Input,Ig.Rule,Ig.Root,Ig.Node;class kg{constructor(){Fd(this,"parentElement",null),Fd(this,"parentNode",null),Fd(this,"ownerDocument"),Fd(this,"firstChild",null),Fd(this,"lastChild",null),Fd(this,"previousSibling",null),Fd(this,"nextSibling",null),Fd(this,"ELEMENT_NODE",1),Fd(this,"TEXT_NODE",3),Fd(this,"nodeType"),Fd(this,"nodeName"),Fd(this,"RRNodeType")}get childNodes(){for(var t=[],e=this.firstChild;e;)t.push(e),e=e.nextSibling;return t}contains(t){if(!(t instanceof kg))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var Ag={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Rg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xg={};function Mg(t){if(xg[t])return xg[t];var e=globalThis[t],r=e.prototype,i=t in Ag?Ag[t]:void 0,s=Boolean(i&&i.every(t=>{var e,i;return Boolean(null==(i=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:i.toString().includes("[native code]"))})),n=t in Rg?Rg[t]:void 0,o=Boolean(n&&n.every(t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))}));if(s&&o)return xg[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var h=a.contentWindow;if(!h)return e.prototype;var u=h[t].prototype;return document.body.removeChild(a),u?xg[t]=u:r}catch(t){return r}}var Og={};function Eg(t,e,r){var i,s=t+"."+String(r);if(Og[s])return Og[s].call(e);var n=Mg(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Og[s]=o,o.call(e)):e[r]}var Ng={};function Bg(t,e,r){var i=t+"."+String(r);if(Ng[i])return Ng[i].bind(e);var s=Mg(t)[r];return"function"!=typeof s?e[r]:(Ng[i]=s,s.bind(e))}var Tg={childNodes:function(t){return Eg("Node",t,"childNodes")},parentNode:function(t){return Eg("Node",t,"parentNode")},parentElement:function(t){return Eg("Node",t,"parentElement")},textContent:function(t){return Eg("Node",t,"textContent")},contains:function(t,e){return Bg("Node",t,"contains")(e)},getRootNode:function(t){return Bg("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Eg("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Eg("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Eg("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Eg("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Mg("MutationObserver").constructor}};var jg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Fg={map:{},getId:()=>(console.error(jg),-1),getNode:()=>(console.error(jg),null),removeNodeFromMap(){console.error(jg)},has:()=>(console.error(jg),!1),reset(){console.error(jg)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Fg=new Proxy(Fg,{get:(t,e,r)=>("map"===e&&console.error(jg),Reflect.get(t,e,r))}));var Zg=Date.now;function Yg(t){return t?t.nodeType===t.ELEMENT_NODE?t:Tg.parentElement(t):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(Zg=()=>(new Date).getTime());function Lg(t){var e,r=null;return"getRootNode"in t&&(null==(e=Tg.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Tg.host(Tg.getRootNode(t))&&(r=Tg.host(Tg.getRootNode(t))),r}function Dg(t){for(var e,r=t;e=Lg(r);)r=e;return r}function Ug(t){var e=t.ownerDocument;if(!e)return!1;var r=Dg(t);return Tg.contains(e,r)}for(var Pg=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){Nu(this,"id",1),Nu(this,"styleIDMap",new WeakMap),Nu(this,"idStyleMap",new Map)}getId(t){var e;return null!==(e=this.styleIDMap.get(t))&&void 0!==e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){return this.has(t)?this.getId(t):(r=void 0===e?this.id++:e,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r);var r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return Fg},closestElementOfNode:Yg,getBaseDimension:function t(e,r){var i,s,n=null==(s=null==(i=e.ownerDocument)?void 0:i.defaultView)?void 0:s.frameElement;if(!n||n===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var o=n.getBoundingClientRect(),a=t(n,r),h=o.height/n.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:h,absoluteScale:a.absoluteScale*h}},getNestedRule:function t(e,r){var i=e[r[0]];return 1===r.length?i:t(i.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(t){var e=[...t],r=e.pop();return{positions:e,index:r}},getRootShadowHost:Dg,getShadowHost:Lg,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(t){var e,r,i,s,n=t.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(e=Tg.parentElement(n.body))?void 0:e.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(i=Tg.parentElement(n.body))?void 0:i.scrollTop)||(null==(s=null==n?void 0:n.body)?void 0:s.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(t){return!!t&&(t instanceof kg&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Tg.shadowRoot(t)))},hookSetter:function t(e,r,i,s,n){void 0===n&&(n=window);var o=n.Object.getOwnPropertyDescriptor(e,r);return n.Object.defineProperty(e,r,s?i:{set(t){setTimeout(()=>{i.set.call(this,t)},0),o&&o.set&&o.set.call(this,t)}}),()=>t(e,r,o||{},!0)},inDom:function(t){var e=t.ownerDocument;return!!e&&(Tg.contains(e,t)||Ug(t))},isAncestorRemoved:function t(e,r){if(s=(i=e)&&"host"in i&&"mode"in i&&Gu.host(i)||null,Boolean(s&&"shadowRoot"in s&&Gu.shadowRoot(s)===i))return!1;var i,s,n=r.getId(e);if(!r.has(n))return!0;var o=Tg.parentNode(e);return(!o||o.nodeType!==e.DOCUMENT_NODE)&&(!o||t(o,r))},isBlocked:function(t,e,r,i){if(!t)return!1;var s=Yg(t);if(!s)return!1;try{if("string"==typeof e){if(s.classList.contains(e))return!0;if(i&&null!==s.closest("."+e))return!0}else if(Vu(s,e,i))return!0}catch(t){}if(r){if(s.matches(r))return!0;if(i&&null!==s.closest(r))return!0}return!1},isIgnored:function(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||-2===e.getId(t)},isSerialized:function(t,e){return-1!==e.getId(t)},isSerializedIframe:function(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))},isSerializedStylesheet:function(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))},iterateResolveTree:function t(e,r){r(e.value);for(var i=e.children.length-1;i>=0;i--)t(e.children[i],r)},legacy_isTouchEvent:function(t){return Boolean(t.changedTouches)},get nowTimestamp(){return Zg},on:function(t,e,r){void 0===r&&(r=document);var i={capture:!0,passive:!0};return r.addEventListener(t,e,i),()=>r.removeEventListener(t,e,i)},patch:function(t,e,r){try{if(!(e in t))return()=>{};var i=t[e],s=r(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),t[e]=s,()=>{t[e]=i}}catch(t){return()=>{}}},polyfill:function(t){void 0===t&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(t){var e={},r=(t,r)=>{var i={value:t,parent:r,children:[]};return e[t.node.id]=i,i},i=[];for(var s of t){var{nextId:n,parentId:o}=s;if(n&&n in e){var a=e[n];if(a.parent){var h=a.parent.children.indexOf(a);a.parent.children.splice(h,0,r(s,a.parent))}else{var u=i.indexOf(a);i.splice(u,0,r(s,null))}}else if(o in e){var l=e[o];l.children.push(r(s,l))}else i.push(r(s,null))}return i},shadowHostInDom:Ug,throttle:function(t,e,r){void 0===r&&(r={});var i=null,s=0;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var h=Date.now();s||!1!==r.leading||(s=h);var u=e-(h-s),l=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(l,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(l,o)},u))}},uniqueTextMutations:function(t){for(var e=new Set,r=[],i=t.length;i--;){var s=t[i];e.has(s.id)||(r.push(s),e.add(s.id))}return r}},Symbol.toStringTag,{value:"Module"})),Gg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wg="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Vg=0;Vg<64;Vg++)Wg[Gg.charCodeAt(Vg)]=Vg;var Xg;"undefined"!=typeof window&&window.Blob&&new Blob([(t=>Uint8Array.from(atob(t),t=>t.charCodeAt(0)))("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],t=>2*t)[0]){var Jg=document.createElement("iframe");document.body.appendChild(Jg),Array.from=(null==(Iu=Jg.contentWindow)?void 0:Iu.Array.from)||Array.from,document.body.removeChild(Jg)}}catch(t){console.debug("Unable to override Array.from",t)}new Wu,function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Xg||(Xg={}));class zg{constructor(t){Ou(this,"fileName"),Ou(this,"functionName"),Ou(this,"lineNumber"),Ou(this,"columnNumber"),this.fileName=t.fileName||"",this.functionName=t.functionName||"",this.lineNumber=t.lineNumber,this.columnNumber=t.columnNumber}toString(){var t=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+t+":"+e+")":this.fileName+":"+t+":"+e}}var _g=/(^|@)\S+:\d+/,Kg=/^\s*at .*(\S+:\d+|\(native\))/m,Hg=/^(eval@)?(\[native code])?$/,Qg={parse:function(t){return t?void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]?this.parseOpera(t):t.stack&&t.stack.match(Kg)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+t);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(t){return!!t.match(Kg)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=r?e.replace(r[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:i.pop()),n=i.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new zg({functionName:n,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(t){return!t.match(Hg)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new zg({functionName:t});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(e),i=r&&r[1]?r[1]:void 0,s=this.extractLocation(t.replace(e,""));return new zg({functionName:i,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],s=2,n=r.length;s<n;s+=2){var o=e.exec(r[s]);o&&i.push(new zg({fileName:o[2],lineNumber:parseFloat(o[1])}))}return i},parseOpera10:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],s=0,n=r.length;s<n;s+=2){var o=e.exec(r[s]);o&&i.push(new zg({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return i},parseOpera11:function(t){return t.stack.split("\n").filter(function(t){return!!t.match(_g)&&!t.match(/^Error created at/)},this).map(function(t){var e=t.split("@"),r=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new zg({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function $g(t){if(!t||!t.outerHTML)return"";for(var e="";t.parentElement;){var r=t.localName;if(!r)break;r=r.toLowerCase();var i=t.parentElement,s=[];if(i.children&&i.children.length>0)for(var n=0;n<i.children.length;n++){var o=i.children[n];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===r&&s.push(o)}s.length>1&&(r+=":eq("+s.indexOf(t)+")"),e=r+(e?">"+e:""),t=i}return e}function qg(t){return"[object Object]"===Object.prototype.toString.call(t)}function tw(t,e){if(0===e)return!0;var r=Object.keys(t);for(var i of r)if(qg(t[i])&&tw(t[i],e-1))return!0;return!1}function ew(t,e){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,e);var i=[],s=[];return JSON.stringify(t,function(t,e){if(i.length>0){var n=i.indexOf(this);~n?i.splice(n+1):i.push(this),~n?s.splice(n,1/0,t):s.push(t),~i.indexOf(e)&&(e=i[0]===e?"[Circular ~]":"[Circular ~."+s.slice(0,i.indexOf(e)).join(".")+"]")}else i.push(e);if(null===e)return e;if(void 0===e)return"undefined";if(function(t){if(qg(t)&&Object.keys(t).length>r.numOfKeysLimit)return!0;if("function"==typeof t)return!0;if(qg(t)&&tw(t,r.depthOfLimit))return!0;return!1}(e))return function(t){var e=t.toString();r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=e.slice(0,r.stringLengthLimit)+"...");return e}(e);if("bigint"==typeof e)return e.toString()+"n";if(e instanceof Event){var o={};for(var a in e){var h=e[a];Array.isArray(h)?o[a]=$g(h.length?h[0]:null):o[a]=h}return o}return e instanceof Node?e instanceof HTMLElement?e?e.outerHTML:"":e.nodeName:e instanceof Error?e.stack?e.stack+"\nEnd of stack for Error object":e.name+": "+e.message:e})}var rw={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function iw(t,e,r){var i,s=r?Object.assign({},rw,r):rw,n=s.logger;if(!n)return()=>{};i="string"==typeof n?e[n]:n;var o=0,a=!1,h=[];if(s.level.includes("error")){var u=e=>{var r=e.message,i=e.error,n=Qg.parse(i).map(t=>t.toString()),o=[ew(r,s.stringifyOptions)];t({level:"error",trace:n,payload:o})};e.addEventListener("error",u),h.push(()=>{e.removeEventListener("error",u)});var l=e=>{var r,i;e.reason instanceof Error?i=[ew("Uncaught (in promise) "+(r=e.reason).name+": "+r.message,s.stringifyOptions)]:(r=new Error,i=[ew("Uncaught (in promise)",s.stringifyOptions),ew(e.reason,s.stringifyOptions)]);var n=Qg.parse(r).map(t=>t.toString());t({level:"error",trace:n,payload:i})};e.addEventListener("unhandledrejection",l),h.push(()=>{e.removeEventListener("unhandledrejection",l)})}for(var c of s.level)h.push(f(i,c));return()=>{h.forEach(t=>t())};function f(e,r){var i=this;return e[r]?Pg.patch(e,r,e=>function(){for(var n=arguments.length,h=new Array(n),u=0;u<n;u++)h[u]=arguments[u];if(e.apply(i,h),!("assert"===r&&h[0]||a)){a=!0;try{var l=Qg.parse(new Error).map(t=>t.toString()).splice(1),c=("assert"===r?h.slice(1):h).map(t=>ew(t,s.stringifyOptions));++o<s.lengthThreshold?t({level:r,trace:l,payload:c}):o===s.lengthThreshold&&t({level:"warn",trace:[],payload:[ew("The number of log records reached the threshold.")]})}catch(t){e("rrweb logger error:",t,...h)}finally{a=!1}}}):()=>{}}}var sw="undefined"!=typeof window?window:void 0,nw="undefined"!=typeof globalThis?globalThis:sw,ow=null==nw?void 0:nw.navigator,aw=null==nw?void 0:nw.document;null==nw||nw.location,null==nw||nw.fetch,(null==nw?void 0:nw.XMLHttpRequest)&&"withCredentials"in new nw.XMLHttpRequest&&nw.XMLHttpRequest,null==nw||nw.AbortController,null==ow||ow.userAgent;var hw=null!=sw?sw:{},uw=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(uw||{}),lw=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(lw||{});function cw(t,e,r,i){var{capture:s=!1,passive:n=!0}={};null==t||t.addEventListener(e,r,{capture:s,passive:n})}var fw=Uint8Array,dw=Uint16Array,vw=Int32Array,pw=new fw([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mw=new fw([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gw=new fw([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ww=function(t,e){for(var r=new dw(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var s=new vw(r[30]);for(i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return{b:r,r:s}},yw=ww(pw,2),bw=yw.b,Cw=yw.r;bw[28]=258,Cw[258]=28;for(var Sw=ww(mw,0).r,Iw=new dw(32768),kw=0;kw<32768;++kw){var Aw=(43690&kw)>>1|(21845&kw)<<1;Aw=(61680&(Aw=(52428&Aw)>>2|(13107&Aw)<<2))>>4|(3855&Aw)<<4,Iw[kw]=((65280&Aw)>>8|(255&Aw)<<8)>>1}var Rw=function(t,e,r){for(var i=t.length,s=0,n=new dw(e);s<i;++s)t[s]&&++n[t[s]-1];var o,a=new dw(e);for(s=1;s<e;++s)a[s]=a[s-1]+n[s-1]<<1;if(r){o=new dw(1<<e);var h=15-e;for(s=0;s<i;++s)if(t[s])for(var u=s<<4|t[s],l=e-t[s],c=a[t[s]-1]++<<l,f=c|(1<<l)-1;c<=f;++c)o[Iw[c]>>h]=u}else for(o=new dw(i),s=0;s<i;++s)t[s]&&(o[s]=Iw[a[t[s]-1]++]>>15-t[s]);return o},xw=new fw(288);for(kw=0;kw<144;++kw)xw[kw]=8;for(kw=144;kw<256;++kw)xw[kw]=9;for(kw=256;kw<280;++kw)xw[kw]=7;for(kw=280;kw<288;++kw)xw[kw]=8;var Mw=new fw(32);for(kw=0;kw<32;++kw)Mw[kw]=5;var Ow=Rw(xw,9,0),Ew=Rw(Mw,5,0),Nw=function(t){return(t+7)/8|0},Bw=function(t,e,r){return(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length),new fw(t.subarray(e,r))},Tw=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>8},jw=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>8,t[i+2]|=r>>16},Fw=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var s=r.length,n=r.slice();if(!s)return{t:Gw,l:0};if(1==s){var o=new fw(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(t,e){return t.f-e.f}),r.push({s:-1,f:25001});var a=r[0],h=r[1],u=0,l=1,c=2;for(r[0]={s:-1,f:a.f+h.f,l:a,r:h};l!=s-1;)a=r[r[u].f<r[c].f?u++:c++],h=r[u!=l&&r[u].f<r[c].f?u++:c++],r[l++]={s:-1,f:a.f+h.f,l:a,r:h};var f=n[0].s;for(i=1;i<s;++i)n[i].s>f&&(f=n[i].s);var d=new dw(f+1),v=Zw(r[l-1],d,0);if(v>e){i=0;var p=0,m=v-e,g=1<<m;for(n.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<s;++i){var w=n[i].s;if(!(d[w]>e))break;p+=g-(1<<v-d[w]),d[w]=e}for(p>>=m;p>0;){var y=n[i].s;d[y]<e?p-=1<<e-d[y]++-1:++i}for(;i>=0&&p;--i){var b=n[i].s;d[b]==e&&(--d[b],++p)}v=e}return{t:new fw(d),l:v}},Zw=function(t,e,r){return-1==t.s?Math.max(Zw(t.l,e,r+1),Zw(t.r,e,r+1)):e[t.s]=r},Yw=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new dw(++e),i=0,s=t[0],n=1,o=function(t){r[i++]=t},a=1;a<=e;++a)if(t[a]==s&&a!=e)++n;else{if(!s&&n>2){for(;n>138;n-=138)o(32754);n>2&&(o(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(o(s),--n;n>6;n-=6)o(8304);n>2&&(o(n-3<<5|8208),n=0)}for(;n--;)o(s);n=1,s=t[a]}return{c:r.subarray(0,i),n:e}},Lw=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},Dw=function(t,e,r){var i=r.length,s=Nw(e+2);t[s]=255&i,t[s+1]=i>>8,t[s+2]=255^t[s],t[s+3]=255^t[s+1];for(var n=0;n<i;++n)t[s+n+4]=r[n];return 8*(s+4+i)},Uw=function(t,e,r,i,s,n,o,a,h,u,l){Tw(e,l++,r),++s[256];for(var c=Fw(s,15),f=c.t,d=c.l,v=Fw(n,15),p=v.t,m=v.l,g=Yw(f),w=g.c,y=g.n,b=Yw(p),C=b.c,S=b.n,I=new dw(19),k=0;k<w.length;++k)++I[31&w[k]];for(k=0;k<C.length;++k)++I[31&C[k]];for(var A=Fw(I,7),R=A.t,x=A.l,M=19;M>4&&!R[gw[M-1]];--M);var O,E,N,B,T=u+5<<3,j=Lw(s,xw)+Lw(n,Mw)+o,F=Lw(s,f)+Lw(n,p)+o+14+3*M+Lw(I,R)+2*I[16]+3*I[17]+7*I[18];if(h>=0&&T<=j&&T<=F)return Dw(e,l,t.subarray(h,h+u));if(Tw(e,l,1+(F<j)),l+=2,F<j){O=Rw(f,d,0),E=f,N=Rw(p,m,0),B=p;var Z=Rw(R,x,0);Tw(e,l,y-257),Tw(e,l+5,S-1),Tw(e,l+10,M-4),l+=14;for(k=0;k<M;++k)Tw(e,l+3*k,R[gw[k]]);l+=3*M;for(var Y=[w,C],L=0;L<2;++L){var D=Y[L];for(k=0;k<D.length;++k){var U=31&D[k];Tw(e,l,Z[U]),l+=R[U],U>15&&(Tw(e,l,D[k]>>5&127),l+=D[k]>>12)}}}else O=Ow,E=xw,N=Ew,B=Mw;for(k=0;k<a;++k){var P=i[k];if(P>255){jw(e,l,O[(U=P>>18&31)+257]),l+=E[U+257],U>7&&(Tw(e,l,P>>23&31),l+=pw[U]);var G=31&P;jw(e,l,N[G]),l+=B[G],G>3&&(jw(e,l,P>>5&8191),l+=mw[G])}else jw(e,l,O[P]),l+=E[P]}return jw(e,l,O[256]),l+E[256]},Pw=new vw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gw=new fw(0),Ww=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),Vw=function(t,e,r,i,s){if(!s&&(s={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),o=new fw(n.length+t.length);o.set(n),o.set(t,n.length),t=o,s.w=n.length}return function(t,e,r,i,s,n){var o=n.z||t.length,a=new fw(i+o+5*(1+Math.ceil(o/7e3))+s),h=a.subarray(i,a.length-s),u=n.l,l=7&(n.r||0);if(e){l&&(h[0]=n.r>>3);for(var c=Pw[e-1],f=c>>13,d=8191&c,v=(1<<r)-1,p=n.p||new dw(32768),m=n.h||new dw(v+1),g=Math.ceil(r/3),w=2*g,y=function(e){return(t[e]^t[e+1]<<g^t[e+2]<<w)&v},b=new vw(25e3),C=new dw(288),S=new dw(32),I=0,k=0,A=n.i||0,R=0,x=n.w||0,M=0;A+2<o;++A){var O=y(A),E=32767&A,N=m[O];if(p[E]=N,m[O]=E,x<=A){var B=o-A;if((I>7e3||R>24576)&&(B>423||!u)){l=Uw(t,h,0,b,C,S,k,R,M,A-M,l),R=I=k=0,M=A;for(var T=0;T<286;++T)C[T]=0;for(T=0;T<30;++T)S[T]=0}var j=2,F=0,Z=d,Y=E-N&32767;if(B>2&&O==y(A-Y))for(var L=Math.min(f,B)-1,D=Math.min(32767,A),U=Math.min(258,B);Y<=D&&--Z&&E!=N;){if(t[A+j]==t[A+j-Y]){for(var P=0;P<U&&t[A+P]==t[A+P-Y];++P);if(P>j){if(j=P,F=Y,P>L)break;var G=Math.min(Y,P-2),W=0;for(T=0;T<G;++T){var V=A-Y+T&32767,X=V-p[V]&32767;X>W&&(W=X,N=V)}}}Y+=(E=N)-(N=p[E])&32767}if(F){b[R++]=268435456|Cw[j]<<18|Sw[F];var J=31&Cw[j],z=31&Sw[F];k+=pw[J]+mw[z],++C[257+J],++S[z],x=A+j,++I}else b[R++]=t[A],++C[t[A]]}}for(A=Math.max(A,x);A<o;++A)b[R++]=t[A],++C[t[A]];l=Uw(t,h,u,b,C,S,k,R,M,A-M,l),u||(n.r=7&l|h[l/8|0]<<3,l-=7,n.h=m,n.p=p,n.i=A,n.w=x)}else{for(A=n.w||0;A<o+u;A+=65535){var _=A+65535;_>=o&&(h[l/8|0]=u,_=o),l=Dw(h,l+1,t.subarray(A,_))}n.i=o}return Bw(a,0,i+Nw(l)+s)}(t,null==e.level?6:e.level,null==e.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,r,i,s)},Xw=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8};function Jw(t,e){e||(e={});var r=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=Ww[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}}(),i=t.length;r.p(t);var s,n=Vw(t,e,10+((s=e).filename?s.filename.length+1:0),8),o=n.length;return function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&Xw(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}}(n,e),Xw(n,o-8,r.d()),Xw(n,o-4,i),n}var zw="undefined"!=typeof TextEncoder&&new TextEncoder,_w="undefined"!=typeof TextDecoder&&new TextDecoder;try{_w.decode(Gw,{stream:!0})}catch(t){}function Kw(t,e){if(zw)return zw.encode(t);for(var r=t.length,i=new fw(t.length+(t.length>>1)),s=0,n=function(t){i[s++]=t},o=0;o<r;++o){if(s+5>i.length){var a=new fw(s+8+(r-o<<1));a.set(i),i=a}var h=t.charCodeAt(o);h<128||e?n(h):h<2048?(n(192|h>>6),n(128|63&h)):h>55295&&h<57344?(n(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++o))>>18),n(128|h>>12&63),n(128|h>>6&63),n(128|63&h)):(n(224|h>>12),n(128|h>>6&63),n(128|63&h))}return Bw(i,0,s)}var Hw=[lw.MouseMove,lw.MouseInteraction,lw.Scroll,lw.ViewportResize,lw.Input,lw.TouchMove,lw.MediaInteraction,lw.Drag];function Qw(t){return function(t){for(var e="",r=0;r<t.length;r+=16384)e+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return e}(Jw(Kw(JSON.stringify(t))))}function $w(t){try{return new Blob([JSON.stringify(t)]).size}catch(e){return 2*JSON.stringify(t).length}}function qw(t,e){if(void 0===e&&(e=6606028.8),t.size>=e&&t.data.length>1){var r=Math.floor(t.data.length/2),i=t.data.slice(0,r),s=t.data.slice(r);return[...qw({size:$w(i),data:i,sessionId:t.sessionId,windowId:t.windowId}),...qw({size:$w(s),data:s,sessionId:t.sessionId,windowId:t.windowId})]}return[t]}function ty(t,e,r,i,s){return t<e||t>r?(console.warn("[SessionRecording] "+i+" must be between "+e+" and "+r+". Using default: "+s),s):t}var ey="[SessionRecording]";function ry(){var t,e;return null===(e=null===(t=null==hw?void 0:hw.__VTiltExtensions__)||void 0===t?void 0:t.rrweb)||void 0===e?void 0:e.record}function iy(t){return{rrwebMethod:t,enqueuedAt:Date.now(),attempt:1}}class sy{constructor(t,e){void 0===e&&(e={}),this.o="/api/s",this.u=!1,this.m="unknown",this.C=Date.now(),this.S="",this.I="",this.k=[],this.A=()=>{this.R()},this.M=()=>{this.O("browser offline",{})},this.N=()=>{this.O("browser online",{})},this.B=()=>{if(null==aw?void 0:aw.visibilityState){var t="window "+aw.visibilityState;this.O(t,{})}},this._instance=t,this.T=e,this.j=this.F()}get isStarted(){return this.u}get started(){return this.u}get sessionId(){return this.S}get status(){return this.u?!0===this.m?"paused":"active":"disabled"}start(t){this.Z()?(this.Y(t),sw&&(cw(sw,"beforeunload",this.A),cw(sw,"offline",this.M),cw(sw,"online",this.N),cw(sw,"visibilitychange",this.B))):this.stop()}stop(){this.u&&this.L&&(this.L(),this.L=void 0,this.u=!1,sw&&(sw.removeEventListener("beforeunload",this.A),sw.removeEventListener("offline",this.M),sw.removeEventListener("online",this.N),sw.removeEventListener("visibilitychange",this.B)),this.F(),this.D&&clearInterval(this.D),console.info(ey+" stopped"))}stopRecording(){this.stop()}addCustomEvent(t,e){return this.O(t,e)}takeFullSnapshot(){return this.U()}log(t,e){void 0===e&&(e="log"),this.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:e,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}updateConfig(t){this.T=i({},this.T,t)}Z(){return!!this.T.enabled&&!!sw}Y(t){if(void 0!==Object.assign&&void 0!==Array.from&&!this.u){this.u=!0;var e=this._instance.getSessionId();this.S=e||this.P(),this.I=this.P(),ry()?this.G():this.W(()=>{this.G()}),console.info(ey+" starting"),t&&this.V(t)}}W(t){var e,r=null===(e=hw.__VTiltExtensions__)||void 0===e?void 0:e.loadExternalDependency;r?r(this._instance,"recorder",e=>{e?console.error(ey+" Could not load recorder:",e):t()}):console.error(ey+" loadExternalDependency not available. Make sure external-scripts-loader is initialized.")}G(){var t,e,r=ry();if(r){var s={blockClass:this.T.blockClass||"vt-no-capture",blockSelector:this.T.blockSelector,ignoreClass:this.T.ignoreClass||"vt-ignore-input",maskTextClass:this.T.maskTextClass||"vt-mask",maskTextSelector:this.T.maskTextSelector,maskTextFn:void 0,maskAllInputs:null===(t=this.T.maskAllInputs)||void 0===t||t,maskInputOptions:i({password:!0},this.T.maskInputOptions),maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},n=this.X();n.enabled&&(s.recordCanvas=!0,s.sampling={canvas:n.fps},s.dataURLOptions={type:"image/webp",quality:n.quality});var o=this.J();o&&(s.maskAllInputs=null===(e=o.maskAllInputs)||void 0===e||e,s.maskTextSelector=o.maskTextSelector,s.blockSelector=o.blockSelector);var a=this.K();this.L=r(i({emit:t=>{this.onRRwebEmit(t)},plugins:a},s)),this.C=Date.now(),this.m="boolean"==typeof this.m?this.m:"unknown",this.O("$session_options",{sessionRecordingOptions:s,activePlugins:a.map(t=>null==t?void 0:t.name)})}else console.error(ey+" onScriptLoaded was called but rrwebRecord is not available")}K(){var t,e,r=[];if(this.T.captureConsole)try{var i=null===(e=null===(t=hw.__VTiltExtensions__)||void 0===t?void 0:t.rrwebPlugins)||void 0===e?void 0:e.getRecordConsolePlugin;i&&r.push(i())}catch(t){console.warn(ey+" Failed to load console plugin",t)}return r}onRRwebEmit(t){if(this.H(),t&&"object"==typeof t){if(t.type===uw.Meta){var e=t.data;this.$=e.href}if(function(t){return t.type===uw.Custom&&"recording paused"===t.data.tag}(t));else if(!0===this.m)return;t.type===uw.FullSnapshot&&this.q();var r=function(t){if(t.type!==uw.Plugin||"rrweb/console@1"!==t.data.plugin)return t;var e=t.data.payload;if(!(null==e?void 0:e.payload))return t;var r=e.payload.map(t=>"string"==typeof t&&t.length>1e3?t.substring(0,1e3)+"... [truncated]":t);return i({},t,{data:i({},t.data,{payload:i({},e,{payload:r})})})}(t);if(this.tt(r),!0!==this.m||function(t){return t.type===uw.Custom&&"sessionIdle"===t.data.tag}(r)){var s=!1!==this.T.compressEvents?function(t){if($w(t)<1024)return t;try{if(t.type===uw.FullSnapshot)return i({},t,{data:Qw(t.data),cv:"2024-10"});if(t.type===uw.IncrementalSnapshot&&t.data.source===lw.Mutation){var e=t.data;return i({},t,{cv:"2024-10",data:i({},e,{texts:Qw(e.texts),attributes:Qw(e.attributes),removes:Qw(e.removes),adds:Qw(e.adds)})})}if(t.type===uw.IncrementalSnapshot&&t.data.source===lw.StyleSheetRule){var r=t.data;return i({},t,{cv:"2024-10",data:i({},r,{adds:r.adds?Qw(r.adds):void 0,removes:r.removes?Qw(r.removes):void 0})})}}catch(t){console.error("[SessionRecording] Could not compress event - will use uncompressed event",t)}return t}(r):r,n={$snapshot_bytes:$w(s),$snapshot_data:s,$session_id:this.S,$window_id:this.I};"disabled"!==this.status?this.et(n):this.F()}}}H(){if(0!==this.k.length){var t=[...this.k];this.k=[],t.forEach(t=>{Date.now()-t.enqueuedAt<=2e3&&this.rt(t)})}}tt(t){var e=function(t){return 3===t.type&&Hw.includes(t.data.source)}(t);if(!e&&!this.m){var r=t.timestamp-this.C,i=this.T.sessionIdleThresholdMs||3e5;r>i&&(this.m=!0,this.D&&clearInterval(this.D),this.O("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this.C,threshold:i,bufferLength:this.j.data.length,bufferSize:this.j.size}),this.R())}var s=!1;if(e&&(this.C=t.timestamp,this.m)){var n="unknown"===this.m;this.m=!1,n||(this.O("sessionNoLongerIdle",{reason:"user activity",type:t.type}),s=!0)}if(!this.m){var o=this._instance.getSessionId();o&&o!==this.S?(this.S=o,this.I=this.P(),this.stop(),this.start("session_id_changed")):s&&this.q()}}F(){return this.j={size:0,data:[],sessionId:this.S,windowId:this.I},this.j}R(){if(this.it&&(clearTimeout(this.it),this.it=void 0),"buffering"===this.status||"paused"===this.status||"disabled"===this.status)return this.it=setTimeout(()=>{this.R()},2e3),this.j;this.j.data.length>0&&qw(this.j).forEach(t=>{this.st({$snapshot_bytes:t.size,$snapshot_data:t.data,$session_id:t.sessionId,$window_id:t.windowId})});return this.F()}et(t){var e,r=2+((null===(e=this.j)||void 0===e?void 0:e.data.length)||0),i=t.$snapshot_bytes;!this.m&&(this.j.size+i+r>943718.4||this.j.sessionId!==this.S)&&(this.j=this.R()),this.j.size+=i,this.j.data.push(t.$snapshot_data),this.it||this.m||(this.it=setTimeout(()=>{this.R()},2e3))}st(t){var e=this._instance.getConfig(),r=e.api_host||"",i=e.token||"";if(r&&i){var s=!1!==this.T.compressEvents,n=""+r.replace(/\/$/,"")+this.o+"?token="+encodeURIComponent(i)+(s?"&compression=gzip-js":""),o={token:i,distinct_id:this._instance.getDistinctId()||"",$session_id:this.S,$window_id:this.I,$snapshot_data:t.$snapshot_data,$snapshot_bytes:t.$snapshot_bytes,$lib:"web",$lib_version:this._instance.version||"unknown",timestamp:Date.now()};this.nt(n,o,s)}else console.warn(ey+" Missing api_host or token, cannot send snapshot")}nt(t,e,r){var i=JSON.stringify(e),s=e.$snapshot_data,n=Array.isArray(s)&&s.some(t=>2===(null==t?void 0:t.type)),o=i.length>6e4||n;if(r&&void 0!==sw)try{var a=Jw(Kw(i)),h=new Blob([a],{type:"application/octet-stream"});if(o)return void this.ot(t,h,"application/octet-stream");if("undefined"!=typeof navigator&&navigator.sendBeacon)if(navigator.sendBeacon(t,h))return;return void this.ot(t,h,"application/octet-stream")}catch(t){console.warn(ey+" Compression failed, sending uncompressed")}var u=t.replace("&compression=gzip-js","");if(o){var l=new Blob([i],{type:"application/json"});this.ot(u,l,"application/json")}else{if("undefined"!=typeof navigator&&navigator.sendBeacon){var c=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(u,c))return}var f=new Blob([i],{type:"application/json"});this.ot(u,f,"application/json")}}ot(t,e,r,i){void 0===i&&(i=0);var s=e.size<6e4;fetch(t,{method:"POST",body:e,headers:{"Content-Type":r},keepalive:s}).then(s=>{s.ok||(s.status>=400&&s.status<500?console.warn(ey+" Snapshot rejected by server ("+s.status+"), not retrying"):this.ht(t,e,r,i))}).catch(()=>{this.ht(t,e,r,i)})}ht(t,e,r,i){if(i>=5)console.warn(ey+" Failed to send snapshot after 5 retries, giving up");else{var s=3e3*Math.pow(2,i),n=Math.min(s,3e4),o=(Math.random()-.5)*n,a=Math.ceil(n+o);console.warn(ey+" Snapshot send failed, retrying in "+Math.round(a/1e3)+"s (attempt "+(i+1)+"/5)"),setTimeout(()=>{this.ot(t,e,r,i+1)},a)}}q(){if(this.D&&clearInterval(this.D),!0!==this.m){var t=this.T.fullSnapshotIntervalMs||3e5;this.D=setInterval(()=>{this.U()},t)}}rt(t){try{return t.rrwebMethod(),!0}catch(e){return this.k.length<10?this.k.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt+1,rrwebMethod:t.rrwebMethod}):console.warn(ey+" Could not emit queued rrweb event",e,t),!1}}O(t,e){return this.rt(iy(()=>ry().addCustomEvent(t,e)))}U(){return this.rt(iy(()=>ry().takeFullSnapshot()))}X(){var t,e,r,i=this.T.captureCanvas,s=null!==(t=null==i?void 0:i.recordCanvas)&&void 0!==t&&t,n=null!==(e=null==i?void 0:i.canvasFps)&&void 0!==e?e:4,o=null!==(r=null==i?void 0:i.canvasQuality)&&void 0!==r?r:.4;return{enabled:s,fps:ty(n,0,12,"canvas recording fps",4),quality:ty(o,0,1,"canvas recording quality",.4)}}J(){var t,e=this.T.masking;if(e)return{maskAllInputs:null===(t=e.maskAllInputs)||void 0===t||t,maskTextSelector:e.maskTextSelector,blockSelector:e.blockSelector}}P(){return Math.random().toString(36).substring(2,15)}V(t,e){console.info(ey+" "+t.replace(/_/g," "),e),"recording_initialized"!==t&&"session_id_changed"!==t&&this.O(t,e)}}function ny(t,e){return new sy(t,e)}hw.__VTiltExtensions__=hw.__VTiltExtensions__||{},hw.__VTiltExtensions__.rrweb={record:Su,version:"v2"},hw.__VTiltExtensions__.rrwebPlugins={getRecordConsolePlugin:t=>({name:"rrweb/console@1",observer:iw,options:t})},hw.__VTiltExtensions__.initSessionRecording=ny,t.default=Su,t.initSessionRecording=ny,Object.defineProperty(t,"__esModule",{value:!0})}({});
|
|
2
|
+
//# sourceMappingURL=recorder.js.map
|