PageSourceSearch

https://channel.io/_next/static/chunks/161_78_djad-z.js

js channel.io collected 2026-09-24 08:26:24 UTC 413,831 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,174333,e=>{"use strict";var t,r,n,i,o,s,a,c,u,l,h,p,f,d,g,m,v,y,_=e.i(928676),b=e.i(100844);if("u"<typeof window){var w={hostname:""};o7={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:w,referrer:""},screen:{width:0,height:0},location:w,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else o7=window;var k={DEBUG:!1,LIB_VERSION:"2.78.0"},S="__mp_targeting",C="__mp_recorder",x="__MP_TARGETING_FILENAME__";function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function E(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){O(o,n,i,s,a,"next",e)}function a(e){O(o,n,i,s,a,"throw",e)}s(void 0)})}}function M(e,t,r){return(M=j()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&D(i,r.prototype),i}).apply(null,arguments)}function R(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}function F(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function L(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function U(e){var t="function"==typeof Map?new Map:void 0;return(U=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return M(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),D(r,e)})(e)}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function B(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return I(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var c=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function z(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var W=Object.defineProperty,V=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?W(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},$=Object.defineProperty,H=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},G=((o0=G||{})[o0.Document=0]="Document",o0[o0.DocumentType=1]="DocumentType",o0[o0.Element=2]="Element",o0[o0.Text=3]="Text",o0[o0.CDATA=4]="CDATA",o0[o0.Comment=5]="Comment",o0),Y={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},J={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Z={};function X(e){if(Z[e])return Z[e];var t=globalThis[e],r=t.prototype,n=e in Y?Y[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in J?J[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return Z[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return Z[e]=u}catch(e){return r}}var K={};function Q(e,t,r){var n,i=e+"."+String(r);if(K[i])return K[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(X(e),r))?void 0:n.get;return o?(K[i]=o,o.call(t)):t[r]}var ee=function(e){return Q("Node",e,"childNodes")},et=function(e){return Q("Node",e,"parentNode")},er=function(e){return Q("Node",e,"parentElement")},en=function(e){return Q("Node",e,"textContent")},ei=function(e){return e&&"shadowRoot"in e?Q("Element",e,"shadowRoot"):null};function eo(e){return e.nodeType===e.ELEMENT_NODE}function es(e){var t,r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?Q("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&ei(r)===e)}function ea(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ec(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return eu(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function eu(e,t){if("styleSheet"in e){var r;try{r=ec(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?eb(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?eb(n,t):n}var el=function(){function e(){H(this,"idNodeMap",new Map),H(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function eh(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&ep(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function ep(e){return e.toLowerCase()}var ef="__rrweb_original__";function ed(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ep(t):null}function eg(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var em=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ev=/^(?:[a-z+]+:)?\/\//i,ey=/^www\..*/i,e_=/^(data:)([^,]*),(.*)/i;function eb(e,t){return(e||"").replace(em,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;
1if(ev.test(a)||ey.test(a)||e_.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,p,f=B(l);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?u.pop():u.push(d))}return"url("+c+u.join("/")+c+")"})}function ew(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ek=1,eS=RegExp("[^a-z0-9-_:]");function eC(){return ek++}var ex=/^[^ \t\n\r\u000c]+/,eI=/^[, \t\n\r\u000c]+/,eO=new WeakMap;function eE(e,t){return t&&""!==t.trim()?eM(e,t):t}function eM(e,t){var r=eO.get(e);if(r||(r=e.createElement("a"),eO.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eR(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return eE(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return eE(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eI),!(r>=t.length);){var o=n(ex);if(","===o.slice(-1))o=eE(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=eE(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return eb(n,eM(e));else if("object"===t&&"data"===r)return eE(e,n);return n}function eA(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eT(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eT(et(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eT(et(e),t,r)}function eP(e,t,r,n){var i;if(eo(e)){if(!ee(i=e).length)return!1}else{if(null===er(e))return!1;i=er(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eT(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function eF(e){return null==e?"":e.toLowerCase()}function eL(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,C=t.onIframeLoad,x=t.iframeLoadTimeout,I=void 0===x?5e3:x,O=t.onStylesheetLoad,E=t.stylesheetLoadTimeout,M=void 0===E?5e3:E,R=t.keepIframeSrcFn,A=void 0===R?function(){return!1}:R,T=t.newlyAddedElement,P=t.cssCaptured,L=t.needsMask,D=t.preserveWhiteSpace,N=void 0===D||D;L||(L=eP(e,s,a,void 0===L));var U=function(e,t){var r,n,i,o,s,a,c,u,l,h,p,f=t.doc,d=t.mirror,g=t.blockClass,m=t.blockSelector,v=t.needsMask,y=t.inlineStylesheet,_=t.maskInputOptions,b=t.maskTextFn,w=t.maskInputFn,k=t.dataURLOptions,S=t.inlineImages,C=t.recordCanvas,x=t.keepIframeSrcFn,I=t.newlyAddedElement,O=t.cssCaptured,E=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(f,d);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:G.Document,childNodes:[],compatMode:e.compatMode};return{type:G.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:G.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=t.rootId,v=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),y=function(e){if(F(e,HTMLFormElement))return"form";var t=ep(e.tagName);return eS.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];eA(y,k.name,k.value)||(_[k.name]=eR(n,y,ep(k.name),k.value))}if("link"===y&&s){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;S&&(C=ec(S)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var x=ec(e.sheet);x&&(e.childNodes.length>1&&(x=(function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=ew(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=ew(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=ew(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=ew(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}}return i.push(e),i})(x,e).join("/* rr_split */")),_._cssText=x)}if("input"===y||"textarea"===y||"select"===y){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=eh({element:e,type:ed(e),tagName:y,value:
1I,maskInputOptions:c,maskInputFn:u}):O&&(_.checked=O)}if("option"===y&&(e.selected&&!c.select?_.selected=!0:delete _.selected),"dialog"===y&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&f){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;if(new Uint32Array((ef in i?i[ef]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var E=e.toDataURL(h.type,h.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,E!==M.toDataURL(h.type,h.quality)&&(_.rr_dataURL=E)}}if("img"===y&&p){st||(sr=(st=n.createElement("canvas")).getContext("2d"));var R=e.currentSrc||e.getAttribute("src")||"<unknown-src>",A=e.crossOrigin,T=function(){e.removeEventListener("load",T);try{st.width=e.naturalWidth,st.height=e.naturalHeight,sr.drawImage(e,0,0),_.rr_dataURL=st.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?T():e.addEventListener("load",T);return}console.warn("Cannot inline img src="+R+"! Error: "+t)}"anonymous"===e.crossOrigin&&(A?_.crossOrigin=A:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?T():e.addEventListener("load",T)}if("audio"===y||"video"===y){var P=_;P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime,P.rr_mediaPlaybackRate=e.playbackRate,P.rr_mediaMuted=e.muted,P.rr_mediaLoop=e.loop,P.rr_mediaVolume=e.volume}if(!(void 0!==g&&g)&&(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var L=e.getBoundingClientRect(),D=L.width,N=L.height;_={class:_.class,rr_width:""+D+"px",rr_height:""+N+"px"}}"iframe"!==y||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:G.Element,tagName:y,attributes:_,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:v,rootId:m,isCustom:r}}(e,{doc:f,blockClass:g,blockSelector:m,inlineStylesheet:y,maskInputOptions:void 0===_?{}:_,maskInputFn:w,dataURLOptions:void 0===k?{}:k,inlineImages:S,recordCanvas:C,keepIframeSrcFn:x,newlyAddedElement:void 0!==I&&I,rootId:E});case e.TEXT_NODE:return r=e,i=(n={doc:f,needsMask:v,maskTextFn:b,rootId:E,cssCaptured:void 0!==O&&O}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,u=(c=et(r))&&c.tagName,l="",h="STYLE"===u||void 0,(p="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=en(r),h&&l&&(l=eb(l,eM(n.doc)))),!h&&!p&&l&&i&&(l=o?o(l,er(r)):l.replace(/[\S]/g,"*")),{type:G.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:G.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:G.Comment,textContent:en(e)||"",rootId:E};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:void 0!==T&&T,cssCaptured:void 0!==P&&P});if(!U)return console.warn(e,"not serialized"),null;V=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===G.Comment)return!0;if(e.type===G.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eg(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eF(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eF(e.attributes.name)||"icon"===eF(e.attributes.rel)||"apple-touch-icon"===eF(e.attributes.rel)||"shortcut icon"===eF(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eF(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eF(e.attributes.property).match(/^(og|twitter|fb):/)||eF(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eF(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eF(e.attributes.name)||"googlebot"===eF(e.attributes.name)||"bingbot"===eF(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eF(e.attributes.name)||"generator"===eF(e.attributes.name)||"framework"===eF(e.attributes.name)||"publisher"===eF(e.attributes.name)||"progid"===eF(e.attributes.name)||eF(e.attributes.property).match(/^article:/)||eF(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eF(e.attributes.name)||"yandex-verification"===eF(e.attributes.name)||"csrf-token"===eF(e.attributes.name)||"p:domain_verify"===eF(e.attributes.name)||"verify-v1"===eF(e.attributes.name)||"verification"===eF(e.attributes.name)||"shopify-checkout-api-token"===eF(e.attributes.name)))return!0}}return!1}(U,m)&&(N||U.type!==G.Text||U.textContent.replace(/^\s+|\s+$/gm,"").length)?eC():-2;var j=Object.assign(U,{id:V});if(n.add(e,j),-2===V)return null;S&&S(e);var q=!u;if(j.type===G.Element){q=q&&!j.needBlock,delete j.needBlock;var z=ei(e);z&&ea(z)&&(j.isShadowHost=!0)}if((j.type===G.Document||j.type===G.Element)&&q){m.headWhitespace&&j.type===G.Element&&"head"===j.tagName&&(N=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:A,cssCaptured:!1};if(j.type===G.Element&&"textarea"===j.tagName&&void 0!==j.attributes.value);else{j.type===G.Element&&void 0!==j.attributes._cssText&&"string"==typeof j.attributes._cssText&&(W.cssCaptured=!0);for(var V,$,H=B(Array.from(ee(e)));!($=H()).done;){var Y=eL($.value,W);Y&&j.childNodes.push(Y)}}var J=null;if(eo(e)&&(J=ei(e)))for(var Z,X=B(Array.from(ee(J)));!(Z=X()).done;){var K=eL(Z.value,W);K&&(ea(J)&&(K.isShadow=!0),j.childNodes.push(K))}}var Q=et(e);
1return Q&&es(Q)&&ea(Q)&&(j.isShadow=!0),j.type===G.Element&&"iframe"===j.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&C){var r=eL(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:A});r&&C(e,r)}},I),j.type===G.Element&&"link"===j.tagName&&"string"==typeof j.attributes.rel&&("stylesheet"===j.attributes.rel||"preload"===j.attributes.rel&&"string"==typeof j.attributes.href&&"css"===eg(j.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(O){var t=eL(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&O(e,t)}},M),j}var eD={exports:{}},eN=String,eU=function(){return{isColorSupported:!1,reset:eN,bold:eN,dim:eN,italic:eN,underline:eN,inverse:eN,hidden:eN,strikethrough:eN,black:eN,red:eN,green:eN,yellow:eN,blue:eN,magenta:eN,cyan:eN,white:eN,gray:eN,bgBlack:eN,bgRed:eN,bgGreen:eN,bgYellow:eN,bgBlue:eN,bgMagenta:eN,bgCyan:eN,bgWhite:eN}};eD.exports=eU(),eD.exports.createColors=eU;var ej=eD.exports,eB=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return F(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eq=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}P(t,e);var r=t.prototype;return r.setMessage=function(){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},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=ej.isColorSupported),eB&&e&&(i=eB(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=ej.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(U(Error));eq.default=eq;var ez={};ez.isClean=Symbol("isClean"),ez.my=Symbol("my");var eW={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},eV=function(){function e(e){this.builder=e}var t=e.prototype;
1return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return eW[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=eW[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function e$(e,t){new eV(t).stringify(e)}eV.default=eV,e$.default=e$;var eH=ez.isClean,eG=ez.my,eY=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eH]=!1,this[eG]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eq(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[eH]){this[eH]=!1;for(var e=this;e=e.parent;)e[eH]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new eV().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=e$),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();eY.default=eY;var eJ=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=A({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return P(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(eY);eJ.default=eJ;var eZ=eB.SourceMapConsumer,eX=eB.SourceMapGenerator,eK=eB.existsSync,eQ=eB.readFileSync,e0=eB.dirname,e1=eB.join,e2=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=e0(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eZ(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),b.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=e0(e),eK(e))return this.mapFile=e,eQ(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(F(t,eZ))return eX.fromSourceMap(t).toString();else if(F(t,eX))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=e1(e0(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();e2.default=e2;var e3=eB.SourceMapConsumer,e4=eB.SourceMapGenerator,e9=eB.fileURLToPath,e5=eB.pathToFileURL,e6=eB.isAbsolute,e8=eB.resolve,e7=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,te=Symbol("fromOffsetCache"),tt=!!(e3&&e4),tr=!!(e8&&e6),tn=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tr||/^\w+:\/\//.test(t.from)||e6(t.from)?this.file=t.from:this.file=e8(t.from)),tr&&tt){var r=new e2(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+e7(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new eq(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new eq(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(e5&&(i.input.url=e5(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[te])a=this[te];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[te]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:e8(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=e6(a.source)?e5(a.source):new URL(a.source,this.map.consumer().sourceRoot||e5(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(e9)c.file=e9(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();tn.default=tn,eB&&eB.registerInput&&eB.registerInput(tn);var ti=eB.SourceMapConsumer,to=eB.SourceMapGenerator,ts=eB.dirname,ta=eB.relative,tc=eB.resolve,tu=eB.sep,tl=eB.pathToFileURL,th=!!(ti&&to),tp=!!(ts&&tc&&ta&&tu),tf=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||ts(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new ti(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),tp&&th&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({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]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ts(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ts(tc(r,this.mapOpts.annotation)));var n=ta(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new tn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return b.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(tl){var r=tl(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===tu&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),td=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return P(t,e),t}(eY);td.default=td;var tg=ez.isClean,tm=ez.my,tv=function(e){function t(){return e.apply(this,arguments)||this}P(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sn(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=B(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new eJ(e)]}else if(e.selector)e=[new si(e)];else if(e.name)e=[new so(e)];else if(e.text)e=[new td(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[tm]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tg]&&function e(t){if(t[tg]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(eY);tv.registerParse=function(e){sn=e},tv.registerRule=function(e){si=e},tv.registerAtRule=function(e){so=e},tv.registerRoot=function(e){ss=e},tv.default=tv,tv.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,so.prototype):"rule"===e.type?Object.setPrototypeOf(e,si.prototype):"decl"===e.type?Object.setPrototypeOf(e,eJ.prototype):"comment"===e.type?Object.setPrototypeOf(e,td.prototype):"root"===e.type&&Object.setPrototypeOf(e,ss.prototype),e[tm]=!0,e.nodes&&e.nodes.forEac
1h(function(e){tv.rebuild(e)})};var ty=function(e){function t(t){var r;return(r=e.call(this,A({type:"document"},t))||this).nodes||(r.nodes=[]),r}return P(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sa(new sc,this,e).stringify()},t}(tv);ty.registerLazyResult=function(e){sa=e},ty.registerProcessor=function(e){sc=e},ty.default=ty;var t_=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){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},e}();t_.default=t_;var tb=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new t_(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();tb.default=tb;var tw=/[\t\n\f\r "#'()/;[\\\]{}]/g,tk=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tS=/.[\r\n"'(/\\]/,tC=/[\da-f]/i,tx=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}P(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(tv);tx.default=tx,tv.registerAtRule(tx);var tI=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}P(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new su(new sl,this,e).stringify()},t}(tv);tI.registerLazyResult=function(e){su=e},tI.registerProcessor=function(e){sl=e},tI.default=tI,tv.registerRoot(tI);var tO={comma:function(e){return tO.split(e,[","],!0)},space:function(e){return tO.split(e,[" ","\n","	"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};tO.default=tO;var tE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return P(t,e),R(t,[{key:"selectors",get:function(){return tO.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(tv);tE.default=tE,tv.registerRule(tE);var tM=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
1case 40:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(f||t){n=g;break}else y("bracket");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||tS.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(f||t){n=g+1;break}else y("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:tw.lastIndex=g+1,tw.test(p),n=0===tw.lastIndex?p.length-1:tw.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tC.test(p.charAt(n)))){for(;tC.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(tk.lastIndex=g+1,tk.test(p),n=0===tk.lastIndex?p.length-1:tk.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},tR={empty:!0,space:!0},tA=function(){function e(e){this.input=e,this.root=new tI,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new tx;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new td;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=tM(this.input)},t.decl=function(e,t){var r,n,i=new eJ;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new tE;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tR[a]||tR[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new tE;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function tT(e,t){var r=new tA(new tn(e,t));try{r.parse()}catch(e){throw e}return r.root}tT.default=tT,tv.registerParse(tT);var tP=ez.isClean,tF=ez.my,tL={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tD={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},tN={Once:!0,postcssPlugin:!0,prepare:!0};function tU(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function tj(e){var t=!1,r=tL[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function tB(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tj(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function tq(e){return e[tP]=!1,e.nodes&&e.nodes.forEach(function(e){return tq(e)}),e}var tz={},tW=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tq(r);else if(F(r,e)||F(r,tb))i=tq(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=tT;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[tF]&&tv.rebuild(i)}this.result=new tb(t,i,n),this.helpers=A({},tz,{postcss:tz,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?A({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!tD[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!tN[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return E(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return q(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!tU(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[tP])return[3,14];o[tP]=!0,s=[tB(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!tU(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),f.label=15;case 15:if((p=h()).done)return[3,18];return[5,z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(tU(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=e$;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new tf(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(tU(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[tP];)n[tP]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(tU(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[tP]){a[tP]=!0,e.push(tB(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[tP]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[tP]=!0;for(var r,n=tj(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[tP]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();tW.registerPostcss=function(e){tz=e},tW.default=tW,tI.registerLazyResult(tW),ty.registerLazyResult(tW);var tV=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new tb(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new tf(e$,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=tT(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();tV.default=tV;var t$=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tW(this,e,t):new tV(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tH(e,t){if(Array.isArray(e))return e.map(function(e){return tH(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=A({},s,{__proto__:tn.prototype});a.map&&(a.map=A({},a.map,{__proto__:e2.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tH(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=L(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new tI(n);if("decl"===n.type)return new eJ(n);if("rule"===n.type)return new tE(n);if("comment"===n.type)return new td(n);if("atrule"===n.type)return new tx(n);else throw Error("Unknown node type: "+e.type)}function tG(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new t$(t)}t$.default=t$,tI.registerProcessor(t$),ty.registerProcessor(t$),tH.default=tH,tG.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),_.default.env.LANG&&_.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new t$().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return tG([i(r)]).process(e,t)},i},tG.stringify=e$,tG.parse=tT,tG.fromJSON=tH,tG.list=tO,tG.comment=function(e){return new td(e)},tG.atRule=function(e){return new tx(e)},tG.decl=function(e){return new eJ(e)},tG.rule=function(e){return new tE(e)},tG.root=function(e){return new tI(e)},tG.document=function(e){return new ty(e)},tG.CssSyntaxError=eq,tG.Declaration=eJ,tG.Container=tv,tG.Processor=t$,tG.Document=ty,tG.Comment=td,tG.Warning=t_,tG.AtRule=tx,tG.Result=tb,tG.Input=tn,tG.Rule=tE,tG.Root=tI,tG.Node=eY,tW.registerPostcss(tG),tG.default=tG;var tY=tG&&tG.__esModule&&Object.prototype.hasOwnProperty.call(tG,"default")?tG.default:tG;tY.stringify,tY.fromJSON,tY.plugin,tY.parse,tY.list,tY.document,tY.comment,tY.atRule,tY.rule,tY.decl,tY.root,tY.CssSyntaxError,tY.Declaration,tY.Container,tY.Processor,tY.Document,tY.Comment,tY.Warning,tY.AtRule,tY.Result,tY.Input,tY.Rule,tY.Root,tY.Node;var tJ=Object.defineProperty,tZ=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?tJ(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},tX={exports:{}}
1,tK=String,tQ=function(){return{isColorSupported:!1,reset:tK,bold:tK,dim:tK,italic:tK,underline:tK,inverse:tK,hidden:tK,strikethrough:tK,black:tK,red:tK,green:tK,yellow:tK,blue:tK,magenta:tK,cyan:tK,white:tK,gray:tK,bgBlack:tK,bgRed:tK,bgGreen:tK,bgYellow:tK,bgBlue:tK,bgMagenta:tK,bgCyan:tK,bgWhite:tK}};tX.exports=tQ(),tX.exports.createColors=tQ;var t0=tX.exports,t1=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return F(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),t2=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}P(t,e);var r=t.prototype;return r.setMessage=function(){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},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=t0.isColorSupported),t1&&e&&(i=t1(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=t0.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(U(Error));t2.default=t2;var t3={};t3.isClean=Symbol("isClean"),t3.my=Symbol("my");var t4={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},t9=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return t4[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=t4[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function t5(e,t){new t9(t).stringify(e)}t9.default=t9,t5.default=t5;var t6=t3.isClean,t8=t3.my,t7=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[t6]=!1,this[t8]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new t2(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[t6]){this[t6]=!1;for(var e=this;e=e.parent;)e[t6]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new t9().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=t5),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();t7.default=t7;var re=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=A({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return P(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(t7);re.default=re;var rt=t1.SourceMapConsumer,rr=t1.SourceMapGenerator,rn=t1.existsSync,ri=t1.readFileSync,ro=t1.dirname,rs=t1.join,ra=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ro(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rt(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),b.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ro(e),rn(e))return this.mapFile=e,ri(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(F(t,rt))return rr.fromSourceMap(t).toString();else if(F(t,rr))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=rs(ro(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();ra.default=ra;var rc=t1.SourceMapConsumer,ru=t1.SourceMapGenerator,rl=t1.fileURLToPath,rh=t1.pathToFileURL,rp=t1.isAbsolute,rf=t1.resolve,rd=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,rg=Symbol("fromOffsetCache"),rm=!!(rc&&ru),rv=!!(rf&&rp),ry=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rv||/^\w+:\/\//.test(t.from)||rp(t.from)?this.file=t.from:this.file=rf(t.from)),rv&&rm){var r=new ra(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+rd(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new t2(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new t2(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(rh&&(i.input.url=rh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[rg])a=this[rg];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[rg]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rf(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=rp(a.source)?rh(a.source):new URL(a.source,this.map.consumer().sourceRoot||rh(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(rl)c.file=rl(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();ry.default=ry,t1&&t1.registerInput&&t1.registerInput(ry);var r_=t1.SourceMapConsumer,rb=t1.SourceMapGenerator,rw=t1.dirname,rk=t1.relative,rS=t1.resolve,rC=t1.sep,rx=t1.pathToFileURL,rI=!!(r_&&rb),rO=!!(rw&&rS&&rk&&rC),rE=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||rw(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new r_(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rO&&rI&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rb.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rb({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]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new rb({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?rw(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rw(rS(r,this.mapOpts.annotation)));var n=rk(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ry(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return b.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(rx){var r=rx(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rC&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rM=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return P(t,e),t}(t7);rM.default=rM;
1var rR=t3.isClean,rA=t3.my,rT=function(e){function t(){return e.apply(this,arguments)||this}P(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=B(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new re(e)]}else if(e.selector)e=[new sp(e)];else if(e.name)e=[new sf(e)];else if(e.text)e=[new rM(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rA]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[rR]&&function e(t){if(t[rR]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this}
1,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(t7);rT.registerParse=function(e){sh=e},rT.registerRule=function(e){sp=e},rT.registerAtRule=function(e){sf=e},rT.registerRoot=function(e){sd=e},rT.default=rT,rT.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sf.prototype):"rule"===e.type?Object.setPrototypeOf(e,sp.prototype):"decl"===e.type?Object.setPrototypeOf(e,re.prototype):"comment"===e.type?Object.setPrototypeOf(e,rM.prototype):"root"===e.type&&Object.setPrototypeOf(e,sd.prototype),e[rA]=!0,e.nodes&&e.nodes.forEach(function(e){rT.rebuild(e)})};var rP=function(e){function t(t){var r;return(r=e.call(this,A({type:"document"},t))||this).nodes||(r.nodes=[]),r}return P(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sg(new sm,this,e).stringify()},t}(rT);rP.registerLazyResult=function(e){sg=e},rP.registerProcessor=function(e){sm=e},rP.default=rP;var rF=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){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},e}();rF.default=rF;var rL=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rF(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();rL.default=rL;var rD=/[\t\n\f\r "#'()/;[\\\]{}]/g,rN=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rU=/.[\r\n"'(/\\]/,rj=/[\da-f]/i,rB=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}P(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(rT);rB.default=rB,rT.registerAtRule(rB);var rq=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}P(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}
1),new sv(new sy,this,e).stringify()},t}(rT);rq.registerLazyResult=function(e){sv=e},rq.registerProcessor=function(e){sy=e},rq.default=rq,rT.registerRoot(rq);var rz={comma:function(e){return rz.split(e,[","],!0)},space:function(e){return rz.split(e,[" ","\n","	"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};rz.default=rz;var rW=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return P(t,e),R(t,[{key:"selectors",get:function(){return rz.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(rT);rW.default=rW,rT.registerRule(rW);var rV=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;case 40:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(f||t){n=g;break}else y("bracket");for(c=n;
192===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||rU.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(f||t){n=g+1;break}else y("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:rD.lastIndex=g+1,rD.test(p),n=0===rD.lastIndex?p.length-1:rD.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,rj.test(p.charAt(n)))){for(;rj.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(rN.lastIndex=g+1,rN.test(p),n=0===rN.lastIndex?p.length-1:rN.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},r$={empty:!0,space:!0},rH=function(){function e(e){this.input=e,this.root=new rq,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new rB;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new rM;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=rV(this.input)},t.decl=function(e,t){var r,n,i=new re;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rW;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}
1if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",r$[a]||r$[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new rW;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function rG(e,t){var r=new rH(new ry(e,t));try{r.parse()}catch(e){throw e}return r.root}rG.default=rG,rT.registerParse(rG);var rY=t3.isClean,rJ=t3.my,rZ={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rX={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},rK={Once:!0,postcssPlugin:!0,prepare:!0};function rQ(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function r0(e){var t=!1,r=rZ[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function r1(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:r0(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function r2(e){return e[rY]=!1,e.nodes&&e.nodes.forEach(function(e){return r2(e)}),e}var r3={},r4=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=r2(r);else if(F(r,e)||F(r,rL))i=r2(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=rG;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[rJ]&&rT.rebuild(i)}this.result=new rL(t,i,n),this.helpers=A({},r3,{postcss:r3,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?A({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!rX[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
1sion+" now).");if(!rK[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return E(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return q(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!rQ(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[rY])return[3,14];o[rY]=!0,s=[r1(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!rQ(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),f.label=15;case 15:if((p=h()).done)return[3,18];return[5,z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rQ(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=t5;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rE(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(rQ(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rY];)n[rY]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rQ(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[rY]){a[rY]=!0,e.push(r1(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[rY]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[rY]=!0;for(var r,n=r0(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[rY]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
1,R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();r4.registerPostcss=function(e){r3=e},r4.default=r4,rq.registerLazyResult(r4),rP.registerLazyResult(r4);var r9=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rL(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new rE(t5,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=rG(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();r9.default=r9;var r5=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new r4(this,e,t):new r9(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function r6(e,t){if(Array.isArray(e))return e.map(function(e){return r6(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=A({},s,{__proto__:ry.prototype});a.map&&(a.map=A({},a.map,{__proto__:ra.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return r6(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=L(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rq(n);if("decl"===n.type)return new re(n);if("rule"===n.type)return new rW(n);if("comment"===n.type)return new rM(n);if("atrule"===n.type)return new rB(n);else throw Error("Unknown node type: "+e.type)}function r8(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new r5(t)}r5.default=r5,rq.registerProcessor(r5),rP.registerProcessor(r5),r6.default=r6,r8.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),_.default.env.LANG&&_.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new r5().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return r8([i(r)]).process(e,t)},i},r8.stringify=t5,r8.parse=rG,r8.fromJSON=r6,r8.list=rz,r8.comment=function(e){return new rM(e)},r8.atRule=function(e){return new rB(e)},r8.decl=function(e){return new re(e)},r8.rule=function(e){return new rW(e)},r8.root=function(e){return new rq(e)},r8.document=function(e){return new rP(e)},r8.CssSyntaxError=t2,r8.Declaration=re,r8.Container=rT,r8.Processor=r5,r8.Document=rP,r8.Comment=rM,r8.Warning=rF,r8.AtRule=rB,r8.Result=rL,r8.Input=ry,r8.Rule=rW,r8.Root=rq,r8.Node=t7,r4.registerPostcss(r8),r8.default=r8;
1var r7=r8&&r8.__esModule&&Object.prototype.hasOwnProperty.call(r8,"default")?r8.default:r8;r7.stringify,r7.fromJSON,r7.plugin,r7.parse,r7.list,r7.document,r7.comment,r7.atRule,r7.rule,r7.decl,r7.root,r7.CssSyntaxError,r7.Declaration,r7.Container,r7.Processor,r7.Document,r7.Comment,r7.Warning,r7.AtRule,r7.Result,r7.Input,r7.Rule,r7.Root,r7.Node;var ne=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tZ(this,"parentElement",null),tZ(this,"parentNode",null),tZ(this,"ownerDocument"),tZ(this,"firstChild",null),tZ(this,"lastChild",null),tZ(this,"previousSibling",null),tZ(this,"nextSibling",null),tZ(this,"ELEMENT_NODE",1),tZ(this,"TEXT_NODE",3),tZ(this,"nodeType"),tZ(this,"nodeName"),tZ(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!F(t,e)||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},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},R(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),nt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},nn={};function ni(e){if(nn[e])return nn[e];var t=globalThis[e],r=t.prototype,n=e in nt?nt[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in nr?nr[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return nn[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return nn[e]=u}catch(e){return r}}var no={};function ns(e,t,r){var n,i=e+"."+String(r);if(no[i])return no[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(ni(e),r))?void 0:n.get;return o?(no[i]=o,o.call(t)):t[r]}var na={};function nc(e,t,r){var n=e+"."+String(r);if(na[n])return na[n].bind(t);var i=ni(e)[r];return"function"!=typeof i?t[r]:(na[n]=i,i.bind(t))}function nu(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var nl=function(e){return ns("Node",e,"childNodes")},nh=function(e){return ns("Node",e,"parentNode")},np=function(e){return ns("Node",e,"parentElement")},nf=function(e){return ns("Node",e,"textContent")},nd=function(e,t){return nc("Node",e,"contains")(t)},ng=function(e){return nc("Node",e,"getRootNode")()},nm=function(e){return e&&"host"in e?ns("ShadowRoot",e,"host"):null},nv=function(e){return e&&"shadowRoot"in e?ns("Element",e,"shadowRoot"):null};function ny(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var n_="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.",nb={map:{},getId:function(){return console.error(n_),-1},getNode:function(){return console.error(n_),null},removeNodeFromMap:function(){console.error(n_)},has:function(){return console.error(n_),!1},reset:function(){console.error(n_)}};function nw(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function nk(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return nk(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(nb=new Proxy(nb,{get:function(e,t,r){return"map"===t&&console.error(n_),Reflect.get(e,t,r)}}));var nS=Date.now;function nC(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=np(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=np(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function nx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nO(e){return e?e.nodeType===e.ELEMENT_NODE?e:np(e):null}function nE(e,t,r,n){if(!e)return!1;var i=nO(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eT(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nM(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nR(e){return!!e.changedTouches}function nA(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function nT(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nP(e){return!!e&&(F(e,ne)&&"shadowRoot"in e?!!e.shadowRoot:!!nv(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nS=function(){return new Date().getTime()});var nF=function(){function e(){V(this,"id",1),V(this,"styleIDMap",new WeakMap),V(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function nL(e){var t,r=null;return"getRootNode"in e&&(null==(t=ng(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&nm(ng(e))&&(r=nm(ng(e))),r}function nD(e){var t,r,n=e.ownerDocument;return!!n&&(nd(n,e)||!!(r=(t=e).ownerDocument)&&nd(r,function(e){for(var t,r=e;t=nL(r);)r=t;return r}(t)))}var nN=((o1=nN||{})[o1.DomContentLoaded=0]="DomContentLoaded",o1[o1.Load=1]="Load",o1[o1.FullSnapshot=2]="FullSnapshot",o1[o1.IncrementalSnapshot=3]="IncrementalSnapshot",o1[o1.Meta=4]="Meta",o1[o1.Custom=5]="Custom",o1[o1.Plugin=6]="Plugin",o1),nU=((o2=nU||{})[o2.Mutation=0]="Mutation",o2[o2.MouseMove=1]="MouseMove",o2[o2.MouseInteraction=2]="MouseInteraction",o2[o2.Scroll=3]="Scroll",o2[o2.ViewportResize=4]="ViewportResize",o2[o2.Input=5]="Input",o2[o2.TouchMove=6]="TouchMove",o2[o2.MediaInteraction=7]="MediaInteraction",o2[o2.StyleSheetRule=8]="StyleSheetRule",o2[o2.CanvasMutation=9]="CanvasMutation",o2[o2.Font=10]="Font",o2[o2.Log=11]="Log",o2[o2.Drag=12]="Drag",o2[o2.StyleDeclaration=13]="StyleDeclaration",o2[o2.Selection=14]="Selection",o2[o2.AdoptedStyleSheet=15]="AdoptedStyleSheet",o2[o2.CustomElement=16]="CustomElement",o2),nj=((o3=nj||{})[o3.MouseUp=0]="MouseUp",o3[o3.MouseDown=1]="MouseDown",o3[o3.Click=2]="Click",o3[o3.ContextMenu=3]="ContextMenu",o3[o3.DblClick=4]="DblClick",o3[o3.Focus=5]="Focus",o3[o3.Blur=6]="Blur",o3[o3.TouchStart=7]="TouchStart",o3[o3.TouchMove_Departed=8]="TouchMove_Departed",o3[o3.TouchEnd=9]="TouchEnd",o3[o3.TouchCancel=10]="TouchCancel",o3),nB=((o4=nB||{})[o4.Mouse=0]="Mouse",o4[o4.Pen=1]="Pen",o4[o4.Touch=2]="Touch",o4),nq=((o9=nq||{})[o9["2D"]=0]="2D",o9[o9.WebGL=1]="WebGL",o9[o9.WebGL2=2]="WebGL2",o9),nz=((o5=nz||{})[o5.Play=0]="Play",o5[o5.Pause=1]="Pause",o5[o5.Seeked=2]="Seeked",o5[o5.V
1olumeChange=3]="VolumeChange",o5[o5.RateChange=4]="RateChange",o5),nW=((o6=nW||{})[o6.Document=0]="Document",o6[o6.DocumentType=1]="DocumentType",o6[o6.Element=2]="Element",o6[o6.Text=3]="Text",o6[o6.CDATA=4]="CDATA",o6[o6.Comment=5]="Comment",o6),nV=function(){function e(){V(this,"length",0),V(this,"head",null),V(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),n$=function(e,t){return e+"@"+t},nH=function(){function e(){var e=this;V(this,"frozen",!1),V(this,"locked",!1),V(this,"texts",[]),V(this,"attributes",[]),V(this,"attributeMap",new WeakMap),V(this,"removes",[]),V(this,"mapRemoves",[]),V(this,"movedMap",{}),V(this,"addedSet",new Set),V(this,"movedSet",new Set),V(this,"droppedSet",new Set),V(this,"removesSubTreeCache",new Set),V(this,"mutationCb"),V(this,"blockClass"),V(this,"blockSelector"),V(this,"maskTextClass"),V(this,"maskTextSelector"),V(this,"inlineStylesheet"),V(this,"maskInputOptions"),V(this,"maskTextFn"),V(this,"maskInputFn"),V(this,"keepIframeSrcFn"),V(this,"recordCanvas"),V(this,"inlineImages"),V(this,"slimDOMOptions"),V(this,"dataURLOptions"),V(this,"doc"),V(this,"mirror"),V(this,"iframeManager"),V(this,"stylesheetManager"),V(this,"shadowDomManager"),V(this,"canvasManager"),V(this,"processedNodeManager"),V(this,"unattachedDoc"),V(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),V(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nV,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=nh(o);if(s&&nD(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=es(s)?e.mirror.getId(nL(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=eL(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){nA(t,e.mirror)&&e.iframeManager.addIframe(t),nT(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),nP(o)&&e.shadowDomManager.addShadowRoot(nv(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=B(e.movedSet);!(a=c()).done;){var u=a.value;(!nY(e.removesSubTreeCache,u,e.mirror)||e.movedSet.has(nh(u)))&&o(u)}for(var l,h=B(e.addedSet);!(l=h()).done;){var p=l.value;nJ(e.droppedSet,p)||nY(e.removesSubTreeCache,p,e.mirror)?nJ(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(nh(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(nh(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=nh(y.value);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=nm(b);if(-1!==e.mirror.getId(w)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}
1var k={texts:e.texts.map(function(t){var r=t.node,n=nh(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),V(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(nl(t),function(e){return nf(e)||""}).join("");r.attributes.value=eh({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:ed(t),value:n,maskInputFn:e.maskInputFn})}),V(this,"processMutation",function(t){if(!nM(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=nf(t.target);nE(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:eP(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,nO(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=ed(n);o=eh({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(nE(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!eA(n.tagName,i))if(a.attributes[i]=eR(e.doc,ep(n.tagName),ep(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=B(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?""===f?a.styleDiff[h]=p:a.styleDiff[h]=[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=B(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(nE(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=es(t.target)?e.mirror.getId(nm(t.target)):e.mirror.getId(t.target);nE(t.target,e.blockClass,e.blockSelector,!1)||nM(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(nG(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(es(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=nh(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[n$(n,i)]?nG(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(es(t.target)&&ea(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();
1t.has(n)||(t.add(n),nl(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),V(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(nM(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[n$(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!nE(t,e.blockClass,e.blockSelector,!1)&&(nl(t).forEach(function(t){return e.genAdds(t)}),nP(t)&&nl(nv(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),V(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function nG(e,t){e.delete(t),nl(t).forEach(function(t){return nG(e,t)})}function nY(e,t,r){var n,i;return 0!==e.size&&(n=e,!!(i=nh(t))&&n.has(i))}function nJ(e,t){return 0!==e.size&&function e(t,r){var n=nh(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nZ=function(e){return s_?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(s_&&!0===s_(e))return;throw e}}:e},nX=[];function nK(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function nQ(e,t){var r=new nH;nX.push(r),r.init(e);var n=new(ni("MutationObserver")).constructor(nZ(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function n0(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return ny("scroll",nZ(nw(nZ(function(e){var s=nK(e);if(!(!s||nE(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=nC(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var n1=["INPUT","TEXTAREA","SELECT"],n2=new WeakMap;function n3(e){var t=[];if(n6("CSSGroupingRule")&&F(e.parentRule,CSSGroupingRule)||n6("CSSMediaRule")&&F(e.parentRule,CSSMediaRule)||n6("CSSSupportsRule")&&F(e.parentRule,CSSSupportsRule)||n6("CSSConditionRule")&&F(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function n4(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function n9(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(nm(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),nZ(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function n5(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};f=t,d=e.mutationCb,g=e.mousemoveCb,m=e.mouseInteractionCb,v=e.scrollCb,y=e.viewportResizeCb,_=e.inputCb,b=e.mediaInteractionCb,w=e.styleSheetRuleCb,k=e.styleDeclarationCb,S=e.canvasMutationCb,C=e.fontCb,x=e.selectionCb,I=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.mutation&&f.mutation.apply(f,[].concat(t)),d.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.mousemove&&f.mousemove.apply(f,[].concat(t)),g.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.mouseInteraction&&f.mouseInteraction.apply(f,[].concat(t)),m.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.scroll&&f.scroll.apply(f,[].concat(t)),v.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.viewportResize&&f.viewportResize.apply(f,[].concat(t)),y.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.input&&f.input.apply(f,[].concat(t)),_.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.mediaInteaction&&f.mediaInteaction.apply(f,[].concat(t)),b.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.styleSheetRule&&f.styleSheetRule.apply(f,[].concat(t)),w.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.styleDeclaration&&f.styleDeclaration.apply(f,[].concat(t)),k.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.canvasMutation&&f.canvasMutation.apply(f,[].concat(t)),S.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.font&&f.font.apply(f,[].concat(t)),C.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.selection&&f.selection.apply(f,[].concat(t)),x.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];f.customElement&&f.customElement.apply(f,[].concat(t)),I.apply(void 0,[].concat(t))},e.recordDOM&&(es=nQ(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=nw(nZ(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=nZ(nw(nZ(function(e){var r=nK(e),n=nR(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=nS()),c.push({x:i,y:s,id:o.getId(r),timeOffset:nS()-t}),u("u">typeof DragEvent&&F(e,DragEvent)?nU.Drag:F(e,MouseEvent)?nU.MouseMove:nU.TouchMove)}),s,{trailing:!1})),h=[ny("mousemove",l,i),ny("touchmove",l,i),ny("drag",l,i)];return nZ(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(nj).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
1).forEach(function(e){var s=ep(e),a=function(r){var s=nK(r);if(!nE(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nB.Mouse;break;case"touch":a=nB.Touch;break;case"pen":a=nB.Pen}a===nB.Touch?nj[e]===nj.MouseDown?c="TouchStart":nj[e]===nj.MouseUp&&(c="TouchEnd"):nB.Pen}else nR(r)&&(a=nB.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===nB.Touch||c.startsWith("Mouse")&&a===nB.Mouse)&&(a=null)):nj[e]===nj.Click&&(a=u,u=null);var l=nR(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;nZ(t)(A({type:nj[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nj[e]){case nj.MouseDown:case nj.MouseUp:s=s.replace("mouse","pointer");break;case nj.TouchStart:case nj.TouchEnd:return}c.push(ny(s,a,r))}),nZ(function(){c.forEach(function(e){return e()})})}(e),o=n0(e),s=(O={win:r},E=e.viewportResizeCb,M=O.win,R=-1,T=-1,ny("resize",nZ(nw(nZ(function(){var e=nx(),t=nI();(R!==e||T!==t)&&(E({width:Number(t),height:Number(e)}),R=e,T=t)}),200)),M)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=nK(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=np(t)),!(!t||!l||0>n1.indexOf(l)||nE(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=ed(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=eh({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=n2.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){n2.set(e,r);var o=n.getId(e);nZ(t)(A({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return ny(e,nZ(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),v=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&d.push.apply(d,[].concat(v.map(function(e){return nk(e[0],e[1],{set:function(){nZ(p)({target:this,isTrusted:!1})}},!1,g)}))),nZ(function(){d.forEach(function(e){return e()})})}(e),c=(P=e.mediaInteractionCb,L=e.blockClass,D=e.blockSelector,N=e.mirror,U=e.sampling,j=e.doc,z=[ny("play",(q=nZ(function(e){return nw(nZ(function(t){var r=nK(t);if(!(!r||nE(r,L,D,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;P({type:e,id:N.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),U.media||500)}))(nz.Play),j),ny("pause",q(nz.Pause),j),ny("seeked",q(nz.Seeked),j),ny("volumechange",q(nz.VolumeChange),j),ny("ratechange",q(nz.RateChange),j)],nZ(function(){z.forEach(function(e){return e()})})),u=function(){},l=function(){},h=function(){},p=function(){};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:nZ(function(e,t,r){var n=r[0],a=r[1],c=n4(t,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:nZ(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)}
1)}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nZ(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:nZ(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:n}),e.apply(t,r)})}));var l={};n8("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(n8("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),n8("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),n8("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:nZ(function(e,t,r){var n=r[0],a=r[1],c=n4(t.parentStyleSheet,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:[].concat(n3(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:nZ(function(e,t,r){var n=r[0],a=n4(t.parentStyleSheet,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(n3(t),[n])}]}),e.apply(t,r)})})}),nZ(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=n9(e,e.doc),W=e.styleDeclarationCb,V=e.mirror,$=e.ignoreCSSAttributes,H=e.stylesheetManager,Y=(G=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,G.CSSStyleDeclaration.prototype.setProperty=new Proxy(Y,{apply:nZ(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if($.has(i))return Y.apply(t,[i,o,s]);var a=n4(null==(n=t.parentRule)?void 0:n.parentStyleSheet,V,H.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&W({id:c,styleId:u,set:{property:i,value:o,priority:s},index:n3(t.parentRule)}),e.apply(t,r)})}),J=G.CSSStyleDeclaration.prototype.removeProperty,G.CSSStyleDeclaration.prototype.removeProperty=new Proxy(J,{apply:nZ(function(e,t,r){var n,i=r[0];if($.has(i))return J.apply(t,[i]);var o=n4(null==(n=t.parentRule)?void 0:n.parentStyleSheet,V,H.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&W({id:s,styleId:a,remove:{property:i},index:n3(t.parentRule)}),e.apply(t,r)})}),h=nZ(function(){G.CSSStyleDeclaration.prototype.setProperty=Y,G.CSSStyleDeclaration.prototype.removeProperty=J}),e.collectFonts&&(p=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=nu(r.fonts,"add",function(e){return function(r){return setTimeout(nZ(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),nZ(function(){i.forEach(function(e){return e()})})}(e)));for(var f,d,g,m,v,y,_,b,w,k,S,C,x,I,O,E,M,R,T,P,L,D,N,U,j,q,z,W,V,$,H,G,Y,J,Z,X,K,Q,ee,et,er,en,ei,eo,es,ea,ec=(Z=e.doc,X=e.mirror,K=e.blockClass,Q=e.blockSelector,ee=e.selectionCb,et=!0,(er=nZ(function(){var e=Z.getSelection();if(e&&(!et||null==e||!e.isCollapsed)){et=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),o=i.startContainer,s=i.startOffset,a=i.endContainer,c=i.endOffset;nE(o,K,Q,!0)||nE(a,K,Q,!0)||t.push({start:X.getId(o),startOffset:s,end:X.getId(a),endOffset:c})}ee({ranges:t})}}))(),ny("selectionchange",er)),eu=(en=e.doc,ei=e.customElementCb,(eo=en.defaultView)&&eo.customElements?nu(eo.customElements,"define",function(e){return function(t,r,n){try{ei({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),el=[],ef=B(e.plugins);!(ea=ef()).done;){var eg=ea.value;el.push(eg.observer(eg.callback,r,eg.options))}return nZ(function(){nX.forEach(function(e){return e.reset()}),null==es||es.disconnect(),n(),i(),o(),s(),a(),c(),u(),l(),h(),p(),ec(),eu(),el.forEach(function(e){return e()})})}function n6(e){return void 0!==window[e]}function n8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var n7=function(){function e(e){V(this,"iframeIdToRemoteIdMap",new WeakMap),V(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
vendor: 1,534 bytes, line 1
1return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),ie=function(){function e(e){V(this,"iframes",new WeakMap),V(this,"crossOriginIframeMap",new WeakMap),V(this,"crossOriginIframeMirror",new n7(eC)),V(this,"crossOriginIframeStyleMirror"),V(this,"crossOriginIframeRootIdMap",new WeakMap),V(this,"iframeContentDocumentMap",new WeakMap),V(this,"iframeObserverCleanupMap",new WeakMap),V(this,"mirror"),V(this,"mutationCb"),V(this,"wrappedEmit"),V(this,"loadListener"),V(this,"stylesheetManager"),V(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new n7(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
1,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nN.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:nN.IncrementalSnapshot,data:{source:nU.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nN.Meta:case nN.Load:case nN.DomContentLoaded:break;case nN.Plugin:return t;case nN.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nN.IncrementalSnapshot:switch(t.data.source){case nU.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nU.Drag:case nU.TouchMove:case nU.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nU.ViewportResize:return!1;case nU.MediaInteraction:case nU.MouseInteraction:case nU.Scroll:case nU.CanvasMutation:case nU.Input:return this.replaceIds(t.data,e,["id"]),t;case nU.StyleSheetRule:case nU.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nU.Font:return t;case nU.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nU.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=B(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nW.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),it=function(){function e(e){V(this,"shadowDoms",new WeakSet),V(this,"mutationCb"),V(this,"scrollCb"),V(this,"bypassOptions"),V(this,"mirror"),V(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(ea(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nQ(A({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(n0(A({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(nm(e))),r.restoreHandlers.push(n9({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(nu(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=nv(this);return o&&nD(this)&&r.addShadowRoot(o,t),i}}))}
1,t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ii="u"<typeof Uint8Array?[]:new Uint8Array(256),io=0;io<ir.length;io++)ii[ir.charCodeAt(io)]=io;var is=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=ir[r[t]>>2],i+=ir[(3&r[t])<<4|r[t+1]>>4],i+=ir[(15&r[t+1])<<2|r[t+2]>>6],i+=ir[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},ia=new Map,ic=function(e,t,r){if(e&&(il(e,t)||(void 0===e?"undefined":N(e))==="object")){var n,i=e.constructor.name,o=((n=ia.get(r))||(n=new Map,ia.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},iu=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(F(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(F(t,Float32Array)||F(t,Float64Array)||F(t,Int32Array)||F(t,Uint32Array)||F(t,Uint8Array)||F(t,Uint16Array)||F(t,Int16Array)||F(t,Int8Array)||F(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(F(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:is(t)};else if(F(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(F(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(F(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(F(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(il(t,r)||(void 0===t?"undefined":N(t))==="object")return{rr_type:t.constructor.name,index:ic(t,r,n)};return t}(e,t,r)})},il=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return F(e,t[r])})};function ih(e,t,r,n){var i=[];try{var o=nu(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!nE(this,t,r,!0)){var c="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===N(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function ip(e,t,r,n,i,o){for(var s,a=[],c=Object.getOwnPropertyNames(e),u=B(c);!(s=u()).done;)!function(){var c=s.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if("function"!=typeof e[c])return"continue";var u=nu(e,c,function(e){return function(){for(var s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];var l=e.apply(this,a);if(ic(l,o,this),"tagName"in this.canvas&&!nE(this.canvas,n,i,!0)){var h=iu(a,o,this);r(this.canvas,{type:t,property:c,args:h})}return l}});a.push(u)}catch(n){a.push(nk(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var id="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
1yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ig="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(id),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function im(e){var t;try{if(!(t=ig&&(window.URL||window.webkitURL).createObjectURL(ig)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+id,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var iv=function(){function e(e){var t=this;V(this,"pendingCanvasMutations",new Map),V(this,"rafStamps",{latestId:0,invokeId:null}),V(this,"mirror"),V(this,"mutationCb"),V(this,"resetObservers"),V(this,"frozen",!1),V(this,"locked",!1),V(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o,s=this,a=ih(t,r,n,!0),c=new Map,u=new im;u.onmessage=function(e){var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;s.mutationCb({id:t,type:nq["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,h=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){nE(t,r,n,!0)||e.push(t)}),e},f=function(e){if(h&&e-h<l){o=requestAnimationFrame(f);return}
1h=e,p().forEach(E(function(e){var t,r,n,o;return q(this,function(a){switch(a.label){case 0:if(r=s.mirror.getId(e),c.get(r)||0===e.width||0===e.height)return[2];return c.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return o=a.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),o=requestAnimationFrame(f)};o=requestAnimationFrame(f),this.resetObservers=function(){a(),cancelAnimationFrame(o)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,o=ih(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=B(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=nu(t.CanvasRenderingContext2D.prototype,s,function(i){return function(){for(var o=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return nE(this.canvas,r,n,!0)||setTimeout(function(){var r=iu(c,t,o);e(o.canvas,{type:nq["2D"],property:s,args:r})},0),i.apply(this,c)}});o.push(a)}catch(r){var c=nk(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nq["2D"],property:s,args:[t],setter:!0})}});o.push(c)}}();return function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(ip(e.WebGLRenderingContext.prototype,nq.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(ip(e.WebGL2RenderingContext.prototype,nq.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),s(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,L(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),iy=function(){function e(e){V(this,"trackedLinkElements",new WeakSet),V(this,"mutationCb"),V(this,"adoptedStyleSheetCb"),V(this,"styleMirror",new nF),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},o=[],s=B(e);!(n=s()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:eu(t,e.href),index:r}})})),i.styleIds.push(t)}();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE&&e.adoptedStyleSheets)for(var r,n=B(e.adoptedStyleSheets);!(r=n()).done;){var i=r.value;this.styleMirror.remove(i)}"STYLE"===e.nodeName&&e.sheet&&this.styleMirror.remove(e.sheet),"LINK"===e.nodeName&&"stylesheet"===e.rel&&e.sheet&&this.styleMirror.remove(e.sheet),e.childNodes&&e.childNodes.forEac
1h(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),i_=function(){function e(){V(this,"nodeMap",new WeakMap),V(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),ib=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var iw=document.createElement("iframe");document.body.appendChild(iw),Array.from=(null==(se=iw.contentWindow)?void 0:se.Array.from)||Array.from,document.body.removeChild(iw)}}catch(e){console.debug("Unable to override Array.from",e)}var ik=new el;function iS(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,f=void 0===p?"rr-mask":p,d=e.maskTextSelector,g=void 0===d?null:d,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,_=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,C=e.packFn,x=e.sampling,I=void 0===x?{}:x,O=e.dataURLOptions,E=void 0===O?{}:O,M=e.mousemoveWait,R=e.recordDOM,T=void 0===R||R,P=e.recordCanvas,F=void 0!==P&&P,L=e.recordCrossOriginIframes,D=void 0!==L&&L,U=e.allowedIframeOrigins,j=e.recordAfter,q=void 0===j?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":j,z=e.userTriggeredOnInput,W=void 0!==z&&z,V=e.collectFonts,$=void 0!==V&&V,H=e.inlineImages,G=void 0!==H&&H,Y=e.plugins,J=e.keepIframeSrcFn,Z=void 0===J?function(){return!1}:J,X=e.ignoreCSSAttributes,K=void 0===X?new Set([]):X;s_=e.errorHandler,D&&U&&U.length>0&&0===(es=function(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":N(n))+".");var i=function(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}(n);i&&t.add(i)}return Object.freeze(t)}(U)).size&&(es=void 0);var Q=!D||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==M&&void 0===I.mousemove&&(I.mousemove=M),ik.reset();var et=!0===y?{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,hidden:!0}:void 0!==_?_:{password:!0},er=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};void 0===eo&&(eo=window),"NodeList"in eo&&!eo.NodeList.prototype.forEach&&(eo.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in eo&&!eo.DOMTokenList.prototype.forEach&&(eo.DOMTokenList.prototype.forEach=Array.prototype.forEach);var en=0,ei=function(e){for(var t,r=B(Y||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!ee&&(e=C(e)),e};sb=function(e,i){if(e.timestamp=nS(),(null==(s=nX[0])?void 0:s.isFrozen())&&e.type!==nN.FullSnapshot&&(e.type!==nN.IncrementalSnapshot||e.data.source!==nU.Mutation)&&nX.forEach(function(e){return e.unfreeze()}),Q)null==t||t(ei(e),i);else if(ee){var o={type:"rrweb",event:ei(e),origin:window.location.origin,isCheckout:i};if(es)for(var s,a,c=B(es);!(a=c()).done;){var u=a.value;window.parent.postMessage(o,u)}else window.parent.postMessage(o,"*")}if(e.type===nN.FullSnapshot)ea=e,en=0;else if(e.type===nN.IncrementalSnapshot){if(e.data.source===nU.Mutation&&e.data.isAttachIframe)return;en++;var l=n&&en>=n,h=r&&e.timestamp-ea.timestamp>r;(l||h)&&sw(!0)}};for(var eo,es,ea,ec,eu=function(e){sb({type:nN.IncrementalSnapshot,data:A({source:nU.Mutation},e)})},eh=function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.Scroll},e)})},ep=function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.CanvasMutation},e)})},ef=new iy({mutationCb:eu,adoptedStyleSheetCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.AdoptedStyleSheet},e)})}}),ed=new ie({mirror:ik,mutationCb:eu,stylesheetManager:ef,recordCrossOriginIframes:D,wrappedEmit:sb}),eg=B(Y||[]);
1!(ec=eg()).done;){var em=ec.value;em.getMirror&&em.getMirror({nodeMirror:ik,crossOriginIframeMirror:ed.crossOriginIframeMirror,crossOriginIframeStyleMirror:ed.crossOriginIframeStyleMirror})}var ev=new i_;sk=new iv({recordCanvas:F,mutationCb:ep,win:window,blockClass:o,blockSelector:a,mirror:ik,sampling:I.canvas,dataURLOptions:E});var ey=new it({mutationCb:eu,scrollCb:eh,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:et,dataURLOptions:E,maskTextFn:k,maskInputFn:w,recordCanvas:F,inlineImages:G,sampling:I,slimDOMOptions:er,iframeManager:ed,stylesheetManager:ef,canvasManager:sk,keepIframeSrcFn:Z,processedNodeManager:ev},mirror:ik});sw=function(e){if(void 0===e&&(e=!1),T){sb({type:nN.Meta,data:{href:window.location.href,width:nI(),height:nx()}},e),ef.reset(),ey.init(),nX.forEach(function(e){return e.lock()});var t,r,n,i,s,c,u,l,h,p,d,m,y,_,b,S,C,x,I,O,M,R,A,P,L=(t=document,i=void 0===(n=(r={mirror:ik,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:et,maskTextFn:k,maskInputFn:w,slimDOM:er,dataURLOptions:E,recordCanvas:F,inlineImages:G,onSerialize:function(e){nA(e,ik)&&ed.addIframe(e),nT(e,ik)&&ef.trackLinkElement(e),nP(e)&&ey.addShadowRoot(nv(e),document)},onIframeLoad:function(e,t){ed.attachIframe(e,t),ey.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ef.attachLinkElement(e,t)},keepIframeSrcFn:Z}).mirror)?new el:n,s=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,p=r.inlineImages,d=r.recordCanvas,y=void 0!==(m=r.maskAllInputs)&&m,_=r.maskTextFn,b=r.maskInputFn,C=void 0!==(S=r.slimDOM)&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,M=r.onIframeLoad,R=r.iframeLoadTimeout,A=r.onStylesheetLoad,eL(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===y?{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,hidden:!0}:!1===y?{password:!0}:y,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:void 0!==p&&p,recordCanvas:void 0!==d&&d,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(P=r.keepIframeSrcFn)?function(){return!1}:P,newlyAddedElement:!1}));if(!L)return console.warn("Failed to snapshot the document");sb({type:nN.FullSnapshot,data:{node:L,initialOffset:nC(window)}},e),nX.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ef.adoptStyleSheets(document.adoptedStyleSheets,ik.getId(document))}};try{var e_=[],eb=function(e){var t;return nZ(n5)({mutationCb:eu,mousemoveCb:function(e,t){return sb({type:nN.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.MouseInteraction},e)})},scrollCb:eh,viewportResizeCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.ViewportResize},e)})},inputCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.Input},e)})},mediaInteractionCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.MediaInteraction},e)})},styleSheetRuleCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.StyleSheetRule},e)})},styleDeclarationCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.StyleDeclaration},e)})},canvasMutationCb:ep,fontCb:function(e){return sb({type:nN.IncrementalSnapshot,data:A({source:nU.Font},e)})},selectionCb:function(e){sb({type:nN.IncrementalSnapshot,data:A({source:nU.Selection},e)})},customElementCb:function(e){sb({type:nN.IncrementalSnapshot,data:A({source:nU.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:et,inlineStylesheet:v,sampling:I,recordDOM:T,recordCanvas:F,inlineImages:G,userTriggeredOnInput:W,collectFonts:$,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:er,dataURLOptions:E,mirror:ik,iframeManager:ed,stylesheetManager:ef,shadowDomManager:ey,processedNodeManager:ev,canvasManager:sk,ignoreCSSAttributes:K,plugins:(null==(t=null==Y?void 0:Y.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return sb({type:nN.Plugin,data:{plugin:e.name,payload:t}}
1)}}}))||[]},S)};ed.addLoadListener(function(e){try{var t=e.contentDocument,r=eb(t);e_.push(r);var n=ed.getObserverCleanup(e);ed.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=e_.indexOf(r);-1!==e&&e_.splice(e,1);for(var i=nX.length-1;i>=0;i--)nX[i].getDoc()===t&&nX.splice(i,1)}catch(e){}})}catch(e){console.warn(e)}});var ew=function(){sw(),e_.push(eb(document)),ib=!0};return"interactive"===document.readyState||"complete"===document.readyState?ew():(e_.push(ny("DOMContentLoaded",function(){sb({type:nN.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&ew()})),e_.push(ny("load",function(){sb({type:nN.Load,data:{}}),"load"===q&&ew()},window))),function(){e_.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ev.destroy(),ib=!1,s_=void 0}}catch(e){console.warn(e)}}iS.addCustomEvent=function(e,t){if(!ib)throw Error("please add custom event after start recording");sb({type:nN.Custom,data:{tag:e,payload:t}})},iS.freezePage=function(){nX.forEach(function(e){return e.freeze()})},iS.takeFullSnapshot=function(e){if(!ib)throw Error("please take full snapshot after start recording");sw(e)},iS.mirror=ik,(o8=sS||(sS={}))[o8.NotStarted=0]="NotStarted",o8[o8.Running=1]="Running",o8[o8.Stopped=2]="Stopped",iS.addCustomEvent,iS.freezePage,iS.takeFullSnapshot;var iC={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ix={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},iI={};function iO(e){if(iI[e])return iI[e];var t=globalThis[e],r=t.prototype,n=e in iC?iC[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ix?ix[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return iI[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return iI[e]=u}catch(e){return r}}var iE={},iM=function(e){var t="Node",r=e,n="parentNode",i,o=t+"."+String(n);if(iE[o])return iE[o].call(r);var s=null==(i=Object.getOwnPropertyDescriptor(iO(t),n))?void 0:i.get;return s?(iE[o]=s,s.call(r)):r[n]},iR={exports:{}},iA=String,iT=function(){return{isColorSupported:!1,reset:iA,bold:iA,dim:iA,italic:iA,underline:iA,inverse:iA,hidden:iA,strikethrough:iA,black:iA,red:iA,green:iA,yellow:iA,blue:iA,magenta:iA,cyan:iA,white:iA,gray:iA,bgBlack:iA,bgRed:iA,bgGreen:iA,bgYellow:iA,bgBlue:iA,bgMagenta:iA,bgCyan:iA,bgWhite:iA}};iR.exports=iT(),iR.exports.createColors=iT;var iP=iR.exports,iF=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return F(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),iL=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}P(t,e);var r=t.prototype;return r.setMessage=function(){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},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=iP.isColorSupported),iF&&e&&(i=iF(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=iP.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(U(Error));iL.default=iL;var iD={};iD.isClean=Symbol("isClean"),iD.my=Symbol("my");var iN={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},iU=function(){function e(e){this.builder=e}var t=e.prototype;
1return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return iN[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=iN[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function ij(e,t){new iU(t).stringify(e)}iU.default=iU,ij.default=ij;var iB=iD.isClean,iq=iD.my,iz=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[iB]=!1,this[iq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new iL(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[iB]){this[iB]=!1;for(var e=this;e=e.parent;)e[iB]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new iU().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ij),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();iz.default=iz;var iW=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=A({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return P(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(iz);iW.default=iW;var iV=iF.SourceMapConsumer,i$=iF.SourceMapGenerator,iH=iF.existsSync,iG=iF.readFileSync,iY=iF.dirname,iJ=iF.join,iZ=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=iY(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new iV(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),b.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=iY(e),iH(e))return this.mapFile=e,iG(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(F(t,iV))return i$.fromSourceMap(t).toString();else if(F(t,i$))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=iJ(iY(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();iZ.default=iZ;var iX=iF.SourceMapConsumer,iK=iF.SourceMapGenerator,iQ=iF.fileURLToPath,i0=iF.pathToFileURL,i1=iF.isAbsolute,i2=iF.resolve,i3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,i4=Symbol("fromOffsetCache"),i9=!!(iX&&iK),i5=!!(i2&&i1),i6=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!i5||/^\w+:\/\//.test(t.from)||i1(t.from)?this.file=t.from:this.file=i2(t.from)),i5&&i9){var r=new iZ(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+i3(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new iL(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new iL(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(i0&&(i.input.url=i0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[i4])a=this[i4];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[i4]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:i2(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=i1(a.source)?i0(a.source):new URL(a.source,this.map.consumer().sourceRoot||i0(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(iQ)c.file=iQ(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();i6.default=i6,iF&&iF.registerInput&&iF.registerInput(i6);var i8=iF.SourceMapConsumer,i7=iF.SourceMapGenerator,oe=iF.dirname,ot=iF.relative,or=iF.resolve,on=iF.sep,oi=iF.pathToFileURL,oo=!!(i8&&i7),os=!!(oe&&or&&ot&&on),oa=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=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",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||oe(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new i8(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),os&&oo&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i7({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]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new i7({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?oe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=oe(or(r,this.mapOpts.annotation)));var n=ot(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new i6(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return b.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(oi){var r=oi(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===on&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),oc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return P(t,e),t}(iz);oc.default=oc;var ou=iD.isClean,ol=iD.my,oh=function(e){function t(){return e.apply(this,arguments)||this}P(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sC(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=B(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new iW(e)]}else if(e.selector)e=[new sx(e)];else if(e.name)e=[new sI(e)];else if(e.text)e=[new oc(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[ol]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ou]&&function e(t){if(t[ou]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=B(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?F(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(iz);oh.registerParse=function(e){sC=e},oh.registerRule=function(e){sx=e},oh.registerAtRule=function(e){sI=e},oh.registerRoot=function(e){sO=e},oh.default=oh,oh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sI.prototype):"rule"===e.type?Object.setPrototypeOf(e,sx.prototype):"decl"===e.type?Object.setPrototypeOf(e,iW.prototype):"comment"===e.type?Object.setPrototypeOf(e,oc.prototype):"root"===e.type&&Object.setPrototypeOf(e,sO.prototype),e[ol]=!0,e.nodes&&e.nodes.forEac
1h(function(e){oh.rebuild(e)})};var op=function(e){function t(t){var r;return(r=e.call(this,A({type:"document"},t))||this).nodes||(r.nodes=[]),r}return P(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sE(new sM,this,e).stringify()},t}(oh);op.registerLazyResult=function(e){sE=e},op.registerProcessor=function(e){sM=e},op.default=op;var of=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){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},e}();of.default=of;var od=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new of(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();od.default=od;var og=/[\t\n\f\r "#'()/;[\\\]{}]/g,om=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ov=/.[\r\n"'(/\\]/,oy=/[\da-f]/i,o_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}P(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(oh);o_.default=o_,oh.registerAtRule(o_);var ob=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}P(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sR(new sA,this,e).stringify()},t}(oh);ob.registerLazyResult=function(e){sR=e},ob.registerProcessor=function(e){sA=e},ob.default=ob,oh.registerRoot(ob);var ow={comma:function(e){return ow.split(e,[","],!0)},space:function(e){return ow.split(e,[" ","\n","	"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};ow.default=ow;var ok=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return P(t,e),R(t,[{key:"selectors",get:function(){return ow.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(oh);ok.default=ok,oh.registerRule(ok);var oS=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
1case 40:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(f||t){n=g;break}else y("bracket");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||ov.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(f||t){n=g+1;break}else y("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a)h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:og.lastIndex=g+1,og.test(p),n=0===og.lastIndex?p.length-1:og.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,oy.test(p.charAt(n)))){for(;oy.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(om.lastIndex=g+1,om.test(p),n=0===om.lastIndex?p.length-1:om.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},oC={empty:!0,space:!0},ox=function(){function e(e){this.input=e,this.root=new ob,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new o_;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new oc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=oS(this.input)},t.decl=function(e,t){var r,n,i=new iW;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ok;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",oC[a]||oC[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new ok;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function oI(e,t){var r=new ox(new i6(e,t));try{r.parse()}catch(e){throw e}return r.root}oI.default=oI,oh.registerParse(oI);var oO=iD.isClean,oE=iD.my,oM={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},oR={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},oA={Once:!0,postcssPlugin:!0,prepare:!0};function oT(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function oP(e){var t=!1,r=oM[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function oF(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:oP(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function oL(e){return e[oO]=!1,e.nodes&&e.nodes.forEach(function(e){return oL(e)}),e}var oD={},oN=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=oL(r);else if(F(r,e)||F(r,od))i=oL(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=oI;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[oE]&&oh.rebuild(i)}this.result=new od(t,i,n),this.helpers=A({},oD,{postcss:oD,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?A({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!oR[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!oA[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return E(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return q(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!oT(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[oO])return[3,14];o[oO]=!0,s=[oF(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!oT(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),f.label=15;case 15:if((p=h()).done)return[3,18];return[5,z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(oT(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ij;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new oa(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(oT(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[oO];)n[oO]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(oT(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[oO]){a[oO]=!0,e.push(oF(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[oO]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[oO]=!0;for(var r,n=oP(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[oO]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();oN.registerPostcss=function(e){oD=e},oN.default=oN,ob.registerLazyResult(oN),op.registerLazyResult(oN);var oU=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new od(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new oa(ij,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=oI(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();oU.default=oU;var oj=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new oN(this,e,t):new oU(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function oB(e,t){if(Array.isArray(e))return e.map(function(e){return oB(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=A({},s,{__proto__:i6.prototype});a.map&&(a.map=A({},a.map,{__proto__:iZ.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return oB(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=L(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new ob(n);if("decl"===n.type)return new iW(n);if("rule"===n.type)return new ok(n);if("comment"===n.type)return new oc(n);if("atrule"===n.type)return new o_(n);else throw Error("Unknown node type: "+e.type)}function oq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new oj(t)}oj.default=oj,ob.registerProcessor(oj),op.registerProcessor(oj),oB.default=oB,oq.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),_.default.env.LANG&&_.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new oj().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return oq([i(r)]).process(e,t)},i},oq.stringify=ij,oq.parse=oI,oq.fromJSON=oB,oq.list=ow,oq.comment=function(e){return new oc(e)},oq.atRule=function(e){return new o_(e)},oq.decl=function(e){return new iW(e)},oq.rule=function(e){return new ok(e)},oq.root=function(e){return new ob(e)},oq.document=function(e){return new op(e)},oq.CssSyntaxError=iL,oq.Declaration=iW,oq.Container=oh,oq.Processor=oj,oq.Document=op,oq.Comment=oc,oq.Warning=of,oq.AtRule=o_,oq.Result=od,oq.Input=i6,oq.Rule=ok,oq.Root=ob,oq.Node=iz,oN.registerPostcss(oq),oq.default=oq;var oz=oq&&oq.__esModule&&Object.prototype.hasOwnProperty.call(oq,"default")?oq.default:oq;oz.stringify,oz.fromJSON,oz.plugin,oz.parse,oz.list,oz.document,oz.comment,oz.atRule,oz.rule,oz.decl,oz.root,oz.CssSyntaxError,oz.Declaration,oz.Container,oz.Processor,oz.Document,oz.Comment,oz.Warning,oz.AtRule,oz.Result,oz.Input,oz.Rule,oz.Root,oz.Node;var oW=Object.defineProperty,oV=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?oW(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},o$=function(){function e(e){oV(this,"fileName"),oV(this,"functionName"),oV(this,"lineNumber"),oV(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),oH=/(^|@)\S+:\d+/,oG=/^\s*at .*(\S+:\d+|\(native\))/m,oY=/^(eval@)?(\[native code])?$/,oJ
1={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(oG)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(oG)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop());return new o$({functionName:n.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(oY)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new o$({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new o$({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new o$({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new o$({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(oH)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new o$({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function oZ(e){return"[object Object]"===Object.prototype.toString.call(e)}function oX(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o,s,a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(oZ(o=t)&&Object.keys(o).length>r.numOfKeysLimit||"function"==typeof o||oZ(o)&&function e(t,r){if(0===r)return!0;for(var n,i=Object.keys(t),o=B(i);!(n=o()).done;){var s=n.value;if(oZ(t[s])&&e(t[s],r-1))return!0}return!1}(o,r.depthOfLimit)){return s=t.toString(),r.stringLengthLimit&&s.length>r.stringLengthLimit&&(s=""+s.slice(0,r.stringLengthLimit)+"..."),s}if((void 0===t?"undefined":N(t))==="bigint")return t.toString()+"n";if(F(t,Event)){var c={};for(var u in t){var l=t[u];Array.isArray(l)?c[u]=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}(l.length?l[0]:null):c[u]=l}return c}return F(t,Node)?F(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:F(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var oK={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
1ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function oQ(e,t,r){var n=r?Object.assign({},oK,r):oK,i=n.logger;if(!i)return function(){};l="string"==typeof i?t[i]:i;var o=0,s=!1,a=[];if(n.level.includes("error")){var c=function(t){var r=t.message,i=t.error;e({level:"error",trace:oJ.parse(i).map(function(e){return e.toString()}),payload:[oX(r,n.stringifyOptions)]})};t.addEventListener("error",c),a.push(function(){t.removeEventListener("error",c)});var u=function(t){var r,i;F(t.reason,Error)?i=[oX("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[oX("Uncaught (in promise)",n.stringifyOptions),oX(t.reason,n.stringifyOptions)]),e({level:"error",trace:oJ.parse(r).map(function(e){return e.toString()}),payload:i})};t.addEventListener("unhandledrejection",u),a.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var l,h,p=B(n.level);!(h=p()).done;){var f=h.value;a.push(function(t,r){var i=this;if(!t[r])return function(){};try{if(!(r in t))return function(){};var a=t[r],c=function(t){return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];if((t.apply(i,c),"assert"!==r||!c[0])&&!s){s=!0;try{var l=oJ.parse(Error()).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return oX(e,n.stringifyOptions)});++o<n.lengthThreshold?e({level:r,trace:l,payload:h}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[oX("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{s=!1}}}}(a);return"function"==typeof c&&(c.prototype=c.prototype||{},Object.defineProperties(c,{__rrweb_original__:{enumerable:!1,value:a}})),t[r]=c,function(){t[r]=a}}catch(e){return function(){}}}(l,f))}return function(){a.forEach(function(e){return e()})}}var o0,o1,o2,o3,o4,o9,o5,o6,o8,o7,se,st,sr,sn,si,so,ss,sa,sc,su,sl,sh,sp,sf,sd,sg,sm,sv,sy,s_,sb,sw,sk,sS,sC,sx,sI,sO,sE,sM,sR,sA,sT,sP,sF,sL=o7.setImmediate,sD=Object.prototype.toString,sN=void 0!==sL?function(e){return sL(e)}:setTimeout;try{Object.defineProperty({},"x",{}),sT=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){sT=function(e,t,r){return e[t]=r,e}}function sU(e,t){sF.add(e,t),sP||(sP=sN(sF.drain))}function sj(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function sB(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=sj(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function sq(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=sj(e))?sU(function(){var n=new sV(r);try{t.call(e,function(){sq.apply(n,arguments)},function(){sz.apply(n,arguments)})}catch(e){sz.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&sU(sB,r))}catch(e){sz.call(new sV(r),e)}}}function sz(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&sU(sB,t))}function sW(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function sV(e){this.def=e,this.triggered=!1}function s$(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function sH(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new s$(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&sU(sB,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){sq.call(t,e)},function(e){sz.call(t,e)})}catch(e){sz.call(t,e)}}sF=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=sP=void 0;r;)r.fn.call(r.self),r=r.next}}}();var sG=sT({},"constructor",sH,!1);sH.prototype=sG,sT(sG,"__NPO__",0,!1),sT(sH,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),sT(sH,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),sT(sH,"all",function(e){var t=this;return"[object Array]"!==sD.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;
1sW(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),sT(sH,"race",function(e){var t=this;return"[object Array]"!==sD.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");sW(t,e,function(e,t){r(t)},n)})}),g="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:sH;var sY=Array.prototype,sJ=Function.prototype,sZ=Object.prototype,sX=sY.slice,sK=sZ.toString,sQ=sZ.hasOwnProperty,s0=o7.console,s1=o7.navigator,s2=o7.document,s3=o7.opera,s4=o7.screen,s9=s1.userAgent,s5=sJ.bind,s6=sY.forEach,s8=sY.indexOf,s7=sY.map,ae=Array.isArray,at={},ar={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},an={log:function(){if(k.DEBUG&&!ar.isUndefined(s0)&&s0)try{s0.log.apply(s0,arguments)}catch(e){ar.each(arguments,function(e){s0.log(e)})}},warn:function(){if(k.DEBUG&&!ar.isUndefined(s0)&&s0){var e=["Mixpanel warning:"].concat(ar.toArray(arguments));try{s0.warn.apply(s0,e)}catch(t){ar.each(e,function(e){s0.warn(e)})}}},error:function(){if(k.DEBUG&&!ar.isUndefined(s0)&&s0){var e=["Mixpanel error:"].concat(ar.toArray(arguments));try{s0.error.apply(s0,e)}catch(t){ar.each(e,function(e){s0.error(e)})}}},critical:function(){if(!ar.isUndefined(s0)&&s0){var e=["Mixpanel error:"].concat(ar.toArray(arguments));try{s0.error.apply(s0,e)}catch(t){ar.each(e,function(e){s0.error(e)})}}}},ai=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(an,arguments)}},ao=function(e){return{log:ai(an.log,e),error:ai(an.error,e),critical:ai(an.critical,e)}},as=function(e){return function(){try{return e.apply(this,arguments)}catch(e){an.critical("Implementation error. Please turn on debug and contact [email protected]."),k.DEBUG&&an.critical(e)}}},aa=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=as(t[r]))};ar.bind=function(e,t){var r,n;if(s5&&e.bind===s5)return s5.apply(e,sX.call(arguments,1));if(!ar.isFunction(e))throw TypeError();return r=sX.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(sX.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(sX.call(arguments)));return Object(s)===s?s:o}},ar.each=function(e,t,r){if(null!=e){if(s6&&e.forEach===s6)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===at)return}else for(var o in e)if(sQ.call(e,o)&&t.call(r,e[o],o,e)===at)return}},ar.extend=function(e){return ar.each(sX.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},ar.isArray=ae||function(e){return"[object Array]"===sK.call(e)},ar.isFunction=function(e){return"function"==typeof e},ar.isArguments=function(e){return!!(e&&sQ.call(e,"callee"))},ar.toArray=function(e){return e?e.toArray?e.toArray():ar.isArray(e)||ar.isArguments(e)?sX.call(e):ar.values(e):[]},ar.map=function(e,t,r){if(s7&&e.map===s7)return e.map(t,r);var n=[];return ar.each(e,function(e){n.push(t.call(r,e))}),n},ar.keys=function(e){var t=[];return null===e||ar.each(e,function(e,r){t[t.length]=r}),t},ar.values=function(e){var t=[];return null===e||ar.each(e,function(e){t[t.length]=e}),t},ar.include=function(e,t){var r=!1;return null===e?r:s8&&e.indexOf===s8?-1!=e.indexOf(t):(ar.each(e,function(e){if(r||(r=e===t))return at}),r)},ar.includes=function(e,t){return -1!==e.indexOf(t)},ar.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},ar.isObject=function(e){return e===Object(e)&&!ar.isArray(e)},ar.isEmptyObject=function(e){if(ar.isObject(e)){for(var t in e)if(sQ.call(e,t))return!1;return!0}return!1},ar.isUndefined=function(e){return void 0===e},ar.isString=function(e){return"[object String]"==sK.call(e)},ar.isDate=function(e){return"[object Date]"==sK.call(e)},ar.isNumber=function(e){return"[object Number]"==sK.call(e)},ar.isElement=function(e){return!!(e&&1===e.nodeType)},ar.encodeDates=function(e){return ar.each(e,function(t,r){ar.isDate(t)?e[r]=ar.formatDate(t):ar.isObject(t)&&(e[r]=ar.encodeDates(t))}),e},ar.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ar.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},ar.strip_empty_properties=function(e){var t={};return ar.each(e,function(e,r){ar.isString(e)&&e.length>0&&(t[r]=e)}),t},ar.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):ar.isArray(e)?(r=[],ar.each(e,function(e){r.push(ar.truncate(e,t))})):ar.isObject(e)?(r={},ar.each(e,function(e,n){r[n]=ar.truncate(e,t)})):r=e,r},ar.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+="    ",l=[],"[object Array]"===sK.apply(h)){for(o=0,c=h.length;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)sQ.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},s=function(e){var r=SyntaxError(e);throw r.at=t,r.text=n,r},a=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r
1+"'"),r=n.charAt(t),t+=1,r},c=function(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),("-"===r||"+"===r)&&(t+=r,a());r>="0"&&r<="9";)t+=r,a();if(isFinite(e=+t))return e;s("Bad number")},u=function(){var e,t,n,i="";if('"'===r)for(;a();){if('"'===r)return a(),i;if("\\"===r)if(a(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(a(),16));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else if("string"==typeof o[r])i+=o[r];else break;else i+=r}s("Bad string")},l=function(){for(;r&&r<=" ";)a()},h=function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}s('Unexpected "'+r+'"')},p=function(){var e=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),e;for(;r;){if(e.push(i()),l(),"]"===r)return a("]"),e;a(","),l()}}s("Bad array")},f=function(){var e,t={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),t;for(;r;){if(e=u(),l(),a(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=i(),l(),"}"===r)return a("}"),t;a(","),l()}}s("Bad object")},i=function(){switch(l(),r){case"{":return f();case"[":return p();case'"':return u();case"-":return c();default:return r>="0"&&r<="9"?c():h()}},ar.JSONDecode=function(e){var o;return n=e,t=0,r=" ",o=i(),l(),r&&s("Syntax error"),o},ar.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",h=[];if(!e)return e;e=ar.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,h[u++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(c<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},ar.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},ar.UUID=function(){try{return o7.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",ar.map(e,function(e){return e.toString(16)}).join("")}};var ac=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];ar.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<ac.length;t++)if(-1!==e.indexOf(ac[t]))return!0;return!1},ar.HTTPBuildQuery=function(e,t){var r,n,i=[];return ar.isUndefined(t)&&(t="&"),ar.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},ar.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){an.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},ar.cookie={get:function(e){for(var t=e+"=",r=s2.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=ar.JSONDecode(ar.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=aC(s2.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),s2.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=aC(s2.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return s2.cookie=p,p},remove:function(e,t,r){ar.cookie.set(e,"",-1,t,!1,!1,r)}};var au=function(e){var t=!0;
1try{var r="__mplss_"+ab(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},al=null,ah=function(e,t){return null===al||t?al=au(e||o7.localStorage):al},ap=null;function af(e,t,r){var n=function(e){an.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||an.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return ar.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var ad=null,ag=null;try{ad=o7.localStorage,ag=o7.sessionStorage}catch(e){}ar.localStorage=af(ad,"localStorage",ah),ar.sessionStorage=af(ag,"sessionStorage",function(e,t){return null===ap||t?ap=au(e||o7.sessionStorage):ap}),ar.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t)return void an.error("No valid element provided to register_event");if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s,a,c,u="on"+r,l=t[u];t[u]=(s=t,a=n,c=l,function(t){if(t=t||e(o7.event)){var r,n,i=!0;return ar.isFunction(c)&&(r=c(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var am=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');ar.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!s2.getElementsByTagName)return[];var n=r.split(" "),i=[s2];for(d=0;d<n.length;d++){if((l=n[d].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var o=h[1],s=s2.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,c=h[1];for(b||(b="*"),p=[],f=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[f++]=v[m];for(g=0,i=[],y=0;g<p.length;g++)p[g].className&&ar.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(i[y++]=p[g]);continue}var u=l.match(am);if(u){var l,h,p,f,d,g,m,v,y,_,b=u[1],w=u[2],k=u[3],S=u[4];for(b||(b="*"),p=[],f=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[f++]=v[m];switch(i=[],y=0,k){case"=":_=function(e){return e.getAttribute(w)==S};break;case"~":_=function(e){return e.getAttribute(w).match(RegExp("\\b"+S+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(RegExp("^"+S+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(S)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(S)==e.getAttribute(w).length-S.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(S)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(g=0,i=[],y=0;g<p.length;g++)_(p[g])&&(i[y++]=p[g]);continue}for(g=0,b=l,p=[],f=0;g<i.length;g++)for(m=0,v=i[g].getElementsByTagName(b);m<v.length;m++)p[f++]=v[m];i=p}return i}return function(e){return ar.isElement(e)?[e]:ar.isObject(e)&&!ar.isUndefined(e.length)?e:r.call(this,e)}}();var av=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ay=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];ar.info={campaignParams:function(e){var t="",r={};return ar.each(av,function(n){(t=ar.getQueryParam(s2.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return ar.each(ay,function(r){(e=ar.getQueryParam(s2.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return ar.extend(ar.info.campaignParams(),ar.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=ar.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=ar.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||ar.includes(e," OPR/"))return ar.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(ar.includes(e,"IEMobile")||ar.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(ar.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(ar.includes(e,"Edge")||ar.includes(e,"Edg/"))return"Microsoft Edge";else if(ar.includes(e,"FBIOS"))return"Facebook Mobile";else if(ar.includes(e,"Whale/"))return"Whale Browser";else if(ar.includes(e,"Chrome"))return"Chrome";else if(ar.includes(e,"CriOS"))return"Chrome iOS";else if(ar.includes(e,"UCWEB")||ar.includes(e,"UCBrowser"))return"UC Browser";else if(ar.includes(e,"FxiOS"))return"Firefox iOS";else if(ar.includes(t,"Apple"))return ar.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(ar.includes(e,"Android"))return"Android Mobile";else if(ar.includes(e,"Konqueror"))return"Konqueror";else if(ar.includes(e,"Firefox"))return"Firefox";else if(ar.includes(e,"MSIE")||ar.includes(e,"Trident/"))return"Internet Explorer";else if(ar.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[ar.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(s9))return/Phone/.test(s9)||/WPDesktop/.test(s9)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(s9))return"iOS";if(/Android/.test(s9))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(s9))return"BlackBerry";if(/Mac/i.test(s9))return"Mac OS X";else if(/Linux/.test(s9))return"Linux";else if(/CrOS/.test(s9))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return o7.location.href},properties:function(e){return"object"!=typeof e&&(e={}),ar.extend(ar.strip_empty_properties({$os:ar.info.os(),$browser:ar.info.browser(s9,s1.vendor,s3),$referrer:s2.referrer,$referring_domain:ar.info.referringDomain(s2.referrer),$device:ar.info.device(s9)}),{$current_url:ar.info.currentUrl(),$browser_version:ar.info.browserVersion(s9,s1.vendor,s3),$screen_height:s4.height,$screen_width:s4.width,mp_lib:"web",$lib_version:k.LIB_VERSION,$insert_id:ab(),time:ar.timestamp()/1e3},ar.strip_empty_properties(e))},people_properties:function(){return ar.extend(ar.strip_empty_properties({$os:ar.info.os(),$browser:ar.info.browser(s9,s1.vendor,s3)}),{$browser_version:ar.info.browserVersion(s9,s1.vendor,s3)})},mpPageViewProperties:function(){return ar.strip_empty_properties({current_page_title:s2.title,current_domain:o7.location.hostname,current_url_path:o7.location.pathname,current_url_protocol:o7.location.protocol,current_url_search:o7.location.search})}};var a_=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new g(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)}
1)),r}},ab=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},aw=function(){return"00-"+ar.UUID().replace(/-/g,"")+"-"+ar.UUID().replace(/-/g,"").substring(0,16)+"-01"},ak=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,aS=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aC=function(e){var t=aS,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ak);var i=e.match(t);return i?i[0]:""},ax=function(){var e=o7.navigator.onLine;return ar.isUndefined(e)||e},aI=function(){},aO=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},aE=null,aM=null;"u">typeof JSON&&(aE=JSON.stringify,aM=JSON.parse),aE=aE||ar.JSONEncode,aM=aM||ar.JSONDecode;var aR=function(e,t,r){if(!o7.CompressionStream)return!1;var n=ar.info.browser(e,t,r),i=ar.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};ar.info=ar.info,ar.info.browser=ar.info.browser,ar.info.browserVersion=ar.info.browserVersion,ar.info.device=ar.info.device,ar.info.properties=ar.info.properties,ar.isBlockedUA=ar.isBlockedUA,ar.isEmptyObject=ar.isEmptyObject,ar.isObject=ar.isObject,ar.JSONDecode=ar.JSONDecode,ar.JSONEncode=ar.JSONEncode,ar.toArray=ar.toArray,ar.NPO=sH;var aA="mixpanelRecordingEvents",aT="mixpanelRecordingRegistry",aP=[aA,aT],aF=function(e){this.dbPromise=null,this.storeName=e};function aL(e,t){aH(!0,e,t)}function aD(e,t){aH(!1,e,t)}function aN(e,t){return"1"===a$(e,t)}function aU(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||o7,r=t.navigator||{},n=!1;return ar.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){ar.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return an.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===a$(e,t);return r&&an.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function aj(e){return aG(e,function(e){return this.get_config(e)})}function aB(e){return aG(e,function(e){return this._get_config(e)})}function aq(e){return aG(e,function(e){return this._get_config(e)})}function az(e,t){aW(t=t||{}).remove(aV(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function aW(e){return"localStorage"===(e=e||{}).persistenceType?ar.localStorage:ar.cookie}function aV(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function a$(e,t){return aW(t).get(aV(e,t))}function aH(e,t,r){ar.isString(t)&&t.length?(aW(r=r||{}).set(aV(t,r),+!!e,ar.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):an.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function aG(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=aU(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){an.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}aF.prototype._openDb=function(){return new g(function(e,t){var r=o7.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;aP.forEach(function(e){t.createObjectStore(e)})}})},aF.prototype.init=function(){return o7.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof o7.IDBDatabase?g.resolve():g.reject(e)})):g.reject("indexedDB is not supported in this browser")},aF.prototype.isInitialized=function(){return!!this.dbPromise},aF.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new g(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):g.reject(e)}).bind(this))},aF.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},aF.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},aF.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},aF.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var aY=ao("lock"),aJ=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||o7.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||g};aJ.prototype.withLock=function(e,t){return new this.promiseImpl(ar.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if(new Date().getTime()-o>c){aY.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(ah(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,function(){u.getItem(l)===i?v():f(function(){u.getItem(h)!==i?m():d(function(){return!u.getItem(p)},v)})})},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(ah(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var aZ=function(e){this.storage=e||o7.localStorage};aZ.prototype.init=function(){return g.resolve()},aZ.prototype.isInitialized=function(){return!0},aZ.prototype.setItem=function(e,t){return new g(ar.bind(function(r,n){try{this.storage.setItem(e,aE(t))}catch(e){n(e)}r()},this))},aZ.prototype.getItem=function(e){return new g(ar.bind(function(t,r){var n;try{n=aM(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},aZ.prototype.removeItem=function(e){return new g(ar.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var aX=ao("batch"),aK=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new aZ,this.lock=new aJ(e,{storage:t.sharedLockStorage||o7.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||ar.bind(aX.error,aX),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=a_(ar.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=ar.bind(function(e){return this._enqueuePersisted([e])},this)};aK.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?g.resolve():this.queueStorage.init(
1).then(ar.bind(function(){this.initialized=!0},this)).catch(ar.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},aK.prototype.enqueue=function(e,t){var r={id:ab(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),g.resolve(!0))},aK.prototype._enqueuePersisted=function(e){var t=ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(ar.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(ar.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},aK.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(r){if(r.length){var n={};ar.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):g.resolve(t)};var aQ=function(e,t){var r=[];return ar.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};aK.prototype.removeItemsByID=function(e){var t={};if(ar.each(e,function(e){t[e]=!0}),this.memQueue=aQ(this.memQueue,t),!this.usePersistence)return g.resolve(!0);var r=ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(e){return e=aQ(e,t),this.saveToStorage(e)},this)).then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(ar.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ah(this.lock.storage,!0)&&r().then(ar.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(ar.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var a0=function(e,t){var r=[];return ar.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};aK.prototype.updatePayloads=function(e){return(this.memQueue=a0(this.memQueue,e),this.usePersistence)?this.lock.withLock(ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(t){return t=a0(t,e),this.saveToStorage(t)},this)).catch(ar.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):g.resolve(!0)},aK.prototype.readFromStorage=function(){return this.ensureInit().then(ar.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(ar.bind(function(e){return e&&!ar.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(ar.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},aK.prototype.saveToStorage=function(e){return this.ensureInit().then(ar.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(ar.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},aK.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(ar.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):g.resolve()};var a1=ao("batch"),a2=function(e,t){this.errorReporter=t.errorReporter,this.queue=new aK(e,{errorReporter:ar.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};a2.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},a2.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},a2.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},a2.prototype.clear=function(){return this.queue.clear()},a2.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},a2.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},a2.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(ar.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},a2.prototype.sendRequestPromise=function(e,t){return new g(ar.bind(function(r){this.sendRequest(e,t,r)},this))},a2.prototype.flush=function(e){if(this.requestInProgress)return a1.log("Flush: Request already in progress"),g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(ar.bind(function(i){var o=i.length===n,s=[],a={};if(ar.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=ar.extend({},t.properties,{mp_sent_by_lib_version:k.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),g.resolve();var c=ar.bind(function(){return this.queue.removeItemsByID(ar.map(i,function(e){return e.id})).then(ar.bind(function(e){return(ar.each(i,ar.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),g.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),g.resolve())},this))},this),u=ar.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(ar.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(ar.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!ax()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),g.resolve()}else{if(!ar.isObject(o)||413!==o.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),g.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),a1.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(ar.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},a2.prototype.reportError=function(e,t){if(a1.error.apply(a1.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){a1.error(e)}};var a3=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires}
1,a4=function(e,t){if(!ar.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},a9="change",a5="click",a6="hashchange",a8="load",a7="mp_locationchange",ce="popstate",ct="scrollend",cr="scroll",cn="submit",ci="visibilitychange",co=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],cs=["mp-include"],ca=["mp-no-track"],cc=ca.concat(["mp-sensitive"]),cu=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],cl={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},ch={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},cp={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},cf=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],cd=ao("autocapture");function cg(e){for(var t={},r=cm(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function cm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function cv(e,t,r,n,i,o){var s={$classes:cm(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),cx(e,t,i,o)&&ar.each(cu.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);cI(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!cw(e))return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function cy(e,t,r,n){var i="";return cx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&ar.each(e.childNodes,function(e){cS(e)&&e.textContent&&(i+=ar.trim(e.textContent).split(/(\s+)/).filter(cI).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ar.trim(i)}function c_(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return cd.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){cd.critical("Error while checking selector: "+o,e)}}return!1}function cb(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return cd.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,o=n[i];try{if(e.matches(o))return!0}catch(e){cd.critical("Error while checking selector: "+o,e)}}var s=cg(e);for(i=0;i<ca.length;i++)if(s[ca[i]])return!0;return!1}function cw(e){return e&&1===e.nodeType}function ck(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function cS(e){return e&&3===e.nodeType}function cC(e){var t=(e.name||e.id||"").toString().toLowerCase();return!!("string"==typeof t&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))||!1}function cx(e,t,r,n){if(!c_(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!ck(o,"body");o=o.parentNode){var s=cg(o);for(i=0;i<cc.length;i++)if(s[cc[i]])return!1}var a=cg(e);for(i=0;i<cs.length;i++)if(a[cs[i]])return!0;if(ck(e,"input")||ck(e,"select")||ck(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!cC(e)}function cI(e){if(null===e||ar.isUndefined(e))return!1;if("string"==typeof e&&(e=ar.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
1)|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function cO(e){var t="onscrollend"in o7,r=as(e),n=ct;if(!t){var i=null;r=as(function(){clearTimeout(i),i=setTimeout(e,100)}),n=cr}return{listener:r,eventType:n}}function cE(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<cf.length;t++)if(e.hasAttribute(cf[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&cl[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function cM(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(ch[t])return!0;if(cE(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(cE(r))return!1;if(r.getRootNode&&r.getRootNode()!==s2){var i=r.getRootNode();if(i.host&&cE(i.host))return!1}r=r.parentElement,n++}return!!cp[t]}function cR(e){return"composedPath"in e?e.composedPath():[]}function cA(e){var t=cR(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var cT=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",cP=["password","email","tel","hidden"];function cF(e){return e?Array.isArray(e)?e:[e]:[]}function cL(e,t){return!!t&&!!e.closest(t)}function cD(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==cP.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute("data-rr-is-password")||cC(e))||(t.input.maskAll?!cL(e,t.input.unmaskingSelector):!!(cL(e,t.input.maskingSelector)||cL(e,cT)))}function cN(e,t){return!!e&&(!!(t.text._legacyClassRegex&&function e(t,r,n){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return e(iM(t),r);for(var i=t.classList.length;i--;){var o=t.classList[i];if(r.test(o))return!0}return e(iM(t),r)}(e,t.text._legacyClassRegex))||(t.text.maskAll?!cL(e,t.text.unmaskingSelector):!!(cL(e,t.text.maskingSelector)||cL(e,cT))))}var cU=ao("network-plugin");function cj(e){return Math.round(Date.now()-e.performance.now())}var cB={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function cq(e){return"resource"===e.entryType}function cz(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}function cW(e){return e&&"string"==typeof e&&e.length>1048576?(cU.error("Body truncated from "+e.length+" to 1048576 characters"),e.substring(0,1048576)+"... [truncated]"):e}function cV(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function c$(e,t,r){return!!t[e]&&0!==t[e].length&&aO(r,t[e])}function cH(e){var t;if(null==e)return null;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=ar.HTTPBuildQuery(e);else if(!ar.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return cW(t)}function cG(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(cW(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function cY(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return cU.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}(e.performance.getEntriesByName(r),function(e){return cq(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return cY(e,t,r,n,i,o+1)})}function cJ(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},cB.recordHeaders,r.recordHeaders||{}),i=Object.assign({},cB.recordBodyUrls,r.recordBodyUrls||{}),o=Object.assign({},cB,r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i})),s=function(t){var r=t.requests.filter(function(e){return!aO(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return cU.error("PerformanceObserver not supported"),function(){};r.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return"navigation"===e.entryType||cq(e)&&r.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:cj(t)}}),isInitial:!0});var n=new t.PerformanceObserver(function(n){e({requests:n.getEntries().filter(function(e){return cq(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:cj(t)}})})});return n.observe({entryTypes:["navigation","resource"]}),function(){n.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=cz(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return cV("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return c$("request",r.recordBodyUrls,p.url)&&(f.requestBody=cH(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();
1i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&cV("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,c$("response",r.recordBodyUrls,p.url)&&(f.responseBody=cH(h.response)),cY(t,"xmlhttprequest",p.url,u,l).then(function(r){r?e({requests:[{url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:cj(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody}]}):cU.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){cU.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=cz(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach(function(e,t){cV("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,c$("request",r.recordBodyUrls,c.url)&&(l=cG(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){cV("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,c$("response",r.recordBodyUrls,c.url)&&(h=cG(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return cY(t,"fetch",c.url,o,s)}).then(function(r){r?e({requests:[{url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:cj(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody}]}):cU.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){cU.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}}var cZ=ao("recorder"),cX=o7.CompressionStream,cK={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},cQ=new Set([nU.MouseMove,nU.MouseInteraction,nU.Scroll,nU.ViewportResize,nU.Input,nU.TouchMove,nU.MediaInteraction,nU.Drag,nU.Selection]),c0=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||aI,this._onMaxLengthReached=e.onMaxLengthReached||aI,this._onBatchSent=e.onBatchSent||aI,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ah(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new aF(aA),this.batcher=new a2(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:cK,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};c0.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},c0.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},c0.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},c0.prototype.get_config=function(e){return this.getConfig(e)},c0.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void cZ.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,cZ.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=ar.info.currentUrl(),this.replayStartUrl=ar.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=cF(r).join(","),t.input.unmaskingSelector=cF(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=cF(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=cF(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push({name:"rrweb/[email protected]",observer:cJ,options:o})}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:oQ,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=a4(this.getConfig("record_allowed_iframe_origins"),cZ);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(e.type===nN.IncrementalSnapshot&&cQ.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(cD,n),maskTextFn:this._getMaskFn(cN,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},c0.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},c0.prototype.isRrwebStopped=function(){return null===this._stopRecording},c0.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},c0.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},c0.deserialize=function(e,t){return new c0(ar.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},c0.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},c0.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=ar.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");o7.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},c0.prototype._flushEvents=aj(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===nN.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:k.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),aR(s9,s1.vendor,s3)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new cX("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),c0.prototype.reportError=function(e,t){cZ.error.apply(cZ.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){cZ.error(e)}},c0.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},c0.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(cZ.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},c0.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};
1var c1=function(e){this.idb=new aF(aT),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};c1.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},c1.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},c1.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return g.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),g.resolve())},c1.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return a3(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):g.resolve(null)},c1.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},c1.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},c1.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):g.resolve()},c1.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return a3(e)}).map((function(e){return c0.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return g.all(t)}).bind(this)).catch(this.handleError.bind(this)):g.resolve([])};var c2=ao("recorder"),c3=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||iS,this.sharedLockStorage=r,this.recordingRegistry=new c1({mixpanelInstance:this.mixpanelInstance,errorReporter:c2.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};c3.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void c2.log("Recording already in progress, skipping startRecording.");var t=(function(){c2.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){c2.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:ar.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=c0.deserialize(e.activeSerializedRecording,i):this.activeRecording=new c0(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},c3.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},c3.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},c3.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return g.resolve()},c3.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),g.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(c2.log("No resumable recording found."),null)}).bind(this))},c3.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},c3.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},c3.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(c3.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),o7[C]=c3;var c4={exports:{}},c9=(c4.exports,(d=function(){var e,t;if(m)return c4.exports;return m=1,Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);
1(null===o||""===o)&&t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}},e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,o,s,a,c,u=e.get_operator(r),l=r[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length&&(o=e.apply(l[i],n),e.truthy(o));i+=1);return o}if("or"===u){for(i=0;i<l.length&&(o=e.apply(l[i],n),!e.truthy(o));i+=1);return o}if("filter"===u)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.filter(function(t){return e.truthy(e.apply(s,t))}):[];if("map"===u)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.map(function(t){return e.apply(s,t)}):[];else if("reduce"===u)return(a=e.apply(l[0],n),s=l[1],c=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a))?a.reduce(function(t,r){return e.apply(s,{current:r,accumulator:t})},c):c;else if("all"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}else if("none"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}else if("some"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(l=l.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=t;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw Error("Unrecognized operation "+u)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}for(var o=[],s=0,a=r.length;s<a;s++)-1===o.indexOf(r[s])&&o.push(r[s]);return o},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t||"@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1},c4.exports=e,c4.exports}())&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d),c5={};function c6(){this.clicks=[]}function c8(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}c5.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!ar.isEmptyObject(n))try{i=c9.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},o7[S]=Promise.resolve(c5),c6.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=cA(e);if(!o||cM(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},c8.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return cA(e)},c8.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=cR(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},c8.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){cd.critical("Error while observing shadow root",e)}}}
1,c8.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void cd.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},c8.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){cd.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var c7=[a9,"input",cn,"select","toggle"],ue=[ct],ut=[a6],ur={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function un(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}un.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||cM(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},un.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},un.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},un.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},un.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},un.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},un.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},un.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;
vendor: 4,289 bytes, line 1
1c7.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ut.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ue.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ur)}catch(e){cd.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new c8(function(){e.recordChangeEvent()},ur),this.shadowDOMObserver.start()}catch(e){cd.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},un.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){cd.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){cd.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){cd.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var ui="autocapture",uo="full-url",us="allow_selectors",ua="allow_url_regexes",uc="block_attrs",uu="block_element_callback",ul="block_selectors",uh="block_url_regexes",up="capture_extra_attrs",uf="capture_text_content",ud="scroll_capture_all",ug="scroll_depth_percent_checkpoints",um="click",uv="dead_click",uy="input",u_="pageview",ub="rage_click",uw="scroll",uk="page_leave",uS="submit",uC={};uC[us]=[],uC[ua]=[],uC[uc]=[],uC[uu]=null,uC[ul]=[],uC[uh]=[],uC[up]=[],uC[uf]=!1,uC[ud]=!1,uC[ug]=[25,50,75,100],uC[um]=!0,uC[uv]=!0,uC[uy]=!0,uC[u_]=uo,uC[ub]=!0,uC[uw]=!0,uC[uk]=!1,uC[uS]=!0;var ux={$mp_autocapture:!0},uI="$mp_click",uO="$mp_dead_click",uE="$mp_rage_click",uM=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};uM.prototype.init=function(){!function(){try{return!!s2.createElement("div").matches}catch(e){return!1}}()?cd.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},uM.prototype.getFullConfig=function(){var e=this.mp.get_config(ui);return e?ar.isObject(e)?ar.extend({},uC,e):uC:{}},uM.prototype.getConfig=function(e){return this.getFullConfig()[e]},uM.prototype.currentUrlBlocked=function(){var e=ar.info.currentUrl(),t=this.getConfig(ua)||[];if(t.length)try{return!aO(e,t)}catch(e){return cd.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(uh)||[];if(!r||!r.length)return!1;try{return aO(e,r)}catch(e){return cd.critical("Error while checking block URL regexes: ",e),!0}},uM.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(ui)?this.getConfig(u_):this.mp.get_config("track_pageview")},uM.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===uI&&!this.getConfig(um)||t===uE&&!this._getClickTrackingConfig(ub)||t===uO&&!this._getClickTrackingConfig(uv)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.captured
1ForHeatMap||!1,l={};ar.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(cS(p)&&(p=p.parentNode),function(e,t){if(!e||ck(e,"html")||!cw(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===cn;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===a9;return t.type===a5;case"select":case"textarea":return t.type===a9;default:return t.type===a5}}(p,e)&&c_(p,e,r,n)&&!cb(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!ck(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(ar.each(f,function(t){var i=cx(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&cI(g)&&g),cb(t,e,o,s)&&(v=!0),m.push(cv(t,e,l,c,r,n))},this),!v){var y=s2.documentElement;if(h={$event_type:e.type,$host:o7.location.host,$pathname:o7.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,o7.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,o7.innerWidth||0),$pageHeight:s2.body.offsetHeight||0,$pageWidth:s2.body.offsetWidth||0},ar.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);cI(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=cy(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===a5&&(ar.each(co,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(ck(i,"a")||ck(i,"button")||ck(i,"input")||ck(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=cy(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!c_(p,e,r,n)||cb(p,e,o,s))return null;var b=cv(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,ar.extend(h,ar.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(us),blockAttrs:this.getConfig(uc),blockElementCallback:this.getConfig(uu),blockSelectors:this.getConfig(ul),captureExtraAttrs:this.getConfig(up),captureTextContent:this.getConfig(uf),capturedForHeatMap:r});n&&(ar.extend(n,ux),this.mp.track(t,n))}},uM.prototype.initPageListeners=function(){if(o7.removeEventListener(ce,this.listenerPopstate),o7.removeEventListener(a6,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(uk)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){o7.dispatchEvent(new Event(a7))},this.listenerHashchange=function(){o7.dispatchEvent(new Event(a7))},o7.addEventListener(ce,this.listenerPopstate),o7.addEventListener(a6,this.listenerHashchange);var e=o7.history.pushState;"function"==typeof e&&(o7.history.pushState=function(t,r,n){e.call(o7.history,t,r,n),o7.dispatchEvent(new Event(a7))});var t=o7.history.replaceState;"function"==typeof t&&(o7.history.replaceState=function(e,r,n){t.call(o7.history,e,r,n),o7.dispatchEvent(new Event(a7))})}},uM.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},uM.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(uk)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=ar.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||ar.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(s2.documentElement.clientWidth,o7.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ux);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},uM.prototype._initScrollDepthTracking=function(){if(o7.removeEventListener(cr,this.listenerScrollDepth),o7.removeEventListener(ct,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){cd.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0);var e=cO((function(){if(!this.currentUrlBlocked()){var e=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0)+o7.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=s2.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,o7.addEventListener(e.eventType,this.listenerScrollDepth)}},uM.prototype.initClickTracking=function(){o7.removeEventListener(a5,this.listenerClick),(this.getConfig(um)||this.mp.get_config("record_heatmap_data"))&&(cd.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(um)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,uI)}).bind(this),o7.addEventListener(a5,this.listenerClick))},uM.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(uv)||this.mp.get_config("record_heatmap_data")?(cd.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new un((function(e){this.trackDomEvent(e,uO)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(uv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),o7.addEventListener(a5,this.listenerDeadClick))):this.stopDeadClickTracking()},uM.prototype.initInputTracking=function(){o7.removeEventListener(a9,this.listenerChange),this.getConfig(uy)&&(cd.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(uy)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),o7.addEventListener(a9,this.listenerChange))},uM.prototype.initPageviewTracking=function(){if(o7.removeEventListener(a7,this.listenerLocationchange),this.pageviewTrackingConfig()){cd.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(ux)),t&&(e=ar.info.currentUrl()),this.listenerLocationchange=as((function(){if(!this.currentUrlBlocked()){var t=ar.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===uo?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(ux)&&(e=t),n&&(this.lastScrollCheckpoint=0,cd.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),o7.addEventListener(a7,this.listenerLocationchange)}},uM.prototype.initRageClickTracking=function(){o7.removeEventListener(a5,this.listenerRageClick),(this._getClickTrackingConfig(ub)||this.mp.get_config("record_heatmap_data"))&&(cd.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new c6),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(ub);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,uE)}).bind(this),o7.addEventListener(a5,this.listenerRageClick))},uM.prototype.initScrollTracking=function(){if(o7.removeEventListener(ct,this.listenerScroll),o7.removeEventListener(cr,this.listenerScroll),this.getConfig(uw
1)){cd.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(uw)&&!this.currentUrlBlocked()){var e=this.getConfig(ud),t=(this.getConfig(ug)||[]).slice().sort(function(e,t){return e-t}),r=o7.scrollY,n=ar.extend({$scroll_top:r},ux);try{var i=s2.body.scrollHeight,o=Math.round(r/(i-o7.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){cd.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=cO(e);this.listenerScroll=t.listener,o7.addEventListener(t.eventType,this.listenerScroll)}},uM.prototype.initSubmitTracking=function(){o7.removeEventListener(cn,this.listenerSubmit),this.getConfig(uS)&&(cd.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(uS)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),o7.addEventListener(cn,this.listenerSubmit))},uM.prototype.initPageLeaveTracking=function(){if(s2.removeEventListener(ci,this.listenerPageLeaveVisibilitychange),o7.removeEventListener(a7,this.listenerPageLeaveLocationchange),o7.removeEventListener(a8,this.listenerPageLoad),this.getConfig(uk)||this.mp.get_config("record_heatmap_data")){cd.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=ar.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=s2.body.scrollHeight}).bind(this),o7.addEventListener(a8,this.listenerPageLoad),this.listenerPageLeaveLocationchange=as((function(t){if(!this.currentUrlBlocked()){var r=ar.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0),this.previousScrollHeight=s2.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),o7.addEventListener(a7,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){s2.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),s2.addEventListener(ci,this.listenerPageLeaveVisibilitychange)}},uM.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(o7.removeEventListener(a5,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},aa(uM);var uR=function(e,t){return o7[S]&&"function"==typeof o7[S].then||(o7[S]=new Promise(function(r){e(t,r)}).then(function(){var e=o7[S];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete o7[S],e})),o7[S]},uA=ao("flags"),uT="flags",uP="context",uF={};uF[uP]={};var uL=function(e){this.fetch=o7.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};uL.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){uA.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):uA.critical("Feature Flags unavailable: missing minimum required APIs")},uL.prototype.getFullConfig=function(){var e=this.getMpConfig(uT);return e?ar.isObject(e)?ar.extend({},uF,e):uF:{}},uL.prototype.getConfig=function(e){return this.getFullConfig()[e]},uL.prototype.isSystemEnabled=function(){return!!this.getMpConfig(uT)},uL.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return uA.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(uT);ar.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(uP);r[uP]=ar.extend({},n,e);var i={};return i[uT]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){uA.error("Error fetching flags during updateContext")})},uL.prototype.areFlagsReady=function(){return this.isSystemEnabled()||uA.error("Feature Flags not enabled"),!!this.flags},uL.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=aw();uA.log("Fetching flags for distinct ID: "+e);var n=ar.extend({distinct_id:e,device_id:t},this.getConfig(uP)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",k.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(o7,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map,i={};ar.each(t,function(e,t){var r=!1,i=t+":";if(ar.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var o=e.pending_first_time_events;o&&o.length>0&&ar.each(o,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&ar.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),uA.error(e),e}).bind(this)),this.fetchPromise},uL.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(uA.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},uL.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):uA.error("Fetch in progress started time not set, cannot mark fetch complete")},uL.prototype._loadTargetingIfNeeded=function(){var e=!1;ar.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!ar.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){uA.log("targeting loaded for property filter evaluation")})},uL.prototype.getTargeting=function(){return uR(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){uA.error("Failed to load targeting: "+e)}).bind(this))},uL.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||ar.isEmptyObject(this.pendingFirstTimeEvents)||(o7[S]&&ar.isFunction(o7[S].then)?o7[S].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},uL.prototype._processFirstTimeEventCheck=function(e,t,r){ar.each(this.pendingFirstTimeEvents,function(n,i){if
1(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(!r&&n.property_filters&&!ar.isEmptyObject(n.property_filters))return void uA.warn('Skipping event check for "'+s+'" - property filters require targeting library');if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)return void uA.error('Error checking first-time event for flag "'+s+'": '+o.error);if(o.matches){uA.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}},this)},uL.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},uL.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=aw(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",k.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString();uA.log("Recording first-time event for flag: "+e),this.fetch.call(o7,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify({distinct_id:n,project_id:t,first_time_event_hash:r})}).catch(function(t){uA.error("Failed to record first-time event for flag "+e+": "+t)})},uL.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return uA.error(e),t}):new Promise(function(e){uA.critical("Feature Flags not initialized"),e(t)})},uL.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return uA.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(uA.log('No flag found: "'+e+'"'),t)},uL.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return uA.error(e),t})},uL.prototype.getFeatureData=function(e,t){return uA.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},uL.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},uL.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return uA.error(e),t})},uL.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(uA.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},uL.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},uL.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},uL.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},aa(uL),uL.prototype.are_flags_ready=uL.prototype.areFlagsReady,uL.prototype.get_variant=uL.prototype.getVariant,uL.prototype.get_variant_sync=uL.prototype.getVariantSync,uL.prototype.get_variant_value=uL.prototype.getVariantValue,uL.prototype.get_variant_value_sync=uL.prototype.getVariantValueSync,uL.prototype.is_enabled=uL.prototype.isEnabled,uL.prototype.is_enabled_sync=uL.prototype.isEnabledSync,uL.prototype.load_flags=uL.prototype.loadFlags,uL.prototype.update_context=uL.prototype.updateContext,uL.prototype.when_ready=uL.prototype.whenReady,uL.prototype.get_feature_data=uL.prototype.getFeatureData,uL.prototype.getTargeting=uL.prototype.getTargeting;var uD=ao("recorder"),uN="mp_iframe_handshake_request",uU="mp_iframe_handshake_response",uj=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};uj.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return an.log("Load recorder check skipped due to disable_persistence config"),g.resolve(!1);var e=new aF(aT),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(a3(e[r])||e[r].tabId===t)return!0;return!1}).catch(ar.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},uj.prototype.checkAndStartSessionRecording=function(e,t){if(!o7.MutationObserver)return an.critical("Browser does not support MutationObserver; skipping session recording"),g.resolve();var r=ar.bind(function(e){return new g(ar.bind(function(t){var r=as(ar.bind(function(){this._recorder=this._recorder||new o7[C](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(ar.isUndefined(o7[C])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=a4(this.getMpConfig("record_allowed_iframe_origins"),uD);if(n.length>0&&(this._setupParentFrameListener(n),o7.parent!==o7))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),g.resolve();var i=ar.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(ar.bind(function(e){return e?r(!1):g.resolve()},this))},uj.prototype.isRecording=function(){if(!this._recorder||!ar.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},uj.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!ar.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+x;uR(this.loadExtraBundle,a).then((function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){an.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){an.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},uj.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():g.resolve()},uj.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():g.resolve()},uj.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():g.resolve()}
1,uj.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},uj.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},uj.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+ar.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},uj.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},uj.prototype.getRecorder=function(){return this._recorder},uj.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===uU&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,o7.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},o7.addEventListener("message",this._childFrameMessageHandler)}},uj.prototype._sendParentFrameRequest=function(e){var t={};t.type=uN,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{o7.parent.postMessage(t,e[r])}catch(e){}},uj.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),!function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},uj.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===uN&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=uU,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},o7.addEventListener("message",this._parentFrameMessageHandler)}},aa(uj);var uB=function(){};uB.prototype.create_properties=function(){},uB.prototype.event_handler=function(){},uB.prototype.after_track_handler=function(){},uB.prototype.init=function(e){return this.mp=e,this},uB.prototype.track=function(e,t,r,n){var i=this,o=ar.dom_query(e);return 0===o.length?void an.error("The DOM query ("+e+") returned 0 elements"):(ar.each(o,function(e){ar.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},uB.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},uB.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):ar.extend({},e)};var uq=function(){this.override_event="click"};ar.inherit(uq,uB),uq.prototype.create_properties=function(e,t){var r=uq.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},uq.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},uq.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var uz=function(){this.override_event="submit"};ar.inherit(uz,uB),uz.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},uz.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var uW="$set",uV="$set_once",u$="$unset",uH="$add",uG="$append",uY="$union",uJ="$remove",uZ={set_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[uW]=n,r},unset_action:function(e){var t={},r=[];return ar.isArray(e)||(e=[e]),ar.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[u$]=r,t},set_once_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[uV]=n,r},union_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=ar.isArray(e)?e:[e])}
1,this):n[e]=ar.isArray(t)?t:[t],r[uY]=n,r},append_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[uG]=n,r},remove_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[uJ]=n,r},delete_action:function(){var e={};return e.$delete="",e}},uX=function(){};ar.extend(uX.prototype,uZ),uX.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},uX.prototype.set=aq(function(e,t,r){var n=this.set_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),uX.prototype.set_once=aq(function(e,t,r){var n=this.set_once_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),uX.prototype.unset=aq(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),uX.prototype.union=aq(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),uX.prototype.delete=aq(function(e){var t=this.delete_action();return this._send_request(t,e)}),uX.prototype.remove=aq(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),uX.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=ar.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},uX.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},uX.prototype._get_config=function(e){return this._mixpanel.get_config(e)},uX.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},uX.prototype.remove=uX.prototype.remove,uX.prototype.set=uX.prototype.set,uX.prototype.set_once=uX.prototype.set_once,uX.prototype.union=uX.prototype.union,uX.prototype.unset=uX.prototype.unset,uX.prototype.toString=uX.prototype.toString;var uK=function(){};ar.extend(uK.prototype,uZ),uK.prototype._init=function(e){this._mixpanel=e},uK.prototype.set=aB(function(e,t,r){var n=this.set_action(e,t);return ar.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[uW]=ar.extend({},ar.info.people_properties(),n[uW]),this._send_request(n,r)}),uK.prototype.set_once=aB(function(e,t,r){var n=this.set_once_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),uK.prototype.unset=aB(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),uK.prototype.increment=aB(function(e,t,r){var n={},i={};return ar.isObject(e)?(ar.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void an.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(ar.isUndefined(t)&&(t=1),i[e]=t),n[uH]=i,this._send_request(n,r)}),uK.prototype.append=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),uK.prototype.remove=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),uK.prototype.union=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),uK.prototype.track_charge=aB(function(){an.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),uK.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},uK.prototype.delete_user=function(){if(!this._identify_called())return void an.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},uK.prototype.toString=function(){return this._mixpanel.toString()+".people"},uK.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=ar.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),ar.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),ar.truncate(o,255))},uK.prototype._get_config=function(e){return this._mixpanel.get_config(e)},uK.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},uK.prototype._enqueue=function(e){uW in e?this._mixpanel.persistence._add_to_people_queue(uW,e):uV in e?this._mixpanel.persistence._add_to_people_queue(uV,e):u$ in e?this._mixpanel.persistence._add_to_people_queue(u$,e):uH in e?this._mixpanel.persistence._add_to_people_queue(uH,e):uG in e?this._mixpanel.persistence._add_to_people_queue(uG,e):uJ in e?this._mixpanel.persistence._add_to_people_queue(uJ,e):uY in e?this._mixpanel.persistence._add_to_people_queue(uY,e):an.error("Invalid call to _enqueue():",e)},uK.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=ar.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!ar.isUndefined(o)&&ar.isObject(o)&&!ar.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
1xpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),ar.isUndefined(r)||r(t,n)}))},uK.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(uW,this.set,e),this._flush_one_queue(uV,this.set_once,n),this._flush_one_queue(u$,this.unset,o,function(e){return ar.keys(e)}),this._flush_one_queue(uH,this.increment,t),this._flush_one_queue(uY,this.union,i);var c=this._mixpanel.persistence.load_queue(uG);if(!ar.isUndefined(c)&&ar.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(uG,u),ar.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(uG)).pop(),a._mixpanel.persistence.save(),ar.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(uJ);if(!ar.isUndefined(p)&&ar.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(uJ,f),ar.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)f=(p=this._mixpanel.persistence.load_queue(uJ)).pop(),a._mixpanel.persistence.save(),ar.isEmptyObject(f)||a.remove(f,d)},uK.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},uK.prototype.set=uK.prototype.set,uK.prototype.set_once=uK.prototype.set_once,uK.prototype.unset=uK.prototype.unset,uK.prototype.increment=uK.prototype.increment,uK.prototype.append=uK.prototype.append,uK.prototype.remove=uK.prototype.remove,uK.prototype.union=uK.prototype.union,uK.prototype.track_charge=uK.prototype.track_charge,uK.prototype.clear_charges=uK.prototype.clear_charges,uK.prototype.delete_user=uK.prototype.delete_user,uK.prototype.toString=uK.prototype.toString;var uQ="__mps",u0="__mpso",u1="__mpus",u2="__mpa",u3="__mpap",u4="__mpr",u9="__mpu",u5="$people_distinct_id",u6="__alias",u8="__timers",u7=[uQ,u0,u1,u2,u3,u4,u9,u5,u6,u8],le=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(an.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&ar.localStorage.is_supported()?this.storage=ar.localStorage:this.storage=ar.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};le.prototype.properties=function(){var e={};return this.load(),ar.each(this.props,function(t,r){ar.include(u7,r)||(e[r]=t)}),e},le.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=ar.extend({},e))}},le.prototype.upgrade=function(){var e,t;this.storage===ar.localStorage?(e=ar.cookie.parse(this.name),ar.cookie.remove(this.name),ar.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===ar.cookie&&(t=ar.localStorage.parse(this.name),ar.localStorage.remove(this.name),t&&this.register_once(t))},le.prototype.save=function(){this.disabled||this.storage.set(this.name,aE(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},le.prototype.load_prop=function(e){return this.load(),this.props[e]},le.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},le.prototype.clear=function(){this.remove(),this.props={}},le.prototype.register_once=function(e,t,r){return!!ar.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),ar.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},le.prototype.register=function(e,t){return!!ar.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),ar.extend(this.props,e),this.save(),!0)},le.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},le.prototype.update_search_keyword=function(e){this.register(ar.info.searchInfo(e))},le.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:ar.info.referringDomain(e)||"$direct"},"")},le.prototype.get_referrer_info=function(){return ar.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},le.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},le.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},le.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},le.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},le.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},le.prototype.get_cross_subdomain=function(){return this.cross_subdomain},le.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},le.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(uW),o=this._get_or_create_queue(uV),s=this._get_or_create_queue(u$),a=this._get_or_create_queue(uH),c=this._get_or_create_queue(uY),u=this._get_or_create_queue(uJ,[]),l=this._get_or_create_queue(uG,[]);r===uQ?(ar.extend(i,n),this._pop_from_people_queue(uH,n),this._pop_from_people_queue(uY,n),this._pop_from_people_queue(u$,n)):r===u0?(ar.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(u$,n)):r===u1?ar.each(n,function(e){ar.each([i,o,a,c],function(t){e in t&&delete t[e]}),ar.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===u2?(ar.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(u$,n)):r===u9?(ar.each(n,function(e,t){ar.isArray(e)&&(t in c||(c[t]=[]),ar.each(e,function(e){ar.include(c[t],e)||c[t].push(e)}))}
1),this._pop_from_people_queue(u$,n)):r===u4?(u.push(n),this._pop_from_people_queue(uG,n)):r===u3&&(l.push(n),this._pop_from_people_queue(u$,n)),an.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),an.log(t),this.save()},le.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];ar.isUndefined(r)||ar.each(t,function(t,n){e===uG||e===uJ?ar.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},le.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},le.prototype._get_queue_key=function(e){return e===uW?uQ:e===uV?u0:e===u$?u1:e===uH?u2:e===uG?u3:e===uJ?u4:e===uY?u9:void an.error("Invalid queue:",e)},le.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=ar.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},le.prototype.set_event_timer=function(e,t){var r=this.load_prop(u8)||{};r[e]=t,this.props[u8]=r,this.save()},le.prototype.remove_event_timer=function(e){var t=(this.load_prop(u8)||{})[e];return ar.isUndefined(t)||(delete this.props[u8][e],this.save()),t};var lt=function(e,t){throw Error(e+" not available in this build.")},lr="mixpanel",ln="base64",li="$device:",lo=o7.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ls=!lo&&-1===s9.indexOf("MSIE")&&-1===s9.indexOf("Mozilla"),la=null;s1.sendBeacon&&(la=function(){return s1.sendBeacon.apply(s1,arguments)});var lc={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},lu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:lc,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ln,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:aI,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:aI,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:864e5,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},ll=!1,lh=function(){},lp=function(e,t,r){var n,i=r===lr?y:y[r];if(i&&0===v)n=i;else{if(i&&!ar.isArray(i))return void an.error("You have already initialized "+r);n=new lh}if(n._cached_groups={},n._init(e,t,r),n.people=new uK,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=ar.info.campaignParams(null),s={},a=!1;ar.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}k.DEBUG=k.DEBUG||n.get_config("debug");var c=0===v?"module":"snippet";return o7.dispatchEvent(new o7.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:ar.info}})),!ar.isUndefined(i)&&ar.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};lh.prototype.init=function(e,t,r){if(ar.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===lr)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=lp(e,t,r);return y[r]=n,n._loaded(),n},lh.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||lu.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(ar.extend({},lu,n,t,{name:r,token:e,callback_fn:(r===lr?r:lr+"."+r)+"._jsc"})),this.recorderManager=new uj({mixpanelInstance:this,getConfigFunc:ar.bind(this.get_config,this),setConfigFunc:ar.bind(this.set_config,this),getTabIdFunc:ar.bind(this.get_tab_id,this),reportErrorFunc:ar.bind(this.report_error,this),getDistinctIdFunc:ar.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:lt}),this._jsc=aI,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(ar.localStorage.is_supported(!0)&&lo){if(this.init_batchers(),la&&o7.addEventListener){var i=ar.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);o7.addEventListener("pagehide",function(e){e.persisted&&i()}),o7.addEventListener("visibilitychange",function(){"hidden"===s2.visibilityState&&i()})}}else this._batch_requests=!1,an.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),ar.each(this.get_batcher_configs(),function(e){an.log("Clearing batch queue "+e.queue_key),ar.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new le(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=ar.UUID();this.get_distinct_id()||this.register_once({distinct_id:li+o,$device_id:o},""),this.flags=new uL({getFullApiRoute:ar.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:ar.bind(this.get_config,this),setConfigFunc:ar.bind(this.set_config,this),getPropertyFunc:ar.bind(this.get_property,this),trackingFunc:ar.bind(this.track,this),loadExtraBundle:lt,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+x}),this.flags.init(),this.flags=this.flags,this.autocapture=new uM(this),this.autocapture.init(),this._init_tab_id();var s=this.get_config("remote_settings_mode");"strict"===s||"fallback"===s?this.__session_recording_init_promise=this._fetch_remote_settings(s).then(ar.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording()},lh.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))an.log("Tab ID initialization skipped due to disable_persistence config");
1else if(ar.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(ar.sessionStorage.get(r)||!ar.sessionStorage.get(t))&&ar.sessionStorage.set(t,"$tab-"+ar.UUID()),ar.sessionStorage.set(r,"1"),this.tab_id=ar.sessionStorage.get(t),o7.addEventListener("beforeunload",function(){ar.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},lh.prototype.get_tab_id=function(){return this.tab_id||null},lh.prototype._check_and_start_session_recording=aj(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),lh.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},lh.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},lh.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},lh.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},lh.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},lh.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},lh.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},lh.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},lh.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},lh.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},lh.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=ar.info.campaignParams(null);ar.each(e,(function(e,t){this.unregister(t)}).bind(this))}},lh.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(s2.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(ar.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(s2.referrer)},lh.prototype._dom_loaded=function(){ar.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||ar.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},lh.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ll)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},lh.prototype._prepare_callback=function(e,t){if(ar.isUndefined(e))return null;if(lo)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},lh.prototype._send_request=function(e,t,r,n){var i=!0;if(ls)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(ar.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=ar.extend(o,r||{}),lo||(r.method="GET");var a="POST"===r.method,c=la&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!lo&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),ar.extend(t,this.get_config("api_extra_query_params")),e+="?"+ar.HTTPBuildQuery(t);var l=this;if("img"in t){var h=s2.createElement("img");h.src=e,s2.body.appendChild(h)}else if(c){try{i=la(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(lo)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");
1if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),ar.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(n)if(u){try{e=ar.JSONDecode(p.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(u){var e,t,i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=s2.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=s2.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},lh.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!o7.AbortController)return an.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:k.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=ar.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return o7.fetch(n+"?"+o,c).then(function(e){if(clearTimeout(a),!e.ok){an.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};ar.each(n,function(e,t){lu.hasOwnProperty(t)&&(i[t]=e)}),ar.isEmptyObject(i)?(an.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),an.critical("Failed to fetch remote settings",e),r()})},lh.prototype._execute_array=function(e){var t,r=[],n=[],i=[];ar.each(e,function(e){e&&(t=e[0],ar.isArray(t)?i.push(e):"function"==typeof e?e.call(this):ar.isArray(e)&&"alias"===t?r.push(e):ar.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){ar.each(e,function(e){if(ar.isArray(e[0])){var r=t;ar.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},lh.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},lh.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},lh.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=ar.bind(function(e){return new a2(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:ar.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:ar.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:ar.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},lh.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,ar.each(this.request_batchers,function(e){e.start()}))},lh.prototype.stop_batch_senders=function(){this._batch_requests=!1,ar.each(this.request_batchers,function(e){e.stop(),e.clear()})},lh.prototype.push=function(e){this._execute_array([e])},lh.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},lh.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},lh.prototype._encode_data_for_request=function(e){var t=aE(e);return this.get_config("api_payload_format")===ln&&(t=ar.base64Encode(t)),{data:t}},lh.prototype._track_or_batch=function(e,t){var r=ar.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||aI;var a=!0,c=ar.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(an.log("MIXPANEL REQUEST:"),an.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},lh.prototype.track=aj(function(e,t,r,n){if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var i,o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=aI),ar.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=ar.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);
1if(!ar.isUndefined(a)){var c=new Date().getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?ar.info.marketingParams():{};t=ar.extend({},ar.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");ar.isArray(l)?ar.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),lh.prototype.set_group=aj(function(e,t,r){ar.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),lh.prototype.add_group=aj(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),lh.prototype.remove_group=aj(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),lh.prototype.track_with_groups=aj(function(e,t,r,n){var i=ar.extend({},t||{});return ar.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),lh.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},lh.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},lh.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new uX)._init(this,e,t),this._cached_groups[r]=n),n},lh.prototype.track_pageview=aj(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=ar.extend(ar.info.mpPageViewProperties(),ar.info.campaignParams(),ar.info.clickParams()),i=ar.extend({},n,e);return this.track(r,i)}),lh.prototype.track_links=function(){return this._track_dom.call(this,uq,arguments)},lh.prototype.track_forms=function(){return this._track_dom.call(this,uz,arguments)},lh.prototype.time_event=function(e){ar.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var lf={persistent:!0},ld=function(e){var t;return t=ar.isObject(e)?e:ar.isUndefined(e)?{}:{days:e},ar.extend({},lf,t)};lh.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var n=ld(t=r[1]);n.persistent?this.persistence.register(e,n.days):ar.extend(this.unpersisted_superprops,e)}},lh.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1];var i=ld(r=n[2]);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),ar.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},lh.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=ld(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},lh.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},lh.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(li))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:u},""),e!==u&&e!==this.get_property(u6)&&(this.unregister(u6),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){an.error("[flags] Error fetching flags during identify")})},lh.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=ar.UUID();this.register_once({distinct_id:li+e,$device_id:e},""),this._check_and_start_session_recording()},lh.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},lh.prototype.alias=function(e,t){if(e===this.get_property(u5))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;
1return(ar.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(u6,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},lh.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},lh.prototype.set_config=function(e){ar.isObject(e)&&(ar.extend(this.config,e),e.batch_size&&ar.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),k.DEBUG=k.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),ar.isObject(e.hooks)&&(this.hooks={},ar.each(e.hooks,function(e,t){if(ar.isFunction(e))this.hooks[t]=[e];else if(ar.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)ar.isFunction(e[r])||an.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else an.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},lh.prototype.get_config=function(e){return this.config[e]},lh.prototype._run_hook=function(e){var t=sX.call(arguments,1);return ar.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(ar.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},lh.prototype.get_property=function(e){return this.persistence.load_prop([e])},lh.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},lh.prototype.toString=function(){var e=this.get_config("name");return e!==lr&&(e=lr+"."+e),e},lh.prototype._event_is_disabled=function(e){return ar.isBlockedUA(s9)||this._flags.disable_all_events||ar.include(this.__disabled_events,e)},lh.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&ar.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||ar.cookie.get("mp_optout"))&&(ar.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},lh.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},lh.prototype._gdpr_call_func=function(e,t){return t=ar.extend({track:ar.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),ar.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie
1:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},lh.prototype.opt_in_tracking=function(e){e=ar.extend({enable_persistence:!0},e),this._gdpr_call_func(aL,e),this._gdpr_update_persistence(e)},lh.prototype.opt_out_tracking=function(e){(e=ar.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aD,e),this._gdpr_update_persistence(e)},lh.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(aN,e)},lh.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(aU,e)},lh.prototype.clear_opt_in_out_tracking=function(e){e=ar.extend({enable_persistence:!0},e),this._gdpr_call_func(az,e),this._gdpr_update_persistence(e)},lh.prototype.report_error=function(e,t){an.error.apply(an.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){an.error(e)}},lh.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},lh.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):an.log("remove_hook failed. Matching hook was not found"))},lh.prototype.init=lh.prototype.init,lh.prototype.reset=lh.prototype.reset,lh.prototype.enable=lh.prototype.enable,lh.prototype.disable=lh.prototype.disable,lh.prototype.time_event=lh.prototype.time_event,lh.prototype.track=lh.prototype.track,lh.prototype.track_links=lh.prototype.track_links,lh.prototype.track_forms=lh.prototype.track_forms,lh.prototype.track_pageview=lh.prototype.track_pageview,lh.prototype.register=lh.prototype.register,lh.prototype.register_once=lh.prototype.register_once,lh.prototype.unregister=lh.prototype.unregister,lh.prototype.identify=lh.prototype.identify,lh.prototype.alias=lh.prototype.alias,lh.prototype.name_tag=lh.prototype.name_tag,lh.prototype.set_config=lh.prototype.set_config,lh.prototype.get_config=lh.prototype.get_config,lh.prototype.get_api_host=lh.prototype.get_api_host,lh.prototype.get_property=lh.prototype.get_property,lh.prototype.get_distinct_id=lh.prototype.get_distinct_id,lh.prototype.toString=lh.prototype.toString,lh.prototype.opt_out_tracking=lh.prototype.opt_out_tracking,lh.prototype.opt_in_tracking=lh.prototype.opt_in_tracking,lh.prototype.has_opted_out_tracking=lh.prototype.has_opted_out_tracking,lh.prototype.has_opted_in_tracking=lh.prototype.has_opted_in_tracking,lh.prototype.clear_opt_in_out_tracking=lh.prototype.clear_opt_in_out_tracking,lh.prototype.get_group=lh.prototype.get_group,lh.prototype.set_group=lh.prototype.set_group,lh.prototype.add_group=lh.prototype.add_group,lh.prototype.remove_group=lh.prototype.remove_group,lh.prototype.add_hook=lh.prototype.add_hook,lh.prototype.remove_hook=lh.prototype.remove_hook,lh.prototype.track_with_groups=lh.prototype.track_with_groups,lh.prototype.start_batch_senders=lh.prototype.start_batch_senders,lh.prototype.stop_batch_senders=lh.prototype.stop_batch_senders,lh.prototype.start_session_recording=lh.prototype.start_session_recording,lh.prototype.stop_session_recording=lh.prototype.stop_session_recording,lh.prototype.pause_session_recording=lh.prototype.pause_session_recording,lh.prototype.resume_session_recording=lh.prototype.resume_session_recording,lh.prototype.get_session_recording_properties=lh.prototype.get_session_recording_properties,lh.prototype.get_session_replay_url=lh.prototype.get_session_replay_url,lh.prototype.get_tab_id=lh.prototype.get_tab_id,lh.prototype.DEFAULT_API_ROUTES=lc,lh.prototype.__get_recorder=lh.prototype.__get_recorder,lh.prototype.__get_recording_init_promise=lh.prototype.__get_recording_init_promise,le.prototype.properties=le.prototype.properties,le.prototype.update_search_keyword=le.prototype.update_search_keyword,le.prototype.update_referrer_info=le.prototype.update_referrer_info,le.prototype.get_cross_subdomain=le.prototype.get_cross_subdomain,le.prototype.clear=le.prototype.clear;var lg={},lm=function(){ar.each(lg,function(e,t){t!==lr&&(y[t]=e)}),y._=ar},lv=(lt=function(e,t){t()},v=0,(y=new lh).init=function(e,t,r){if(r)return y[r]||(y[r]=lg[r]=lp(e,t,r),y[r]._loaded()),y[r];var n=y;lg[lr]?n=lg[lr]:e&&((n=lp(e,t,lr))._loaded(),lg[lr]=n),y=n,1===v&&(o7[lr]=y),lm()},y.init(),function(){function e(){e.done||(e.done=!0,ll=!0,ls=!1,ar.each(lg,function(e){e._dom_loaded()}))}if(s2.addEventListener)"complete"===s2.readyState?e():s2.addEventListener("DOMContentLoaded",e,!1);else if(s2.attachEvent){s2.attachEvent("onreadystatechange",e);var t=!1;try{t=null===o7.frameElement}catch(e){}s2.documentElement.doScroll&&t&&function t(){try{s2.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}ar.register_event(o7,"load",e,!0)}(),y);let ly="160dad78d10408e6936c4ae962169b4f",l_="cht_homepage_visitor_id",lb=!1;function lw(){let e=localStorage.getItem(l_),t=localStorage.getItem("crawling_demo_visitor_id");return!e&&t&&(e=t,localStorage.setItem(l_,e)),e||(e=crypto.randomUUID(),localStorage.setItem(l_,e)),e}function lk(e,t={}){lb&&window.channelUser?.profile?.channelId!=="1"&&lv.track(e,{source:"homepage",visitorId:lw(),isLoggedIn:!!localStorage.getItem("x-account"),hasChannel:!1,...t})}e.s(["getMixpanelPageViewPathname",0,function(e){return e.split(/[?#]/)[0]||"/"},"initMixpanel",0,function(){if(lb||!ly)return;lv.init(ly,{track_pageview:!1,persistence:"localStorage"});let e=lw();lv.identify(e),lb=!0},"normalizeUrl",0,function(e){return e.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,"").toLowerCase()},"trackMixpanelEvent",0,lk,"trackMixpanelPageView",0,function({pathname:e,asPath:t,locale:r}){lk("HomepagePageView",{source:"homepage",pathname:e,asPath:t,locale:r})}],174333)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.