@v-tilt/browser 1.2.0 → 1.3.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.
Files changed (41) hide show
  1. package/dist/all-external-dependencies.js +2 -0
  2. package/dist/all-external-dependencies.js.map +1 -0
  3. package/dist/array.full.js +2 -0
  4. package/dist/array.full.js.map +1 -0
  5. package/dist/array.js +1 -1
  6. package/dist/array.js.map +1 -1
  7. package/dist/array.no-external.js +1 -1
  8. package/dist/array.no-external.js.map +1 -1
  9. package/dist/entrypoints/all-external-dependencies.d.ts +8 -0
  10. package/dist/entrypoints/array.full.d.ts +17 -0
  11. package/dist/entrypoints/web-vitals.d.ts +14 -0
  12. package/dist/external-scripts-loader.js +1 -1
  13. package/dist/external-scripts-loader.js.map +1 -1
  14. package/dist/main.js +1 -1
  15. package/dist/main.js.map +1 -1
  16. package/dist/module.d.ts +34 -4
  17. package/dist/module.js +1 -1
  18. package/dist/module.js.map +1 -1
  19. package/dist/module.no-external.d.ts +34 -4
  20. package/dist/module.no-external.js +1 -1
  21. package/dist/module.no-external.js.map +1 -1
  22. package/dist/recorder.js.map +1 -1
  23. package/dist/types.d.ts +32 -2
  24. package/dist/utils/globals.d.ts +27 -0
  25. package/dist/web-vitals.d.ts +89 -5
  26. package/dist/web-vitals.js +2 -0
  27. package/dist/web-vitals.js.map +1 -0
  28. package/lib/config.js +5 -3
  29. package/lib/entrypoints/all-external-dependencies.d.ts +8 -0
  30. package/lib/entrypoints/all-external-dependencies.js +10 -0
  31. package/lib/entrypoints/array.full.d.ts +17 -0
  32. package/lib/entrypoints/array.full.js +19 -0
  33. package/lib/entrypoints/external-scripts-loader.js +1 -1
  34. package/lib/entrypoints/web-vitals.d.ts +14 -0
  35. package/lib/entrypoints/web-vitals.js +29 -0
  36. package/lib/types.d.ts +32 -2
  37. package/lib/types.js +16 -0
  38. package/lib/utils/globals.d.ts +27 -0
  39. package/lib/web-vitals.d.ts +89 -5
  40. package/lib/web-vitals.js +354 -46
  41. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ !function(){"use strict";function t(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 e(e){return function(){var r=this,i=arguments;return new Promise(function(s,n){var o=e.apply(r,i);function a(e){t(o,s,n,a,h,"next",e)}function h(e){t(o,s,n,a,h,"throw",e)}a(void 0)})}}function r(){return r=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},r.apply(null,arguments)}function i(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 s,n=["inputs"],o=["inputId"],a=["inputs"],h=["inputId"],u=["type"],c=Object.defineProperty,l=(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),f=Object.defineProperty,d=(t,e,r)=>((t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),v=(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))(v||{}),p={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},m={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},g={};function w(t){if(g[t])return g[t];var e=globalThis[t],r=e.prototype,i=t in p?p[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 m?m[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 g[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?g[t]=u:r}catch(t){return r}}var y={};function b(t,e,r){var i,s=t+"."+String(r);if(y[s])return y[s].call(e);var n=w(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(y[s]=o,o.call(e)):e[r]}var C={};function S(t,e,r){var i=t+"."+String(r);if(C[i])return C[i].bind(e);var s=w(t)[r];return"function"!=typeof s?e[r]:(C[i]=s,s.bind(e))}var I={childNodes:function(t){return b("Node",t,"childNodes")},parentNode:function(t){return b("Node",t,"parentNode")},parentElement:function(t){return b("Node",t,"parentElement")},textContent:function(t){return b("Node",t,"textContent")},contains:function(t,e){return S("Node",t,"contains")(e)},getRootNode:function(t){return S("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?b("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?b("Element",t,"shadowRoot"):null},querySelector:function(t,e){return b("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return b("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return w("MutationObserver").constructor}};function k(t){return t.nodeType===t.ELEMENT_NODE}function A(t){var e=t&&"host"in t&&"mode"in t&&I.host(t)||null;return Boolean(e&&"shadowRoot"in e&&I.shadowRoot(e)===t)}function R(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=>x(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 x(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?D(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?D(s,e):s}let E=class{constructor(){d(this,"idNodeMap",new Map),d(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 O(t){var{element:e,maskInputOptions:r,tagName:i,type:s,value:n,maskInputFn:o}=t,a=n||"",h=s&&N(s);return(r[i.toLowerCase()]||h&&r[h])&&(a=o?o(a,e):"*".repeat(a.length)),a}function N(t){return t.toLowerCase()}var B="__rrweb_original__";function T(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?N(e):null}function j(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 F=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,L=/^(?:[a-z+]+:)?\/\//i,Z=/^www\..*/i,Y=/^(data:)([^,]*),(.*)/i;function D(t,e){return(t||"").replace(F,(t,r,i,s,n,o)=>{var a,h=i||n||o,u=r||s||"";if(!h)return t;if(L.test(h)||Z.test(h))return"url("+u+h+u+")";if(Y.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 c=e.split("/"),l=h.split("/");for(var f of(c.pop(),l))"."!==f&&(".."===f?c.pop():c.push(f));return"url("+u+c.join("/")+u+")"})}var P,U,G=1,W=new RegExp("[^a-z0-9-_:]");function V(){return G++}var X=/^[^ \t\n\r\u000c]+/,J=/^[, \t\n\r\u000c]+/;var z=new WeakMap;function _(t,e){return e&&""!==e.trim()?H(t,e):e}function K(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function H(t,e){var r=z.get(t);if(r||(r=t.createElement("a"),z.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]?_(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(J),!(r>=e.length);){var n=i(X);if(","===n.slice(-1))n=_(t,n.substring(0,n.length-1)),s.push(n);else{var o="";n=_(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?D(i,H(t)):"object"===e&&"data"===r?_(t,i):i:_(t,i):i}function q(t,e,r){return("video"===t||"audio"===t)&&"autoplay"===e}function tt(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&tt(I.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&tt(I.parentNode(t),e,r)}function et(t,e,r,i){var s;if(k(t)){if(s=t,!I.childNodes(s).length)return!1}else{if(null===I.parentElement(t))return!1;s=I.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(tt(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 rt(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:h={},maskTextFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,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:v.Document,childNodes:[],compatMode:t.compatMode}:{type:v.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:v.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:c,recordCanvas:l,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=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=N(t.tagName);return W.test(e)?"div":e}(t),w={},y=t.attributes.length,b=0;b<y;b++){var C=t.attributes[b];q(g,C.name,C.value)||(w[C.name]=Q(i,g,N(C.name),C.value))}if("link"===g&&o){var S=Array.from(i.styleSheets).find(e=>e.href===t.href),k=null;S&&(k=M(S)),k&&(delete w.rel,delete w.href,w._cssText=k)}if("style"===g&&t.sheet&&!(t.innerText||I.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=O({element:t,type:T(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&&l)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=B in s?s[B]: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 E=t.toDataURL(u.type,u.quality),j=i.createElement("canvas");j.width=t.width,j.height=t.height,E!==j.toDataURL(u.type,u.quality)&&(w.rr_dataURL=E)}if("img"===g&&c){P||(P=i.createElement("canvas"),U=P.getContext("2d"));var F=t,L=F.currentSrc||F.getAttribute("src")||"<unknown-src>",Z=F.crossOrigin,Y=()=>{F.removeEventListener("load",Y);try{P.width=F.naturalWidth,P.height=F.naturalHeight,U.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?Y():F.addEventListener("load",Y));console.warn("Cannot inline img src="+L+"! Error: "+t)}"anonymous"===F.crossOrigin&&(Z?w.crossOrigin=Z:F.removeAttribute("crossorigin"))};F.complete&&0!==F.naturalWidth?Y():F.addEventListener("load",Y)}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:G,height:V}=t.getBoundingClientRect();w={class:w.class,rr_width:G+"px",rr_height:V+"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:v.Element,tagName:g,attributes:w,childNodes:[],isSVG:K(t)||void 0,needBlock:m,rootId:p,isCustom:r}}(t,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:a,maskInputOptions:h,maskInputFn:c,dataURLOptions:l,inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:m,rootId:g});case t.TEXT_NODE:return function(t,e){var r,{needsMask:i,maskTextFn:s,rootId:n}=e,o=I.parentNode(t),a=o&&o.tagName,h=I.textContent(t),u="STYLE"===a||void 0,c="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=D(h,H(e.doc))}c&&(h="SCRIPT_PLACEHOLDER");!u&&!c&&h&&i&&(h=s?s(h,I.parentElement(t)):h.replace(/[\S]/g,"*"));return{type:v.Text,textContent:h||"",isStyle:u,rootId:n}}(t,{doc:r,needsMask:o,maskTextFn:u,rootId:g});case t.CDATA_SECTION_NODE:return{type:v.CDATA,textContent:"",rootId:g};case t.COMMENT_NODE:return{type:v.Comment,textContent:I.textContent(t)||"",rootId:g};default:return!1}}function it(t){return null==t?"":t.toLowerCase()}function st(t,e){var{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:h=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:x=!1}=e,{needsMask:E}=e,{preserveWhiteSpace:O=!0}=e;E||(E=et(t,o,a,void 0===E));var N,B=rt(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:f,dataURLOptions:p,inlineImages:m,recordCanvas:g,keepIframeSrcFn:M,newlyAddedElement:x});if(!B)return console.warn(t,"not serialized"),null;N=i.hasNode(t)?i.getId(t):!function(t,e){if(e.comment&&t.type===v.Comment)return!0;if(t.type===v.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"===j(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(it(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===it(t.attributes.name)||"icon"===it(t.attributes.rel)||"apple-touch-icon"===it(t.attributes.rel)||"shortcut icon"===it(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&it(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(it(t.attributes.property).match(/^(og|twitter|fb):/)||it(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===it(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===it(t.attributes.name)||"googlebot"===it(t.attributes.name)||"bingbot"===it(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===it(t.attributes.name)||"generator"===it(t.attributes.name)||"framework"===it(t.attributes.name)||"publisher"===it(t.attributes.name)||"progid"===it(t.attributes.name)||it(t.attributes.property).match(/^article:/)||it(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===it(t.attributes.name)||"yandex-verification"===it(t.attributes.name)||"csrf-token"===it(t.attributes.name)||"p:domain_verify"===it(t.attributes.name)||"verify-v1"===it(t.attributes.name)||"verification"===it(t.attributes.name)||"shopify-checkout-api-token"===it(t.attributes.name)))return!0}}return!1}(B,d)&&(O||B.type!==v.Text||B.isStyle||B.textContent.replace(/^\s+|\s+$/gm,"").length)?V():-2;var T=Object.assign(B,{id:N});if(i.add(t,T),-2===N)return null;w&&w(t);var F=!h;if(T.type===v.Element){F=F&&!T.needBlock,delete T.needBlock;var L=I.shadowRoot(t);L&&R(L)&&(T.isShadowHost=!0)}if((T.type===v.Document||T.type===v.Element)&&F){d.headWhitespace&&T.type===v.Element&&"head"===T.tagName&&(O=!1);var Z={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:h,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:M};if(T.type===v.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(var Y of Array.from(I.childNodes(t))){var D=st(Y,Z);D&&T.childNodes.push(D)}var P=null;if(k(t)&&(P=I.shadowRoot(t)))for(var U of Array.from(I.childNodes(P))){var G=st(U,Z);G&&(R(P)&&(G.isShadow=!0),T.childNodes.push(G))}}var W=I.parentNode(t);return W&&A(W)&&R(W)&&(T.isShadow=!0),T.type===v.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=st(e,{doc:e,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:M});r&&y(t,r)}},b),T.type===v.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===j(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=st(t,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:E,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:f,slimDOMOptions:d,dataURLOptions:p,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:C,stylesheetLoadTimeout:S,keepIframeSrcFn:M});e&&C(t,e)}},S),T}function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ot(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 at={exports:{}},ht=String,ut=function(){return{isColorSupported:!1,reset:ht,bold:ht,dim:ht,italic:ht,underline:ht,inverse:ht,hidden:ht,strikethrough:ht,black:ht,red:ht,green:ht,yellow:ht,blue:ht,magenta:ht,cyan:ht,white:ht,gray:ht,bgBlack:ht,bgRed:ht,bgGreen:ht,bgYellow:ht,bgBlue:ht,bgMagenta:ht,bgCyan:ht,bgWhite:ht}};at.exports=ut(),at.exports.createColors=ut;var ct=at.exports,lt=ot(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ft=ct,dt=lt,vt=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=ft.isColorSupported),dt&&t&&(e=dt(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:c}=ft.createColors(!0);r=t=>h(c(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}},pt=vt;vt.default=vt;var mt={};mt.isClean=Symbol("isClean"),mt.my=Symbol("my");var gt={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var wt=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 gt[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=gt[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)}},yt=wt;wt.default=wt;var bt=yt;function Ct(t,e){new bt(e).stringify(t)}var St=Ct;Ct.default=Ct;var{isClean:It,my:kt}=mt,At=pt,Rt=yt,Mt=St;function xt(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=>xt(t,r)):("object"===n&&null!==s&&(s=xt(s)),r[i]=s)}return r}var Et=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[It]=!1,this[kt]=!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=xt(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 At(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[It]){this[It]=!1;for(var t=this;t=t.parent;)t[It]=!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 Rt).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}},Ot=Et;Et.default=Et;var Nt=Ot,Bt=class extends Nt{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},Tt=Bt;Bt.default=Bt;var jt={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:Ft,SourceMapGenerator:Lt}=lt,{existsSync:Zt,readFileSync:Yt}=lt,{dirname:Dt,join:Pt}=lt;var Ut=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=Dt(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Ft(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=Dt(t),Zt(t))return this.mapFile=t,Yt(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 Ft)return Lt.fromSourceMap(e).toString();if(e instanceof Lt)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(Dt(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)}},Gt=Ut;Ut.default=Ut;var{SourceMapConsumer:Wt,SourceMapGenerator:Vt}=lt,{fileURLToPath:Xt,pathToFileURL:Jt}=lt,{isAbsolute:zt,resolve:_t}=lt,{nanoid:Kt}=jt,Ht=lt,Qt=pt,$t=Gt,qt=Symbol("fromOffsetCache"),te=Boolean(Wt&&Vt),ee=Boolean(_t&&zt),re=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&&(!ee||/^\w+:\/\//.test(e.from)||zt(e.from)?this.file=e.from:this.file=_t(e.from)),ee&&te){var r=new $t(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 "+Kt(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 c=this.fromOffset(h.offset);n=c.line,o=c.col}else n=h.line,o=h.column}else if(!r){var l=this.fromOffset(e);e=l.line,r=l.col}var f=this.origin(e,r,n,o);return(s=f?new Qt(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 Qt(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&&(Jt&&(s.input.url=Jt(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[qt])e=this[qt];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[qt]=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:_t(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=zt(a.source)?Jt(a.source):new URL(a.source,this.map.consumer().sourceRoot||Jt(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(!Xt)throw new Error("file: protocol is not available in this PostCSS build");h.file=Xt(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=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},ie=re;re.default=re,Ht&&Ht.registerInput&&Ht.registerInput(re);var{SourceMapConsumer:se,SourceMapGenerator:ne}=lt,{dirname:oe,relative:ae,resolve:he,sep:ue}=lt,{pathToFileURL:ce}=lt,le=ie,fe=Boolean(se&&ne),de=Boolean(oe&&he&&ae&&ue),ve=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||oe(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new se(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(),de&&fe&&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=ne.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new ne({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 ne({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?oe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=oe(he(r,this.mapOpts.annotation)));var i=ae(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 le(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;"\\"===ue&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},pe=Ot,me=class extends pe{constructor(t){super(t),this.type="comment"}},ge=me;me.default=me;var we,ye,be,Ce,{isClean:Se,my:Ie}=mt,ke=Tt,Ae=ge,Re=Ot;function Me(t){return t.map(t=>(t.nodes&&(t.nodes=Me(t.nodes)),delete t.source,t))}function xe(t){if(t[Se]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)xe(e)}var Ee=class t extends Re{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(we(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 ke(e)]}else if(e.selector)e=[new ye(e)];else if(e.name)e=[new be(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ae(e)]}var n=e.map(e=>(e[Ie]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Se]&&xe(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=>{we=t},Ee.registerRule=t=>{ye=t},Ee.registerAtRule=t=>{be=t},Ee.registerRoot=t=>{Ce=t};var Oe=Ee;Ee.default=Ee,Ee.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,be.prototype):"rule"===t.type?Object.setPrototypeOf(t,ye.prototype):"decl"===t.type?Object.setPrototypeOf(t,ke.prototype):"comment"===t.type?Object.setPrototypeOf(t,Ae.prototype):"root"===t.type&&Object.setPrototypeOf(t,Ce.prototype),t[Ie]=!0,t.nodes&&t.nodes.forEach(t=>{Ee.rebuild(t)})};var Ne,Be,Te=Oe,je=class extends Te{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new Ne(new Be,this,t).stringify()}};je.registerLazyResult=t=>{Ne=t},je.registerProcessor=t=>{Be=t};var Fe=je;je.default=je;var Le={},Ze=function(t){Le[t]||(Le[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},Ye=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}},De=Ye;Ye.default=Ye;var Pe=De,Ue=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}},Ge=Ue;Ue.default=Ue;var We="'".charCodeAt(0),Ve='"'.charCodeAt(0),Xe="\\".charCodeAt(0),Je="/".charCodeAt(0),ze="\n".charCodeAt(0),_e=" ".charCodeAt(0),Ke="\f".charCodeAt(0),He="\t".charCodeAt(0),Qe="\r".charCodeAt(0),$e="[".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=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cr=/.[\r\n"'(/\\]/,lr=/[\da-f]/i,fr=Oe,dr=class extends fr{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)}},vr=dr;dr.default=dr,fr.registerAtRule(dr);var pr,mr,gr=Oe,wr=class extends gr{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 pr(new mr,this,t).stringify()}};wr.registerLazyResult=t=>{pr=t},wr.registerProcessor=t=>{mr=t};var yr=wr;wr.default=wr,gr.registerRoot(wr);var br={comma:t=>br.split(t,[","],!0),space:t=>br.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var c of t)u?u=!1:"\\"===c?u=!0:a?c===h&&(a=!1):'"'===c||"'"===c?(a=!0,h=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&e.includes(c)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=c;return(r||""!==s)&&i.push(s.trim()),i}},Cr=br;br.default=br;var Sr=Oe,Ir=Cr,kr=class extends Sr{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ir.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)}},Ar=kr;kr.default=kr,Sr.registerRule(kr);var Rr=Tt,Mr=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,c,l,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 ze:case _e:case He:case Qe:case Ke:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===_e||r===ze||r===He||r===Qe||r===Ke);l=["space",f.slice(p,i)],p=i-1;break;case $e:case qe:case rr:case ir:case or:case sr:case er:var y=String.fromCharCode(r);l=[y,y,p];break;case tr:if(u=m.length?m.pop()[1]:"",c=f.charCodeAt(p+1),"url"===u&&c!==We&&c!==Ve&&c!==_e&&c!==ze&&c!==He&&c!==Ke&&c!==Qe){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)===Xe;)h-=1,a=!a}while(a);l=["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)?l=["(","(",p]:(l=["brackets",n,p,i],p=i);break;case We:case Ve:s=r===We?"'":'"',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)===Xe;)h-=1,a=!a}while(a);l=["string",f.slice(p,i+1),p,i],p=i;break;case ar:hr.lastIndex=p+1,hr.test(f),i=0===hr.lastIndex?f.length-1:hr.lastIndex-2,l=["at-word",f.slice(p,i+1),p,i],p=i;break;case Xe:for(i=p,o=!0;f.charCodeAt(i+1)===Xe;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Je&&r!==_e&&r!==ze&&r!==He&&r!==Qe&&r!==Ke&&(i+=1,lr.test(f.charAt(i)))){for(;lr.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===_e&&(i+=1)}l=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Je&&f.charCodeAt(p+1)===nr?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),l=["comment",f.slice(p,i+1),p,i],p=i):(ur.lastIndex=p+1,ur.test(f),i=0===ur.lastIndex?f.length-1:ur.lastIndex-2,l=["word",f.slice(p,i+1),p,i],m.push(l),p=i)}return p++,l}},position:function(){return p}}},xr=ge,Er=vr,Or=yr,Nr=Ar,Br={empty:!0,space:!0};var Tr=class{constructor(t){this.input=t,this.root=new Or,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 xr;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 Rr;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 c=t.slice(0),l="",f=h;f>0;f--){var d=c[f][0];if(0===l.trim().indexOf("!")&&"space"!==d)break;l=c.pop()[1]+l}0===l.trim().indexOf("!")&&(r.important=!0,r.raws.important=l,t=c)}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 Nr;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="",c=!0,l=0;l<h;l+=1)"space"!==(n=(s=r[l])[0])||l!==h-1||i?"comment"===n?(a=r[l-1]?r[l-1][0]:"empty",o=r[l+1]?r[l+1][0]:"empty",Br[a]||Br[o]||","===u.slice(-1)?c=!1:u+=s[1]):u+=s[1]:c=!1;if(!c){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 Nr;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})}},jr=Oe,Fr=Tr,Lr=ie;function Zr(t,e){var r=new Lr(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 Yr=Zr;Zr.default=Zr,jr.registerParse(Zr);var{isClean:Dr,my:Pr}=mt,Ur=ve,Gr=St,Wr=Oe,Vr=Fe,Xr=Ze,Jr=Ge,zr=Yr,_r=yr,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,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof Jr)n=ei(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=zr;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[Pr]&&Wr.rebuild(n)}else n=ei(i);this.result=new Jr(e,n,s),this.helpers=r({},ri,{postcss:ri,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},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 e(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,c]of t.listeners.OnceExit)yield*h(c)}}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 Ur(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=ve,oi=St,ai=Ze,hi=Yr,ui=Ge,ci=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"}},li=ci;ci.default=ci;var fi=li,di=si,vi=Fe,pi=yr,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=Tt,yi=Gt,bi=ge,Ci=vr,Si=ie,Ii=yr,ki=Ar;function Ai(t,e){if(Array.isArray(t))return t.map(t=>Ai(t));var{inputs:s}=t,a=i(t,n);if(s)for(var h of(e=[],s)){var u=r({},h,{__proto__:Si.prototype});u.map&&(u.map=r({},u.map,{__proto__:yi.prototype})),e.push(u)}if(a.nodes&&(a.nodes=t.nodes.map(t=>Ai(t,e))),a.source){var c=a.source,{inputId:l}=c,f=i(c,o);a.source=f,null!=l&&(a.source.input=e[l])}if("root"===a.type)return new Ii(a);if("decl"===a.type)return new wi(a);if("rule"===a.type)return new ki(a);if("comment"===a.type)return new bi(a);if("atrule"===a.type)return new Ci(a);throw new Error("Unknown node type: "+t.type)}var Ri=Ai;Ai.default=Ai;var Mi=pt,xi=Tt,Ei=si,Oi=Oe,Ni=gi,Bi=St,Ti=Ri,ji=Fe,Fi=De,Li=ge,Zi=vr,Yi=Ge,Di=ie,Pi=Yr,Ui=Cr,Gi=Ar,Wi=yr,Vi=Ot;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=Pi,Xi.fromJSON=Ti,Xi.list=Ui,Xi.comment=t=>new Li(t),Xi.atRule=t=>new Zi(t),Xi.decl=t=>new xi(t),Xi.rule=t=>new Gi(t),Xi.root=t=>new Wi(t),Xi.document=t=>new ji(t),Xi.CssSyntaxError=Mi,Xi.Declaration=xi,Xi.Container=Oi,Xi.Processor=Ni,Xi.Document=ji,Xi.Comment=Li,Xi.Warning=Fi,Xi.AtRule=Zi,Xi.Result=Yi,Xi.Input=Di,Xi.Rule=Gi,Xi.Root=Wi,Xi.Node=Vi,Ei.registerPostcss(Xi);var Ji=Xi;Xi.default=Xi;var zi=nt(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:c}=is.createColors(!0);r=t=>h(c(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)}},cs=us;us.default=us;var ls=cs;function fs(t,e){new ls(e).stringify(t)}var ds=fs;fs.default=fs;var{isClean:vs,my:ps}=as,ms=os,gs=cs,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=r({},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:Ms}=rs,{existsSync:xs,readFileSync:Es}=rs,{dirname:Os,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=Os(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=Os(t),xs(t))return this.mapFile=t,Es(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 Ms.fromSourceMap(e).toString();if(e instanceof Ms)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(Os(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:Ls,pathToFileURL:Zs}=rs,{isAbsolute:Ys,resolve:Ds}=rs,{nanoid:Ps}=As,Us=rs,Gs=os,Ws=Ts,Vs=Symbol("fromOffsetCache"),Xs=Boolean(js&&Fs),Js=Boolean(Ds&&Ys),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)||Ys(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 "+Ps(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 c=this.fromOffset(h.offset);n=c.line,o=c.col}else n=h.line,o=h.column}else if(!r){var l=this.fromOffset(e);e=l.line,r=l.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&&(Zs&&(s.input.url=Zs(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=Ys(a.source)?Zs(a.source):new URL(a.source,this.map.consumer().sourceRoot||Zs(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(!Ls)throw new Error("file: protocol is not available in this PostCSS build");h.file=Ls(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=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},_s=zs;zs.default=zs,Us&&Us.registerInput&&Us.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 cn,ln,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(cn(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 ln(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=>{cn=t},Cn.registerRule=t=>{ln=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,ln.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(r({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 Mn=Rn;Rn.default=Rn;var xn={},En=function(t){xn[t]||(xn[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},On=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=On;On.default=On;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),Ln='"'.charCodeAt(0),Zn="\\".charCodeAt(0),Yn="/".charCodeAt(0),Dn="\n".charCodeAt(0),Pn=" ".charCodeAt(0),Un="\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,co=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()}};co.registerLazyResult=t=>{ao=t},co.registerProcessor=t=>{ho=t};var lo=co;co.default=co,uo.registerRoot(co);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 c of t)u?u=!1:"\\"===c?u=!0:a?c===h&&(a=!1):'"'===c||"'"===c?(a=!0,h=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&e.includes(c)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=c;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,c,l,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 Pn:case Gn:case Wn:case Un:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Pn||r===Dn||r===Gn||r===Wn||r===Un);l=["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);l=[y,y,p];break;case Jn:if(u=m.length?m.pop()[1]:"",c=f.charCodeAt(p+1),"url"===u&&c!==Fn&&c!==Ln&&c!==Pn&&c!==Dn&&c!==Gn&&c!==Un&&c!==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)===Zn;)h-=1,a=!a}while(a);l=["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)?l=["(","(",p]:(l=["brackets",n,p,i],p=i);break;case Fn:case Ln: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)===Zn;)h-=1,a=!a}while(a);l=["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,l=["at-word",f.slice(p,i+1),p,i],p=i;break;case Zn:for(i=p,o=!0;f.charCodeAt(i+1)===Zn;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Yn&&r!==Pn&&r!==Dn&&r!==Gn&&r!==Wn&&r!==Un&&(i+=1,io.test(f.charAt(i)))){for(;io.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Pn&&(i+=1)}l=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Yn&&f.charCodeAt(p+1)===Qn?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),l=["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,l=["word",f.slice(p,i+1),p,i],m.push(l),p=i)}return p++,l}},position:function(){return p}}},Co=un,So=oo,Io=lo,ko=wo,Ao={empty:!0,space:!0};var Ro=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 c=t.slice(0),l="",f=h;f>0;f--){var d=c[f][0];if(0===l.trim().indexOf("!")&&"space"!==d)break;l=c.pop()[1]+l}0===l.trim().indexOf("!")&&(r.important=!0,r.raws.important=l,t=c)}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="",c=!0,l=0;l<h;l+=1)"space"!==(n=(s=r[l])[0])||l!==h-1||i?"comment"===n?(a=r[l-1]?r[l-1][0]:"empty",o=r[l+1]?r[l+1][0]:"empty",Ao[a]||Ao[o]||","===u.slice(-1)?c=!1:u+=s[1]):u+=s[1]:c=!1;if(!c){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=Sn,xo=Ro,Eo=_s;function Oo(t,e){var r=new Eo(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 No=Oo;Oo.default=Oo,Mo.registerParse(Oo);var{isClean:Bo,my:To}=as,jo=on,Fo=ds,Lo=Sn,Zo=Mn,Yo=En,Do=jn,Po=No,Uo=lo,Go={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wo={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},Vo={Once:!0,postcssPlugin:!0,prepare:!0};function Xo(t){return"object"==typeof t&&"function"==typeof t.then}function Jo(t){var e=!1,r=Go[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 zo(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Jo(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function _o(t){return t[Bo]=!1,t.nodes&&t.nodes.forEach(t=>_o(t)),t}var Ko={},Ho=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof Do)n=_o(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Po;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[To]&&Lo.rebuild(n)}else n=_o(i);this.result=new Do(e,n,s),this.helpers=r({},Ko,{postcss:Ko,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},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(!Wo[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Vo[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 e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Xo(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[Bo];){s[Bo]=!0;for(var n=[zo(s)];n.length>0;){var o=t.visitTick(n);if(Xo(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,c]of t.listeners.OnceExit)yield*h(c)}}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 Xo(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=Fo;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new jo(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(Xo(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[Bo];)e[Bo]=!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(Xo(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[Bo])return o[Bo]=!0,void t.push(zo(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[Bo]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[Bo]=!0;var e=Jo(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[Bo]||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"}};Ho.registerPostcss=t=>{Ko=t};var Qo=Ho;Ho.default=Ho,Uo.registerLazyResult(Ho),Zo.registerLazyResult(Ho);var $o=on,qo=ds,ta=En,ea=No,ra=jn,ia=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=qo;this.result=new ra(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new $o(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||ta("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=ea;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"}},sa=ia;ia.default=ia;var na=sa,oa=Qo,aa=Mn,ha=lo,ua=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 oa(this,t,e):new na(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},ca=ua;ua.default=ua,ha.registerProcessor(ua),aa.registerProcessor(ua);var la=ks,fa=Ts,da=un,va=oo,pa=_s,ma=lo,ga=wo;function wa(t,e){if(Array.isArray(t))return t.map(t=>wa(t));var{inputs:s}=t,n=i(t,a);if(s)for(var o of(e=[],s)){var u=r({},o,{__proto__:pa.prototype});u.map&&(u.map=r({},u.map,{__proto__:fa.prototype})),e.push(u)}if(n.nodes&&(n.nodes=t.nodes.map(t=>wa(t,e))),n.source){var c=n.source,{inputId:l}=c,f=i(c,h);n.source=f,null!=l&&(n.source.input=e[l])}if("root"===n.type)return new ma(n);if("decl"===n.type)return new la(n);if("rule"===n.type)return new ga(n);if("comment"===n.type)return new da(n);if("atrule"===n.type)return new va(n);throw new Error("Unknown node type: "+t.type)}var ya=wa;wa.default=wa;var ba=os,Ca=ks,Sa=Qo,Ia=Sn,ka=ca,Aa=ds,Ra=ya,Ma=Mn,xa=Nn,Ea=un,Oa=oo,Na=jn,Ba=_s,Ta=No,ja=vo,Fa=wo,La=lo,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 ka(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 ka).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=Aa,Ya.parse=Ta,Ya.fromJSON=Ra,Ya.list=ja,Ya.comment=t=>new Ea(t),Ya.atRule=t=>new Oa(t),Ya.decl=t=>new Ca(t),Ya.rule=t=>new Fa(t),Ya.root=t=>new La(t),Ya.document=t=>new Ma(t),Ya.CssSyntaxError=ba,Ya.Declaration=Ca,Ya.Container=Ia,Ya.Processor=ka,Ya.Document=Ma,Ya.Comment=Ea,Ya.Warning=xa,Ya.AtRule=Oa,Ya.Result=Na,Ya.Input=Ba,Ya.Rule=Fa,Ya.Root=La,Ya.Node=Za,Sa.registerPostcss(Ya);var Da=Ya;Ya.default=Ya;var Pa=Hi(Da);Pa.stringify,Pa.fromJSON,Pa.plugin,Pa.parse,Pa.list,Pa.document,Pa.comment,Pa.atRule,Pa.rule,Pa.decl,Pa.root,Pa.CssSyntaxError,Pa.Declaration,Pa.Container,Pa.Processor,Pa.Document,Pa.Comment,Pa.Warning,Pa.AtRule,Pa.Result,Pa.Input,Pa.Rule,Pa.Root,Pa.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 Ga={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Va={};function Xa(t){if(Va[t])return Va[t];var e=globalThis[t],r=e.prototype,i=t in Ga?Ga[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 Wa?Wa[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 Va[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?Va[t]=u:r}catch(t){return r}}var Ja={};function za(t,e,r){var i,s=t+"."+String(r);if(Ja[s])return Ja[s].call(e);var n=Xa(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Ja[s]=o,o.call(e)):e[r]}var _a={};function Ka(t,e,r){var i=t+"."+String(r);if(_a[i])return _a[i].bind(e);var s=Xa(t)[r];return"function"!=typeof s?e[r]:(_a[i]=s,s.bind(e))}function Ha(){return Xa("MutationObserver").constructor}var Qa={childNodes:function(t){return za("Node",t,"childNodes")},parentNode:function(t){return za("Node",t,"parentNode")},parentElement:function(t){return za("Node",t,"parentElement")},textContent:function(t){return za("Node",t,"textContent")},contains:function(t,e){return Ka("Node",t,"contains")(e)},getRootNode:function(t){return Ka("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?za("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?za("Element",t,"shadowRoot"):null},querySelector:function(t,e){return za("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return za("Element",t,"querySelectorAll")(e)},mutationObserver:Ha};function $a(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 qa="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.",th={map:{},getId:()=>(console.error(qa),-1),getNode:()=>(console.error(qa),null),removeNodeFromMap(){console.error(qa)},has:()=>(console.error(qa),!1),reset(){console.error(qa)}};function eh(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),c=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(c,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(c,o)},u))}}function rh(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)}}),()=>rh(t,e,n||{},!0)}function ih(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&&(th=new Proxy(th,{get:(t,e,r)=>("map"===e&&console.error(qa),Reflect.get(t,e,r))}));var sh=Date.now;function nh(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=Qa.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=Qa.parentElement(n.body))?void 0:i.scrollTop)||(null==(s=null==n?void 0:n.body)?void 0:s.scrollTop)||0}}function oh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ah(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hh(t){return t?t.nodeType===t.ELEMENT_NODE?t:Qa.parentElement(t):null}function uh(t,e,r,i){if(!t)return!1;var s=hh(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(tt(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 ch(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||-2===e.getId(t)}function lh(t,e){if(A(t))return!1;var r=e.getId(t);if(!e.has(r))return!0;var i=Qa.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||lh(i,e))}function fh(t){return Boolean(t.changedTouches)}function dh(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function vh(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function ph(t){return!!t&&(t instanceof Ua&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Qa.shadowRoot(t)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sh=()=>(new Date).getTime());let mh=class{constructor(){l(this,"id",1),l(this,"styleIDMap",new WeakMap),l(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 gh(t){var e,r=null;return"getRootNode"in t&&(null==(e=Qa.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Qa.host(Qa.getRootNode(t))&&(r=Qa.host(Qa.getRootNode(t))),r}function wh(t){var e=t.ownerDocument;if(!e)return!1;var r=function(t){for(var e,r=t;e=gh(r);)r=e;return r}(t);return Qa.contains(e,r)}function yh(t){var e=t.ownerDocument;return!!e&&(Qa.contains(e,t)||wh(t))}var bh=(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))(bh||{}),Ch=(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))(Ch||{}),Sh=(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))(Sh||{}),Ih=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Ih||{}),kh=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(kh||{}),Ah=(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))(Ah||{});function Rh(t){return"__ln"in t}class Mh{constructor(){l(this,"length",0),l(this,"head",null),l(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&&Rh(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&&Rh(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,Eh=(t,e)=>t+"@"+e;class Oh{constructor(){l(this,"frozen",!1),l(this,"locked",!1),l(this,"texts",[]),l(this,"attributes",[]),l(this,"attributeMap",new WeakMap),l(this,"removes",[]),l(this,"mapRemoves",[]),l(this,"movedMap",{}),l(this,"addedSet",new Set),l(this,"movedSet",new Set),l(this,"droppedSet",new Set),l(this,"mutationCb"),l(this,"blockClass"),l(this,"blockSelector"),l(this,"maskTextClass"),l(this,"maskTextSelector"),l(this,"inlineStylesheet"),l(this,"maskInputOptions"),l(this,"maskTextFn"),l(this,"maskInputFn"),l(this,"keepIframeSrcFn"),l(this,"recordCanvas"),l(this,"inlineImages"),l(this,"slimDOMOptions"),l(this,"dataURLOptions"),l(this,"doc"),l(this,"mirror"),l(this,"iframeManager"),l(this,"stylesheetManager"),l(this,"shadowDomManager"),l(this,"canvasManager"),l(this,"processedNodeManager"),l(this,"unattachedDoc"),l(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),l(this,"emit",()=>{if(!this.frozen&&!this.locked){for(var t=[],e=new Set,r=new Mh,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=Qa.parentNode(s);if(n&&yh(s)&&"TEXTAREA"!==n.tagName){var o=A(n)?this.mirror.getId(gh(s)):this.mirror.getId(n),a=i(s);if(-1===o||-1===a)return r.addNode(s);var h=st(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=>{dh(t,this.mirror)&&this.iframeManager.addIframe(t),vh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),ph(s)&&this.shadowDomManager.addShadowRoot(Qa.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)Bh(this.removes,n,this.mirror)&&!this.movedSet.has(Qa.parentNode(n))||s(n);for(var o of this.addedSet)Th(this.droppedSet,o)||Bh(this.removes,o,this.mirror)?Th(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(Qa.parentNode(a.value)),c=i(a.value);-1!==u&&-1!==c&&(h=a)}if(!h)for(var l=r.tail;l;){var f=l;if(l=l.previous,f){var d=this.mirror.getId(Qa.parentNode(f.value));if(-1===i(f.value))continue;if(-1!==d){h=f;break}var v=f.value,p=Qa.parentNode(v);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var m=Qa.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=Qa.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))}}),l(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(Qa.childNodes(t),t=>Qa.textContent(t)||"").join("")}),l(this,"processMutation",t=>{if(!ch(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":var e=Qa.textContent(t.target);uh(t.target,this.blockClass,this.blockSelector,!1)||e===t.oldValue||this.texts.push({value:et(t.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,hh(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=T(r);s=O({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:n,value:s,maskInputFn:this.maskInputFn})}if(uh(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"),!q(r.tagName,i))if(o.attributes[i]=Q(this.doc,N(r.tagName),N(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),c=r.style.getPropertyPriority(h);u!==a.style.getPropertyValue(h)||c!==a.style.getPropertyPriority(h)?o.styleDiff[h]=""===c?u:[u,c]:o._unchangedStyles[h]=[u,c]}for(var l of Array.from(a.style))""===r.style.getPropertyValue(l)&&(o.styleDiff[l]=!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(uh(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=A(t.target)?this.mirror.getId(Qa.host(t.target)):this.mirror.getId(t.target);uh(t.target,this.blockClass,this.blockSelector,!1)||ch(e,this.mirror,this.slimDOMOptions)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Nh(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[Eh(r,i)]?Nh(this.movedSet,e):this.removes.push({parentId:i,id:r,isShadow:!(!A(t.target)||!R(t.target))||void 0})),this.mapRemoves.push(e))})}}),l(this,"genAdds",(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(ch(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[Eh(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);uh(t,this.blockClass,this.blockSelector,!1)||(Qa.childNodes(t).forEach(t=>this.genAdds(t)),ph(t)&&Qa.childNodes(Qa.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 Nh(t,e){t.delete(e),Qa.childNodes(e).forEach(e=>Nh(t,e))}function Bh(t,e,r){return 0!==t.length&&function(t,e,r){var i,s=Qa.parentNode(e),n=function(){var e=r.getId(s);if(t.some(t=>t.id===e))return{v:!0};s=Qa.parentNode(s)};for(;s;)if(i=n())return i.v;return!1}(t,e,r)}function Th(t,e){return 0!==t.size&&jh(t,e)}function jh(t,e){var r=Qa.parentNode(e);return!!r&&(!!t.has(r)||jh(t,r))}var Fh=t=>{if(!xh)return t;return function(){try{return t(...arguments)}catch(t){if(xh&&!0===xh(t))return;throw t}}},Lh=[];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;Lh.push(r),r.init(t);var i=new(Ha())(Fh(r.processMutations.bind(r)));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Dh(t){var{mouseInteractionCb:e,doc:i,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=[],c=null;return Object.keys(Sh).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==h[t]).forEach(t=>{var a=N(t),h=(t=>i=>{var a=Zh(i);if(!uh(a,n,o,!0)){var h=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":h=Ih.Mouse;break;case"touch":h=Ih.Touch;break;case"pen":h=Ih.Pen}h===Ih.Touch?Sh[t]===Sh.MouseDown?u="TouchStart":Sh[t]===Sh.MouseUp&&(u="TouchEnd"):Ih.Pen}else fh(i)&&(h=Ih.Touch);null!==h?(c=h,(u.startsWith("Touch")&&h===Ih.Touch||u.startsWith("Mouse")&&h===Ih.Mouse)&&(h=null)):Sh[t]===Sh.Click&&(h=c,c=null);var l=fh(i)?i.changedTouches[0]:i;if(l){var f=s.getId(a),{clientX:d,clientY:v}=l;Fh(e)(r({type:Sh[u],id:f,x:d,y:v},null!==h&&{pointerType:h}))}}})(t);if(window.PointerEvent)switch(Sh[t]){case Sh.MouseDown:case Sh.MouseUp:a=a.replace("mouse","pointer");break;case Sh.TouchStart:case Sh.TouchEnd:return}u.push($a(a,h,i))}),Fh(()=>{u.forEach(t=>t())})}function Ph(t){var{scrollCb:e,doc:r,mirror:i,blockClass:s,blockSelector:n,sampling:o}=t;return $a("scroll",Fh(eh(Fh(t=>{var o=Zh(t);if(o&&!uh(o,s,n,!0)){var a=i.getId(o);if(o===r&&r.defaultView){var h=nh(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"],Gh=new WeakMap;function Wh(t){return function(t,e){if(zh("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||zh("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||zh("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||zh("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 Vh(t,e,r){var i,s;return t?(t.ownerNode?i=e.getId(t.ownerNode):s=r.getId(t),{styleId:s,id:i}):{}}function Xh(t,e){var r,i,s,{mirror:n,stylesheetManager:o}=t,a=null;a="#document"===e.nodeName?n.getId(e):n.getId(Qa.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}}),Fh(()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):()=>{}}function Jh(t,e){void 0===e&&(e={});var i,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:c,canvasMutationCb:l,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),c(...arguments)},t.canvasMutationCb=function(){e.canvasMutation&&e.canvasMutation(...arguments),l(...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&&(i=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=eh(Fh(t=>{var r=Date.now()-n;e(h.map(t=>(t.timeOffset-=r,t)),t),h=[],n=null}),a),c=Fh(eh(Fh(t=>{var e=Zh(t),{clientX:r,clientY:i}=fh(t)?t.changedTouches[0]:t;n||(n=sh()),h.push({x:r,y:i,id:s.getId(e),timeOffset:sh()-n}),u("undefined"!=typeof DragEvent&&t instanceof DragEvent?Ch.Drag:t instanceof MouseEvent?Ch.MouseMove:Ch.TouchMove)}),o,{trailing:!1})),l=[$a("mousemove",c,i),$a("touchmove",c,i),$a("drag",c,i)];return Fh(()=>{l.forEach(t=>t())})}(t),o=Dh(t),a=Ph(t),h=function(t,e){var{viewportResizeCb:r}=t,{win:i}=e,s=-1,n=-1;return $a("resize",Fh(eh(Fh(()=>{var t=oh(),e=ah();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:i,mirror:s,blockClass:n,blockSelector:o,ignoreClass:a,ignoreSelector:h,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:f}=t;function d(t){var e=Zh(t),r=t.isTrusted,s=e&&e.tagName;if(e&&"OPTION"===s&&(e=Qa.parentElement(e)),e&&s&&!(Uh.indexOf(s)<0)&&!uh(e,n,o,!0)&&!(e.classList.contains(a)||h&&e.matches(h))){var l=e.value,d=!1,p=T(e)||"";"radio"===p||"checkbox"===p?d=e.checked:(u[s.toLowerCase()]||u[p])&&(l=O({element:e,maskInputOptions:u,tagName:s,type:p,value:l,maskInputFn:c})),v(e,f?{text:l,isChecked:d,userTriggered:r}:{text:l,isChecked:d});var m=e.name;"radio"===p&&m&&d&&i.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,i){var n=Gh.get(t);if(!n||n.text!==i.text||n.isChecked!==i.isChecked){Gh.set(t,i);var o=s.getId(t);Fh(e)(r({},i,{id:o}))}}var p=("last"===l.input?["change"]:["input","change"]).map(t=>$a(t,Fh(d),i)),m=i.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=>rh(t[0],t[1],{set(){Fh(d)({target:this,isTrusted:!1})}},!1,m))),Fh(()=>{p.forEach(t=>t())})}(t),c=function(t){var{mediaInteractionCb:e,blockClass:r,blockSelector:i,mirror:s,sampling:n,doc:o}=t,a=Fh(t=>eh(Fh(n=>{var o=Zh(n);if(o&&!uh(o,r,i,!0)){var{currentTime:a,volume:h,muted:u,playbackRate:c,loop:l}=o;e({type:t,id:s.getId(o),currentTime:a,volume:h,muted:u,playbackRate:c,loop:l})}}),n.media||500)),h=[$a("play",a(Ah.Play),o),$a("pause",a(Ah.Pause),o),$a("seeked",a(Ah.Seeked),o),$a("volumechange",a(Ah.VolumeChange),o),$a("ratechange",a(Ah.RateChange),o)];return Fh(()=>{h.forEach(t=>t())})}(t),l=()=>{},f=()=>{},d=()=>{},v=()=>{};t.recordDOM&&(l=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:Fh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Vh(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:Fh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Vh(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:Fh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Vh(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:Fh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Vh(e,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,replaceSync:o}),t.apply(e,n)})}));var c={};_h("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(_h("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),_h("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),_h("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));var l={};return Object.entries(c).forEach(t=>{var[e,n]=t;l[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(l[e].insertRule,{apply:Fh((t,e,n)=>{var[o,a]=n,{id:h,styleId:u}=Vh(e.parentStyleSheet,i,s.styleMirror);return(h&&-1!==h||u&&-1!==u)&&r({id:h,styleId:u,adds:[{rule:o,index:[...Wh(e),a||0]}]}),t.apply(e,n)})}),n.prototype.deleteRule=new Proxy(l[e].deleteRule,{apply:Fh((t,e,n)=>{var[o]=n,{id:a,styleId:h}=Vh(e.parentStyleSheet,i,s.styleMirror);return(a&&-1!==a||h&&-1!==h)&&r({id:a,styleId:h,removes:[{index:[...Wh(e),o]}]}),t.apply(e,n)})})}),Fh(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=u,a&&(n.CSSStyleSheet.prototype.replace=a),h&&(n.CSSStyleSheet.prototype.replaceSync=h),Object.entries(c).forEach(t=>{var[e,r]=t;r.prototype.insertRule=l[e].insertRule,r.prototype.deleteRule=l[e].deleteRule})})}(t,{win:s}),f=Xh(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:Fh((t,e,o)=>{var h,[u,c,l]=o;if(s.has(u))return a.apply(e,[u,c,l]);var{id:f,styleId:d}=Vh(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:c,priority:l},index:Wh(e.parentRule)}),t.apply(e,o)})});var h=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(h,{apply:Fh((t,e,o)=>{var a,[u]=o;if(s.has(u))return h.apply(e,[u]);var{id:c,styleId:l}=Vh(null==(a=e.parentRule)?void 0:a.parentStyleSheet,i,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,remove:{property:u},index:Wh(e.parentRule)}),t.apply(e,o)})}),Fh(()=>{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=ih(r.fonts,"add",function(t){return function(r){return setTimeout(Fh(()=>{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),Fh(()=>{s.forEach(t=>t())})}(t)));var p=function(t){var{doc:e,mirror:r,blockClass:i,blockSelector:s,selectionCb:n}=t,o=!0,a=Fh(()=>{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 c=t.getRangeAt(u),{startContainer:l,startOffset:f,endContainer:d,endOffset:v}=c;uh(l,i,s,!0)||uh(d,i,s,!0)||a.push({start:r.getId(l),startOffset:f,end:r.getId(d),endOffset:v})}n({ranges:a})}});return a(),$a("selectionchange",a)}(t),m=function(t){var{doc:e,customElementCb:r}=t,i=e.defaultView;return i&&i.customElements?ih(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 Fh(()=>{Lh.forEach(t=>t.reset()),null==i||i.disconnect(),n(),o(),a(),h(),u(),c(),l(),f(),d(),v(),p(),m(),g.forEach(t=>t())})}function zh(t){return void 0!==window[t]}function _h(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Kh{constructor(t){l(this,"iframeIdToRemoteIdMap",new WeakMap),l(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 Hh{constructor(t){l(this,"iframes",new WeakMap),l(this,"crossOriginIframeMap",new WeakMap),l(this,"crossOriginIframeMirror",new Kh(V)),l(this,"crossOriginIframeStyleMirror"),l(this,"crossOriginIframeRootIdMap",new WeakMap),l(this,"mirror"),l(this,"mutationCb"),l(this,"wrappedEmit"),l(this,"loadListener"),l(this,"stylesheetManager"),l(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kh(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 bh.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:bh.IncrementalSnapshot,data:{source:Ch.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case bh.Meta:case bh.Load:case bh.DomContentLoaded:return!1;case bh.Plugin:return e;case bh.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case bh.IncrementalSnapshot:switch(e.data.source){case Ch.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 Ch.Drag:case Ch.TouchMove:case Ch.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case Ch.ViewportResize:return!1;case Ch.MediaInteraction:case Ch.MouseInteraction:case Ch.Scroll:case Ch.CanvasMutation:case Ch.Input:return this.replaceIds(e.data,t,["id"]),e;case Ch.StyleSheetRule:case Ch.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Ch.Font:return e;case Ch.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case Ch.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===v.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}}class Qh{constructor(t){l(this,"shadowDoms",new WeakSet),l(this,"mutationCb"),l(this,"scrollCb"),l(this,"bypassOptions"),l(this,"mirror"),l(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(R(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var i=Yh(r({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(Ph(r({},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(Qa.host(t))),this.restoreHandlers.push(Xh({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(ih(t.prototype,"attachShadow",function(t){return function(i){var s=t.call(this,i),n=Qa.shadowRoot(this);return n&&yh(this)&&r.addShadowRoot(n,e),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var $h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qh="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tu=0;tu<64;tu++)qh[$h.charCodeAt(tu)]=tu;var eu=new Map;var ru=(t,e,r)=>{if(t&&(nu(t,e)||"object"==typeof t)){var i=function(t,e){var r=eu.get(t);return r||(r=new Map,eu.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 iu(t,e,r){if(t instanceof Array)return t.map(t=>iu(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+=$h[r[e]>>2],s+=$h[(3&r[e])<<4|r[e+1]>>4],s+=$h[(15&r[e+1])<<2|r[e+2]>>6],s+=$h[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:[iu(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:[iu(t.data,e,r),t.width,t.height]}:nu(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:ru(t,e,r)}:t}var su=(t,e,r)=>t.map(t=>iu(t,e,r)),nu=(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 ou(t,e,r,i){var s=[];try{var n=ih(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(!uh(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 au(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=ih(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 c=t.apply(this,h);if(ru(c,n,this),"tagName"in this.canvas&&!uh(this.canvas,i,s,!0)){var l=su(h,n,this),f={type:e,property:a,args:l};r(this.canvas,f)}return c}});o.push(h)}catch(i){var u=rh(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 hu,uu,cu,lu,fu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",du="undefined"!=typeof window&&window.Blob&&new Blob([(hu=fu,Uint8Array.from(atob(hu),t=>t.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});function vu(t){var e;try{if(!(e=du&&(window.URL||window.webkitURL).createObjectURL(du)))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,"+fu,{name:null==t?void 0:t.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class pu{constructor(t){l(this,"pendingCanvasMutations",new Map),l(this,"rafStamps",{latestId:0,invokeId:null}),l(this,"mirror"),l(this,"mutationCb"),l(this,"resetObservers"),l(this,"frozen",!1),l(this,"locked",!1),l(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,r,i,s,n){var o=this,a=ou(r,i,s,!0),h=new Map,u=new vu;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:kh["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 c,l=1e3/t,f=0,d=t=>{var a;f&&t-f<l?c=requestAnimationFrame(d):(f=t,(a=[],r.document.querySelectorAll("canvas").forEach(t=>{uh(t,i,s,!0)||a.push(t)}),a).forEach(function(){var t=e(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)}}()),c=requestAnimationFrame(d))};c=requestAnimationFrame(d),this.resetObservers=()=>{a(),cancelAnimationFrame(c)}}initCanvasMutationObserver(t,e,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var i=ou(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=ih(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 uh(this.canvas,r,i,!0)||setTimeout(()=>{var r=su(a,e,this);t(this.canvas,{type:kh["2D"],property:n,args:r})},0),s.apply(this,a)}});s.push(o)}catch(r){var a=rh(e.CanvasRenderingContext2D.prototype,n,{set(e){t(this.canvas,{type:kh["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(...au(e.WebGLRenderingContext.prototype,kh.WebGL,t,r,i,e)),void 0!==e.WebGL2RenderingContext&&s.push(...au(e.WebGL2RenderingContext.prototype,kh.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 s=r.map(t=>i(t,u)),{type:n}=r[0];this.mutationCb({id:e,type:n,commands:s}),this.pendingCanvasMutations.delete(t)}}}}class mu{constructor(t){l(this,"trackedLinkElements",new WeakSet),l(this,"mutationCb"),l(this,"adoptedStyleSheetCb"),l(this,"styleMirror",new mh),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:x(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 gu{constructor(){l(this,"nodeMap",new WeakMap),l(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 wu=!1;try{if(2!==Array.from([1],t=>2*t)[0]){var yu=document.createElement("iframe");document.body.appendChild(yu),Array.from=(null==(s=yu.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(yu)}}catch(t){console.debug("Unable to override Array.from",t)}var bu,Cu,Su=new E;function Iu(t){void 0===t&&(t={});var{emit:e,checkoutEveryNms:i,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:h=null,maskTextClass:u="rr-mask",maskTextSelector:c=null,inlineStylesheet:l=!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:M=!1,inlineImages:x=!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),Su.reset();var L,Z=!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},Y=!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,P=t=>{for(var e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!F&&(t=w(t)),t};uu=(t,r)=>{var n,o=t;if(o.timestamp=sh(),!(null==(n=Lh[0])?void 0:n.isFrozen())||o.type===bh.FullSnapshot||o.type===bh.IncrementalSnapshot&&o.data.source===Ch.Mutation||Lh.forEach(t=>t.unfreeze()),j)null==e||e(P(o),r);else if(F){var a={type:"rrweb",event:P(o),origin:window.location.origin,isCheckout:r};window.parent.postMessage(a,"*")}if(o.type===bh.FullSnapshot)L=o,D=0;else if(o.type===bh.IncrementalSnapshot){if(o.data.source===Ch.Mutation&&o.data.isAttachIframe)return;D++;var h=s&&D>=s,u=i&&o.timestamp-L.timestamp>i;(h||u)&&cu(!0)}};var U=t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Ch.Mutation},t)})},G=t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.Scroll},t)}),W=t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.CanvasMutation},t)}),V=new mu({mutationCb:U,adoptedStyleSheetCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.AdoptedStyleSheet},t)})}),X=new Hh({mirror:Su,mutationCb:U,stylesheetManager:V,recordCrossOriginIframes:k,wrappedEmit:uu});for(var J of O||[])J.getMirror&&J.getMirror({nodeMirror:Su,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});var z=new gu;lu=new pu({recordCanvas:I,mutationCb:W,win:window,blockClass:n,blockSelector:o,mirror:Su,sampling:y.canvas,dataURLOptions:b});var _=new Qh({mutationCb:U,scrollCb:G,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:c,inlineStylesheet:l,maskInputOptions:Z,dataURLOptions:b,maskTextFn:m,maskInputFn:p,recordCanvas:I,inlineImages:x,sampling:y,slimDOMOptions:Y,iframeManager:X,stylesheetManager:V,canvasManager:lu,keepIframeSrcFn:N,processedNodeManager:z},mirror:Su});cu=function(t){if(void 0===t&&(t=!1),S){uu({type:bh.Meta,data:{href:window.location.href,width:ah(),height:oh()}},t),V.reset(),_.init(),Lh.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:c=!1,maskTextFn:l,maskInputFn:f,slimDOM:d=!1,dataURLOptions:v,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:g,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:C=()=>!1}=e||{};return st(t,{doc:t,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===c?{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===c?{password:!0}:c,maskTextFn:l,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:Su,blockClass:n,blockSelector:o,maskTextClass:u,maskTextSelector:c,inlineStylesheet:l,maskAllInputs:Z,maskTextFn:m,maskInputFn:p,slimDOM:Y,dataURLOptions:b,recordCanvas:I,inlineImages:x,onSerialize:t=>{dh(t,Su)&&X.addIframe(t),vh(t,Su)&&V.trackLinkElement(t),ph(t)&&_.addShadowRoot(Qa.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");uu({type:bh.FullSnapshot,data:{node:e,initialOffset:nh(window)}},t),Lh.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Su.getId(document))}};try{var K=[],H=t=>{var e;return Fh(Jh)({mutationCb:U,mousemoveCb:(t,e)=>uu({type:bh.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.MouseInteraction},t)}),scrollCb:G,viewportResizeCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.ViewportResize},t)}),inputCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.Input},t)}),mediaInteractionCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.MediaInteraction},t)}),styleSheetRuleCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.StyleSheetRule},t)}),styleDeclarationCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.StyleDeclaration},t)}),canvasMutationCb:W,fontCb:t=>uu({type:bh.IncrementalSnapshot,data:r({source:Ch.Font},t)}),selectionCb:t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Ch.Selection},t)})},customElementCb:t=>{uu({type:bh.IncrementalSnapshot,data:r({source:Ch.CustomElement},t)})},blockClass:n,ignoreClass:a,ignoreSelector:h,maskTextClass:u,maskTextSelector:c,maskInputOptions:Z,inlineStylesheet:l,sampling:y,recordDOM:S,recordCanvas:I,inlineImages:x,userTriggeredOnInput:R,collectFonts:M,doc:t,maskInputFn:p,maskTextFn:m,keepIframeSrcFn:N,blockSelector:o,slimDOMOptions:Y,dataURLOptions:b,mirror:Su,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=>uu({type:bh.Plugin,data:{plugin:t.name,payload:e}})})))||[]},g)};X.addLoadListener(t=>{try{K.push(H(t.contentDocument))}catch(t){console.warn(t)}});var Q=()=>{cu(),K.push(H(document)),wu=!0};return"interactive"===document.readyState||"complete"===document.readyState?Q():(K.push($a("DOMContentLoaded",()=>{uu({type:bh.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&Q()})),K.push($a("load",()=>{uu({type:bh.Load,data:{}}),"load"===A&&Q()},window))),()=>{K.forEach(t=>t()),z.destroy(),wu=!1,xh=void 0}}catch(t){console.warn(t)}}Iu.addCustomEvent=(t,e)=>{if(!wu)throw new Error("please add custom event after start recording");uu({type:bh.Custom,data:{tag:t,payload:e}})},Iu.freezePage=()=>{Lh.forEach(t=>t.freeze())},Iu.takeFullSnapshot=t=>{if(!wu)throw new Error("please take full snapshot after start recording");cu(t)},Iu.mirror=Su,(Cu=bu||(bu={}))[Cu.NotStarted=0]="NotStarted",Cu[Cu.Running=1]="Running",Cu[Cu.Stopped=2]="Stopped";var ku,Au=["inputs"],Ru=["inputId"],Mu=["inputs"],xu=["inputId"],Eu=Object.defineProperty,Ou=(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),Nu=Object.defineProperty,Bu=(t,e,r)=>((t,e,r)=>e in t?Nu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Tu=Object.defineProperty,ju=(t,e,r)=>((t,e,r)=>e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),Fu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Lu={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 Fu?Fu[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 Lu?Lu[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 Du={};function Pu(t,e,r){var i,s=t+"."+String(r);if(Du[s])return Du[s].call(e);var n=Yu(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Du[s]=o,o.call(e)):e[r]}var Uu={};function Gu(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 Wu={childNodes:function(t){return Pu("Node",t,"childNodes")},parentNode:function(t){return Pu("Node",t,"parentNode")},parentElement:function(t){return Pu("Node",t,"parentElement")},textContent:function(t){return Pu("Node",t,"textContent")},contains:function(t,e){return Gu("Node",t,"contains")(e)},getRootNode:function(t){return Gu("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Pu("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Pu("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Pu("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Pu("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Yu("MutationObserver").constructor}};class Vu{constructor(){ju(this,"idNodeMap",new Map),ju(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 Xu(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&Xu(Wu.parentNode(t),e,r);for(var i=t.classList.length;i--;){var s=t.classList[i];if(e.test(s))return!0}return!!r&&Xu(Wu.parentNode(t),e,r)}function Ju(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function zu(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 _u={exports:{}},Ku=String,Hu=function(){return{isColorSupported:!1,reset:Ku,bold:Ku,dim:Ku,italic:Ku,underline:Ku,inverse:Ku,hidden:Ku,strikethrough:Ku,black:Ku,red:Ku,green:Ku,yellow:Ku,blue:Ku,magenta:Ku,cyan:Ku,white:Ku,gray:Ku,bgBlack:Ku,bgRed:Ku,bgGreen:Ku,bgYellow:Ku,bgBlue:Ku,bgMagenta:Ku,bgCyan:Ku,bgWhite:Ku}};_u.exports=Hu(),_u.exports.createColors=Hu;var Qu=_u.exports,$u=zu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),qu=Qu,tc=$u,ec=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=qu.isColorSupported),tc&&t&&(e=tc(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:c}=qu.createColors(!0);r=t=>h(c(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}},rc=ec;ec.default=ec;var ic={};ic.isClean=Symbol("isClean"),ic.my=Symbol("my");var sc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var nc=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 sc[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=sc[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)}},oc=nc;nc.default=nc;var ac=oc;function hc(t,e){new ac(e).stringify(t)}var uc=hc;hc.default=hc;var{isClean:cc,my:lc}=ic,fc=rc,dc=oc,vc=uc;function pc(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=>pc(t,r)):("object"===n&&null!==s&&(s=pc(s)),r[i]=s)}return r}var mc=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[cc]=!1,this[lc]=!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=pc(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 fc(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[cc]){this[cc]=!1;for(var t=this;t=t.parent;)t[cc]=!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 dc).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=vc),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}},gc=mc;mc.default=mc;var wc=gc,yc=class extends wc{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},bc=yc;yc.default=yc;var Cc={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:Sc,SourceMapGenerator:Ic}=$u,{existsSync:kc,readFileSync:Ac}=$u,{dirname:Rc,join:Mc}=$u;var xc=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=Rc(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new Sc(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=Rc(t),kc(t))return this.mapFile=t,Ac(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 Sc)return Ic.fromSourceMap(e).toString();if(e instanceof Ic)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=Mc(Rc(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)}},Ec=xc;xc.default=xc;var{SourceMapConsumer:Oc,SourceMapGenerator:Nc}=$u,{fileURLToPath:Bc,pathToFileURL:Tc}=$u,{isAbsolute:jc,resolve:Fc}=$u,{nanoid:Lc}=Cc,Zc=$u,Yc=rc,Dc=Ec,Pc=Symbol("fromOffsetCache"),Uc=Boolean(Oc&&Nc),Gc=Boolean(Fc&&jc),Wc=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&&(!Gc||/^\w+:\/\//.test(e.from)||jc(e.from)?this.file=e.from:this.file=Fc(e.from)),Gc&&Uc){var r=new Dc(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 "+Lc(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 c=this.fromOffset(h.offset);n=c.line,o=c.col}else n=h.line,o=h.column}else if(!r){var l=this.fromOffset(e);e=l.line,r=l.col}var f=this.origin(e,r,n,o);return(s=f?new Yc(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 Yc(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&&(Tc&&(s.input.url=Tc(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Pc])e=this[Pc];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[Pc]=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:Fc(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=jc(a.source)?Tc(a.source):new URL(a.source,this.map.consumer().sourceRoot||Tc(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(!Bc)throw new Error("file: protocol is not available in this PostCSS build");h.file=Bc(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=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Vc=Wc;Wc.default=Wc,Zc&&Zc.registerInput&&Zc.registerInput(Wc);var{SourceMapConsumer:Xc,SourceMapGenerator:Jc}=$u,{dirname:zc,relative:_c,resolve:Kc,sep:Hc}=$u,{pathToFileURL:Qc}=$u,$c=Vc,qc=Boolean(Xc&&Jc),tl=Boolean(zc&&Kc&&_c&&Hc),el=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||zc(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Xc(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(),tl&&qc&&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=Jc.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Jc({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 Jc({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?zc(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=zc(Kc(r,this.mapOpts.annotation)));var i=_c(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 $c(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(Qc){var r=Qc(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;"\\"===Hc&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},rl=gc,il=class extends rl{constructor(t){super(t),this.type="comment"}},sl=il;il.default=il;var nl,ol,al,hl,{isClean:ul,my:cl}=ic,ll=bc,fl=sl,dl=gc;function vl(t){return t.map(t=>(t.nodes&&(t.nodes=vl(t.nodes)),delete t.source,t))}function pl(t){if(t[ul]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)pl(e)}var ml=class t extends dl{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=vl(nl(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 ll(e)]}else if(e.selector)e=[new ol(e)];else if(e.name)e=[new al(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fl(e)]}var n=e.map(e=>(e[cl]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ul]&&pl(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]}};ml.registerParse=t=>{nl=t},ml.registerRule=t=>{ol=t},ml.registerAtRule=t=>{al=t},ml.registerRoot=t=>{hl=t};var gl=ml;ml.default=ml,ml.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,al.prototype):"rule"===t.type?Object.setPrototypeOf(t,ol.prototype):"decl"===t.type?Object.setPrototypeOf(t,ll.prototype):"comment"===t.type?Object.setPrototypeOf(t,fl.prototype):"root"===t.type&&Object.setPrototypeOf(t,hl.prototype),t[cl]=!0,t.nodes&&t.nodes.forEach(t=>{ml.rebuild(t)})};var wl,yl,bl=gl,Cl=class extends bl{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new wl(new yl,this,t).stringify()}};Cl.registerLazyResult=t=>{wl=t},Cl.registerProcessor=t=>{yl=t};var Sl=Cl;Cl.default=Cl;var Il={},kl=function(t){Il[t]||(Il[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},Al=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}},Rl=Al;Al.default=Al;var Ml=Rl,xl=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 Ml(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},El=xl;xl.default=xl;var Ol="'".charCodeAt(0),Nl='"'.charCodeAt(0),Bl="\\".charCodeAt(0),Tl="/".charCodeAt(0),jl="\n".charCodeAt(0),Fl=" ".charCodeAt(0),Ll="\f".charCodeAt(0),Zl="\t".charCodeAt(0),Yl="\r".charCodeAt(0),Dl="[".charCodeAt(0),Pl="]".charCodeAt(0),Ul="(".charCodeAt(0),Gl=")".charCodeAt(0),Wl="{".charCodeAt(0),Vl="}".charCodeAt(0),Xl=";".charCodeAt(0),Jl="*".charCodeAt(0),zl=":".charCodeAt(0),_l="@".charCodeAt(0),Kl=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ql=/.[\r\n"'(/\\]/,$l=/[\da-f]/i,ql=gl,tf=class extends ql{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)}},ef=tf;tf.default=tf,ql.registerAtRule(tf);var rf,sf,nf=gl,of=class extends nf{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 rf(new sf,this,t).stringify()}};of.registerLazyResult=t=>{rf=t},of.registerProcessor=t=>{sf=t};var af=of;of.default=of,nf.registerRoot(of);var hf={comma:t=>hf.split(t,[","],!0),space:t=>hf.split(t,[" ","\n","\t"]),split(t,e,r){var i=[],s="",n=!1,o=0,a=!1,h="",u=!1;for(var c of t)u?u=!1:"\\"===c?u=!0:a?c===h&&(a=!1):'"'===c||"'"===c?(a=!0,h=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&e.includes(c)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=c;return(r||""!==s)&&i.push(s.trim()),i}},uf=hf;hf.default=hf;var cf=gl,lf=uf,ff=class extends cf{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)}},df=ff;ff.default=ff,cf.registerRule(ff);var vf=bc,pf=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,c,l,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 jl:case Fl:case Zl:case Yl:case Ll:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Fl||r===jl||r===Zl||r===Yl||r===Ll);l=["space",f.slice(p,i)],p=i-1;break;case Dl:case Pl:case Wl:case Vl:case zl:case Xl:case Gl:var y=String.fromCharCode(r);l=[y,y,p];break;case Ul:if(u=m.length?m.pop()[1]:"",c=f.charCodeAt(p+1),"url"===u&&c!==Ol&&c!==Nl&&c!==Fl&&c!==jl&&c!==Zl&&c!==Ll&&c!==Yl){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)===Bl;)h-=1,a=!a}while(a);l=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Ql.test(n)?l=["(","(",p]:(l=["brackets",n,p,i],p=i);break;case Ol:case Nl:s=r===Ol?"'":'"',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)===Bl;)h-=1,a=!a}while(a);l=["string",f.slice(p,i+1),p,i],p=i;break;case _l:Kl.lastIndex=p+1,Kl.test(f),i=0===Kl.lastIndex?f.length-1:Kl.lastIndex-2,l=["at-word",f.slice(p,i+1),p,i],p=i;break;case Bl:for(i=p,o=!0;f.charCodeAt(i+1)===Bl;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Tl&&r!==Fl&&r!==jl&&r!==Zl&&r!==Yl&&r!==Ll&&(i+=1,$l.test(f.charAt(i)))){for(;$l.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Fl&&(i+=1)}l=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Tl&&f.charCodeAt(p+1)===Jl?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),l=["comment",f.slice(p,i+1),p,i],p=i):(Hl.lastIndex=p+1,Hl.test(f),i=0===Hl.lastIndex?f.length-1:Hl.lastIndex-2,l=["word",f.slice(p,i+1),p,i],m.push(l),p=i)}return p++,l}},position:function(){return p}}},mf=sl,gf=ef,wf=af,yf=df,bf={empty:!0,space:!0};var Cf=class{constructor(t){this.input=t,this.root=new wf,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 gf;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 mf;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=pf(this.input)}decl(t,e){var r=new vf;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 c=t.slice(0),l="",f=h;f>0;f--){var d=c[f][0];if(0===l.trim().indexOf("!")&&"space"!==d)break;l=c.pop()[1]+l}0===l.trim().indexOf("!")&&(r.important=!0,r.raws.important=l,t=c)}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 yf;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="",c=!0,l=0;l<h;l+=1)"space"!==(n=(s=r[l])[0])||l!==h-1||i?"comment"===n?(a=r[l-1]?r[l-1][0]:"empty",o=r[l+1]?r[l+1][0]:"empty",bf[a]||bf[o]||","===u.slice(-1)?c=!1:u+=s[1]):u+=s[1]:c=!1;if(!c){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 yf;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=gl,If=Cf,kf=Vc;function Af(t,e){var r=new kf(t,e),i=new If(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 Rf=Af;Af.default=Af,Sf.registerParse(Af);var{isClean:Mf,my:xf}=ic,Ef=el,Of=uc,Nf=gl,Bf=Sl,Tf=kl,jf=El,Ff=Rf,Lf=af,Zf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Yf={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},Df={Once:!0,postcssPlugin:!0,prepare:!0};function Pf(t){return"object"==typeof t&&"function"==typeof t.then}function Uf(t){var e=!1,r=Zf[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 Gf(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Uf(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Wf(t){return t[Mf]=!1,t.nodes&&t.nodes.forEach(t=>Wf(t)),t}var Vf={},Xf=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof jf)n=Wf(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Ff;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[xf]&&Nf.rebuild(n)}else n=Wf(i);this.result=new jf(e,n,s),this.helpers=r({},Vf,{postcss:Vf,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},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(!Yf[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Df[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 e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Pf(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[Mf];){s[Mf]=!0;for(var n=[Gf(s)];n.length>0;){var o=t.visitTick(n);if(Pf(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,c]of t.listeners.OnceExit)yield*h(c)}}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 Pf(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=Of;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new Ef(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(Pf(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[Mf];)e[Mf]=!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||Tf("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(Pf(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[Mf])return o[Mf]=!0,void t.push(Gf(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[Mf]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[Mf]=!0;var e=Uf(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[Mf]||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"}};Xf.registerPostcss=t=>{Vf=t};var Jf=Xf;Xf.default=Xf,Lf.registerLazyResult(Xf),Bf.registerLazyResult(Xf);var zf=el,_f=uc,Kf=kl,Hf=Rf,Qf=El,$f=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=_f;this.result=new Qf(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new zf(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||Kf("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=Hf;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=$f;$f.default=$f;var td=qf,ed=Jf,rd=Sl,id=af,sd=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 ed(this,t,e):new td(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},nd=sd;sd.default=sd,id.registerProcessor(sd),rd.registerProcessor(sd);var od=bc,ad=Ec,hd=sl,ud=ef,cd=Vc,ld=af,fd=df;function dd(t,e){if(Array.isArray(t))return t.map(t=>dd(t));var{inputs:s}=t,n=i(t,Au);if(s)for(var o of(e=[],s)){var a=r({},o,{__proto__:cd.prototype});a.map&&(a.map=r({},a.map,{__proto__:ad.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>dd(t,e))),n.source){var h=n.source,{inputId:u}=h,c=i(h,Ru);n.source=c,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new ld(n);if("decl"===n.type)return new od(n);if("rule"===n.type)return new fd(n);if("comment"===n.type)return new hd(n);if("atrule"===n.type)return new ud(n);throw new Error("Unknown node type: "+t.type)}var vd=dd;dd.default=dd;var pd=rc,md=bc,gd=Jf,wd=gl,yd=nd,bd=uc,Cd=vd,Sd=Sl,Id=Rl,kd=sl,Ad=ef,Rd=El,Md=Vc,xd=Rf,Ed=uf,Od=df,Nd=af,Bd=gc;function Td(){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 yd(e)}Td.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 yd).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return Td([s(r)]).process(t,e)},s},Td.stringify=bd,Td.parse=xd,Td.fromJSON=Cd,Td.list=Ed,Td.comment=t=>new kd(t),Td.atRule=t=>new Ad(t),Td.decl=t=>new md(t),Td.rule=t=>new Od(t),Td.root=t=>new Nd(t),Td.document=t=>new Sd(t),Td.CssSyntaxError=pd,Td.Declaration=md,Td.Container=wd,Td.Processor=yd,Td.Document=Sd,Td.Comment=kd,Td.Warning=Id,Td.AtRule=Ad,Td.Result=Rd,Td.Input=Md,Td.Rule=Od,Td.Root=Nd,Td.Node=Bd,gd.registerPostcss(Td);var jd=Td;Td.default=Td;var Fd=Ju(jd);Fd.stringify,Fd.fromJSON,Fd.plugin,Fd.parse,Fd.list,Fd.document,Fd.comment,Fd.atRule,Fd.rule,Fd.decl,Fd.root,Fd.CssSyntaxError,Fd.Declaration,Fd.Container,Fd.Processor,Fd.Document,Fd.Comment,Fd.Warning,Fd.AtRule,Fd.Result,Fd.Input,Fd.Rule,Fd.Root,Fd.Node;var Ld=Object.defineProperty,Zd=(t,e,r)=>((t,e,r)=>e in t?Ld(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function Yd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dd(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 Pd={exports:{}},Ud=String,Gd=function(){return{isColorSupported:!1,reset:Ud,bold:Ud,dim:Ud,italic:Ud,underline:Ud,inverse:Ud,hidden:Ud,strikethrough:Ud,black:Ud,red:Ud,green:Ud,yellow:Ud,blue:Ud,magenta:Ud,cyan:Ud,white:Ud,gray:Ud,bgBlack:Ud,bgRed:Ud,bgGreen:Ud,bgYellow:Ud,bgBlue:Ud,bgMagenta:Ud,bgCyan:Ud,bgWhite:Ud}};Pd.exports=Gd(),Pd.exports.createColors=Gd;var Wd=Pd.exports,Vd=Dd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Xd=Wd,Jd=Vd,zd=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=Xd.isColorSupported),Jd&&t&&(e=Jd(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:c}=Xd.createColors(!0);r=t=>h(c(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}},_d=zd;zd.default=zd;var Kd={};Kd.isClean=Symbol("isClean"),Kd.my=Symbol("my");var Hd={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Qd=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 Hd[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=Hd[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)}},$d=Qd;Qd.default=Qd;var qd=$d;function tv(t,e){new qd(e).stringify(t)}var ev=tv;tv.default=tv;var{isClean:rv,my:iv}=Kd,sv=_d,nv=$d,ov=ev;function av(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=>av(t,r)):("object"===n&&null!==s&&(s=av(s)),r[i]=s)}return r}var hv=class{constructor(t){for(var e in void 0===t&&(t={}),this.raws={},this[rv]=!1,this[iv]=!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=av(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 sv(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[rv]){this[rv]=!1;for(var t=this;t=t.parent;)t[rv]=!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 nv).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=ov),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}},uv=hv;hv.default=hv;var cv=uv,lv=class extends cv{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t=r({},t,{value:String(t.value)})),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}},fv=lv;lv.default=lv;var dv={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:vv,SourceMapGenerator:pv}=Vd,{existsSync:mv,readFileSync:gv}=Vd,{dirname:wv,join:yv}=Vd;var bv=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=wv(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new vv(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=wv(t),mv(t))return this.mapFile=t,gv(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 vv)return pv.fromSourceMap(e).toString();if(e instanceof pv)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=yv(wv(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)}},Cv=bv;bv.default=bv;var{SourceMapConsumer:Sv,SourceMapGenerator:Iv}=Vd,{fileURLToPath:kv,pathToFileURL:Av}=Vd,{isAbsolute:Rv,resolve:Mv}=Vd,{nanoid:xv}=dv,Ev=Vd,Ov=_d,Nv=Cv,Bv=Symbol("fromOffsetCache"),Tv=Boolean(Sv&&Iv),jv=Boolean(Mv&&Rv),Fv=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&&(!jv||/^\w+:\/\//.test(e.from)||Rv(e.from)?this.file=e.from:this.file=Mv(e.from)),jv&&Tv){var r=new Nv(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 "+xv(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 c=this.fromOffset(h.offset);n=c.line,o=c.col}else n=h.line,o=h.column}else if(!r){var l=this.fromOffset(e);e=l.line,r=l.col}var f=this.origin(e,r,n,o);return(s=f?new Ov(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 Ov(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&&(Av&&(s.input.url=Av(this.file).toString()),s.input.file=this.file),s}fromOffset(t){var e;if(this[Bv])e=this[Bv];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[Bv]=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:Mv(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=Rv(a.source)?Av(a.source):new URL(a.source,this.map.consumer().sourceRoot||Av(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(!kv)throw new Error("file: protocol is not available in this PostCSS build");h.file=kv(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=r({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}},Lv=Fv;Fv.default=Fv,Ev&&Ev.registerInput&&Ev.registerInput(Fv);var{SourceMapConsumer:Zv,SourceMapGenerator:Yv}=Vd,{dirname:Dv,relative:Pv,resolve:Uv,sep:Gv}=Vd,{pathToFileURL:Wv}=Vd,Vv=Lv,Xv=Boolean(Zv&&Yv),Jv=Boolean(Dv&&Uv&&Pv&&Gv),zv=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||Dv(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Zv(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(),Jv&&Xv&&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=Yv.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Yv({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 Yv({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?Dv(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Dv(Uv(r,this.mapOpts.annotation)));var i=Pv(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 Vv(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(Wv){var r=Wv(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;"\\"===Gv&&(t=t.replace(/\\/g,"/"));var r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}},_v=uv,Kv=class extends _v{constructor(t){super(t),this.type="comment"}},Hv=Kv;Kv.default=Kv;var Qv,$v,qv,tp,{isClean:ep,my:rp}=Kd,ip=fv,sp=Hv,np=uv;function op(t){return t.map(t=>(t.nodes&&(t.nodes=op(t.nodes)),delete t.source,t))}function ap(t){if(t[ep]=!1,t.proxyOf.nodes)for(var e of t.proxyOf.nodes)ap(e)}var hp=class t extends np{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=op(Qv(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 ip(e)]}else if(e.selector)e=[new $v(e)];else if(e.name)e=[new qv(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new sp(e)]}var n=e.map(e=>(e[rp]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ep]&&ap(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]}};hp.registerParse=t=>{Qv=t},hp.registerRule=t=>{$v=t},hp.registerAtRule=t=>{qv=t},hp.registerRoot=t=>{tp=t};var up=hp;hp.default=hp,hp.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,qv.prototype):"rule"===t.type?Object.setPrototypeOf(t,$v.prototype):"decl"===t.type?Object.setPrototypeOf(t,ip.prototype):"comment"===t.type?Object.setPrototypeOf(t,sp.prototype):"root"===t.type&&Object.setPrototypeOf(t,tp.prototype),t[rp]=!0,t.nodes&&t.nodes.forEach(t=>{hp.rebuild(t)})};var cp,lp,fp=up,dp=class extends fp{constructor(t){super(r({type:"document"},t)),this.nodes||(this.nodes=[])}toResult(t){return void 0===t&&(t={}),new cp(new lp,this,t).stringify()}};dp.registerLazyResult=t=>{cp=t},dp.registerProcessor=t=>{lp=t};var vp=dp;dp.default=dp;var pp={},mp=function(t){pp[t]||(pp[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))},gp=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}},wp=gp;gp.default=gp;var yp=wp,bp=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 yp(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>"warning"===t.type)}get content(){return this.css}},Cp=bp;bp.default=bp;var Sp="'".charCodeAt(0),Ip='"'.charCodeAt(0),kp="\\".charCodeAt(0),Ap="/".charCodeAt(0),Rp="\n".charCodeAt(0),Mp=" ".charCodeAt(0),xp="\f".charCodeAt(0),Ep="\t".charCodeAt(0),Op="\r".charCodeAt(0),Np="[".charCodeAt(0),Bp="]".charCodeAt(0),Tp="(".charCodeAt(0),jp=")".charCodeAt(0),Fp="{".charCodeAt(0),Lp="}".charCodeAt(0),Zp=";".charCodeAt(0),Yp="*".charCodeAt(0),Dp=":".charCodeAt(0),Pp="@".charCodeAt(0),Up=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wp=/.[\r\n"'(/\\]/,Vp=/[\da-f]/i,Xp=up,Jp=class extends Xp{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)}},zp=Jp;Jp.default=Jp,Xp.registerAtRule(Jp);var _p,Kp,Hp=up,Qp=class extends Hp{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 _p(new Kp,this,t).stringify()}};Qp.registerLazyResult=t=>{_p=t},Qp.registerProcessor=t=>{Kp=t};var $p=Qp;Qp.default=Qp,Hp.registerRoot(Qp);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 c of t)u?u=!1:"\\"===c?u=!0:a?c===h&&(a=!1):'"'===c||"'"===c?(a=!0,h=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&e.includes(c)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=c;return(r||""!==s)&&i.push(s.trim()),i}},tm=qp;qp.default=qp;var em=up,rm=tm,im=class extends em{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rm.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)}},sm=im;im.default=im,em.registerRule(im);var nm=fv,om=function(t,e){void 0===e&&(e={});var r,i,s,n,o,a,h,u,c,l,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 Rp:case Mp:case Ep:case Op:case xp:i=p;do{i+=1,r=f.charCodeAt(i)}while(r===Mp||r===Rp||r===Ep||r===Op||r===xp);l=["space",f.slice(p,i)],p=i-1;break;case Np:case Bp:case Fp:case Lp:case Dp:case Zp:case jp:var y=String.fromCharCode(r);l=[y,y,p];break;case Tp:if(u=m.length?m.pop()[1]:"",c=f.charCodeAt(p+1),"url"===u&&c!==Sp&&c!==Ip&&c!==Mp&&c!==Rp&&c!==Ep&&c!==xp&&c!==Op){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)===kp;)h-=1,a=!a}while(a);l=["brackets",f.slice(p,i+1),p,i],p=i}else i=f.indexOf(")",p+1),n=f.slice(p,i+1),-1===i||Wp.test(n)?l=["(","(",p]:(l=["brackets",n,p,i],p=i);break;case Sp:case Ip:s=r===Sp?"'":'"',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)===kp;)h-=1,a=!a}while(a);l=["string",f.slice(p,i+1),p,i],p=i;break;case Pp:Up.lastIndex=p+1,Up.test(f),i=0===Up.lastIndex?f.length-1:Up.lastIndex-2,l=["at-word",f.slice(p,i+1),p,i],p=i;break;case kp:for(i=p,o=!0;f.charCodeAt(i+1)===kp;)i+=1,o=!o;if(r=f.charCodeAt(i+1),o&&r!==Ap&&r!==Mp&&r!==Rp&&r!==Ep&&r!==Op&&r!==xp&&(i+=1,Vp.test(f.charAt(i)))){for(;Vp.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Mp&&(i+=1)}l=["word",f.slice(p,i+1),p,i],p=i;break;default:r===Ap&&f.charCodeAt(p+1)===Yp?(0===(i=f.indexOf("*/",p+2)+1)&&(d||e?i=f.length:w("comment")),l=["comment",f.slice(p,i+1),p,i],p=i):(Gp.lastIndex=p+1,Gp.test(f),i=0===Gp.lastIndex?f.length-1:Gp.lastIndex-2,l=["word",f.slice(p,i+1),p,i],m.push(l),p=i)}return p++,l}},position:function(){return p}}},am=Hv,hm=zp,um=$p,cm=sm,lm={empty:!0,space:!0};var fm=class{constructor(t){this.input=t,this.root=new um,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 hm;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 am;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=om(this.input)}decl(t,e){var r=new nm;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 c=t.slice(0),l="",f=h;f>0;f--){var d=c[f][0];if(0===l.trim().indexOf("!")&&"space"!==d)break;l=c.pop()[1]+l}0===l.trim().indexOf("!")&&(r.important=!0,r.raws.important=l,t=c)}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 cm;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="",c=!0,l=0;l<h;l+=1)"space"!==(n=(s=r[l])[0])||l!==h-1||i?"comment"===n?(a=r[l-1]?r[l-1][0]:"empty",o=r[l+1]?r[l+1][0]:"empty",lm[a]||lm[o]||","===u.slice(-1)?c=!1:u+=s[1]):u+=s[1]:c=!1;if(!c){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 cm;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})}},dm=up,vm=fm,pm=Lv;function mm(t,e){var r=new pm(t,e),i=new vm(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 gm=mm;mm.default=mm,dm.registerParse(mm);var{isClean:wm,my:ym}=Kd,bm=zv,Cm=ev,Sm=up,Im=vp,km=mp,Am=Cp,Rm=gm,Mm=$p,xm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Em={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},Om={Once:!0,postcssPlugin:!0,prepare:!0};function Nm(t){return"object"==typeof t&&"function"==typeof t.then}function Bm(t){var e=!1,r=xm[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 Tm(t){return{eventIndex:0,events:"document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:Bm(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function jm(t){return t[wm]=!1,t.nodes&&t.nodes.forEach(t=>jm(t)),t}var Fm={},Lm=class t{constructor(e,i,s){var n;if(this.stringified=!1,this.processed=!1,"object"!=typeof i||null===i||"root"!==i.type&&"document"!==i.type)if(i instanceof t||i instanceof Am)n=jm(i.root),i.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=i.map);else{var o=Rm;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(i,s)}catch(t){this.processed=!0,this.error=t}n&&!n[ym]&&Sm.rebuild(n)}else n=jm(i);this.result=new Am(e,n,s),this.helpers=r({},Fm,{postcss:Fm,result:this.result}),this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?r({},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(!Em[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+e.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Om[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 e(function*(){t.plugin=0;for(var e=0;e<t.plugins.length;e++){var r=t.plugins[e],i=t.runOnRoot(r);if(Nm(i))try{yield i}catch(e){throw t.handleError(e)}}if(t.prepareVisitors(),t.hasListener){for(var s=t.result.root;!s[wm];){s[wm]=!0;for(var n=[Tm(s)];n.length>0;){var o=t.visitTick(n);if(Nm(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,c]of t.listeners.OnceExit)yield*h(c)}}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 Nm(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=Cm;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var r=new bm(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(Nm(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var e=this.result.root;!e[wm];)e[wm]=!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||km("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(Nm(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[wm])return o[wm]=!0,void t.push(Tm(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[wm]=!0,e.iterator=r.getIterator()));if(this.listeners[u])return void(e.visitors=this.listeners[u])}t.pop()}else t.pop()}walkSync(t){t[wm]=!0;var e=Bm(t);for(var r of e)if(0===r)t.nodes&&t.each(t=>{t[wm]||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"}};Lm.registerPostcss=t=>{Fm=t};var Zm=Lm;Lm.default=Lm,Mm.registerLazyResult(Lm),Im.registerLazyResult(Lm);var Ym=zv,Dm=ev,Pm=mp,Um=gm,Gm=Cp,Wm=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=Dm;this.result=new Gm(this._processor,i,this._opts),this.result.css=e;var n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});var o=new Ym(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||Pm("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=Um;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"}},Vm=Wm;Wm.default=Wm;var Xm=Vm,Jm=Zm,zm=vp,_m=$p,Km=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 Jm(this,t,e):new Xm(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}},Hm=Km;Km.default=Km,_m.registerProcessor(Km),zm.registerProcessor(Km);var Qm=fv,$m=Cv,qm=Hv,tg=zp,eg=Lv,rg=$p,ig=sm;function sg(t,e){if(Array.isArray(t))return t.map(t=>sg(t));var{inputs:s}=t,n=i(t,Mu);if(s)for(var o of(e=[],s)){var a=r({},o,{__proto__:eg.prototype});a.map&&(a.map=r({},a.map,{__proto__:$m.prototype})),e.push(a)}if(n.nodes&&(n.nodes=t.nodes.map(t=>sg(t,e))),n.source){var h=n.source,{inputId:u}=h,c=i(h,xu);n.source=c,null!=u&&(n.source.input=e[u])}if("root"===n.type)return new rg(n);if("decl"===n.type)return new Qm(n);if("rule"===n.type)return new ig(n);if("comment"===n.type)return new qm(n);if("atrule"===n.type)return new tg(n);throw new Error("Unknown node type: "+t.type)}var ng=sg;sg.default=sg;var og=_d,ag=fv,hg=Zm,ug=up,cg=Hm,lg=ev,fg=ng,dg=vp,vg=wp,pg=Hv,mg=zp,gg=Cp,wg=Lv,yg=gm,bg=tm,Cg=sm,Sg=$p,Ig=uv;function kg(){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 cg(e)}kg.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 cg).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(t,e,r){return kg([s(r)]).process(t,e)},s},kg.stringify=lg,kg.parse=yg,kg.fromJSON=fg,kg.list=bg,kg.comment=t=>new pg(t),kg.atRule=t=>new mg(t),kg.decl=t=>new ag(t),kg.rule=t=>new Cg(t),kg.root=t=>new Sg(t),kg.document=t=>new dg(t),kg.CssSyntaxError=og,kg.Declaration=ag,kg.Container=ug,kg.Processor=cg,kg.Document=dg,kg.Comment=pg,kg.Warning=vg,kg.AtRule=mg,kg.Result=gg,kg.Input=wg,kg.Rule=Cg,kg.Root=Sg,kg.Node=Ig,hg.registerPostcss(kg);var Ag=kg;kg.default=kg;var Rg=Yd(Ag);Rg.stringify,Rg.fromJSON,Rg.plugin,Rg.parse,Rg.list,Rg.document,Rg.comment,Rg.atRule,Rg.rule,Rg.decl,Rg.root,Rg.CssSyntaxError,Rg.Declaration,Rg.Container,Rg.Processor,Rg.Document,Rg.Comment,Rg.Warning,Rg.AtRule,Rg.Result,Rg.Input,Rg.Rule,Rg.Root,Rg.Node;class Mg{constructor(){Zd(this,"parentElement",null),Zd(this,"parentNode",null),Zd(this,"ownerDocument"),Zd(this,"firstChild",null),Zd(this,"lastChild",null),Zd(this,"previousSibling",null),Zd(this,"nextSibling",null),Zd(this,"ELEMENT_NODE",1),Zd(this,"TEXT_NODE",3),Zd(this,"nodeType"),Zd(this,"nodeName"),Zd(this,"RRNodeType")}get childNodes(){for(var t=[],e=this.firstChild;e;)t.push(e),e=e.nextSibling;return t}contains(t){if(!(t instanceof Mg))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 xg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Eg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Og={};function Ng(t){if(Og[t])return Og[t];var e=globalThis[t],r=e.prototype,i=t in xg?xg[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 Eg?Eg[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 Og[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?Og[t]=u:r}catch(t){return r}}var Bg={};function Tg(t,e,r){var i,s=t+"."+String(r);if(Bg[s])return Bg[s].call(e);var n=Ng(t),o=null==(i=Object.getOwnPropertyDescriptor(n,r))?void 0:i.get;return o?(Bg[s]=o,o.call(e)):e[r]}var jg={};function Fg(t,e,r){var i=t+"."+String(r);if(jg[i])return jg[i].bind(e);var s=Ng(t)[r];return"function"!=typeof s?e[r]:(jg[i]=s,s.bind(e))}var Lg={childNodes:function(t){return Tg("Node",t,"childNodes")},parentNode:function(t){return Tg("Node",t,"parentNode")},parentElement:function(t){return Tg("Node",t,"parentElement")},textContent:function(t){return Tg("Node",t,"textContent")},contains:function(t,e){return Fg("Node",t,"contains")(e)},getRootNode:function(t){return Fg("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Tg("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Tg("Element",t,"shadowRoot"):null},querySelector:function(t,e){return Tg("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return Tg("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return Ng("MutationObserver").constructor}};var Zg="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.",Yg={map:{},getId:()=>(console.error(Zg),-1),getNode:()=>(console.error(Zg),null),removeNodeFromMap(){console.error(Zg)},has:()=>(console.error(Zg),!1),reset(){console.error(Zg)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Yg=new Proxy(Yg,{get:(t,e,r)=>("map"===e&&console.error(Zg),Reflect.get(t,e,r))}));var Dg=Date.now;function Pg(t){return t?t.nodeType===t.ELEMENT_NODE?t:Lg.parentElement(t):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(Dg=()=>(new Date).getTime());function Ug(t){var e,r=null;return"getRootNode"in t&&(null==(e=Lg.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Lg.host(Lg.getRootNode(t))&&(r=Lg.host(Lg.getRootNode(t))),r}function Gg(t){for(var e,r=t;e=Ug(r);)r=e;return r}function Wg(t){var e=t.ownerDocument;if(!e)return!1;var r=Gg(t);return Lg.contains(e,r)}for(var Vg=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){Bu(this,"id",1),Bu(this,"styleIDMap",new WeakMap),Bu(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 Yg},closestElementOfNode:Pg,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:Gg,getShadowHost:Ug,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=Lg.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=Lg.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 Mg&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(Lg.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&&(Lg.contains(e,t)||Wg(t))},isAncestorRemoved:function t(e,r){if(s=(i=e)&&"host"in i&&"mode"in i&&Wu.host(i)||null,Boolean(s&&"shadowRoot"in s&&Wu.shadowRoot(s)===i))return!1;var i,s,n=r.getId(e);if(!r.has(n))return!0;var o=Lg.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=Pg(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(Xu(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 Dg},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 c=e[o];c.children.push(r(s,c))}else i.push(r(s,null))}return i},shadowHostInDom:Wg,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),c=this;u<=0||u>e?(i&&(clearTimeout(i),i=null),s=h,t.apply(c,o)):i||!1===r.trailing||(i=setTimeout(()=>{s=!1===r.leading?0:Date.now(),i=null,t.apply(c,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"})),Xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jg="undefined"==typeof Uint8Array?[]:new Uint8Array(256),zg=0;zg<64;zg++)Jg[Xg.charCodeAt(zg)]=zg;var _g;"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 Kg=document.createElement("iframe");document.body.appendChild(Kg),Array.from=(null==(ku=Kg.contentWindow)?void 0:ku.Array.from)||Array.from,document.body.removeChild(Kg)}}catch(t){console.debug("Unable to override Array.from",t)}new Vu,function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(_g||(_g={}));class Hg{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 Qg=/(^|@)\S+:\d+/,$g=/^\s*at .*(\S+:\d+|\(native\))/m,qg=/^(eval@)?(\[native code])?$/,tw={parse:function(t){return t?void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]?this.parseOpera(t):t.stack&&t.stack.match($g)?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($g)},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 Hg({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(qg)},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 Hg({functionName:t});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(e),i=r&&r[1]?r[1]:void 0,s=this.extractLocation(t.replace(e,""));return new Hg({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 Hg({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 Hg({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(Qg)&&!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 Hg({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function ew(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 rw(t){return"[object Object]"===Object.prototype.toString.call(t)}function iw(t,e){if(0===e)return!0;var r=Object.keys(t);for(var i of r)if(rw(t[i])&&iw(t[i],e-1))return!0;return!1}function sw(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(rw(t)&&Object.keys(t).length>r.numOfKeysLimit)return!0;if("function"==typeof t)return!0;if(rw(t)&&iw(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]=ew(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 nw={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 ow(t,e,r){var i,s=r?Object.assign({},nw,r):nw,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=tw.parse(i).map(t=>t.toString()),o=[sw(r,s.stringifyOptions)];t({level:"error",trace:n,payload:o})};e.addEventListener("error",u),h.push(()=>{e.removeEventListener("error",u)});var c=e=>{var r,i;e.reason instanceof Error?i=[sw("Uncaught (in promise) "+(r=e.reason).name+": "+r.message,s.stringifyOptions)]:(r=new Error,i=[sw("Uncaught (in promise)",s.stringifyOptions),sw(e.reason,s.stringifyOptions)]);var n=tw.parse(r).map(t=>t.toString());t({level:"error",trace:n,payload:i})};e.addEventListener("unhandledrejection",c),h.push(()=>{e.removeEventListener("unhandledrejection",c)})}for(var l of s.level)h.push(f(i,l));return()=>{h.forEach(t=>t())};function f(e,r){var i=this;return e[r]?Vg.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 c=tw.parse(new Error).map(t=>t.toString()).splice(1),l=("assert"===r?h.slice(1):h).map(t=>sw(t,s.stringifyOptions));++o<s.lengthThreshold?t({level:r,trace:c,payload:l}):o===s.lengthThreshold&&t({level:"warn",trace:[],payload:[sw("The number of log records reached the threshold.")]})}catch(t){e("rrweb logger error:",t,...h)}finally{a=!1}}}):()=>{}}}var aw="undefined"!=typeof window?window:void 0,hw="undefined"!=typeof globalThis?globalThis:aw,uw=null==hw?void 0:hw.navigator,cw=null==hw?void 0:hw.document;null==hw||hw.location,null==hw||hw.fetch,(null==hw?void 0:hw.XMLHttpRequest)&&"withCredentials"in new hw.XMLHttpRequest&&hw.XMLHttpRequest,null==hw||hw.AbortController,null==uw||uw.userAgent;var lw=null!=aw?aw:{},fw=(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))(fw||{}),dw=(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))(dw||{});function vw(t,e,r,i){var{capture:s=!1,passive:n=!0}={};null==t||t.addEventListener(e,r,{capture:s,passive:n})}var pw=Uint8Array,mw=Uint16Array,gw=Int32Array,ww=new pw([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]),yw=new pw([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]),bw=new pw([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cw=function(t,e){for(var r=new mw(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var s=new gw(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}},Sw=Cw(ww,2),Iw=Sw.b,kw=Sw.r;Iw[28]=258,kw[258]=28;for(var Aw=Cw(yw,0).r,Rw=new mw(32768),Mw=0;Mw<32768;++Mw){var xw=(43690&Mw)>>1|(21845&Mw)<<1;xw=(61680&(xw=(52428&xw)>>2|(13107&xw)<<2))>>4|(3855&xw)<<4,Rw[Mw]=((65280&xw)>>8|(255&xw)<<8)>>1}var Ew=function(t,e,r){for(var i=t.length,s=0,n=new mw(e);s<i;++s)t[s]&&++n[t[s]-1];var o,a=new mw(e);for(s=1;s<e;++s)a[s]=a[s-1]+n[s-1]<<1;if(r){o=new mw(1<<e);var h=15-e;for(s=0;s<i;++s)if(t[s])for(var u=s<<4|t[s],c=e-t[s],l=a[t[s]-1]++<<c,f=l|(1<<c)-1;l<=f;++l)o[Rw[l]>>h]=u}else for(o=new mw(i),s=0;s<i;++s)t[s]&&(o[s]=Rw[a[t[s]-1]++]>>15-t[s]);return o},Ow=new pw(288);for(Mw=0;Mw<144;++Mw)Ow[Mw]=8;for(Mw=144;Mw<256;++Mw)Ow[Mw]=9;for(Mw=256;Mw<280;++Mw)Ow[Mw]=7;for(Mw=280;Mw<288;++Mw)Ow[Mw]=8;var Nw=new pw(32);for(Mw=0;Mw<32;++Mw)Nw[Mw]=5;var Bw=Ew(Ow,9,0),Tw=Ew(Nw,5,0),jw=function(t){return(t+7)/8|0},Fw=function(t,e,r){return(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length),new pw(t.subarray(e,r))},Lw=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>8},Zw=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},Yw=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:Xw,l:0};if(1==s){var o=new pw(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,c=1,l=2;for(r[0]={s:-1,f:a.f+h.f,l:a,r:h};c!=s-1;)a=r[r[u].f<r[l].f?u++:l++],h=r[u!=c&&r[u].f<r[l].f?u++:l++],r[c++]={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 mw(f+1),v=Dw(r[c-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 pw(d),l:v}},Dw=function(t,e,r){return-1==t.s?Math.max(Dw(t.l,e,r+1),Dw(t.r,e,r+1)):e[t.s]=r},Pw=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new mw(++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}},Uw=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},Gw=function(t,e,r){var i=r.length,s=jw(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)},Ww=function(t,e,r,i,s,n,o,a,h,u,c){Lw(e,c++,r),++s[256];for(var l=Yw(s,15),f=l.t,d=l.l,v=Yw(n,15),p=v.t,m=v.l,g=Pw(f),w=g.c,y=g.n,b=Pw(p),C=b.c,S=b.n,I=new mw(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=Yw(I,7),R=A.t,M=A.l,x=19;x>4&&!R[bw[x-1]];--x);var E,O,N,B,T=u+5<<3,j=Uw(s,Ow)+Uw(n,Nw)+o,F=Uw(s,f)+Uw(n,p)+o+14+3*x+Uw(I,R)+2*I[16]+3*I[17]+7*I[18];if(h>=0&&T<=j&&T<=F)return Gw(e,c,t.subarray(h,h+u));if(Lw(e,c,1+(F<j)),c+=2,F<j){E=Ew(f,d,0),O=f,N=Ew(p,m,0),B=p;var L=Ew(R,M,0);Lw(e,c,y-257),Lw(e,c+5,S-1),Lw(e,c+10,x-4),c+=14;for(k=0;k<x;++k)Lw(e,c+3*k,R[bw[k]]);c+=3*x;for(var Z=[w,C],Y=0;Y<2;++Y){var D=Z[Y];for(k=0;k<D.length;++k){var P=31&D[k];Lw(e,c,L[P]),c+=R[P],P>15&&(Lw(e,c,D[k]>>5&127),c+=D[k]>>12)}}}else E=Bw,O=Ow,N=Tw,B=Nw;for(k=0;k<a;++k){var U=i[k];if(U>255){Zw(e,c,E[(P=U>>18&31)+257]),c+=O[P+257],P>7&&(Lw(e,c,U>>23&31),c+=ww[P]);var G=31&U;Zw(e,c,N[G]),c+=B[G],G>3&&(Zw(e,c,U>>5&8191),c+=yw[G])}else Zw(e,c,E[U]),c+=O[U]}return Zw(e,c,E[256]),c+O[256]},Vw=new gw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xw=new pw(0),Jw=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}(),zw=function(t,e,r,i,s){if(!s&&(s={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),o=new pw(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 pw(i+o+5*(1+Math.ceil(o/7e3))+s),h=a.subarray(i,a.length-s),u=n.l,c=7&(n.r||0);if(e){c&&(h[0]=n.r>>3);for(var l=Vw[e-1],f=l>>13,d=8191&l,v=(1<<r)-1,p=n.p||new mw(32768),m=n.h||new mw(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 gw(25e3),C=new mw(288),S=new mw(32),I=0,k=0,A=n.i||0,R=0,M=n.w||0,x=0;A+2<o;++A){var E=y(A),O=32767&A,N=m[E];if(p[O]=N,m[E]=O,M<=A){var B=o-A;if((I>7e3||R>24576)&&(B>423||!u)){c=Ww(t,h,0,b,C,S,k,R,x,A-x,c),R=I=k=0,x=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,L=d,Z=O-N&32767;if(B>2&&E==y(A-Z))for(var Y=Math.min(f,B)-1,D=Math.min(32767,A),P=Math.min(258,B);Z<=D&&--L&&O!=N;){if(t[A+j]==t[A+j-Z]){for(var U=0;U<P&&t[A+U]==t[A+U-Z];++U);if(U>j){if(j=U,F=Z,U>Y)break;var G=Math.min(Z,U-2),W=0;for(T=0;T<G;++T){var V=A-Z+T&32767,X=V-p[V]&32767;X>W&&(W=X,N=V)}}}Z+=(O=N)-(N=p[O])&32767}if(F){b[R++]=268435456|kw[j]<<18|Aw[F];var J=31&kw[j],z=31&Aw[F];k+=ww[J]+yw[z],++C[257+J],++S[z],M=A+j,++I}else b[R++]=t[A],++C[t[A]]}}for(A=Math.max(A,M);A<o;++A)b[R++]=t[A],++C[t[A]];c=Ww(t,h,u,b,C,S,k,R,x,A-x,c),u||(n.r=7&c|h[c/8|0]<<3,c-=7,n.h=m,n.p=p,n.i=A,n.w=M)}else{for(A=n.w||0;A<o+u;A+=65535){var _=A+65535;_>=o&&(h[c/8|0]=u,_=o),c=Gw(h,c+1,t.subarray(A,_))}n.i=o}return Fw(a,0,i+jw(c)+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)},_w=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8};function Kw(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=Jw[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}}(),i=t.length;r.p(t);var s=zw(t,e,function(t){return 10+(t.filename?t.filename.length+1:0)}(e),8),n=s.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&&_w(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)}}(s,e),_w(s,n-8,r.d()),_w(s,n-4,i),s}var Hw="undefined"!=typeof TextEncoder&&new TextEncoder,Qw="undefined"!=typeof TextDecoder&&new TextDecoder;try{Qw.decode(Xw,{stream:!0})}catch(t){}function $w(t,e){if(Hw)return Hw.encode(t);for(var r=t.length,i=new pw(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 pw(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 Fw(i,0,s)}var qw=[dw.MouseMove,dw.MouseInteraction,dw.Scroll,dw.ViewportResize,dw.Input,dw.TouchMove,dw.MediaInteraction,dw.Drag];function ty(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}(Kw($w(JSON.stringify(t))))}function ey(t){try{return new Blob([JSON.stringify(t)]).size}catch(e){return 2*JSON.stringify(t).length}}function ry(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[...ry({size:ey(i),data:i,sessionId:t.sessionId,windowId:t.windowId}),...ry({size:ey(s),data:s,sessionId:t.sessionId,windowId:t.windowId})]}return[t]}function iy(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 sy="[SessionRecording]";function ny(){var t,e;return null===(e=null===(t=null==lw?void 0:lw.__VTiltExtensions__)||void 0===t?void 0:t.rrweb)||void 0===e?void 0:e.record}function oy(t){return{rrwebMethod:t,enqueuedAt:Date.now(),attempt:1}}class ay{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==cw?void 0:cw.visibilityState){var t="window "+cw.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.L()?(this.Z(t),aw&&(vw(aw,"beforeunload",this.A),vw(aw,"offline",this.M),vw(aw,"online",this.N),vw(aw,"visibilitychange",this.B))):this.stop()}stop(){this.u&&this.Y&&(this.Y(),this.Y=void 0,this.u=!1,aw&&(aw.removeEventListener("beforeunload",this.A),aw.removeEventListener("offline",this.M),aw.removeEventListener("online",this.N),aw.removeEventListener("visibilitychange",this.B)),this.F(),this.D&&clearInterval(this.D),console.info(sy+" stopped"))}stopRecording(){this.stop()}addCustomEvent(t,e){return this.O(t,e)}takeFullSnapshot(){return this.P()}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=r({},this.T,t)}L(){return!!this.T.enabled&&!!aw}Z(t){if(void 0!==Object.assign&&void 0!==Array.from&&!this.u){this.u=!0;var e=this._instance.getSessionId();this.S=e||this.U(),this.I=this.U(),ny()?this.G():this.W(()=>{this.G()}),console.info(sy+" starting"),t&&this.V(t)}}W(t){var e,r=null===(e=lw.__VTiltExtensions__)||void 0===e?void 0:e.loadExternalDependency;r?r(this._instance,"recorder",e=>{e?console.error(sy+" Could not load recorder:",e):t()}):console.error(sy+" loadExternalDependency not available. Make sure external-scripts-loader is initialized.")}G(){var t,e,i=ny();if(i){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:r({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.Y=i(r({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(sy+" onScriptLoaded was called but rrwebRecord is not available")}K(){var t,e,r=[];if(this.T.captureConsole)try{var i=null===(e=null===(t=lw.__VTiltExtensions__)||void 0===t?void 0:t.rrwebPlugins)||void 0===e?void 0:e.getRecordConsolePlugin;i&&r.push(i())}catch(t){console.warn(sy+" Failed to load console plugin",t)}return r}onRRwebEmit(t){if(this.H(),t&&"object"==typeof t){if(t.type===fw.Meta){var e=t.data;this.$=e.href}if(function(t){return t.type===fw.Custom&&"recording paused"===t.data.tag}(t));else if(!0===this.m)return;t.type===fw.FullSnapshot&&this.q();var i=function(t){if(t.type!==fw.Plugin||"rrweb/console@1"!==t.data.plugin)return t;var e=t.data.payload;if(!(null==e?void 0:e.payload))return t;var i=e.payload.map(t=>"string"==typeof t&&t.length>1e3?t.substring(0,1e3)+"... [truncated]":t);return r({},t,{data:r({},t.data,{payload:r({},e,{payload:i})})})}(t);if(this.tt(i),!0!==this.m||function(t){return t.type===fw.Custom&&"sessionIdle"===t.data.tag}(i)){var s=!1!==this.T.compressEvents?function(t){if(ey(t)<1024)return t;try{if(t.type===fw.FullSnapshot)return r({},t,{data:ty(t.data),cv:"2024-10"});if(t.type===fw.IncrementalSnapshot&&t.data.source===dw.Mutation){var e=t.data;return r({},t,{cv:"2024-10",data:r({},e,{texts:ty(e.texts),attributes:ty(e.attributes),removes:ty(e.removes),adds:ty(e.adds)})})}if(t.type===fw.IncrementalSnapshot&&t.data.source===dw.StyleSheetRule){var i=t.data;return r({},t,{cv:"2024-10",data:r({},i,{adds:i.adds?ty(i.adds):void 0,removes:i.removes?ty(i.removes):void 0})})}}catch(t){console.error("[SessionRecording] Could not compress event - will use uncompressed event",t)}return t}(i):i,n={$snapshot_bytes:ey(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&&qw.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.U(),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&&ry(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(sy+" 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!==aw)try{var a=Kw($w(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(sy+" Compression failed, sending uncompressed")}var u=t.replace("&compression=gzip-js","");if(o){var c=new Blob([i],{type:"application/json"});this.ot(u,c,"application/json")}else{if("undefined"!=typeof navigator&&navigator.sendBeacon){var l=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(u,l))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(sy+" 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(sy+" 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(sy+" 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.P()},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(sy+" Could not emit queued rrweb event",e,t),!1}}O(t,e){return this.rt(oy(()=>ny().addCustomEvent(t,e)))}P(){return this.rt(oy(()=>ny().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:iy(n,0,12,"canvas recording fps",4),quality:iy(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}}U(){return Math.random().toString(36).substring(2,15)}V(t,e){console.info(sy+" "+t.replace(/_/g," "),e),"recording_initialized"!==t&&"session_id_changed"!==t&&this.O(t,e)}}lw.__VTiltExtensions__=lw.__VTiltExtensions__||{},lw.__VTiltExtensions__.rrweb={record:Iu,version:"v2"},lw.__VTiltExtensions__.rrwebPlugins={getRecordConsolePlugin:t=>({name:"rrweb/console@1",observer:ow,options:t})},lw.__VTiltExtensions__.initSessionRecording=function(t,e){return new ay(t,e)};var hy,uy=-1,cy=function(t){addEventListener("pageshow",function(e){e.persisted&&(uy=e.timeStamp,t(e))},!0)},ly=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},fy=function(){var t=ly();return t&&t.activationStart||0},dy=function(t,e){var r=ly(),i="navigate";return uy>=0?i="back-forward-cache":r&&(document.prerendering||fy()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},vy=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return i.observe(Object.assign({type:t,buffered:!0},r||{})),i}}catch(t){}},py=function(t,e,r,i){var s,n;return function(o){e.value>=0&&(o||i)&&((n=e.value-(s||0))||void 0===s)&&(s=e.value,e.delta=n,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,r),t(e))}},my=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},gy=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},wy=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},yy=-1,by=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Cy=function(t){"hidden"===document.visibilityState&&yy>-1&&(yy="visibilitychange"===t.type?t.timeStamp:0,Iy())},Sy=function(){addEventListener("visibilitychange",Cy,!0),addEventListener("prerenderingchange",Cy,!0)},Iy=function(){removeEventListener("visibilitychange",Cy,!0),removeEventListener("prerenderingchange",Cy,!0)},ky=function(){return yy<0&&(yy=by(),Sy(),cy(function(){setTimeout(function(){yy=by(),Sy()},0)})),{get firstHiddenTime(){return yy}}},Ay=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Ry=[1800,3e3],My=function(t,e){e=e||{},Ay(function(){var r,i=ky(),s=dy("FCP"),n=vy("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(n.disconnect(),t.startTime<i.firstHiddenTime&&(s.value=Math.max(t.startTime-fy(),0),s.entries.push(t),r(!0)))})});n&&(r=py(t,s,Ry,e.reportAllChanges),cy(function(i){s=dy("FCP"),r=py(t,s,Ry,e.reportAllChanges),my(function(){s.value=performance.now()-i.timeStamp,r(!0)})}))})},xy=[.1,.25],Ey=0,Oy=1/0,Ny=0,By=function(t){t.forEach(function(t){t.interactionId&&(Oy=Math.min(Oy,t.interactionId),Ny=Math.max(Ny,t.interactionId),Ey=Ny?(Ny-Oy)/7+1:0)})},Ty=function(){return hy?Ey:performance.interactionCount||0},jy=function(){"interactionCount"in performance||hy||(hy=vy("event",By,{type:"event",buffered:!0,durationThreshold:0}))},Fy=[200,500],Ly=0,Zy=function(){return Ty()-Ly},Yy=[],Dy={},Py=function(t){var e=Yy[Yy.length-1],r=Dy[t.interactionId];if(r||Yy.length<10||t.duration>e.latency){if(r)r.entries.push(t),r.latency=Math.max(r.latency,t.duration);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};Dy[i.id]=i,Yy.push(i)}Yy.sort(function(t,e){return e.latency-t.latency}),Yy.splice(10).forEach(function(t){delete Dy[t.id]})}},Uy=[2500,4e3],Gy={},Wy=[800,1800],Vy=function t(e){document.prerendering?Ay(function(){return t(e)}):"complete"!==document.readyState?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},Xy={onLCP:function(t,e){e=e||{},Ay(function(){var r,i=ky(),s=dy("LCP"),n=function(t){var e=t[t.length-1];e&&e.startTime<i.firstHiddenTime&&(s.value=Math.max(e.startTime-fy(),0),s.entries=[e],r())},o=vy("largest-contentful-paint",n);if(o){r=py(t,s,Uy,e.reportAllChanges);var a=wy(function(){Gy[s.id]||(n(o.takeRecords()),o.disconnect(),Gy[s.id]=!0,r(!0))});["keydown","click"].forEach(function(t){addEventListener(t,function(){return setTimeout(a,0)},!0)}),gy(a),cy(function(i){s=dy("LCP"),r=py(t,s,Uy,e.reportAllChanges),my(function(){s.value=performance.now()-i.timeStamp,Gy[s.id]=!0,r(!0)})})}})},onCLS:function(t,e){e=e||{},My(wy(function(){var r,i=dy("CLS",0),s=0,n=[],o=function(t){t.forEach(function(t){if(!t.hadRecentInput){var e=n[0],r=n[n.length-1];s&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,n.push(t)):(s=t.value,n=[t])}}),s>i.value&&(i.value=s,i.entries=n,r())},a=vy("layout-shift",o);a&&(r=py(t,i,xy,e.reportAllChanges),gy(function(){o(a.takeRecords()),r(!0)}),cy(function(){s=0,i=dy("CLS",0),r=py(t,i,xy,e.reportAllChanges),my(function(){return r()})}),setTimeout(r,0))}))},onFCP:My,onINP:function(t,e){e=e||{},Ay(function(){var r;jy();var i,s=dy("INP"),n=function(t){t.forEach(function(t){t.interactionId&&Py(t),"first-input"===t.entryType&&!Yy.some(function(e){return e.entries.some(function(e){return t.duration===e.duration&&t.startTime===e.startTime})})&&Py(t)});var e,r=(e=Math.min(Yy.length-1,Math.floor(Zy()/50)),Yy[e]);r&&r.latency!==s.value&&(s.value=r.latency,s.entries=r.entries,i())},o=vy("event",n,{durationThreshold:null!==(r=e.durationThreshold)&&void 0!==r?r:40});i=py(t,s,Fy,e.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),gy(function(){n(o.takeRecords()),s.value<0&&Zy()>0&&(s.value=0,s.entries=[]),i(!0)}),cy(function(){Yy=[],Ly=Ty(),s=dy("INP"),i=py(t,s,Fy,e.reportAllChanges)}))})},onTTFB:function(t,e){e=e||{};var r=dy("TTFB"),i=py(t,r,Wy,e.reportAllChanges);Vy(function(){var s=ly();if(s){var n=s.responseStart;if(n<=0||n>performance.now())return;r.value=Math.max(n-fy(),0),r.entries=[s],i(!0),cy(function(){r=dy("TTFB",0),(i=py(t,r,Wy,e.reportAllChanges))(!0)})}})}};lw.__VTiltExtensions__=lw.__VTiltExtensions__||{},lw.__VTiltExtensions__.webVitalsCallbacks=Xy}();
2
+ //# sourceMappingURL=all-external-dependencies.js.map