1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="048747dc-0de0-2dee-7e9f-0d52b124510f")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,331966,e=>{"use strict";var t,r,n,i,o,s,a,c,u,l,h,p,f,d,g,m,v=e.i(247167),y=e.i(467034);if("u"<typeof window){var _={hostname:""};iU={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:_,referrer:""},screen:{width:0,height:0},location:_,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else iU=window;function b(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 w(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 k(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){w(o,n,i,s,a,"next",e)}function a(e){w(o,n,i,s,a,"throw",e)}s(void 0)})}}function S(e,t,r){return(S=P()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&R(i,r.prototype),i}).apply(null,arguments)}function C(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 x(){return(x=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 I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(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&&R(e,t)}function O(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function M(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 R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function T(e){var t="function"==typeof Map?new Map:void 0;return(T=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 S(e,arguments,I(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),R(r,e)})(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}function D(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 b(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 b(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 L(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 N(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
2if(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 F=Object.defineProperty,U=function(e,t,r){var n;return n=(void 0===t?"undefined":A(t))!=="symbol"?t+"":t,n in e?F(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},j=Object.defineProperty,B=function(e,t,r){var n;return n=(void 0===t?"undefined":A(t))!=="symbol"?t+"":t,n in e?j(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},q=((iM=q||{})[iM.Document=0]="Document",iM[iM.DocumentType=1]="DocumentType",iM[iM.Element=2]="Element",iM[iM.Text=3]="Text",iM[iM.CDATA=4]="CDATA",iM[iM.Comment=5]="Comment",iM),z={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},V={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},W={};function $(e){if(W[e])return W[e];var t=globalThis[e],r=t.prototype,n=e in z?z[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 V?V[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 W[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 W[e]=u}catch(e){return r}}var G={};function H(e,t,r){var n,i=e+"."+String(r);if(G[i])return G[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor($(e),r))?void 0:n.get;return o?(G[i]=o,o.call(t)):t[r]}var Y=function(e){return H("Node",e,"childNodes")},Z=function(e){return H("Node",e,"parentNode")},J=function(e){return H("Node",e,"parentElement")},X=function(e){return H("Node",e,"textContent")},K=function(e){return e&&"shadowRoot"in e?H("Element",e,"shadowRoot"):null};function Q(e){return e.nodeType===e.ELEMENT_NODE}function ee(e){var t,r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?H("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&K(r)===e)}function et(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function er(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 en(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 en(e,t){if("styleSheet"in e){var r;try{r=er(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?ed(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)?ed(n,t):n}var ei=function(){function e(){B(this,"idNodeMap",new Map),B(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){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},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 eo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&es(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function es(e){return e.toLowerCase()}var ea="__rrweb_original__";function ec(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?es(t):null}function eu(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 el=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eh=/^(?:[a-z+]+:)?\/\//i,ep=/^www\..*/i,ef=/^(data:)([^,]*),(.*)/i;function ed(e,t){return(e||"").replace(el,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;
2if(eh.test(a)||ep.test(a)||ef.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=D(l);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?u.pop():u.push(d))}return"url("+c+u.join("/")+c+")"})}function eg(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var em=1,ev=RegExp("[^a-z0-9-_:]");function ey(){return em++}var e_=/^[^ \t\n\r\u000c]+/,eb=/^[, \t\n\r\u000c]+/,ew=new WeakMap;function ek(e,t){return t&&""!==t.trim()?eS(e,t):t}function eS(e,t){var r=ew.get(e);if(r||(r=e.createElement("a"),ew.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eC(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ek(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return ek(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(eb),!(r>=t.length);){var o=n(e_);if(","===o.slice(-1))o=ek(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ek(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 ed(n,eS(e));else if("object"===t&&"data"===r)return ek(e,n);return n}function ex(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eI(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eI(Z(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eI(Z(e),t,r)}function eE(e,t,r,n){var i;if(Q(e)){if(!Y(i=e).length)return!1}else{if(null===J(e))return!1;i=J(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eI(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 eO(e){return null==e?"":e.toLowerCase()}function eM(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,E=t.onStylesheetLoad,M=t.stylesheetLoadTimeout,R=void 0===M?5e3:M,A=t.keepIframeSrcFn,T=void 0===A?function(){return!1}:A,P=t.newlyAddedElement,L=t.cssCaptured,N=t.needsMask,F=t.preserveWhiteSpace,U=void 0===F||F;N||(N=eE(e,s,a,void 0===N));var j=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,E=t.cssCaptured,M=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:q.Document,childNodes:[],compatMode:e.compatMode};return{type:q.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:q.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};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(O(e,HTMLFormElement))return"form";var t=es(e.tagName);return ev.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];ex(y,k.name,k.value)||(_[k.name]=eC(n,y,es(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=er(S)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var x=er(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=eg(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=eg(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=eg(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=eg(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,E=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=eo({element:e,type:ec(e),tagName:y,value:
2I,maskInputOptions:c,maskInputFn:u}):E&&(_.checked=E)}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((ea in i?i[ea]: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 M=e.toDataURL(h.type,h.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,M!==R.toDataURL(h.type,h.quality)&&(_.rr_dataURL=M)}}if("img"===y&&p){iB||(iq=(iB=n.createElement("canvas")).getContext("2d"));var A=e.currentSrc||e.getAttribute("src")||"<unknown-src>",T=e.crossOrigin,P=function(){e.removeEventListener("load",P);try{iB.width=e.naturalWidth,iB.height=e.naturalHeight,iq.drawImage(e,0,0),_.rr_dataURL=iB.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P);return}console.warn("Cannot inline img src="+A+"! Error: "+t)}"anonymous"===e.crossOrigin&&(T?_.crossOrigin=T:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P)}if("audio"===y||"video"===y){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.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(),N=L.width,F=L.height;_={class:_.class,rr_width:""+N+"px",rr_height:""+F+"px"}}"iframe"!==y||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:q.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:M});case e.TEXT_NODE:return r=e,i=(n={doc:f,needsMask:v,maskTextFn:b,rootId:M,cssCaptured:void 0!==E&&E}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,u=(c=Z(r))&&c.tagName,l="",h="STYLE"===u||void 0,(p="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=X(r),h&&l&&(l=ed(l,eS(n.doc)))),!h&&!p&&l&&i&&(l=o?o(l,J(r)):l.replace(/[\S]/g,"*")),{type:q.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:q.Comment,textContent:X(e)||"",rootId:M};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:T,newlyAddedElement:void 0!==P&&P,cssCaptured:void 0!==L&&L});if(!j)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===q.Comment)return!0;if(e.type===q.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"===eu(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eO(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eO(e.attributes.name)||"icon"===eO(e.attributes.rel)||"apple-touch-icon"===eO(e.attributes.rel)||"shortcut icon"===eO(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eO(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eO(e.attributes.property).match(/^(og|twitter|fb):/)||eO(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eO(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eO(e.attributes.name)||"googlebot"===eO(e.attributes.name)||"bingbot"===eO(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eO(e.attributes.name)||"generator"===eO(e.attributes.name)||"framework"===eO(e.attributes.name)||"publisher"===eO(e.attributes.name)||"progid"===eO(e.attributes.name)||eO(e.attributes.property).match(/^article:/)||eO(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eO(e.attributes.name)||"yandex-verification"===eO(e.attributes.name)||"csrf-token"===eO(e.attributes.name)||"p:domain_verify"===eO(e.attributes.name)||"verify-v1"===eO(e.attributes.name)||"verification"===eO(e.attributes.name)||"shopify-checkout-api-token"===eO(e.attributes.name)))return!0}}return!1}(j,m)&&(U||j.type!==q.Text||j.textContent.replace(/^\s+|\s+$/gm,"").length)?ey():-2;var B=Object.assign(j,{id:$});if(n.add(e,B),-2===$)return null;S&&S(e);var z=!u;if(B.type===q.Element){z=z&&!B.needBlock,delete B.needBlock;var V=K(e);V&&et(V)&&(B.isShadowHost=!0)}if((B.type===q.Document||B.type===q.Element)&&z){m.headWhitespace&&B.type===q.Element&&"head"===B.tagName&&(U=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:T,cssCaptured:!1};if(B.type===q.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===q.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(W.cssCaptured=!0);for(var $,G,H=D(Array.from(Y(e)));!(G=H()).done;){var en=eM(G.value,W);en&&B.childNodes.push(en)}}var ei=null;if(Q(e)&&(ei=K(e)))for(var el,eh=D(Array.from(Y(ei)));!(el=eh()).done;){var ep=eM(el.value,W);ep&&(et(ei)&&(ep.isShadow=!0),B.childNodes.push(ep))}}var ef=Z(e);return ef&&ee(ef)&&et(ef)&&(B.isShadow=!0),B.type===q.Element&&"iframe"===B.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=eM(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:T});r&&C(e,r)}},I),B.type===q.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===eu(B.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(E){var t=eM(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:T});t&&E(e,t)}},R),B}
2var eR={exports:{}},eA=String,eT=function(){return{isColorSupported:!1,reset:eA,bold:eA,dim:eA,italic:eA,underline:eA,inverse:eA,hidden:eA,strikethrough:eA,black:eA,red:eA,green:eA,yellow:eA,blue:eA,magenta:eA,cyan:eA,white:eA,gray:eA,bgBlack:eA,bgRed:eA,bgGreen:eA,bgYellow:eA,bgBlue:eA,bgMagenta:eA,bgCyan:eA,bgWhite:eA}};eR.exports=eT(),eR.exports.createColors=eT;var eP=eR.exports,eD=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return O(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"}))),eL=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}E(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=eP.isColorSupported),eD&&e&&(i=eD(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=eP.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}(T(Error));eL.default=eL;var eN={};eN.isClean=Symbol("isClean"),eN.my=Symbol("my");var eF={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eU=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 eF[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=eF[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 ej(e,t){new eU(t).stringify(e)}eU.default=eU,ej.default=ej;var eB=eN.isClean,eq=eN.my,ez=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eB]=!1,this[eq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=D(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":A(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 eL(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[eB]){this[eB]=!1;for(var e=this;e=e.parent;)e[eB]=!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);
2else 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 eU().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=D(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":A(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":A(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=ej),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)},C(e,[{key:"proxyOf",get:function(){return this}}]),e}();ez.default=ez;var eV=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=x({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return E(t,e),C(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ez);eV.default=eV;var eW=eD.SourceMapConsumer,e$=eD.SourceMapGenerator,eG=eD.existsSync,eH=eD.readFileSync,eY=eD.dirname,eZ=eD.join,eJ=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=eY(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eW(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),y.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":A(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);
2if(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=eY(e),eG(e))return this.mapFile=e,eH(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(O(t,eW))return e$.fromSourceMap(t).toString();else if(O(t,e$))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=eZ(eY(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}();eJ.default=eJ;var eX=eD.SourceMapConsumer,eK=eD.SourceMapGenerator,eQ=eD.fileURLToPath,e0=eD.pathToFileURL,e1=eD.isAbsolute,e2=eD.resolve,e3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
2,e4=Symbol("fromOffsetCache"),e9=!!(eX&&eK),e5=!!(e2&&e1),e6=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":A(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&&(!e5||/^\w+:\/\//.test(t.from)||e1(t.from)?this.file=t.from:this.file=e2(t.from)),e5&&e9){var r=new eJ(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 "+e3(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":A(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 eL(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 eL(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&&(e0&&(i.input.url=e0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[e4])a=this[e4];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[e4]=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:e2(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=e1(a.source)?e0(a.source):new URL(a.source,this.map.consumer().sourceRoot||e0(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(eQ)c.file=eQ(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=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},C(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();e6.default=e6,eD&&eD.registerInput&&eD.registerInput(e6);var e8=eD.SourceMapConsumer,e7=eD.SourceMapGenerator,te=eD.dirname,tt=eD.relative,tr=eD.resolve,tn=eD.sep,ti=eD.pathToFileURL,to=!!(e8&&e7),ts=!!(te&&tr&&tt&&tn),ta=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=D(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||te(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new e8(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(),ts&&to&&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=e7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new e7({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 e7({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?te(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=te(tr(r,this.mapOpts.annotation)));var n=tt(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 e6(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 y.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ti){var r=ti(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;"\\"===tn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),tc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return E(t,e),t}(ez);tc.default=tc;var tu=eN.isClean,tl=eN.my,th=function(e){function t(){return e.apply(this,arguments)||this}E(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=D(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=D(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=D(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()};
2else 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=D(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=D(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})}(iz(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=D(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=D(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 eV(e)]}else if(e.selector)e=[new iV(e)];else if(e.name)e=[new iW(e)];else if(e.text)e=[new tc(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[tl]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tu]&&function e(t){if(t[tu]=!1,t.proxyOf.nodes)for(var r,n=D(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=D(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=D(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=D(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?O(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?O(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?O(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)}))}
2,C(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}(ez);th.registerParse=function(e){iz=e},th.registerRule=function(e){iV=e},th.registerAtRule=function(e){iW=e},th.registerRoot=function(e){i$=e},th.default=th,th.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iW.prototype):"rule"===e.type?Object.setPrototypeOf(e,iV.prototype):"decl"===e.type?Object.setPrototypeOf(e,eV.prototype):"comment"===e.type?Object.setPrototypeOf(e,tc.prototype):"root"===e.type&&Object.setPrototypeOf(e,i$.prototype),e[tl]=!0,e.nodes&&e.nodes.forEach(function(e){th.rebuild(e)})};var tp=function(e){function t(t){var r;return(r=e.call(this,x({type:"document"},t))||this).nodes||(r.nodes=[]),r}return E(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new iG(new iH,this,e).stringify()},t}(th);tp.registerLazyResult=function(e){iG=e},tp.registerProcessor=function(e){iH=e},tp.default=tp;var tf=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}();tf.default=tf;var td=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 tf(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},C(e,[{key:"content",get:function(){return this.css}}]),e}();td.default=td;var tg=/[\t\n\f\r "#'()/;[\\\]{}]/g,tm=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tv=/.[\r\n"'(/\\]/,ty=/[\da-f]/i,t_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}E(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}(th);t_.default=t_,th.registerAtRule(t_);var tb=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}E(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=D(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 iY(new iZ,this,e).stringify()},t}(th);tb.registerLazyResult=function(e){iY=e},tb.registerProcessor=function(e){iZ=e},tb.default=tb,th.registerRoot(tb);var tw={comma:function(e){return tw.split(e,[","],!0)},space:function(e){return tw.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=D(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}};tw.default=tw;var tk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return E(t,e),C(t,[{key:"selectors",get:function(){return tw.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}(th);tk.default=tk,th.registerRule(tk);var tS=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;
2switch(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;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||tv.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:tg.lastIndex=g+1,tg.test(p),n=0===tg.lastIndex?p.length-1:tg.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;
292===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,ty.test(p.charAt(n)))){for(;ty.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]):(tm.lastIndex=g+1,tm.test(p),n=0===tm.lastIndex?p.length-1:tm.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},tC={empty:!0,space:!0},tx=function(){function e(e){this.input=e,this.root=new tb,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 t_;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=D(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 tc;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=tS(this.input)},t.decl=function(e,t){var r,n,i=new eV;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 tk;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()}
2if(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",tC[a]||tC[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 tk;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 tI(e,t){var r=new tx(new e6(e,t));try{r.parse()}catch(e){throw e}return r.root}tI.default=tI,th.registerParse(tI);var tE=eN.isClean,tO=eN.my,tM={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tR={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},tA={Once:!0,postcssPlugin:!0,prepare:!0};function tT(e){return(void 0===e?"undefined":A(e))==="object"&&"function"==typeof e.then}function tP(e){var t=!1,r=tM[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 tD(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tP(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function tL(e){return e[tE]=!1,e.nodes&&e.nodes.forEach(function(e){return tL(e)}),e}var tN={},tF=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":A(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tL(r);else if(O(r,e)||O(r,td))i=tL(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=tI;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[tO]&&th.rebuild(i)}this.result=new td(t,i,n),this.helpers=x({},tN,{postcss:tN,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":A(e))==="object"&&e.prepare?x({},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=D(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":A(i))==="object")for(var o in i){if(!tR[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!tA[o])if("object"===A(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 k(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return L(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],!tT(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[tE])return[3,14];o[tE]=!0,s=[tD(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!tT(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 L(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=D(e.listeners.OnceExit),f.label=15;case 15:if((p=h()).done)return[3,18];return[5,N(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":A(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(tT(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=ej;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ta(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=D(this.plugins);!(e=t()).done;){var r=e.value;if(tT(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[tE];)n[tE]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=D(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=D(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(tT(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[tE]){a[tE]=!0,e.push(tD(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[tE]=!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[tE]=!0;for(var r,n=tP(e),i=D(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[tE]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,C(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}();tF.registerPostcss=function(e){tN=e},tF.default=tF,tb.registerLazyResult(tF),tp.registerLazyResult(tF);var tU=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 td(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 ta(ej,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[]},C(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=tI(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}();tU.default=tU;var tj=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=D(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":A(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":A(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":A(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 tF(this,e,t):new tU(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tB(e,t){if(Array.isArray(e))return e.map(function(e){return tB(e)});var r=e.inputs,n=M(e,["inputs"]);if(r){t=[];for(var i,o=D(r);!(i=o()).done;){var s=i.value,a=x({},s,{__proto__:e6.prototype});a.map&&(a.map=x({},a.map,{__proto__:eJ.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tB(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=M(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new tb(n);if("decl"===n.type)return new eV(n);if("rule"===n.type)return new tk(n);if("comment"===n.type)return new tc(n);if("atrule"===n.type)return new t_(n);else throw Error("Unknown node type: "+e.type)}function tq(){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 tj(t)}tj.default=tj,tb.registerProcessor(tj),tp.registerProcessor(tj),tB.default=tB,tq.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"),v.default.env.LANG&&v.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 tj().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return tq([i(r)]).process(e,t)},i},tq.stringify=ej,tq.parse=tI,tq.fromJSON=tB,tq.list=tw,tq.comment=function(e){return new tc(e)},tq.atRule=function(e){return new t_(e)},tq.decl=function(e){return new eV(e)},tq.rule=function(e){return new tk(e)},tq.root=function(e){return new tb(e)},tq.document=function(e){return new tp(e)},tq.CssSyntaxError=eL,tq.Declaration=eV,tq.Container=th,tq.Processor=tj,tq.Document=tp,tq.Comment=tc,tq.Warning=tf,tq.AtRule=t_,tq.Result=td,tq.Input=e6,tq.Rule=tk,tq.Root=tb,tq.Node=ez,tF.registerPostcss(tq),tq.default=tq;
2var tz=tq&&tq.__esModule&&Object.prototype.hasOwnProperty.call(tq,"default")?tq.default:tq;tz.stringify,tz.fromJSON,tz.plugin,tz.parse,tz.list,tz.document,tz.comment,tz.atRule,tz.rule,tz.decl,tz.root,tz.CssSyntaxError,tz.Declaration,tz.Container,tz.Processor,tz.Document,tz.Comment,tz.Warning,tz.AtRule,tz.Result,tz.Input,tz.Rule,tz.Root,tz.Node;var tV=Object.defineProperty,tW=function(e,t,r){var n;return n=(void 0===t?"undefined":A(t))!=="symbol"?t+"":t,n in e?tV(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},t$={exports:{}},tG=String,tH=function(){return{isColorSupported:!1,reset:tG,bold:tG,dim:tG,italic:tG,underline:tG,inverse:tG,hidden:tG,strikethrough:tG,black:tG,red:tG,green:tG,yellow:tG,blue:tG,magenta:tG,cyan:tG,white:tG,gray:tG,bgBlack:tG,bgRed:tG,bgGreen:tG,bgYellow:tG,bgBlue:tG,bgMagenta:tG,bgCyan:tG,bgWhite:tG}};t$.exports=tH(),t$.exports.createColors=tH;var tY=t$.exports,tZ=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return O(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"}))),tJ=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}E(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=tY.isColorSupported),tZ&&e&&(i=tZ(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=tY.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}(T(Error));tJ.default=tJ;var tX={};tX.isClean=Symbol("isClean"),tX.my=Symbol("my");var tK={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tQ=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 tK[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=tK[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 t0(e,t){new tQ(t).stringify(e)}tQ.default=tQ,t0.default=t0;var t1=tX.isClean,t2=tX.my,t3=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[t1]=!1,this[t2]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=D(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":A(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 tJ(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[t1]){this[t1]=!1;for(var e=this;e=e.parent;)e[t1]=!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);
2else 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 tQ().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=D(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":A(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":A(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=t0),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)},C(e,[{key:"proxyOf",get:function(){return this}}]),e}();t3.default=t3;var t4=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=x({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return E(t,e),C(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(t3);t4.default=t4;var t9=tZ.SourceMapConsumer,t5=tZ.SourceMapGenerator,t6=tZ.existsSync,t8=tZ.readFileSync,t7=tZ.dirname,re=tZ.join,rt=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=t7(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new t9(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),y.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":A(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);
2if(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=t7(e),t6(e))return this.mapFile=e,t8(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(O(t,t9))return t5.fromSourceMap(t).toString();else if(O(t,t5))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=re(t7(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}();rt.default=rt;var rr=tZ.SourceMapConsumer,rn=tZ.SourceMapGenerator,ri=tZ.fileURLToPath,ro=tZ.pathToFileURL,rs=tZ.isAbsolute,ra=tZ.resolve,rc=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
2,ru=Symbol("fromOffsetCache"),rl=!!(rr&&rn),rh=!!(ra&&rs),rp=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":A(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&&(!rh||/^\w+:\/\//.test(t.from)||rs(t.from)?this.file=t.from:this.file=ra(t.from)),rh&&rl){var r=new rt(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 "+rc(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":A(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 tJ(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 tJ(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&&(ro&&(i.input.url=ro(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[ru])a=this[ru];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[ru]=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:ra(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=rs(a.source)?ro(a.source):new URL(a.source,this.map.consumer().sourceRoot||ro(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(ri)c.file=ri(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=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},C(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();rp.default=rp,tZ&&tZ.registerInput&&tZ.registerInput(rp);var rf=tZ.SourceMapConsumer,rd=tZ.SourceMapGenerator,rg=tZ.dirname,rm=tZ.relative,rv=tZ.resolve,ry=tZ.sep,r_=tZ.pathToFileURL,rb=!!(rf&&rd),rw=!!(rg&&rv&&rm&&ry),rk=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=D(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||rg(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new rf(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(),rw&&rb&&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=rd.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rd({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 rd({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?rg(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rg(rv(r,this.mapOpts.annotation)));var n=rm(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 rp(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 y.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(r_){var r=r_(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;"\\"===ry&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return E(t,e),t}(t3);rS.default=rS;var rC=tX.isClean,rx=tX.my,rI=function(e){function t(){return e.apply(this,arguments)||this}E(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=D(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=D(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=D(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()};
2else 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=D(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=D(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})}(iJ(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=D(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=D(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 t4(e)]}else if(e.selector)e=[new iX(e)];else if(e.name)e=[new iK(e)];else if(e.text)e=[new rS(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rx]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[rC]&&function e(t){if(t[rC]=!1,t.proxyOf.nodes)for(var r,n=D(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=D(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=D(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=D(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?O(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?O(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?O(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)}))}
2,C(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}(t3);rI.registerParse=function(e){iJ=e},rI.registerRule=function(e){iX=e},rI.registerAtRule=function(e){iK=e},rI.registerRoot=function(e){iQ=e},rI.default=rI,rI.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iK.prototype):"rule"===e.type?Object.setPrototypeOf(e,iX.prototype):"decl"===e.type?Object.setPrototypeOf(e,t4.prototype):"comment"===e.type?Object.setPrototypeOf(e,rS.prototype):"root"===e.type&&Object.setPrototypeOf(e,iQ.prototype),e[rx]=!0,e.nodes&&e.nodes.forEach(function(e){rI.rebuild(e)})};var rE=function(e){function t(t){var r;return(r=e.call(this,x({type:"document"},t))||this).nodes||(r.nodes=[]),r}return E(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new i0(new i1,this,e).stringify()},t}(rI);rE.registerLazyResult=function(e){i0=e},rE.registerProcessor=function(e){i1=e},rE.default=rE;var rO=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}();rO.default=rO;var rM=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 rO(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},C(e,[{key:"content",get:function(){return this.css}}]),e}();rM.default=rM;var rR=/[\t\n\f\r "#'()/;[\\\]{}]/g,rA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rT=/.[\r\n"'(/\\]/,rP=/[\da-f]/i,rD=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}E(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}(rI);rD.default=rD,rI.registerAtRule(rD);var rL=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}E(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=D(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 i2(new i3,this,e).stringify()},t}(rI);rL.registerLazyResult=function(e){i2=e},rL.registerProcessor=function(e){i3=e},rL.default=rL,rI.registerRoot(rL);var rN={comma:function(e){return rN.split(e,[","],!0)},space:function(e){return rN.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=D(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}};rN.default=rN;var rF=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return E(t,e),C(t,[{key:"selectors",get:function(){return rN.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}(rI);rF.default=rF,rI.registerRule(rF);var rU=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;
2switch(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;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||rT.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:rR.lastIndex=g+1,rR.test(p),n=0===rR.lastIndex?p.length-1:rR.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;
292===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,rP.test(p.charAt(n)))){for(;rP.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]):(rA.lastIndex=g+1,rA.test(p),n=0===rA.lastIndex?p.length-1:rA.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},rj={empty:!0,space:!0},rB=function(){function e(e){this.input=e,this.root=new rL,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 rD;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=D(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 rS;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=rU(this.input)},t.decl=function(e,t){var r,n,i=new t4;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 rF;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()}
2if(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",rj[a]||rj[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 rF;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 rq(e,t){var r=new rB(new rp(e,t));try{r.parse()}catch(e){throw e}return r.root}rq.default=rq,rI.registerParse(rq);var rz=tX.isClean,rV=tX.my,rW={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r$={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},rG={Once:!0,postcssPlugin:!0,prepare:!0};function rH(e){return(void 0===e?"undefined":A(e))==="object"&&"function"==typeof e.then}function rY(e){var t=!1,r=rW[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 rZ(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rY(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function rJ(e){return e[rz]=!1,e.nodes&&e.nodes.forEach(function(e){return rJ(e)}),e}var rX={},rK=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":A(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=rJ(r);else if(O(r,e)||O(r,rM))i=rJ(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=rq;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[rV]&&rI.rebuild(i)}this.result=new rM(t,i,n),this.helpers=x({},rX,{postcss:rX,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":A(e))==="object"&&e.prepare?x({},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=D(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":A(i))==="object")for(var o in i){if(!r$[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!rG[o])if("object"===A(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 k(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return L(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],!rH(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[rz])return[3,14];o[rz]=!0,s=[rZ(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!rH(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 L(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=D(e.listeners.OnceExit),f.label=15;case 15:if((p=h()).done)return[3,18];return[5,N(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":A(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(rH(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=t0;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rk(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=D(this.plugins);!(e=t()).done;){var r=e.value;if(rH(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rz];)n[rz]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=D(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=D(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(rH(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[rz]){a[rz]=!0,e.push(rZ(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[rz]=!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[rz]=!0;for(var r,n=rY(e),i=D(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[rz]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,C(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}();rK.registerPostcss=function(e){rX=e},rK.default=rK,rL.registerLazyResult(rK),rE.registerLazyResult(rK);var rQ=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 rM(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 rk(t0,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[]},C(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=rq(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}();rQ.default=rQ;var r0=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=D(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":A(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":A(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":A(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 rK(this,e,t):new rQ(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function r1(e,t){if(Array.isArray(e))return e.map(function(e){return r1(e)});var r=e.inputs,n=M(e,["inputs"]);if(r){t=[];for(var i,o=D(r);!(i=o()).done;){var s=i.value,a=x({},s,{__proto__:rp.prototype});a.map&&(a.map=x({},a.map,{__proto__:rt.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return r1(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=M(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rL(n);if("decl"===n.type)return new t4(n);if("rule"===n.type)return new rF(n);if("comment"===n.type)return new rS(n);if("atrule"===n.type)return new rD(n);else throw Error("Unknown node type: "+e.type)}function r2(){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 r0(t)}r0.default=r0,rL.registerProcessor(r0),rE.registerProcessor(r0),r1.default=r1,r2.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"),v.default.env.LANG&&v.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 r0().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return r2([i(r)]).process(e,t)},i},r2.stringify=t0,r2.parse=rq,r2.fromJSON=r1,r2.list=rN,r2.comment=function(e){return new rS(e)},r2.atRule=function(e){return new rD(e)},r2.decl=function(e){return new t4(e)},r2.rule=function(e){return new rF(e)},r2.root=function(e){return new rL(e)},r2.document=function(e){return new rE(e)},r2.CssSyntaxError=tJ,r2.Declaration=t4,r2.Container=rI,r2.Processor=r0,r2.Document=rE,r2.Comment=rS,r2.Warning=rO,r2.AtRule=rD,r2.Result=rM,r2.Input=rp,r2.Rule=rF,r2.Root=rL,r2.Node=t3,rK.registerPostcss(r2),r2.default=r2;var r3=r2&&r2.__esModule&&Object.prototype.hasOwnProperty.call(r2,"default")?r2.default:r2;r3.stringify,r3.fromJSON,r3.plugin,r3.parse,r3.list,r3.document,r3.comment,r3.atRule,r3.rule,r3.decl,r3.root,r3.CssSyntaxError,r3.Declaration,r3.Container,r3.Processor,r3.Document,r3.Comment,r3.Warning,r3.AtRule,r3.Result,r3.Input,r3.Rule,r3.Root,r3.N
2ode;var r4=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tW(this,"parentElement",null),tW(this,"parentNode",null),tW(this,"ownerDocument"),tW(this,"firstChild",null),tW(this,"lastChild",null),tW(this,"previousSibling",null),tW(this,"nextSibling",null),tW(this,"ELEMENT_NODE",1),tW(this,"TEXT_NODE",3),tW(this,"nodeType"),tW(this,"nodeName"),tW(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!O(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"},C(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),r9={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},r5={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},r6={};function r8(e){if(r6[e])return r6[e];var t=globalThis[e],r=t.prototype,n=e in r9?r9[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 r5?r5[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 r6[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 r6[e]=u}catch(e){return r}}var r7={};function ne(e,t,r){var n,i=e+"."+String(r);if(r7[i])return r7[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(r8(e),r))?void 0:n.get;return o?(r7[i]=o,o.call(t)):t[r]}var nt={};function nr(e,t,r){var n=e+"."+String(r);if(nt[n])return nt[n].bind(t);var i=r8(e)[r];return"function"!=typeof i?t[r]:(nt[n]=i,i.bind(t))}function nn(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 ni=function(e){return ne("Node",e,"childNodes")},no=function(e){return ne("Node",e,"parentNode")},ns=function(e){return ne("Node",e,"parentElement")},na=function(e){return ne("Node",e,"textContent")},nc=function(e,t){return nr("Node",e,"contains")(t)},nu=function(e){return nr("Node",e,"getRootNode")()},nl=function(e){return e&&"host"in e?ne("ShadowRoot",e,"host"):null},nh=function(e){return e&&"shadowRoot"in e?ne("Element",e,"shadowRoot"):null};function np(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 nf="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.",nd={map:{},getId:function(){return console.error(nf),-1},getNode:function(){return console.error(nf),null},removeNodeFromMap:function(){console.error(nf)},has:function(){return console.error(nf),!1},reset:function(){console.error(nf)}};function ng(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>
2t?(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 nm(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 nm(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(nd=new Proxy(nd,{get:function(e,t,r){return"map"===t&&console.error(nf),Reflect.get(e,t,r)}}));var nv=Date.now;function ny(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=ns(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=ns(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function n_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nb(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nw(e){return e?e.nodeType===e.ELEMENT_NODE?e:ns(e):null}function nk(e,t,r,n){if(!e)return!1;var i=nw(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eI(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nS(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nC(e){return!!e.changedTouches}function nx(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function nI(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nE(e){return!!e&&(O(e,r4)&&"shadowRoot"in e?!!e.shadowRoot:!!nh(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nv=function(){return new Date().getTime()});var nO=function(){function e(){U(this,"id",1),U(this,"styleIDMap",new WeakMap),U(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++},e}();function nM(e){var t,r=null;return"getRootNode"in e&&(null==(t=nu(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&nl(nu(e))&&(r=nl(nu(e))),r}function nR(e){var t,r,n=e.ownerDocument;return!!n&&(nc(n,e)||!!(r=(t=e).ownerDocument)&&nc(r,function(e){for(var t,r=e;t=nM(r);)r=t;return r}(t)))}var nA=((iR=nA||{})[iR.DomContentLoaded=0]="DomContentLoaded",iR[iR.Load=1]="Load",iR[iR.FullSnapshot=2]="FullSnapshot",iR[iR.IncrementalSnapshot=3]="IncrementalSnapshot",iR[iR.Meta=4]="Meta",iR[iR.Custom=5]="Custom",iR[iR.Plugin=6]="Plugin",iR),nT=((iA=nT||{})[iA.Mutation=0]="Mutation",iA[iA.MouseMove=1]="MouseMove",iA[iA.MouseInteraction=2]="MouseInteraction",iA[iA.Scroll=3]="Scroll",iA[iA.ViewportResize=4]="ViewportResize",iA[iA.Input=5]="Input",iA[iA.TouchMove=6]="TouchMove",iA[iA.MediaInteraction=7]="MediaInteraction",iA[iA.StyleSheetRule=8]="StyleSheetRule",iA[iA.CanvasMutation=9]="CanvasMutation",iA[iA.Font=10]="Font",iA[iA.Log=11]="Log",iA[iA.Drag=12]="Drag",iA[iA.StyleDeclaration=13]="StyleDeclaration",iA[iA.Selection=14]="Selection",iA[iA.AdoptedStyleSheet=15]="AdoptedStyleSheet",iA[iA.CustomElement=16]="CustomElement",iA),nP=((iT=nP||{})[iT.MouseUp=0]="MouseUp",iT[iT.MouseDown=1]="MouseDown",iT[iT.Click=2]="Click",iT[iT.ContextMenu=3]="ContextMenu",iT[iT.DblClick=4]="DblClick",iT[iT.Focus=5]="Focus",iT[iT.Blur=6]="Blur",iT[iT.TouchStart=7]="TouchStart",iT[iT.TouchMove_Departed=8]="TouchMove_Departed",iT[iT.TouchEnd=9]="TouchEnd",iT[iT.TouchCancel=10]="TouchCancel",iT),nD=((iP=nD||{})[iP.Mouse=0]="Mouse",iP[iP.Pen=1]="Pen",iP[iP.Touch=2]="Touch",iP),nL=((iD=nL||{})[iD["2D"]=0]="2D",iD[iD.WebGL=1]="WebGL",iD[iD.WebGL2=2]="WebGL2",iD),nN=((iL=nN||{})[iL.Play=0]="Play",iL[iL.Pause=1]="Pause",iL[iL.Seeked=2]="Seeked",iL[iL.VolumeChange=3]="VolumeChange",iL[iL.RateChange=4]="RateChange",iL),nF=((iN=nF||{})[iN.Document=0]="Document",iN[iN.DocumentType=1]="DocumentType",iN[iN.Element=2]="Element",iN[iN.Text=3]="Text",iN[iN.CDATA=4]="CDATA",iN[iN.Comment=5]="Comment",iN),nU=function(){function e(){U(this,"length",0),U(this,"head",null),U(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;
2this.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}(),nj=function(e,t){return e+"@"+t},nB=function(){function e(){var e=this;U(this,"frozen",!1),U(this,"locked",!1),U(this,"texts",[]),U(this,"attributes",[]),U(this,"attributeMap",new WeakMap),U(this,"removes",[]),U(this,"mapRemoves",[]),U(this,"movedMap",{}),U(this,"addedSet",new Set),U(this,"movedSet",new Set),U(this,"droppedSet",new Set),U(this,"removesSubTreeCache",new Set),U(this,"mutationCb"),U(this,"blockClass"),U(this,"blockSelector"),U(this,"maskTextClass"),U(this,"maskTextSelector"),U(this,"inlineStylesheet"),U(this,"maskInputOptions"),U(this,"maskTextFn"),U(this,"maskInputFn"),U(this,"keepIframeSrcFn"),U(this,"recordCanvas"),U(this,"inlineImages"),U(this,"slimDOMOptions"),U(this,"dataURLOptions"),U(this,"doc"),U(this,"mirror"),U(this,"iframeManager"),U(this,"stylesheetManager"),U(this,"shadowDomManager"),U(this,"canvasManager"),U(this,"processedNodeManager"),U(this,"unattachedDoc"),U(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),U(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nU,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=no(o);if(s&&nR(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=ee(s)?e.mirror.getId(nM(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=eM(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){nx(t,e.mirror)&&e.iframeManager.addIframe(t),nI(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),nE(o)&&e.shadowDomManager.addShadowRoot(nh(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;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=D(e.movedSet);!(s=a()).done;){var c=s.value;(!nz(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(no(c)))&&o(c)}for(var u,l=D(e.addedSet);!(u=l()).done;){var h=u.value;nV(e.droppedSet,h)||nz(e.removesSubTreeCache,h,e.mirror)?nV(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var p=null;n.length;){var f=null;if(p){var d=e.mirror.getId(no(p.value)),g=i(p.value);-1!==d&&-1!==g&&(f=p)}if(!f)for(var m=n.tail;m;){var v=m;if(m=m.previous,v){var y=e.mirror.getId(no(v.value));if(-1===i(v.value))continue;if(-1!==y){f=v;break}var _=no(v.value);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=nl(_);if(-1!==e.mirror.getId(b)){f=v;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var w={texts:e.texts.map(function(t){var r=t.node,n=no(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};(w.texts.length||w.attributes.length||w.removes.length||w.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(w))}}),U(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(ni(t),function(e){return na(e)||""}).join("");r.attributes.value=eo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:ec(t),value:n,maskInputFn:e.maskInputFn})}),U(this,"processMutation",function(t){if(!nS(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=na(t.target);nk(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:eE(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,nw(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=ec(n);o=eo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(nk(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
2if("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"),!ex(n.tagName,i))if(a.attributes[i]=eC(e.doc,es(n.tagName),es(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=D(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=D(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(nk(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=ee(t.target)?e.mirror.getId(nl(t.target)):e.mirror.getId(t.target);nk(t.target,e.blockClass,e.blockSelector,!1)||nS(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(nq(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(ee(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=no(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[nj(n,i)]?nq(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(ee(t.target)&&et(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),ni(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),U(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(nS(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[nj(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!nk(t,e.blockClass,e.blockSelector,!1)&&(ni(t).forEach(function(t){return e.genAdds(t)}),nE(t)&&ni(nh(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,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()},e}();function nq(e,t){e.delete(t),ni(t).forEach(function(t){return nq(e,t)})}function nz(e,t,r){var n,i;return 0!==e.size&&(n=e,!!(i=no(t))&&n.has(i))}function nV(e,t){return 0!==e.size&&function e(t,r){var n=no(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nW=function(e){return i4?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(i4&&!0===i4(e))return;throw e}}:e},n$=[];function nG(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 nH(e,t){var r=new nB;n$.push(r),r.init(e);var n=new(r8("MutationObserver")).constructor(nW(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function nY(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return np("scroll",nW(ng(nW(function(e){var s=nG(e);if(!(!s||nk(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=ny(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 nZ=["INPUT","TEXTAREA","SELECT"],nJ=new WeakMap;function nX(e){var t=[];if(n1("CSSGroupingRule")&&O(e.parentRule,CSSGroupingRule)||n1("CSSMediaRule")&&O(e.parentRule,CSSMediaRule)||n1("CSSSupportsRule")&&O(e.parentRule,CSSSupportsRule)||n1("CSSConditionRule")&&O(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 nK(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function nQ(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(nl(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}}),nW(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function n0(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,I=e.selectionCb,E=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)),I.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)),E.apply(void 0,[].concat(t))},e.recordDOM&&(eu=nH(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=ng(nW(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=nW(ng(nW(function(e){var r=nG(e),n=nC(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=nv()),c.push({x:i,y:s,id:o.getId(r),timeOffset:nv()-t}),u("u">typeof DragEvent&&O(e,DragEvent)?nT.Drag:O(e,MouseEvent)?nT.MouseMove:nT.TouchMove)}),s,{trailing:!1})),h=[np("mousemove",l,i),np("touchmove",l,i),np("drag",l,i)];return nW(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(nP).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
2).forEach(function(e){var s=es(e),a=function(r){var s=nG(r);if(!nk(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nD.Mouse;break;case"touch":a=nD.Touch;break;case"pen":a=nD.Pen}a===nD.Touch?nP[e]===nP.MouseDown?c="TouchStart":nP[e]===nP.MouseUp&&(c="TouchEnd"):nD.Pen}else nC(r)&&(a=nD.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===nD.Touch||c.startsWith("Mouse")&&a===nD.Mouse)&&(a=null)):nP[e]===nP.Click&&(a=u,u=null);var l=nC(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;nW(t)(x({type:nP[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nP[e]){case nP.MouseDown:case nP.MouseUp:s=s.replace("mouse","pointer");break;case nP.TouchStart:case nP.TouchEnd:return}c.push(np(s,a,r))}),nW(function(){c.forEach(function(e){return e()})})}(e),o=nY(e),s=(M={win:r},R=e.viewportResizeCb,A=M.win,T=-1,P=-1,np("resize",nW(ng(nW(function(){var e=n_(),t=nb();(T!==e||P!==t)&&(R({width:Number(t),height:Number(e)}),T=e,P=t)}),200)),A)),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=nG(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=ns(t)),!(!t||!l||0>nZ.indexOf(l)||nk(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=ec(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=eo({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=nJ.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nJ.set(e,r);var o=n.getId(e);nW(t)(x({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return np(e,nW(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 nm(e[0],e[1],{set:function(){nW(p)({target:this,isTrusted:!1})}},!1,g)}))),nW(function(){d.forEach(function(e){return e()})})}(e),c=(L=e.mediaInteractionCb,N=e.blockClass,F=e.blockSelector,U=e.mirror,j=e.sampling,B=e.doc,z=[np("play",(q=nW(function(e){return ng(nW(function(t){var r=nG(t);if(!(!r||nk(r,N,F,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;L({type:e,id:U.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),j.media||500)}))(nN.Play),B),np("pause",q(nN.Pause),B),np("seeked",q(nN.Seeked),B),np("volumechange",q(nN.VolumeChange),B),np("ratechange",q(nN.RateChange),B)],nW(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:nW(function(e,t,r){var n=r[0],a=r[1],c=nK(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:nW(function(e,t,r){var n=r[0],a=nK(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)}
2)}),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:nW(function(e,t,r){var n=r[0],a=nK(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:nW(function(e,t,r){var n=r[0],a=nK(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={};n2("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(n2("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),n2("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),n2("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:nW(function(e,t,r){var n=r[0],a=r[1],c=nK(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(nX(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:nW(function(e,t,r){var n=r[0],a=nK(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(nX(t),[n])}]}),e.apply(t,r)})})}),nW(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=nQ(e,e.doc),V=e.styleDeclarationCb,W=e.mirror,$=e.ignoreCSSAttributes,G=e.stylesheetManager,Y=(H=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,H.CSSStyleDeclaration.prototype.setProperty=new Proxy(Y,{apply:nW(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=nK(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,G.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&V({id:c,styleId:u,set:{property:i,value:o,priority:s},index:nX(t.parentRule)}),e.apply(t,r)})}),Z=H.CSSStyleDeclaration.prototype.removeProperty,H.CSSStyleDeclaration.prototype.removeProperty=new Proxy(Z,{apply:nW(function(e,t,r){var n,i=r[0];if($.has(i))return Z.apply(t,[i]);var o=nK(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,G.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&V({id:s,styleId:a,remove:{property:i},index:nX(t.parentRule)}),e.apply(t,r)})}),h=nW(function(){H.CSSStyleDeclaration.prototype.setProperty=Y,H.CSSStyleDeclaration.prototype.removeProperty=Z}),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=nn(r.fonts,"add",function(e){return function(r){return setTimeout(nW(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),nW(function(){i.forEach(function(e){return e()})})}(e)));for(var f,d,g,m,v,y,_,b,w,k,S,C,I,E,M,R,A,T,P,L,N,F,U,j,B,q,z,V,W,$,G,H,Y,Z,J,X,K,Q,ee,et,er,en,ei,ea,eu,el,eh=(J=e.doc,X=e.mirror,K=e.blockClass,Q=e.blockSelector,ee=e.selectionCb,et=!0,(er=nW(function(){var e=J.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;nk(o,K,Q,!0)||nk(a,K,Q,!0)||t.push({start:X.getId(o),startOffset:s,end:X.getId(a),endOffset:c})}ee({ranges:t})}}))(),np("selectionchange",er)),ep=(en=e.doc,ei=e.customElementCb,(ea=en.defaultView)&&ea.customElements?nn(ea.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(){}),ef=[],ed=D(e.plugins);!(el=ed()).done;){var eg=el.value;ef.push(eg.observer(eg.callback,r,eg.options))}return nW(function(){n$.forEach(function(e){return e.reset()}),null==eu||eu.disconnect(),n(),i(),o(),s(),a(),c(),u(),l(),h(),p(),eh(),ep(),ef.forEach(function(e){return e()})})}function n1(e){return void 0!==window[e]}function n2(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var n3=function(){function e(e){U(this,"iframeIdToRemoteIdMap",new WeakMap),U(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);
2return 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}(),n4=function(){function e(e){U(this,"iframes",new WeakMap),U(this,"crossOriginIframeMap",new WeakMap),U(this,"crossOriginIframeMirror",new n3(ey)),U(this,"crossOriginIframeStyleMirror"),U(this,"crossOriginIframeRootIdMap",new WeakMap),U(this,"mirror"),U(this,"mutationCb"),U(this,"wrappedEmit"),U(this,"loadListener"),U(this,"stylesheetManager"),U(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new n3(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)},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}),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 nA.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:nA.IncrementalSnapshot,data:{source:nT.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nA.Meta:case nA.Load:case nA.DomContentLoaded:break;case nA.Plugin:return t;case nA.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nA.IncrementalSnapshot:switch(t.data.source){case nT.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 nT.Drag:case nT.TouchMove:case nT.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nT.ViewportResize:return!1;case nT.MediaInteraction:case nT.MouseInteraction:case nT.Scroll:case nT.CanvasMutation:case nT.Input:return this.replaceIds(t.data,e,["id"]),t;case nT.StyleSheetRule:case nT.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nT.Font:return t;case nT.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nT.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=D(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.forEac
2h(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nF.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),n9=function(){function e(e){U(this,"shadowDoms",new WeakSet),U(this,"mutationCb"),U(this,"scrollCb"),U(this,"bypassOptions"),U(this,"mirror"),U(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(et(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nH(x({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nY(x({},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(nl(e))),r.restoreHandlers.push(nQ({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(nn(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=nh(this);return o&&nR(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),n5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n6="u"<typeof Uint8Array?[]:new Uint8Array(256),n8=0;n8<n5.length;n8++)n6[n5.charCodeAt(n8)]=n8;var n7=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=n5[r[t]>>2],i+=n5[(3&r[t])<<4|r[t+1]>>4],i+=n5[(15&r[t+1])<<2|r[t+2]>>6],i+=n5[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},ie=new Map,it=function(e,t,r){if(e&&(ii(e,t)||(void 0===e?"undefined":A(e))==="object")){var n,i=e.constructor.name,o=((n=ie.get(r))||(n=new Map,ie.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}},ir=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(O(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(O(t,Float32Array)||O(t,Float64Array)||O(t,Int32Array)||O(t,Uint32Array)||O(t,Uint8Array)||O(t,Uint16Array)||O(t,Int16Array)||O(t,Int8Array)||O(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(O(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:n7(t)};else if(O(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(O(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(O(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(O(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(ii(t,r)||(void 0===t?"undefined":A(t))==="object")return{rr_type:t.constructor.name,index:it(t,r,n)};return t}(e,t,r)})},ii=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 O(e,t[r])})};function io(e,t,r,n){var i=[];try{var o=nn(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(!nk(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"===A(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")}
2return function(){i.forEach(function(e){return e()})}}function is(e,t,r,n,i,o){for(var s,a=[],c=Object.getOwnPropertyNames(e),u=D(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=nn(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(it(l,o,this),"tagName"in this.canvas&&!nk(this.canvas,n,i,!0)){var h=ir(a,o,this);r(this.canvas,{type:t,property:c,args:h})}return l}});a.push(u)}catch(n){a.push(nm(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var ia="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
2hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ic="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(ia),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function iu(e){var t;try{if(!(t=ic&&(window.URL||window.webkitURL).createObjectURL(ic)))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,"+ia,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var il=function(){function e(e){var t=this;U(this,"pendingCanvasMutations",new Map),U(this,"rafStamps",{latestId:0,invokeId:null}),U(this,"mirror"),U(this,"mutationCb"),U(this,"resetObservers"),U(this,"frozen",!1),U(this,"locked",!1),U(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=io(t,r,n,!0),c=new Map,u=new iu;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:nL["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){nk(t,r,n,!0)||e.push(t)}),e},f=function(e){if(h&&e-h<l){o=requestAnimationFrame(f);return}
2h=e,p().forEach(k(function(e){var t,r,n,o;return L(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=io(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=D(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=nn(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 nk(this.canvas,r,n,!0)||setTimeout(function(){var r=ir(c,t,o);e(o.canvas,{type:nL["2D"],property:s,args:r})},0),i.apply(this,c)}});o.push(a)}catch(r){var c=nm(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nL["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(is(e.WebGLRenderingContext.prototype,nL.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(is(e.WebGL2RenderingContext.prototype,nL.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,M(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),ih=function(){function e(e){U(this,"trackedLinkElements",new WeakSet),U(this,"mutationCb"),U(this,"adoptedStyleSheetCb"),U(this,"styleMirror",new nO),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=D(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:en(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.trackStylesheetInLinkElement=function(e){},e}(),ip=function(){function e(){U(this,"nodeMap",new WeakMap),U(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}(),id=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var ig=document.createElement("iframe");document.body.appendChild(ig),Array.from=(null==(ij=ig.contentWindow)?void 0:ij.Array.from)||Array.from,document.body.removeChild(ig)}}catch(e){console.debug("Unable to override Array.from",e)}var im=new ei;function iv(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,I=e.sampling,E=void 0===I?{}:I,O=e.dataURLOptions,M=void 0===O?{}:O,R=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,P=e.recordCanvas,L=void 0!==P&&P,N=e.recordCrossOriginIframes,F=void 0!==N&&N,U=e.recordAfter,j=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,B=e.userTriggeredOnInput,q=void 0!==B&&B,z=e.collectFonts,V=void 0!==z&&z,W=e.inlineImages,$=void 0!==W&&W,G=e.plugins,H=e.keepIframeSrcFn,Y=void 0===H?function(){return!1}:H,Z=e.ignoreCSSAttributes,J=void 0===Z?new Set([]):Z;i4=e.errorHandler;var X=!F||window.parent===window,K=!1;if(!X)try{window.parent.document&&(K=!1)}catch(e){K=!0}if(X&&!t)throw Error("emit function is required");if(!X&&!K)return function(){};void 0!==R&&void 0===E.mousemove&&(E.mousemove=R),im.reset();var Q=!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},ee=!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===en&&(en=window),"NodeList"in en&&!en.NodeList.prototype.forEach&&(en.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in en&&!en.DOMTokenList.prototype.forEach&&(en.DOMTokenList.prototype.forEach=Array.prototype.forEach);var et=0,er=function(e){for(var t,r=D(G||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!K&&(e=C(e)),e};i9=function(e,i){var o;if(e.timestamp=nv(),(null==(o=n$[0])?void 0:o.isFrozen())&&e.type!==nA.FullSnapshot&&(e.type!==nA.IncrementalSnapshot||e.data.source!==nT.Mutation)&&n$.forEach(function(e){return e.unfreeze()}),X)null==t||t(er(e),i);else if(K){var s={type:"rrweb",event:er(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(e.type===nA.FullSnapshot)eo=e,et=0;else if(e.type===nA.IncrementalSnapshot){if(e.data.source===nT.Mutation&&e.data.isAttachIframe)return;et++;var a=n&&et>=n,c=r&&e.timestamp-eo.timestamp>r;(a||c)&&i5(!0)}};for(var en,eo,es,ea=function(e){i9({type:nA.IncrementalSnapshot,data:x({source:nT.Mutation},e)})},ec=function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.Scroll},e)})},eu=function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.CanvasMutation},e)})},el=new ih({mutationCb:ea,adoptedStyleSheetCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.AdoptedStyleSheet},e)})}}),eh=new n4({mirror:im,mutationCb:ea,stylesheetManager:el,recordCrossOriginIframes:F,wrappedEmit:i9}),ep=D(G||[]);!(es=ep()).done;){var ef=es.value;ef.getMirror&&ef.getMirror({nodeMirror:im,crossOriginIframeMirror:eh.crossOriginIframeMirror,crossOriginIframeStyleMirror:eh.crossOriginIframeStyleMirror})}var ed=new ip;i6=new il({recordCanvas:L,mutationCb:eu,win:window,blockClass:o,blockSelector:a,mirror:im,s
2ampling:E.canvas,dataURLOptions:M});var eg=new n9({mutationCb:ea,scrollCb:ec,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:M,maskTextFn:k,maskInputFn:w,recordCanvas:L,inlineImages:$,sampling:E,slimDOMOptions:ee,iframeManager:eh,stylesheetManager:el,canvasManager:i6,keepIframeSrcFn:Y,processedNodeManager:ed},mirror:im});i5=function(e){if(void 0===e&&(e=!1),T){i9({type:nA.Meta,data:{href:window.location.href,width:nb(),height:n_()}},e),el.reset(),eg.init(),n$.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,E,O,R,A,P,D=(t=document,i=void 0===(n=(r={mirror:im,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:w,slimDOM:ee,dataURLOptions:M,recordCanvas:L,inlineImages:$,onSerialize:function(e){nx(e,im)&&eh.addIframe(e),nI(e,im)&&el.trackLinkElement(e),nE(e)&&eg.addShadowRoot(nh(e),document)},onIframeLoad:function(e,t){eh.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){el.attachLinkElement(e,t)},keepIframeSrcFn:Y}).mirror)?new ei: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,E=r.onSerialize,O=r.onIframeLoad,R=r.iframeLoadTimeout,A=r.onStylesheetLoad,eM(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:E,onIframeLoad:O,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(P=r.keepIframeSrcFn)?function(){return!1}:P,newlyAddedElement:!1}));if(!D)return console.warn("Failed to snapshot the document");i9({type:nA.FullSnapshot,data:{node:D,initialOffset:ny(window)}},e),n$.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&el.adoptStyleSheets(document.adoptedStyleSheets,im.getId(document))}};try{var em=[],ev=function(e){var t;return nW(n0)({mutationCb:ea,mousemoveCb:function(e,t){return i9({type:nA.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.MouseInteraction},e)})},scrollCb:ec,viewportResizeCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.ViewportResize},e)})},inputCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.Input},e)})},mediaInteractionCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.MediaInteraction},e)})},styleSheetRuleCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.StyleSheetRule},e)})},styleDeclarationCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.StyleDeclaration},e)})},canvasMutationCb:eu,fontCb:function(e){return i9({type:nA.IncrementalSnapshot,data:x({source:nT.Font},e)})},selectionCb:function(e){i9({type:nA.IncrementalSnapshot,data:x({source:nT.Selection},e)})},customElementCb:function(e){i9({type:nA.IncrementalSnapshot,data:x({source:nT.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:T,recordCanvas:L,inlineImages:$,userTriggeredOnInput:q,collectFonts:V,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:Y,blockSelector:a,slimDOMOptions:ee,dataURLOptions:M,mirror:im,iframeManager:eh,stylesheetManager:el,shadowDomManager:eg,processedNodeManager:ed,canvasManager:i6,ignoreCSSAttributes:J,plugins:(null==(t=null==G?void 0:G.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return i9({type:nA.Plugin,data:{plugin:e.name,payload:t}}
2)}}}))||[]},S)};eh.addLoadListener(function(e){try{em.push(ev(e.contentDocument))}catch(e){console.warn(e)}});var ey=function(){i5(),em.push(ev(document)),id=!0};return"interactive"===document.readyState||"complete"===document.readyState?ey():(em.push(np("DOMContentLoaded",function(){i9({type:nA.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&ey()})),em.push(np("load",function(){i9({type:nA.Load,data:{}}),"load"===j&&ey()},window))),function(){em.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ed.destroy(),id=!1,i4=void 0}}catch(e){console.warn(e)}}iv.addCustomEvent=function(e,t){if(!id)throw Error("please add custom event after start recording");i9({type:nA.Custom,data:{tag:e,payload:t}})},iv.freezePage=function(){n$.forEach(function(e){return e.freeze()})},iv.takeFullSnapshot=function(e){if(!id)throw Error("please take full snapshot after start recording");i5(e)},iv.mirror=im,(iF=i8||(i8={}))[iF.NotStarted=0]="NotStarted",iF[iF.Running=1]="Running",iF[iF.Stopped=2]="Stopped",iv.addCustomEvent,iv.freezePage,iv.takeFullSnapshot;var iy=Object.defineProperty,i_=function(e,t,r){var n;return n=(void 0===t?"undefined":A(t))!=="symbol"?t+"":t,n in e?iy(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ib=function(){function e(e){i_(this,"fileName"),i_(this,"functionName"),i_(this,"lineNumber"),i_(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}(),iw=/(^|@)\S+:\d+/,ik=/^\s*at .*(\S+:\d+|\(native\))/m,iS=/^(eval@)?(\[native code])?$/,iC={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ik)?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(ik)},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 ib({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(iS)},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 ib({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new ib({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 ib({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 ib({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(iw)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new ib({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function ix(e){return"[object Object]"===Object.prototype.toString.call(e)}
2function iI(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(ix(o=t)&&Object.keys(o).length>r.numOfKeysLimit||"function"==typeof o||ix(o)&&function e(t,r){if(0===r)return!0;for(var n,i=Object.keys(t),o=D(i);!(n=o()).done;){var s=n.value;if(ix(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":A(t))==="bigint")return t.toString()+"n";if(O(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 O(t,Node)?O(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:O(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var iE={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function iO(e,t,r){var n=r?Object.assign({},iE,r):iE,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:iC.parse(i).map(function(e){return e.toString()}),payload:[iI(r,n.stringifyOptions)]})};t.addEventListener("error",c),a.push(function(){t.removeEventListener("error",c)});var u=function(t){var r,i;O(t.reason,Error)?i=[iI("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[iI("Uncaught (in promise)",n.stringifyOptions),iI(t.reason,n.stringifyOptions)]),e({level:"error",trace:iC.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=D(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=iC.parse(Error()).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return iI(e,n.stringifyOptions)});++o<n.lengthThreshold?e({level:r,trace:l,payload:h}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[iI("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 iM,iR,iA,iT,iP,iD,iL,iN,iF,iU,ij,iB,iq,iz,iV,iW,i$,iG,iH,iY,iZ,iJ,iX,iK,iQ,i0,i1,i2,i3,i4,i9,i5,i6,i8,i7,oe,ot,or=iU.setImmediate,on=Object.prototype.toString,oi=void 0!==or?function(e){return or(e)}:setTimeout;try{Object.defineProperty({},"x",{}),i7=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){i7=function(e,t,r){return e[t]=r,e}}function oo(e,t){ot.add(e,t),oe||(oe=oi(ot.drain))}function os(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function oa(){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=os(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 oc(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=os(e))?oo(function(){var n=new oh(r);try{t.call(e,function(){oc.apply(n,arguments)},function(){ou.apply(n,arguments)})}catch(e){ou.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&oo(oa,r))}catch(e){ou.call(new oh(r),e)}}}function ou(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&oo(oa,t))}function ol(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 oh(e){this.def=e,this.triggered=!1}function op(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function of(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 op(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&&oo(oa,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){oc.call(t,e)},function(e){ou.call(t,e)})}catch(e){ou.call(t,e)}}ot=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=oe=void 0;r;)r.fn.call(r.self),r=r.next}}}();var od=i7({},"constructor",of,!1);of.prototype=od,i7(od,"__NPO__",0,!1),i7(of,"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)})}),i7(of,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),i7(of,"all",function(e){var t=this;return"[object Array]"!==on.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;ol(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),i7(of,"race",function(e){var t=this;return"[object Array]"!==on.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");ol(t,e,function(e,t){r(t)},n)})}),d="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:of;var og={DEBUG:!1,LIB_VERSION:"2.73.0"},om=Array.prototype,ov=Function.prototype,oy=Object.prototype,o_=om.slice,ob=oy.toString,ow=oy.hasOwnProperty,ok=iU.console,oS=iU.navigator,oC=iU.document,ox=iU.opera,oI=iU.screen,oE=oS.userAgent,oO=ov.bind,oM=om.forEach,oR=om.indexOf,oA=om.map,oT=Array.isArray,oP={},oD={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},oL={log:function(){if(og.DEBUG&&!oD.isUndefined(ok)&&ok)try{ok.log.a
2pply(ok,arguments)}catch(e){oD.each(arguments,function(e){ok.log(e)})}},warn:function(){if(og.DEBUG&&!oD.isUndefined(ok)&&ok){var e=["Mixpanel warning:"].concat(oD.toArray(arguments));try{ok.warn.apply(ok,e)}catch(t){oD.each(e,function(e){ok.warn(e)})}}},error:function(){if(og.DEBUG&&!oD.isUndefined(ok)&&ok){var e=["Mixpanel error:"].concat(oD.toArray(arguments));try{ok.error.apply(ok,e)}catch(t){oD.each(e,function(e){ok.error(e)})}}},critical:function(){if(!oD.isUndefined(ok)&&ok){var e=["Mixpanel error:"].concat(oD.toArray(arguments));try{ok.error.apply(ok,e)}catch(t){oD.each(e,function(e){ok.error(e)})}}}},oN=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(oL,arguments)}},oF=function(e){return{log:oN(oL.log,e),error:oN(oL.error,e),critical:oN(oL.critical,e)}},oU=function(e){return function(){try{return e.apply(this,arguments)}catch(e){oL.critical("Implementation error. Please turn on debug and contact [email protected]."),og.DEBUG&&oL.critical(e)}}},oj=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=oU(t[r]))};oD.bind=function(e,t){var r,n;if(oO&&e.bind===oO)return oO.apply(e,o_.call(arguments,1));if(!oD.isFunction(e))throw TypeError();return r=o_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(o_.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(o_.call(arguments)));return Object(s)===s?s:o}},oD.each=function(e,t,r){if(null!=e){if(oM&&e.forEach===oM)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)===oP)return}else for(var o in e)if(ow.call(e,o)&&t.call(r,e[o],o,e)===oP)return}},oD.extend=function(e){return oD.each(o_.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},oD.isArray=oT||function(e){return"[object Array]"===ob.call(e)},oD.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},oD.isArguments=function(e){return!!(e&&ow.call(e,"callee"))},oD.toArray=function(e){return e?e.toArray?e.toArray():oD.isArray(e)||oD.isArguments(e)?o_.call(e):oD.values(e):[]},oD.map=function(e,t,r){if(oA&&e.map===oA)return e.map(t,r);var n=[];return oD.each(e,function(e){n.push(t.call(r,e))}),n},oD.keys=function(e){var t=[];return null===e||oD.each(e,function(e,r){t[t.length]=r}),t},oD.values=function(e){var t=[];return null===e||oD.each(e,function(e){t[t.length]=e}),t},oD.include=function(e,t){var r=!1;return null===e?r:oR&&e.indexOf===oR?-1!=e.indexOf(t):(oD.each(e,function(e){if(r||(r=e===t))return oP}),r)},oD.includes=function(e,t){return -1!==e.indexOf(t)},oD.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},oD.isObject=function(e){return e===Object(e)&&!oD.isArray(e)},oD.isEmptyObject=function(e){if(oD.isObject(e)){for(var t in e)if(ow.call(e,t))return!1;return!0}return!1},oD.isUndefined=function(e){return void 0===e},oD.isString=function(e){return"[object String]"==ob.call(e)},oD.isDate=function(e){return"[object Date]"==ob.call(e)},oD.isNumber=function(e){return"[object Number]"==ob.call(e)},oD.isElement=function(e){return!!(e&&1===e.nodeType)},oD.encodeDates=function(e){return oD.each(e,function(t,r){oD.isDate(t)?e[r]=oD.formatDate(t):oD.isObject(t)&&(e[r]=oD.encodeDates(t))}),e},oD.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},oD.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())},oD.strip_empty_properties=function(e){var t={};return oD.each(e,function(e,r){oD.isString(e)&&e.length>0&&(t[r]=e)}),t},oD.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):oD.isArray(e)?(r=[],oD.each(e,function(e){r.push(oD.truncate(e,t))})):oD.isObject(e)?(r={},oD.each(e,function(e,n){r[n]=oD.truncate(e,t)})):r=e,r},oD.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";
2if(i+=" ",l=[],"[object Array]"===ob.apply(h)){for(c=h.length,o=0;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)ow.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+"'"),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()}},oD.JSONDecode=function(e){var o;return n=e,t=0,r=" ",o=i(),l(),r&&s("Syntax error"),o},oD.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",h=[];if(!e)return e;e=oD.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},oD.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;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},oD.UUID=function(){try{return iU.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]="-",oD.map(e,function(e){return e.toString(16)}).join("")}};var oB=["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"];oD.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<oB.length;t++)if(-1!==e.indexOf(oB[t]))return!0;return!1},oD.HTTPBuildQuery=function(e,t){var r,n,i=[];return oD.isUndefined(t)&&(t="&"),oD.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},oD.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){oL.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},oD.cookie={get:function(e){for(var t=e+"=",r=oC.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=oD.JSONDecode(oD.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=oQ(oC.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"),oC.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=oQ(oC.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 oC.cookie=p,p},remove:function(e,t,r){oD.cookie.set(e,"",-1,t,!1,!1,r)}};var oq=function(e){var t=!0;
2try{var r="__mplss_"+oJ(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},oz=null,oV=function(e,t){return null===oz||t?oz=oq(e||iU.localStorage):oz},oW=null;function o$(e,t,r){var n=function(e){oL.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||oL.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 oD.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)}}}}oD.localStorage=o$(iU.localStorage,"localStorage",oV),oD.sessionStorage=o$(iU.sessionStorage,"sessionStorage",function(e,t){return null===oW||t?oW=oq(e||iU.sessionStorage):oW}),oD.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 oL.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(iU.event)){var r,n,i=!0;return oD.isFunction(c)&&(r=c(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var oG=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');oD.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!oC.getElementsByTagName)return[];var n=r.split(" "),i=[oC];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=oC.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(v="*"==b?e(i[g]):i[g].getElementsByTagName(b),m=0;m<v.length;m++)p[f++]=v[m];for(g=0,i=[],y=0;g<p.length;g++)p[g].className&&oD.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(i[y++]=p[g]);continue}var u=l.match(oG);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(v="*"==b?e(i[g]):i[g].getElementsByTagName(b),m=0;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(b=l,p=[],f=0,g=0;g<i.length;g++)for(v=i[g].getElementsByTagName(b),m=0;m<v.length;m++)p[f++]=v[m];i=p}return i}return function(e){return oD.isElement(e)?[e]:oD.isObject(e)&&!oD.isUndefined(e.length)?e:r.call(this,e)}}();var oH=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],oY=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];oD.info={campaignParams:function(e){var t="",r={};return oD.each(oH,function(n){(t=oD.getQueryParam(oC.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return oD.each(oY,function(r){(e=oD.getQueryParam(oC.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return oD.extend(oD.info.campaignParams(),oD.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=oD.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=oD.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||oD.includes(e," OPR/"))return oD.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(oD.includes(e,"IEMobile")||oD.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(oD.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(oD.includes(e,"Edge")||oD.includes(e,"Edg/"))return"Microsoft Edge";else if(oD.includes(e,"FBIOS"))return"Facebook Mobile";else if(oD.includes(e,"Whale/"))return"Whale Browser";else if(oD.includes(e,"Chrome"))return"Chrome";else if(oD.includes(e,"CriOS"))return"Chrome iOS";else if(oD.includes(e,"UCWEB")||oD.includes(e,"UCBrowser"))return"UC Browser";else if(oD.includes(e,"FxiOS"))return"Firefox iOS";else if(oD.includes(t,"Apple"))return oD.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(oD.includes(e,"Android"))return"Android Mobile";else if(oD.includes(e,"Konqueror"))return"Konqueror";else if(oD.includes(e,"Firefox"))return"Firefox";else if(oD.includes(e,"MSIE")||oD.includes(e,"Trident/"))return"Internet Explorer";else if(oD.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+)?)/}[oD.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(oE))return/Phone/.test(oE)||/WPDesktop/.test(oE)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(oE))return"iOS";if(/Android/.test(oE))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(oE))return"BlackBerry";if(/Mac/i.test(oE))return"Mac OS X";else if(/Linux/.test(oE))return"Linux";else if(/CrOS/.test(oE))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 iU.location.href},properties:function(e){return"object"!=typeof e&&(e={}),oD.extend(oD.strip_empty_properties({$os:oD.info.os(),$browser:oD.info.browser(oE,oS.vendor,ox),$referrer:oC.referrer,$referring_domain:oD.info.referringDomain(oC.referrer),$device:oD.info.device(oE)}),{$current_url:oD.info.currentUrl(),$browser_version:oD.info.browserVersion(oE,oS.vendor,ox),$screen_height:oI.height,$screen_width:oI.width,mp_lib:"web",$lib_version:og.LIB_VERSION,$insert_id:oJ(),time:oD.timestamp()/1e3},oD.strip_empty_properties(e))},people_properties:function(){return oD.extend(oD.strip_empty_properties({$os:oD.info.os(),$browser:oD.info.browser(oE,oS.vendor,ox)}),{$browser_version:oD.info.browserVersion(oE,oS.vendor,ox)})},mpPageViewProperties:function(){return oD.strip_empty_properties({current_page_title:oC.title,current_domain:iU.location.hostname,current_url_path:iU.location.pathname,current_url_protocol:iU.location.protocol,current_url_search:iU.location.search})}};var oZ=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new d(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)}
2)),r}},oJ=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},oX=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,oK=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,oQ=function(e){var t=oK,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=oX);var i=e.match(t);return i?i[0]:""},o0=function(){var e=iU.navigator.onLine;return oD.isUndefined(e)||e},o1=function(){},o2=null,o3=null;"u">typeof JSON&&(o2=JSON.stringify,o3=JSON.parse),o2=o2||oD.JSONEncode,o3=o3||oD.JSONDecode;var o4=function(e,t,r){if(!iU.CompressionStream)return!1;var n=oD.info.browser(e,t,r),i=oD.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};oD.info=oD.info,oD.info.browser=oD.info.browser,oD.info.browserVersion=oD.info.browserVersion,oD.info.device=oD.info.device,oD.info.properties=oD.info.properties,oD.isBlockedUA=oD.isBlockedUA,oD.isEmptyObject=oD.isEmptyObject,oD.isObject=oD.isObject,oD.JSONDecode=oD.JSONDecode,oD.JSONEncode=oD.JSONEncode,oD.toArray=oD.toArray,oD.NPO=of;var o9="mixpanelRecordingEvents",o5="mixpanelRecordingRegistry",o6=[o9,o5],o8=function(e){this.dbPromise=null,this.storeName=e};function o7(e,t){sl(!0,e,t)}function se(e,t){sl(!1,e,t)}function st(e,t){return"1"===su(e,t)}function sr(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||iU,r=t.navigator||{},n=!1;return oD.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){oD.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return oL.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"===su(e,t);return r&&oL.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function sn(e){return sh(e,function(e){return this.get_config(e)})}function si(e){return sh(e,function(e){return this._get_config(e)})}function so(e){return sh(e,function(e){return this._get_config(e)})}function ss(e,t){sa(t=t||{}).remove(sc(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function sa(e){return"localStorage"===(e=e||{}).persistenceType?oD.localStorage:oD.cookie}function sc(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function su(e,t){return sa(t).get(sc(e,t))}function sl(e,t,r){oD.isString(t)&&t.length?(sa(r=r||{}).set(sc(t,r),+!!e,oD.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})):oL.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function sh(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=sr(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){oL.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)}}o8.prototype._openDb=function(){return new d(function(e,t){var r=iU.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;o6.forEach(function(e){t.createObjectStore(e)})}})},o8.prototype.init=function(){return iU.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof iU.IDBDatabase?d.resolve():d.reject(e)})):d.reject("indexedDB is not supported in this browser")},o8.prototype.isInitialized=function(){return!!this.dbPromise},o8.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new d(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)):d.reject(e)}).bind(this))},o8.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},o8.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},o8.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},o8.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var sp=oF("lock"),sf=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||iU.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||d};sf.prototype.withLock=function(e,t){return new this.promiseImpl(oD.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){sp.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||(oV(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(oV(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var sd=function(e){this.storage=e||iU.localStorage};sd.prototype.init=function(){return d.resolve()},sd.prototype.isInitialized=function(){return!0},sd.prototype.setItem=function(e,t){return new d(oD.bind(function(r,n){try{this.storage.setItem(e,o2(t))}catch(e){n(e)}r()},this))},sd.prototype.getItem=function(e){return new d(oD.bind(function(t,r){var n;try{n=o3(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},sd.prototype.removeItem=function(e){return new d(oD.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var sg=oF("batch"),sm=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new sd,this.lock=new sf(e,{storage:t.sharedLockStorage||iU.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||oD.bind(sg.error,sg),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=oZ(oD.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=oD.bind(function(e){return this._enqueuePersisted([e])},this)};sm.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?d.resolve():this.queueStorage.init(
2).then(oD.bind(function(){this.initialized=!0},this)).catch(oD.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},sm.prototype.enqueue=function(e,t){var r={id:oJ(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),d.resolve(!0))},sm.prototype._enqueuePersisted=function(e){var t=oD.bind(function(){return this.ensureInit().then(oD.bind(function(){return this.readFromStorage()},this)).then(oD.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(oD.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(oD.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(oD.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},sm.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(oD.bind(function(){return this.readFromStorage()},this)).then(oD.bind(function(r){if(r.length){var n={};oD.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)):d.resolve(t)};var sv=function(e,t){var r=[];return oD.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};sm.prototype.removeItemsByID=function(e){var t={};if(oD.each(e,function(e){t[e]=!0}),this.memQueue=sv(this.memQueue,t),!this.usePersistence)return d.resolve(!0);var r=oD.bind(function(){return this.ensureInit().then(oD.bind(function(){return this.readFromStorage()},this)).then(oD.bind(function(e){return e=sv(e,t),this.saveToStorage(e)},this)).then(oD.bind(function(){return this.readFromStorage()},this)).then(oD.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(oD.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(oD.bind(function(e){return this.reportError("Error acquiring storage lock",e),!oV(this.lock.storage,!0)&&r().then(oD.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(oD.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var sy=function(e,t){var r=[];return oD.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};sm.prototype.updatePayloads=function(e){return(this.memQueue=sy(this.memQueue,e),this.usePersistence)?this.lock.withLock(oD.bind(function(){return this.ensureInit().then(oD.bind(function(){return this.readFromStorage()},this)).then(oD.bind(function(t){return t=sy(t,e),this.saveToStorage(t)},this)).catch(oD.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(oD.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):d.resolve(!0)},sm.prototype.readFromStorage=function(){return this.ensureInit().then(oD.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(oD.bind(function(e){return e&&!oD.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(oD.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},sm.prototype.saveToStorage=function(e){return this.ensureInit().then(oD.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(oD.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},sm.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(oD.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):d.resolve()};var s_=oF("batch"),sb=function(e,t){this.errorReporter=t.errorReporter,this.queue=new sm(e,{errorReporter:oD.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};sb.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},sb.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},sb.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},sb.prototype.clear=function(){return this.queue.clear()},sb.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},sb.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},sb.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(oD.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},sb.prototype.sendRequestPromise=function(e,t){return new d(oD.bind(function(r){this.sendRequest(e,t,r)},this))},sb.prototype.flush=function(e){if(this.requestInProgress)return s_.log("Flush: Request already in progress"),d.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(oD.bind(function(i){var o=i.length===n,s=[],a={};if(oD.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=oD.extend({},t.properties,{mp_sent_by_lib_version:og.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(),d.resolve();var c=oD.bind(function(){return this.queue.removeItemsByID(oD.map(i,function(e){return e.id})).then(oD.bind(function(e){return(oD.each(i,oD.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(),d.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),d.resolve())},this))},this),u=oD.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(oD.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(oD.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!o0()||"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),d.resolve()}else{if(!oD.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(),d.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"),s_.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(oD.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},sb.prototype.reportError=function(e,t){if(s_.error.apply(s_.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){s_.error(e)}};var sw=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},sk=oF("recorder"),sS=iU.CompressionStream,sC={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},sx=new Set([nT.MouseMove,nT.MouseInteraction,nT.Scroll,nT.ViewportResize,nT.Input,nT.TouchMove,nT.MediaInteraction,nT.Drag,nT.Selection]),sI=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||o1,this._onMaxLengthReached=e.onMaxLengthReached||o1,this._onBatchSent=e.onBatchSent||o1,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=oV(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new o8(o9),this.batcher=new sb(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:sC,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};sI.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},sI.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init(
2).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))},sI.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},sI.prototype.get_config=function(e){return this.getConfig(e)},sI.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void sk.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,sk.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=oD.info.currentUrl(),this.replayStartUrl=oD.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t,r=(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);r();var n=this.getConfig("record_block_selector");(""===n||null===n)&&(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(e.type===nA.IncrementalSnapshot&&sx.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),r()),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:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(t={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:iO,options:t})]:[]})}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 i=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)},sI.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},sI.prototype.isRrwebStopped=function(){return null===this._stopRecording},sI.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)},sI.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}},sI.deserialize=function(e,t){return new sI(oD.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}))},sI.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=oD.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");iU.fetch(o+"/"+this.getConfig("api_routes").record+"?"+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})})},sI.prototype._flushEvents=sn(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===nA.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:og.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()),o4(oE,oS.vendor,ox)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new sS("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))}}),sI.prototype.reportError=function(e,t){sk.error.apply(sk.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){sk.error(e)}},sI.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},sI.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(sk.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e};
2var sE=function(e){this.idb=new o8(o5),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};sE.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},sE.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},sE.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return d.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."),d.resolve())},sE.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 sw(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):d.resolve(null)},sE.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},sE.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))},sE.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):d.resolve()},sE.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 sw(e)}).map((function(e){return sI.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 d.all(t)}).bind(this)).catch(this.handleError.bind(this)):d.resolve([])};var sO=oF("recorder"),sM=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||iv,this.sharedLockStorage=r,this.recordingRegistry=new sE({mixpanelInstance:this.mixpanelInstance,errorReporter:sO.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};sM.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void sO.log("Recording already in progress, skipping startRecording.");var t=(function(){sO.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){sO.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:oD.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=sI.deserialize(e.activeSerializedRecording,i):this.activeRecording=new sI(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},sM.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))},sM.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},sM.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return d.resolve()},sM.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),d.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(sO.log("No resumable recording found."),null)}).bind(this))},sM.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},sM.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(sM.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),iU.__mp_recorder=sM;
2var sR="change",sA="click",sT="hashchange",sP="load",sD="mp_locationchange",sL="popstate",sN="scrollend",sF="scroll",sU="submit",sj="visibilitychange",sB=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],sq=["mp-include"],sz=["mp-no-track"],sV=sz.concat(["mp-sensitive"]),sW=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],s$={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},sG={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},sH={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},sY=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],sZ=oF("autocapture");function sJ(e){for(var t={},r=sX(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function sX(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function sK(e,t,r,n,i,o){var s={$classes:sX(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),s9(e,t,i,o)&&oD.each(sW.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);s5(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&&!s2(e))return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function sQ(e,t,r,n){var i="";return s9(e,t,r,n)&&e.childNodes&&e.childNodes.length&&oD.each(e.childNodes,function(e){s4(e)&&e.textContent&&(i+=oD.trim(e.textContent).split(/(\s+)/).filter(s5).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),oD.trim(i)}function s0(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return sZ.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){sZ.critical("Error while checking selector: "+o,e)}}return!1}function s1(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return sZ.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){sZ.critical("Error while checking selector: "+o,e)}}var s=sJ(e);for(i=0;i<sz.length;i++)if(s[sz[i]])return!0;return!1}function s2(e){return e&&1===e.nodeType}function s3(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function s4(e){return e&&3===e.nodeType}function s9(e,t,r,n){if(!s0(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!s3(o,"body");o=o.parentNode){var s=sJ(o);for(i=0;i<sV.length;i++)if(s[sV[i]])return!1}var a=sJ(e);for(i=0;i<sq.length;i++)if(a[sq[i]])return!0;if(s3(e,"input")||s3(e,"select")||s3(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}var u=e.name||e.id||"";return!("string"==typeof u&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(u.replace(/[^a-zA-Z0-9]/g,"")))&&!0}function s5(e){if(null===e||oD.isUndefined(e))return!1;if("string"==typeof e&&(e=oD.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})|((?: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 s6(e){var t="onscrollend"in iU,r=oU(e),n=sN;if(!t){var i=null;r=oU(function(){clearTimeout(i),i=setTimeout(e,100)}),n=sF}return{listener:r,eventType:n}}function s8(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<sY.length;t++)if(e.hasAttribute(sY[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&s$[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function s7(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(sG[t])return!0;
2if(s8(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(s8(r))return!1;if(r.getRootNode&&r.getRootNode()!==oC){var i=r.getRootNode();if(i.host&&s8(i.host))return!1}r=r.parentElement,n++}return!!sH[t]}function ae(e){return"composedPath"in e?e.composedPath():[]}function at(e){var t=ae(e);return t&&t.length>0?t[0]:e.target||e.srcElement}function ar(){this.clicks=[]}function an(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}ar.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=at(e);if(!o||s7(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},an.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return at(e)},an.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=ae(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},an.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){sZ.critical("Error while observing shadow root",e)}}},an.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void sZ.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},an.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){sZ.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var ai=[sR,"input",sU,"select","toggle"],ao=[sN],as=[sT],aa={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function ac(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}ac.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||s7(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},ac.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},ac.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},ac.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},ac.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},ac.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},ac.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)},ac.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;ai.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}})}),as.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}
2),ao.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,aa)}catch(e){sZ.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new an(function(){e.recordChangeEvent()},aa),this.shadowDOMObserver.start()}catch(e){sZ.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},ac.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){sZ.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){sZ.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){sZ.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var au="autocapture",al="full-url",ah="allow_selectors",ap="allow_url_regexes",af="block_attrs",ad="block_element_callback",ag="block_selectors",am="block_url_regexes",av="capture_extra_attrs",ay="capture_text_content",a_="scroll_capture_all",ab="scroll_depth_percent_checkpoints",aw="click",ak="dead_click",aS="input",aC="pageview",ax="rage_click",aI="scroll",aE="page_leave",aO="submit",aM={};aM[ah]=[],aM[ap]=[],aM[af]=[],aM[ad]=null,aM[ag]=[],aM[am]=[],aM[av]=[],aM[ay]=!1,aM[a_]=!1,aM[ab]=[25,50,75,100],aM[aw]=!0,aM[ak]=!0,aM[aS]=!0,aM[aC]=al,aM[ax]=!0,aM[aI]=!0,aM[aE]=!1,aM[aO]=!0;var aR={$mp_autocapture:!0},aA="$mp_click",aT="$mp_dead_click",aP="$mp_rage_click",aD=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};aD.prototype.init=function(){!function(){try{return!!oC.createElement("div").matches}catch(e){return!1}}()?sZ.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())},aD.prototype.getFullConfig=function(){var e=this.mp.get_config(au);return e?oD.isObject(e)?oD.extend({},aM,e):aM:{}},aD.prototype.getConfig=function(e){return this.getFullConfig()[e]},aD.prototype.currentUrlBlocked=function(){var e,t=oD.info.currentUrl(),r=this.getConfig(ap)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(e){return sZ.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(am)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return sZ.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},aD.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(au)?this.getConfig(aC):this.mp.get_config("track_pageview")},aD.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===aA&&!this.getConfig(aw)||t===aP&&!this._getClickTrackingConfig(ax)||t===aT&&!this._getClickTrackingConfig(ak)),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.capturedForHeatMap||!1,l={};oD.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(s4(p)&&(p=p.parentNode),function(e,t){if(!e||s3(e,"html")||!s2(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===sU;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===sR;return t.type===sA;case"select":case"textarea":return t.type===sR;default:return t.type===sA}}(p,e)&&s0(p,e,r,n)&&!s1(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!s3(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(oD.each(f,function(t){var i=s9(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&s5(g)&&g),s1(t,e,o,s)&&(v=!0),m.push(sK(t,e,l,c,r,n))},this),!v){var y=oC.documentElement;if(h={$event_type:e.type,$host:iU.location.host,$pathname:iU.location.pathname,$elements:m,$el_attr__href:g,$viewportHe
2ight:Math.max(y.clientHeight,iU.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,iU.innerWidth||0),$pageHeight:oC.body.offsetHeight||0,$pageWidth:oC.body.offsetWidth||0},oD.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);s5(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=sQ(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===sA&&(oD.each(sB,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(s3(i,"a")||s3(i,"button")||s3(i,"input")||s3(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=sQ(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!s0(p,e,r,n)||s1(p,e,o,s))return null;var b=sK(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,oD.extend(h,oD.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(ah),blockAttrs:this.getConfig(af),blockElementCallback:this.getConfig(ad),blockSelectors:this.getConfig(ag),captureExtraAttrs:this.getConfig(av),captureTextContent:this.getConfig(ay),capturedForHeatMap:r});n&&(oD.extend(n,aR),this.mp.track(t,n))}},aD.prototype.initPageListeners=function(){if(iU.removeEventListener(sL,this.listenerPopstate),iU.removeEventListener(sT,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(aE)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){iU.dispatchEvent(new Event(sD))},this.listenerHashchange=function(){iU.dispatchEvent(new Event(sD))},iU.addEventListener(sL,this.listenerPopstate),iU.addEventListener(sT,this.listenerHashchange);var e=iU.history.pushState;"function"==typeof e&&(iU.history.pushState=function(t,r,n){e.call(iU.history,t,r,n),iU.dispatchEvent(new Event(sD))});var t=iU.history.replaceState;"function"==typeof t&&(iU.history.replaceState=function(e,r,n){t.call(iU.history,e,r,n),iU.dispatchEvent(new Event(sD))})}},aD.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},aD.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(aE)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(oC.documentElement.clientHeight,iU.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=oD.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||oD.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(oC.documentElement.clientWidth,iU.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},aR);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},aD.prototype._initScrollDepthTracking=function(){if(iU.removeEventListener(sF,this.listenerScrollDepth),iU.removeEventListener(sN,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){sZ.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(oC.documentElement.clientHeight,iU.innerHeight||0);var e=s6((function(){if(!this.currentUrlBlocked()){var e=Math.max(oC.documentElement.clientHeight,iU.innerHeight||0)+iU.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=oC.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,iU.addEventListener(e.eventType,this.listenerScrollDepth)}},aD.prototype.initClickTracking=function(){iU.removeEventListener(sA,this.listenerClick),(this.getConfig(aw)||this.mp.get_config("record_heatmap_data"))&&(sZ.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(aw)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,aA)}).bind(this),iU.addEventListener(sA,this.listenerClick))},aD.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(ak)||this.mp.get_config("record_heatmap_data")?(sZ.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new ac((function(e){this.trackDomEvent(e,aT)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(ak);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),iU.addEventListener(sA,this.listenerDeadClick))):this.stopDeadClickTracking()},aD.prototype.initInputTracking=function(){iU.removeEventListener(sR,this.listenerChange),this.getConfig(aS)&&(sZ.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(aS)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),iU.addEventListener(sR,this.listenerChange))},aD.prototype.initPageviewTracking=function(){if(iU.removeEventListener(sD,this.listenerLocationchange),this.pageviewTrackingConfig()){
2sZ.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(aR)),t&&(e=oD.info.currentUrl()),this.listenerLocationchange=oU((function(){if(!this.currentUrlBlocked()){var t=oD.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===al?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(aR)&&(e=t),n&&(this.lastScrollCheckpoint=0,sZ.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),iU.addEventListener(sD,this.listenerLocationchange)}},aD.prototype.initRageClickTracking=function(){iU.removeEventListener(sA,this.listenerRageClick),(this._getClickTrackingConfig(ax)||this.mp.get_config("record_heatmap_data"))&&(sZ.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new ar),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(ax);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,aP)}).bind(this),iU.addEventListener(sA,this.listenerRageClick))},aD.prototype.initScrollTracking=function(){if(iU.removeEventListener(sN,this.listenerScroll),iU.removeEventListener(sF,this.listenerScroll),this.getConfig(aI)){sZ.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=s6((function(){if(this.getConfig(aI)&&!this.currentUrlBlocked()){var e=this.getConfig(a_),t=(this.getConfig(ab)||[]).slice().sort(function(e,t){return e-t}),r=iU.scrollY,n=oD.extend({$scroll_top:r},aR);try{var i=oC.body.scrollHeight,o=Math.round(r/(i-iU.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){sZ.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this));this.listenerScroll=e.listener,iU.addEventListener(e.eventType,this.listenerScroll)}},aD.prototype.initSubmitTracking=function(){iU.removeEventListener(sU,this.listenerSubmit),this.getConfig(aO)&&(sZ.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(aO)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),iU.addEventListener(sU,this.listenerSubmit))},aD.prototype.initPageLeaveTracking=function(){if(oC.removeEventListener(sj,this.listenerPageLeaveVisibilitychange),iU.removeEventListener(sD,this.listenerPageLeaveLocationchange),iU.removeEventListener(sP,this.listenerPageLoad),this.getConfig(aE)||this.mp.get_config("record_heatmap_data")){sZ.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=oD.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=oC.body.scrollHeight}).bind(this),iU.addEventListener(sP,this.listenerPageLoad),this.listenerPageLeaveLocationchange=oU((function(t){if(!this.currentUrlBlocked()){var r=oD.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(oC.documentElement.clientHeight,iU.innerHeight||0),this.previousScrollHeight=oC.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),iU.addEventListener(sD,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){oC.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),oC.addEventListener(sj,this.listenerPageLeaveVisibilitychange)}},aD.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(iU.removeEventListener(sA,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},oj(aD);var aL=oF("flags"),aN="flags",aF="context",aU={};aU[aF]={};var aj=function(e){this.fetch=iU.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};aj.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):aL.critical("Feature Flags unavailable: missing minimum required APIs")},aj.prototype.getFullConfig=function(){var e=this.getMpConfig(aN);return e?oD.isObject(e)?oD.extend({},aU,e):aU:{}},aj.prototype.getConfig=function(e){return this.getFullConfig()[e]},aj.prototype.isSystemEnabled=function(){return!!this.getMpConfig(aN)},aj.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return aL.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(aN);oD.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(aF);return r[aF]=oD.extend({},n,e),this.setMpConfig(aN,r),this.fetchFlags()},aj.prototype.areFlagsReady=function(){return this.isSystemEnabled()||aL.error("Feature Flags not enabled"),!!this.flags},aj.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r="00-"+oD.UUID().replace(/-/g,"")+"-"+oD.UUID().replace(/-/g,"").substring(0,16)+"-01";aL.log("Fetching flags for distinct ID: "+e);var n=oD.extend({distinct_id:e,device_id:t}
2,this.getConfig(aF)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",og.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(iU,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json().then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map;oD.each(t,function(e,t){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.flags=n,this._traceparent=r}).bind(this)).catch((function(e){this.markFetchComplete(),aL.error(e)}).bind(this))}).bind(this)).catch((function(e){this.markFetchComplete(),aL.error(e)}).bind(this)),this.fetchPromise},aj.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):aL.error("Fetch in progress started time not set, cannot mark fetch complete")},aj.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return aL.error(e),t}):new Promise(function(e){aL.critical("Feature Flags not initialized"),e(t)})},aj.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return aL.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(aL.log('No flag found: "'+e+'"'),t)},aj.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return aL.error(e),t})},aj.prototype.getFeatureData=function(e,t){return aL.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)},aj.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},aj.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return aL.error(e),t})},aj.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(aL.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},aj.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)}},aj.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},oj(aj),aj.prototype.are_flags_ready=aj.prototype.areFlagsReady,aj.prototype.get_variant=aj.prototype.getVariant,aj.prototype.get_variant_sync=aj.prototype.getVariantSync,aj.prototype.get_variant_value=aj.prototype.getVariantValue,aj.prototype.get_variant_value_sync=aj.prototype.getVariantValueSync,aj.prototype.is_enabled=aj.prototype.isEnabled,aj.prototype.is_enabled_sync=aj.prototype.isEnabledSync,aj.prototype.update_context=aj.prototype.updateContext,aj.prototype.get_feature_data=aj.prototype.getFeatureData;var aB=function(){};aB.prototype.create_properties=function(){},aB.prototype.event_handler=function(){},aB.prototype.after_track_handler=function(){},aB.prototype.init=function(e){return this.mp=e,this},aB.prototype.track=function(e,t,r,n){var i=this,o=oD.dom_query(e);return 0===o.length?void oL.error("The DOM query ("+e+") returned 0 elements"):(oD.each(o,function(e){oD.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)},aB.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))}},aB.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):oD.extend({},e)};var aq=function(){this.override_event="click"};oD.inherit(aq,aB),aq.prototype.create_properties=function(e,t){var r=aq.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},aq.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()},aq.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var az=function(){this.override_event="submit"};oD.inherit(az,aB),az.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},az.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var aV="$set",aW="$set_once",a$="$unset",aG="$add",aH="$append",aY="$union",aZ="$remove",aJ={set_action:function(e,t){var r={},n={};return oD.isObject(e)?oD.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[aV]=n,r},unset_action:function(e){var t={},r=[];return oD.isArray(e)||(e=[e]),oD.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[a$]=r,t},set_once_action:function(e,t){var r={},n={};return oD.isObject(e)?oD.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[aW]=n,r},union_action:function(e,t){var r={},n={};return oD.isObject(e)?oD.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=oD.isArray(e)?e:[e])},this):n[e]=oD.isArray(t)?t:[t],r[aY]=n,r},append_action:function(e,t){var r={},n={};return oD.isObject(e)?oD.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[aH]=n,r},remove_action:function(e,t){var r={},n={};return oD.isObject(e)?oD.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[aZ]=n,r},delete_action:function(){var e={};return e.$delete="",e}},aX=function(){};oD.extend(aX.prototype,aJ),aX.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},aX.prototype.set=so(function(e,t,r){var n=this.set_action(e,t);return oD.isObject(e)&&(r=t),this._send_request(n,r)}),aX.prototype.set_once=so(function(e,t,r){var n=this.set_once_action(e,t);return oD.isObject(e)&&(r=t),this._send_request(n,r)}),aX.prototype.unset=so(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),aX.prototype.union=so(function(e,t,r){oD.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),aX.prototype.delete=so(function(e){var t=this.delete_action();return this._send_request(t,e)}),aX.prototype.remove=so(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),aX.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=oD.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)},aX.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},aX.prototype._get_config=function(e){return this._mixpanel.get_config(e)},aX.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},aX.prototype.remove=aX.prototype.remove,aX.prototype.set=aX.prototype.set,aX.prototype.set_once=aX.prototype.set_once,aX.prototype.union=aX.prototype.union,aX.prototype.unset=aX.prototype.unset,aX.prototype.toString=aX.prototype.toString;var aK=function(){};oD.extend(aK.prototype,aJ),aK.prototype._init=function(e){this._mixpanel=e},aK.prototype.set=si(function(e,t,r){var n=this.set_action(e,t);return oD.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[aV]=oD.extend({},oD.info.people_properties(),n[aV]),this._send_request(n,r)}),aK.prototype.set_once=si(function(e,t,r){var n=this.set_once_action(e,t);return oD.isObject(e)&&(r=t),this._send_request(n,r)}),aK.prototype.unset=si(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),aK.prototype.increment=si(function(e,t,r){var n={},i={};return oD.isObject(e)?(oD.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void oL.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(oD.isUndefined(t)&&(t=1),i[e]=t),n[aG]=i,this._send_request(n,r)}),aK.prototype.append=si(function(e,t,r){oD.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),aK.prototype.remove=si(function(e,t,r){oD.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),aK.prototype.union=si(function(e,t,r){oD.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),aK.prototype.track_charge=si(function(){oL.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),aK.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},aK.prototype.delete_user=function(){if(!this._identify_called())return void oL.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},aK.prototype.toString=function(){return this._mixpanel.toString()+".people"},aK.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=oD.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),oD.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),oD.truncate(o,255))},aK.prototype._get_config=function(e){return this._mixpanel.get_config(e)},aK.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called}
2,aK.prototype._enqueue=function(e){aV in e?this._mixpanel.persistence._add_to_people_queue(aV,e):aW in e?this._mixpanel.persistence._add_to_people_queue(aW,e):a$ in e?this._mixpanel.persistence._add_to_people_queue(a$,e):aG in e?this._mixpanel.persistence._add_to_people_queue(aG,e):aH in e?this._mixpanel.persistence._add_to_people_queue(aH,e):aZ in e?this._mixpanel.persistence._add_to_people_queue(aZ,e):aY in e?this._mixpanel.persistence._add_to_people_queue(aY,e):oL.error("Invalid call to _enqueue():",e)},aK.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=oD.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!oD.isUndefined(o)&&oD.isObject(o)&&!oD.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),oD.isUndefined(r)||r(t,n)}))},aK.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(aV,this.set,e),this._flush_one_queue(aW,this.set_once,n),this._flush_one_queue(a$,this.unset,o,function(e){return oD.keys(e)}),this._flush_one_queue(aG,this.increment,t),this._flush_one_queue(aY,this.union,i);var c=this._mixpanel.persistence.load_queue(aH);if(!oD.isUndefined(c)&&oD.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(aH,u),oD.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(aH)).pop(),a._mixpanel.persistence.save(),oD.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(aZ);if(!oD.isUndefined(p)&&oD.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(aZ,f),oD.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)f=(p=this._mixpanel.persistence.load_queue(aZ)).pop(),a._mixpanel.persistence.save(),oD.isEmptyObject(f)||a.remove(f,d)},aK.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},aK.prototype.set=aK.prototype.set,aK.prototype.set_once=aK.prototype.set_once,aK.prototype.unset=aK.prototype.unset,aK.prototype.increment=aK.prototype.increment,aK.prototype.append=aK.prototype.append,aK.prototype.remove=aK.prototype.remove,aK.prototype.union=aK.prototype.union,aK.prototype.track_charge=aK.prototype.track_charge,aK.prototype.clear_charges=aK.prototype.clear_charges,aK.prototype.delete_user=aK.prototype.delete_user,aK.prototype.toString=aK.prototype.toString;var aQ="__mps",a0="__mpso",a1="__mpus",a2="__mpa",a3="__mpap",a4="__mpr",a9="__mpu",a5="$people_distinct_id",a6="__alias",a8="__timers",a7=[aQ,a0,a1,a2,a3,a4,a9,a5,a6,a8],ce=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&&(oL.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&oD.localStorage.is_supported()?this.storage=oD.localStorage:this.storage=oD.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};ce.prototype.properties=function(){var e={};return this.load(),oD.each(this.props,function(t,r){oD.include(a7,r)||(e[r]=t)}),e},ce.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=oD.extend({},e))}},ce.prototype.upgrade=function(){var e,t;this.storage===oD.localStorage?(e=oD.cookie.parse(this.name),oD.cookie.remove(this.name),oD.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===oD.cookie&&(t=oD.localStorage.parse(this.name),oD.localStorage.remove(this.name),t&&this.register_once(t))},ce.prototype.save=function(){this.disabled||this.storage.set(this.name,o2(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ce.prototype.load_prop=function(e){return this.load(),this.props[e]},ce.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ce.prototype.clear=function(){this.remove(),this.props={}},ce.prototype.register_once=function(e,t,r){return!!oD.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),oD.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},ce.prototype.register=function(e,t){return!!oD.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),oD.extend(this.props,e),this.save(),!0)},ce.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},ce.prototype.update_search_keyword=function(e){this.register(oD.info.searchInfo(e))},ce.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:oD.info.referringDomain(e)||"$direct"},"")},ce.prototype.get_referrer_info=function(){return oD.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ce.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)},ce.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ce.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ce.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ce.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ce.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ce.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ce.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(aV),o=this._get_or_create_queue(aW),s=this._get_or_create_queue(a$),a=this._get_or_create_queue(aG),c=this._get_or_create_queue(aY),u=this._get_or_create_queue(aZ,[]),l=this._get_or_create_queue(aH,[]);r===aQ?(oD.extend(i,n),this._pop_from_people_queue(aG,n),this._pop_from_people_queue(aY,n),this._pop_from_people_queue(a$,n)):r===a0?(oD.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(a$,n)):r===a1?oD.each(n,function(e){oD.each([i,o,a,c],function(t){e in t&&delete t[e]}),oD.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===a2?(oD.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(a$,n)):r===a9?(oD.each(n,function(e,t){oD.isArray(e)&&(t in c||(c[t]=[]),oD.each(e,function(e){oD.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(a$,n)):r===a4?(u.push(n),this._pop_from_people_queue(aH,n)):r===a3&&(l.push(n),this._pop_from_people_queue(a$,n)),oL.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),oL.log(t),this.save()},ce.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];oD.isUndefined(r)||oD.each(t,function(t,n){e===aH||e===aZ?oD.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},ce.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},ce.prototype._get_queue_key=function(e){return e===aV?aQ:e===aW?a0:e===a$?a1:e===aG?a2:e===aH?a3:e===aZ?a4:e===aY?a9:void oL.error("Invalid queue:",e)},ce.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=oD.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},ce.prototype.set_event_timer=function(e,t){var r=this.load_prop(a8)||{};r[e]=t,this.props[a8]=r,this.save()},ce.prototype.remove_event_timer=function(e){var t=(this.load_prop(a8)||{})[e];return oD.isUndefined(t)||(delete this.props[a8][e],this.save()),t};var ct=function(e,t){throw Error(e+" not available in this build.")},cr="mixpanel",cn="base64",ci="$device:",co=iU.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,cs=!co&&-1===oE.indexOf("MSIE")&&-1===oE.indexOf("Mozilla"),ca=null;oS.sendBeacon&&(ca=function(){return oS.sendBeacon.apply(oS,arguments)});var cc={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},cu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:cc,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:cn,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:o1,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:o1,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
2:!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_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,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},cl=!1,ch=function(){},cp=function(e,t,r){var n,i=r===cr?m:m[r];if(i&&0===g)n=i;else{if(i&&!oD.isArray(i))return void oL.error("You have already initialized "+r);n=new ch}if(n._cached_groups={},n._init(e,t,r),n.people=new aK,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=oD.info.campaignParams(null),s={},a=!1;oD.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}og.DEBUG=og.DEBUG||n.get_config("debug");var c=0===g?"module":"snippet";return iU.dispatchEvent(new iU.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:oD.info}})),!oD.isUndefined(i)&&oD.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};ch.prototype.init=function(e,t,r){if(oD.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===cr)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=cp(e,t,r);return m[r]=n,n._loaded(),n},ch.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||cu.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(oD.extend({},cu,n,t,{name:r,token:e,callback_fn:(r===cr?r:cr+"."+r)+"._jsc"})),this._jsc=o1,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(oD.localStorage.is_supported(!0)&&co){if(this.init_batchers(),ca&&iU.addEventListener){var i=oD.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);iU.addEventListener("pagehide",function(e){e.persisted&&i()}),iU.addEventListener("visibilitychange",function(){"hidden"===oC.visibilityState&&i()})}}else this._batch_requests=!1,oL.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),oD.each(this.get_batcher_configs(),function(e){oL.log("Clearing batch queue "+e.queue_key),oD.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new ce(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=oD.UUID();this.get_distinct_id()||this.register_once({distinct_id:ci+o,$device_id:o},""),this.flags=new aj({getFullApiRoute:oD.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:oD.bind(this.get_config,this),setConfigFunc:oD.bind(this.set_config,this),getPropertyFunc:oD.bind(this.get_property,this),trackingFunc:oD.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new aD(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},ch.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))oL.log("Tab ID initialization skipped due to disable_persistence config");else if(oD.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;(oD.sessionStorage.get(r)||!oD.sessionStorage.get(t))&&oD.sessionStorage.set(t,"$tab-"+oD.UUID()),oD.sessionStorage.set(r,"1"),this.tab_id=oD.sessionStorage.get(t),iU.addEventListener("beforeunload",function(){oD.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.")},ch.prototype.get_tab_id=function(){return this.tab_id||null},ch.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return oL.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new o8(o5),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(sw(e[r])||e[r].tabId===t)return!0;return!1}).catch(oD.bind(function(e){this.report_error("Error checking recording registry",e)},this))},ch.prototype._check_and_start_session_recording=sn(function(e){if(!iU.MutationObserver)return void oL.critical("Browser does not support MutationObserver; skipping session recording");var t=oD.bind(function(e){var t=oD.bind(function(){this._recorder=this._recorder||new iU.__mp_recorder(this),this._recorder.resumeRecording(e)},this);oD.isUndefined(iU.__mp_recorder)?ct(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),ch.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},ch.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},ch.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},ch.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},ch.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},ch.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},ch.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+oD.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},ch.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},ch.prototype.__get_recorder=function(){return this._recorder},ch.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=oD.info.campaignParams(null);oD.each(e,(function(e,t){this.unregister(t)}).bind(this))}},ch.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(oC.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(oD.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(oC.referrer)},ch.prototype._dom_loaded=function(){oD.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||oD.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},ch.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(!cl)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},ch.prototype._prepare_callback=function(e,t){if(oD.isUndefined(e))return null;if(co)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},ch.prototype._send_request=function(e,t,r,n){var i=!0;if(cs)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
2:this.get_config("verbose")},s=null;!n&&(oD.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=oD.extend(o,r||{}),co||(r.method="GET");var a="POST"===r.method,c=ca&&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),!co&&(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),oD.extend(t,this.get_config("api_extra_query_params")),e+="?"+oD.HTTPBuildQuery(t);var l=this;if("img"in t){var h=oC.createElement("img");h.src=e,oC.body.appendChild(h)}else if(c){try{i=ca(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(co)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),oD.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=oD.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=oC.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=oC.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},ch.prototype._execute_array=function(e){var t,r=[],n=[],i=[];oD.each(e,function(e){e&&(t=e[0],oD.isArray(t)?i.push(e):"function"==typeof e?e.call(this):oD.isArray(e)&&"alias"===t?r.push(e):oD.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){oD.each(e,function(e){if(oD.isArray(e[0])){var r=t;oD.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)},ch.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},ch.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},ch.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=oD.bind(function(e){return new sb(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:oD.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:oD.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:oD.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()},ch.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,oD.each(this.request_batchers,function(e){e.start()}))},ch.prototype.stop_batch_senders=function(){this._batch_requests=!1,oD.each(this.request_batchers,function(e){e.stop(),e.clear()})},ch.prototype.push=function(e){this._execute_array([e])},ch.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},ch.prototype._encode_data_for_request=function(e){var t=o2(e);return this.get_config("api_payload_format")===cn&&(t=oD.base64Encode(t)),{data:t}},ch.prototype._track_or_batch=function(e,t){var r=oD.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||o1;var a=!0,c=oD.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(oL.log("MIXPANEL REQUEST:"),oL.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},ch.prototype.track=sn(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=o1),oD.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=oD.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!oD.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")?oD.info.marketingParams():{};t=oD.extend({},oD.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");oD.isArray(l)?oD.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var h={event:e,properties:t};return 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)}),ch.prototype.set_group=sn(function(e,t,r){oD.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),ch.prototype.add_group=sn(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)}),ch.prototype.remove_group=sn(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)}),ch.prototype.track_with_groups=sn(function(e,t,r,n){var i=oD.extend({},t||{});return oD.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),ch.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},ch.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},ch.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 aX)._init(this,e,t),this._cached_groups[r]=n),n},ch.prototype.track_pageview=sn(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=oD.extend(oD.info.mpPageViewProperties(),oD.info.campaignParams(),oD.info.clickParams()),i=oD.extend({},n,e);return this.track(r,i)}),ch.prototype.track_links=function(){return this._track_dom.call(this,aq,arguments)},ch.prototype.track_forms=function(){return this._track_dom.call(this,az,arguments)},ch.prototype.time_event=function(e){oD.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 cf={persistent:!0},cd=function(e){var t;return t=oD.isObject(e)?e:oD.isUndefined(e)?{}:{days:e},oD.extend({},cf,t)};ch.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var n=cd(t=r[1]);n.persistent?this.persistence.register(e,n.days):oD.extend(this.unpersisted_superprops,e)}},ch.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=cd(r=n[2]);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),oD.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},ch.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);
2null!==r&&(e=r[0],(t=cd(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},ch.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},ch.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(ci))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(a6)&&(this.unregister(a6),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()},ch.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=oD.UUID();this.register_once({distinct_id:ci+e,$device_id:e},""),this._check_and_start_session_recording()},ch.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},ch.prototype.alias=function(e,t){if(e===this.get_property(a5))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(oD.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(a6,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)},ch.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},ch.prototype.set_config=function(e){oD.isObject(e)&&(oD.extend(this.config,e),e.batch_size&&oD.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),og.DEBUG=og.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),oD.isObject(e.hooks)&&(this.hooks={},oD.each(e.hooks,function(e,t){if(oD.isFunction(e))this.hooks[t]=[e];else if(oD.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)oD.isFunction(e[r])||oL.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else oL.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},ch.prototype.get_config=function(e){return this.config[e]},ch.prototype._run_hook=function(e){var t=o_.call(arguments,1);return oD.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):(oD.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},ch.prototype.get_property=function(e){return this.persistence.load_prop([e])},ch.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},ch.prototype.toString=function(){var e=this.get_config("name");return e!==cr&&(e=cr+"."+e),e},ch.prototype._event_is_disabled=function(e){return oD.isBlockedUA(oE)||this._flags.disable_all_events||oD.include(this.__disabled_events,e)},ch.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&oD.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")||oD.cookie.get("mp_optout"))&&(oD.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},ch.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()},ch.prototype._gdpr_call_func=function(e,t){return t=oD.extend({track:oD.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),oD.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
2:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},ch.prototype.opt_in_tracking=function(e){e=oD.extend({enable_persistence:!0},e),this._gdpr_call_func(o7,e),this._gdpr_update_persistence(e)},ch.prototype.opt_out_tracking=function(e){(e=oD.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(se,e),this._gdpr_update_persistence(e)},ch.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(st,e)},ch.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(sr,e)},ch.prototype.clear_opt_in_out_tracking=function(e){e=oD.extend({enable_persistence:!0},e),this._gdpr_call_func(ss,e),this._gdpr_update_persistence(e)},ch.prototype.report_error=function(e,t){oL.error.apply(oL.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){oL.error(e)}},ch.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},ch.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):oL.log("remove_hook failed. Matching hook was not found"))},ch.prototype.init=ch.prototype.init,ch.prototype.reset=ch.prototype.reset,ch.prototype.disable=ch.prototype.disable,ch.prototype.time_event=ch.prototype.time_event,ch.prototype.track=ch.prototype.track,ch.prototype.track_links=ch.prototype.track_links,ch.prototype.track_forms=ch.prototype.track_forms,ch.prototype.track_pageview=ch.prototype.track_pageview,ch.prototype.register=ch.prototype.register,ch.prototype.register_once=ch.prototype.register_once,ch.prototype.unregister=ch.prototype.unregister,ch.prototype.identify=ch.prototype.identify,ch.prototype.alias=ch.prototype.alias,ch.prototype.name_tag=ch.prototype.name_tag,ch.prototype.set_config=ch.prototype.set_config,ch.prototype.get_config=ch.prototype.get_config,ch.prototype.get_api_host=ch.prototype.get_api_host,ch.prototype.get_property=ch.prototype.get_property,ch.prototype.get_distinct_id=ch.prototype.get_distinct_id,ch.prototype.toString=ch.prototype.toString,ch.prototype.opt_out_tracking=ch.prototype.opt_out_tracking,ch.prototype.opt_in_tracking=ch.prototype.opt_in_tracking,ch.prototype.has_opted_out_tracking=ch.prototype.has_opted_out_tracking,ch.prototype.has_opted_in_tracking=ch.prototype.has_opted_in_tracking,ch.prototype.clear_opt_in_out_tracking=ch.prototype.clear_opt_in_out_tracking,ch.prototype.get_group=ch.prototype.get_group,ch.prototype.set_group=ch.prototype.set_group,ch.prototype.add_group=ch.prototype.add_group,ch.prototype.remove_group=ch.prototype.remove_group,ch.prototype.add_hook=ch.prototype.add_hook,ch.prototype.remove_hook=ch.prototype.remove_hook,ch.prototype.track_with_groups=ch.prototype.track_with_groups,ch.prototype.start_batch_senders=ch.prototype.start_batch_senders,ch.prototype.stop_batch_senders=ch.prototype.stop_batch_senders,ch.prototype.start_session_recording=ch.prototype.start_session_recording,ch.prototype.stop_session_recording=ch.prototype.stop_session_recording,ch.prototype.pause_session_recording=ch.prototype.pause_session_recording,ch.prototype.resume_session_recording=ch.prototype.resume_session_recording,ch.prototype.get_session_recording_properties=ch.prototype.get_session_recording_properties,ch.prototype.get_session_replay_url=ch.prototype.get_session_replay_url,ch.prototype.get_tab_id=ch.prototype.get_tab_id,ch.prototype.DEFAULT_API_ROUTES=cc,ch.prototype.__get_recorder=ch.prototype.__get_recorder,ce.prototype.properties=ce.prototype.properties,ce.prototype.update_search_keyword=ce.prototype.update_search_keyword,ce.prototype.update_referrer_info=ce.prototype.update_referrer_info,ce.prototype.get_cross_subdomain=ce.prototype.get_cross_subdomain,ce.prototype.clear=ce.prototype.clear;var cg={},cm=function(){oD.each(cg,function(e,t){t!==cr&&(m[t]=e)}),m._=oD},cv=(ct=function(e,t){t()},g=0,(m=new ch).init=function(e,t,r){if(r)return m[r]||(m[r]=cg[r]=cp(e,t,r),m[r]._loaded()),m[r];var n=m;cg[cr]?n=cg[cr]:e&&((n=cp(e,t,cr))._loaded(),cg[cr]=n),m=n,1===g&&(iU[cr]=m),cm()}
2,m.init(),function(){function e(){e.done||(e.done=!0,cl=!0,cs=!1,oD.each(cg,function(e){e._dom_loaded()}))}if(oC.addEventListener)"complete"===oC.readyState?e():oC.addEventListener("DOMContentLoaded",e,!1);else if(oC.attachEvent){oC.attachEvent("onreadystatechange",e);var t=!1;try{t=null===iU.frameElement}catch(e){}oC.documentElement.doScroll&&t&&function t(){try{oC.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}oD.register_event(iU,"load",e,!0)}(),m);let cy="18ba3d04b4f45eaeaac640947331f3d1",c_=!1,cb=()=>{!c_&&cy&&(cv.init(cy,{debug:!1,track_pageview:!1,persistence:"cookie",cookie_domain:".joinmidi.com",cross_subdomain_cookie:!0,secure_cookie:!0,record_sessions_percent:0,record_min_ms:8e3,record_heatmap_data:!0,record_mask_text_selector:"input[type='password']",autocapture:{pageview:!1,click:!1,dead_click:!1,input:!1,rage_click:!1,scroll:!0,submit:!1,capture_text_content:!1}}),c_=!0,cv.get_property("$mp_is_recording")&&cv.register({$mp_is_recording:!0},1/48))},cw=(e,t)=>{c_||cb(),cv.track(e,t)};e.s(["SESSION_RECORDING_PAGES",0,["/","/pricing-insurance","/how-midi-works"],"initMixpanel",0,cb,"startSessionRecording",0,()=>{c_||cb(),cy&&!cv.get_property("$mp_is_recording")&&(cv.start_session_recording(),cv.register({$mp_is_recording:!0},1/48))},"trackEvent",0,cw,"trackPageView",0,(e,t)=>{cw("Page View",{page:e,...t})}],331966)}]); 3 4//# debugId=048747dc-0de0-2dee-7e9f-0d52b124510f
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.