PageSourceSearch

https://elite-minds.leadingwithsangeeta.com/_next/static/chunks/72df16aa.5882848899207bdc.js

js leadingwithsangeeta.com collected 2026-09-30 21:24:06 UTC 304,462 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3209],{6840:function(e,t,r){r.r(t),r.d(t,{default:function(){return aq}});var n,i,o,s,a,c,u,l,p,h,f,d,m,g,v,y,_=r(1083).Buffer,b=r(2040);if("undefined"==typeof window){var w={hostname:""};iw={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:w,referrer:""},screen:{width:0,height:0},location:w,addEventListener:function(){},removeEventListener:function(){}}}else iw=window;function S(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 k(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 C(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){k(o,n,i,s,a,"next",e)}function a(e){k(o,n,i,s,a,"throw",e)}s(void 0)})}}function I(e,t,r){return(I=D()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&T(i,r.prototype),i}).apply(null,arguments)}function x(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 E(){return(E=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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(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&&T(e,t)}function R(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function A(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 T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function P(e){var t="function"==typeof Map?new Map:void 0;return(P=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 I(e,arguments,O(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),T(r,e)})(e)}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}}(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){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function U(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var B=Object.defineProperty,j=function(e,t,r){var n,i;return n=e,(i=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t)in n?B(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r},q=Object.defineProperty,z=function(e,t,r){var n,i;return n=e,(i=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t)in n?q(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r},W=((ip=W||{})[ip.Document=0]="Document",ip[ip.DocumentType=1]="DocumentType",ip[ip.Element=2]="Element",ip[ip.Text=3]="Text",ip[ip.CDATA=4]="CDATA",ip[ip.Comment=5]="Comment",ip),V={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},G={};function Y(e){if(G[e])return G[e];var t=globalThis[e],r=t.prototype,n=e in V?V[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 $?$[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 G[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 G[e]=u}catch(e){return r}}var Z={};function J(e,t,r){var n,i=e+"."+String(r);if(Z[i])return Z[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(Y(e),r))?void 0:n.get;return o?(Z[i]=o,o.call(t)):t[r]}var H={};function X(e,t,r){var n=e+"."+String(r);if(H[n])return H[n].bind(t);var i=Y(e)[r];return"function"!=typeof i?t[r]:(H[n]=i,i.bind(t))}var K={childNodes:function(e){return J("Node",e,"childNodes")},parentNode:function(e){return J("Node",e,"parentNode")},parentElement:function(e){return J("Node",e,"parentElement")},textContent:function(e){return J("Node",e,"textContent")},contains:function(e,t){return X("Node",e,"contains")(t)},getRootNode:function(e){return X("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?J("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?J("Element",e,"shadowRoot"):null},querySelector:function(e,t){return J("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return J("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Y("MutationObserver").constructor}};function Q(e){return e.nodeType===e.ELEMENT_NODE}function ee(e){var t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===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(){z(this,"idNodeMap",new Map),z(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);
1this.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,ep=/^(?:[a-z+]+:)?\/\//i,eh=/^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;if(ep.test(a)||eh.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 p,h=F(l);!(p=h()).done;){var f=p.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function em(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}var eg=1,ev=RegExp("[^a-z0-9-_:]");function ey(){return eg++}var e_=/^[^ \t\n\r\u000c]+/,eb=/^[, \t\n\r\u000c]+/,ew=new WeakMap;function eS(e,t){return t&&""!==t.trim()?ek(e,t):t}function ek(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){return n?"src"!==r&&("href"!==r||"use"===t&&"#"===n[0])&&("xlink:href"!==r||"#"===n[0])&&("background"!==r||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===r?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=eS(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=eS(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}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?ed(n,ek(e)):"object"===t&&"data"===r?eS(e,n):n:eS(e,n):n}function eI(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ex(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ex(K.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ex(K.parentNode(e),t,r)}function eE(e,t,r,n){var i;if(Q(e)){if(i=e,!K.childNodes(i).length)return!1}else{if(null===K.parentElement(e))return!1;i=K.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ex(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,p=void 0===l||l,h=t.maskInputOptions,f=void 0===h?{}:h,d=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,S=void 0!==w&&w,k=t.onSerialize,C=t.onIframeLoad,I=t.iframeLoadTimeout,x=void 0===I?5e3:I,E=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,M=void 0===O?5e3:O,A=t.keepIframeSrcFn,T=void 0===A?function(){return!1}:A,N=t.newlyAddedElement,P=t.cssCaptured,D=t.needsMask,L=t.preserveWhiteSpace,U=void 0===L||L;D||(D=eE(e,s,a,void 0===D));var B=function(e,t){var r,n,i,o,s,a,c,u,l,p,h=t.doc,f=t.mirror,d=t.blockClass,m=t.blockSelector,g=t.needsMask,v=t.inlineStylesheet,y=t.maskInputOptions,_=t.maskTextFn,b=t.maskInputFn,w=t.dataURLOptions,S=t.inlineImages,k=t.recordCanvas,C=t.keepIframeSrcFn,I=t.newlyAddedElement,x=t.cssCaptured,E=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(h,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:W.Document,childNodes:[],compatMode:e.compatMode};return{type:W.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:W.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,p=void 0===l?{}:l,h=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,m=t.newlyAddedElement,g=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(R(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 S=e.attributes[w];eI(y,S.name,S.value)||(_[S.name]=eC(n,y,es(S.name),S.value))}if("link"===y&&s){var k=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;k&&(C=er(k)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var I=er(e.sheet);I&&(e.childNodes.length>1&&(I=(function(e,t){var r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&"string"==typeof e){for(var i=em(e),o=1;o<r.length;o++)if(r[o].textContent&&"string"==typeof r[o].textContent)for(var s=em(r[o].textContent),a=3;a<s.length;a++){var c=s.substring(0,a);if(2===i.split(c).length){for(var u=i.indexOf(c),l=u;l<e.length;l++)if(em(e.substring(0,l)).length===u){n.push(e.substring(0,l)),e=e.substring(l);break}break}}}return n.push(e),n})(I,e).join("/* rr_split */")),_._cssText=I)}if("input"===y||"textarea"===y||"select"===y){var x=e.value,E=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&x?_.value=eo({element:e,type:ec(e),tagName:y,value:x,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,o=ea in i?i[ea]:i;
1if(new Uint32Array(o.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(p.type,p.quality));else if(!("__context"in e)){var O=e.toDataURL(p.type,p.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,O!==M.toDataURL(p.type,p.quality)&&(_.rr_dataURL=O)}}if("img"===y&&h){ik||(iC=(ik=n.createElement("canvas")).getContext("2d"));var A=e,T=A.currentSrc||A.getAttribute("src")||"<unknown-src>",N=A.crossOrigin,P=function(){A.removeEventListener("load",P);try{ik.width=A.naturalWidth,ik.height=A.naturalHeight,iC.drawImage(A,0,0),_.rr_dataURL=ik.toDataURL(p.type,p.quality)}catch(e){if("anonymous"!==A.crossOrigin){A.crossOrigin="anonymous",A.complete&&0!==A.naturalWidth?P():A.addEventListener("load",P);return}console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===A.crossOrigin&&(N?_.crossOrigin=N:A.removeAttribute("crossorigin"))};A.complete&&0!==A.naturalWidth?P():A.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!==m&&m)&&(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var F=e.getBoundingClientRect(),L=F.width,U=F.height;_={class:_.class,rr_width:""+L+"px",rr_height:""+U+"px"}}"iframe"!==y||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:W.Element,tagName:y,attributes:_,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:v,rootId:g,isCustom:r}}(e,{doc:h,blockClass:d,blockSelector:m,inlineStylesheet:v,maskInputOptions:void 0===y?{}:y,maskInputFn:b,dataURLOptions:void 0===w?{}:w,inlineImages:S,recordCanvas:k,keepIframeSrcFn:C,newlyAddedElement:void 0!==I&&I,rootId:E});case e.TEXT_NODE:return n=(r={doc:h,needsMask:g,maskTextFn:_,rootId:E,cssCaptured:void 0!==x&&x}).needsMask,i=r.maskTextFn,o=r.rootId,s=r.cssCaptured,c=(a=K.parentNode(e))&&a.tagName,u="",l="STYLE"===c||void 0,(p="SCRIPT"===c||void 0)?u="SCRIPT_PLACEHOLDER":!s&&(u=K.textContent(e),l&&u&&(u=ed(u,ek(r.doc)))),!l&&!p&&u&&n&&(u=i?i(u,K.parentElement(e)):u.replace(/[\S]/g,"*")),{type:W.Text,textContent:u||"",rootId:o};case e.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:W.Comment,textContent:K.textContent(e)||"",rootId:E};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:D,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:void 0!==N&&N,cssCaptured:void 0!==P&&P});if(!B)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===W.Comment)return!0;if(e.type===W.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eu(e.attributes.href))||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;if("meta"===e.tagName){if(t.headMetaDescKeywords&&eO(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eO(e.attributes.property).match(/^(og|twitter|fb):/)||eO(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eO(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eO(e.attributes.name)||"googlebot"===eO(e.attributes.name)||"bingbot"===eO(e.attributes.name)))return!0;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}(B,g)&&(U||B.type!==W.Text||B.textContent.replace(/^\s+|\s+$/gm,"").length)?ey():-2;var j=Object.assign(B,{id:$});if(n.add(e,j),-2===$)return null;
1k&&k(e);var q=!u;if(j.type===W.Element){q=q&&!j.needBlock,delete j.needBlock;var z=K.shadowRoot(e);z&&et(z)&&(j.isShadowHost=!0)}if((j.type===W.Document||j.type===W.Element)&&q){g.headWhitespace&&j.type===W.Element&&"head"===j.tagName&&(U=!1);var V={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:D,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:T,cssCaptured:!1};if(j.type===W.Element&&"textarea"===j.tagName&&void 0!==j.attributes.value);else{j.type===W.Element&&void 0!==j.attributes._cssText&&"string"==typeof j.attributes._cssText&&(V.cssCaptured=!0);for(var $,G,Y=F(Array.from(K.childNodes(e)));!(G=Y()).done;){var Z=eM(G.value,V);Z&&j.childNodes.push(Z)}}var J=null;if(Q(e)&&(J=K.shadowRoot(e)))for(var H,X=F(Array.from(K.childNodes(J)));!(H=X()).done;){var en=eM(H.value,V);en&&(et(J)&&(en.isShadow=!0),j.childNodes.push(en))}}var ei=K.parentNode(e);return ei&&ee(ei)&&et(ei)&&(j.isShadow=!0),j.type===W.Element&&"iframe"===j.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&C){var r=eM(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:D,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:T});r&&C(e,r)}},x),j.type===W.Element&&"link"===j.tagName&&"string"==typeof j.attributes.rel&&("stylesheet"===j.attributes.rel||"preload"===j.attributes.rel&&"string"==typeof j.attributes.href&&"css"===eu(j.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(E){var t=eM(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:D,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&E(e,t)}},M),j}var 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 eN=eR.exports,eP=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return R(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"}))),eD=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}M(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=eN.isColorSupported),eP&&e&&(i=eP(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=eN.createColors(!0),l=u.bold,p=u.gray,h=u.red;t=function(e){return l(h(e))},r=function(e){return p(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}(P(Error));eD.default=eD;var eF={};eF.isClean=Symbol("isClean"),eF.my=Symbol("my");var eL={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;
1return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){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");for(var r,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!==(i=e.raws[t]))return i;var n,i,o=e.parent;if("before"===r&&(!o||"root"===o.type&&o.first===e||o&&"document"===o.type))return"";if(!o)return eL[r];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var a="raw"+((n=r)[0].toUpperCase()+n.slice(1));return this[a]?i=this[a](s,e):s.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=eL[r]),s.rawCache[r]=i,i},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 eB(e,t){new eU(t).stringify(e)}eU.default=eU,eB.default=eB;var ej=eF.isClean,eq=eF.my,ez=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ej]=!1,this[eq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=F(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eD(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[ej]){this[ej]=!1;for(var e=this;e=e.parent;)e[ej]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new 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=F(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=eB),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)},x(e,[{key:"proxyOf",get:function(){return this}}]),e}();ez.default=ez;var eW=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=E({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return M(t,e),x(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ez);eW.default=eW;var eV=eP.SourceMapConsumer,e$=eP.SourceMapGenerator,eG=eP.existsSync,eY=eP.readFileSync,eZ=eP.dirname,eJ=eP.join,eH=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=eZ(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eV(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),_?_.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=eZ(e),eG(e))return this.mapFile=e,eY(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;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(R(t,eV))return e$.fromSourceMap(t).toString();else if(R(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=eJ(eZ(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}();eH.default=eH;var eX=eP.SourceMapConsumer,eK=eP.SourceMapGenerator,eQ=eP.fileURLToPath,e0=eP.pathToFileURL,e1=eP.isAbsolute,e2=eP.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}
1,e9=Symbol("fromOffsetCache"),e4=!!(eX&&eK),e5=!!(e2&&e1),e6=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!e5||/^\w+:\/\//.test(t.from)||e1(t.from)?this.file=t.from:this.file=e2(t.from)),e5&&e4){var r=new eH(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":N(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new eD(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new eD(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[e9])a=this[e9];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[e9]=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=E({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},x(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();e6.default=e6,eP&&eP.registerInput&&eP.registerInput(e6);var e8=eP.SourceMapConsumer,e7=eP.SourceMapGenerator,te=eP.dirname,tt=eP.relative,tr=eP.resolve,tn=eP.sep,ti=eP.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(){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";var e,t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=F(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,r.map.addMapping(s)):(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,r.map.addMapping(s)):(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 _?_.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},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 M(t,e),t}(ez);tc.default=tc;var tu=eF.isClean,tl=eF.my,tp=function(e){function t(){return e.apply(this,arguments)||this}M(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=F(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=F(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=F(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()};
1if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});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=F(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=F(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})}(iI(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=F(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=F(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 eW(e)]}else if(e.selector)e=[new ix(e)];else if(e.name)e=[new iE(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=F(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=F(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=F(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=F(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?R(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?R(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?R(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)}))},x(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);tp.registerParse=function(e){iI=e},tp.registerRule=function(e){ix=e},tp.registerAtRule=function(e){iE=e},tp.registerRoot=function(e){iO=e},tp.default=tp,tp.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iE.prototype):"rule"===e.type?Object.setPrototypeOf(e,ix.prototype):"decl"===e.type?Object.setPrototypeOf(e,eW.prototype):"comment"===e.type?Object.setPrototypeOf(e,tc.prototype):"root"===e.type&&Object.setPrototypeOf(e,iO.prototype),e[tl]=!0,e.nodes&&e.nodes.forEac
1h(function(e){tp.rebuild(e)})};var th=function(e){function t(t){var r;return(r=e.call(this,E({type:"document"},t))||this).nodes||(r.nodes=[]),r}return M(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new iM(new iR,this,e).stringify()},t}(tp);th.registerLazyResult=function(e){iM=e},th.registerProcessor=function(e){iR=e},th.default=th;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})},x(e,[{key:"content",get:function(){return this.css}}]),e}();td.default=td;var tm=/[\t\n\f\r "#'()/;[\\\]{}]/g,tg=/[\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}M(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}(tp);t_.default=t_,tp.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}M(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=F(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 iA(new iT,this,e).stringify()},t}(tp);tb.registerLazyResult=function(e){iA=e},tb.registerProcessor=function(e){iT=e},tb.default=tb,tp.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,p=F(e);!(n=p()).done;){var h=n.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}};tw.default=tw;var tS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return M(t,e),x(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}(tp);tS.default=tS,tp.registerRule(tS);var tk=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=d},nextToken:function(e){if(v.length)return v.pop();if(!(m>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=h.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);p=["space",h.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);p=[_,_,m];break;
1case 40:if(u=g.length?g.pop()[1]:"",l=h.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(f||t){n=m;break}y("bracket")}for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(m,n+1),m,n],m=n}else n=h.indexOf(")",m+1),o=h.slice(m,n+1),-1===n||tv.test(o)?p=["(","(",m]:(p=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(f||t){n=m+1;break}y("string")}for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(m,n+1),m,n],m=n;break;case 64:tm.lastIndex=m+1,tm.test(h),n=0===tm.lastIndex?h.length-1:tm.lastIndex-2,p=["at-word",h.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===h.charCodeAt(n+1);)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,ty.test(h.charAt(n)))){for(;ty.test(h.charAt(n+1));)n+=1;32===h.charCodeAt(n+1)&&(n+=1)}p=["word",h.slice(m,n+1),m,n],m=n;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(n=h.indexOf("*/",m+2)+1)&&(f||t?n=h.length:y("comment")),p=["comment",h.slice(m,n+1),m,n],m=n):(tg.lastIndex=m+1,tg.test(h),n=0===tg.lastIndex?h.length-1:tg.lastIndex-2,p=["word",h.slice(m,n+1),m,n],g.push(p),m=n)}return m++,p}},position:function(){return m}}},tC={empty:!0,space:!0},tI=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}if("{"===t){s=!0;break}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}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=F(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;return a}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=tk(this.input)},t.decl=function(e,t){var r,n,i=new eW;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),p="",h=c;h>0;h--){var f=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==f)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,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 tS;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){this.decl(a,s);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,p=0;p<c;p+=1)"space"!==(o=(i=r[p])[0])||p!==c-1||n?"comment"===o?(a=r[p-1]?r[p-1][0]:"empty",s=r[p+1]?r[p+1][0]:"empty",tC[a]||tC[s]?l=!1:","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new tS;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 tx(e,t){var r=new e6(e,t),n=new tI(r);try{n.parse()}catch(e){throw e}return n.root}tx.default=tx,tp.registerParse(tx);var tE=eF.isClean,tO=eF.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":N(e))==="object"&&"function"==typeof e.then}function tN(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 tP(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tN(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function tD(e){return e[tE]=!1,e.nodes&&e.nodes.forEach(function(e){return tD(e)}),e}var tF={},tL=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tD(r);else if(R(r,e)||R(r,td))i=tD(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=tx;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]&&tp.rebuild(i)}this.result=new td(t,i,n),this.helpers=E({},tF,{postcss:tF,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?E({},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=F(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(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.version+" now).");if(!tA[o]){if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return C(function(){var t,r,n,i,o,s,a,c,u,l,p,h;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=[tP(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=h.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]}})},p=F(e.listeners.OnceExit),f.label=15;case 15:if((h=p()).done)return[3,18];return[5,U(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(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=eB;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=F(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=F(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=F(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(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){e.pop();return}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(tP(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=tN(e),i=F(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()},x(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}();tL.registerPostcss=function(e){tF=e},tL.default=tL,tb.registerLazyResult(tL),th.registerLazyResult(tL);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(eB,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[]},x(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=tx(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 tB=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=F(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tL(this,e,t):new tU(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tj(e,t){if(Array.isArray(e))return e.map(function(e){return tj(e)});var r=e.inputs,n=A(e,["inputs"]);if(r){t=[];for(var i,o=F(r);!(i=o()).done;){var s=E({},i.value,{__proto__:e6.prototype});s.map&&(s.map=E({},s.map,{__proto__:eH.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tj(e,t)})),n.source){var a=n.source,c=a.inputId,u=A(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new tb(n);if("decl"===n.type)return new eW(n);if("rule"===n.type)return new tS(n);if("comment"===n.type)return new tc(n);if("atrule"===n.type)return new t_(n);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 tB(t)}tB.default=tB,tb.registerProcessor(tB),th.registerProcessor(tB),tj.default=tj,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"),b.env.LANG&&b.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 tB().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=eB,tq.parse=tx,tq.fromJSON=tj,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 eW(e)},tq.rule=function(e){return new tS(e)},tq.root=function(e){return new tb(e)},tq.document=function(e){return new th(e)},tq.CssSyntaxError=eD,tq.Declaration=eW,tq.Container=tp,tq.Processor=tB,tq.Document=th,tq.Comment=tc,tq.Warning=tf,tq.AtRule=t_,tq.Result=td,tq.Input=e6,tq.Rule=tS,tq.Root=tb,tq.Node=ez,tL.registerPostcss(tq),tq.default=tq;
1var 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 tW=Object.defineProperty,tV=function(e,t,r){var n,i;return n=e,(i=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t)in n?tW(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r},t$={exports:{}},tG=String,tY=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=tY(),t$.exports.createColors=tY;var tZ=t$.exports,tJ=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return R(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"}))),tH=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}M(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=tZ.isColorSupported),tJ&&e&&(i=tJ(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=tZ.createColors(!0),l=u.bold,p=u.gray,h=u.red;t=function(e){return l(h(e))},r=function(e){return p(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}(P(Error));tH.default=tH;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){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");for(var r,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!==(i=e.raws[t]))return i;var n,i,o=e.parent;if("before"===r&&(!o||"root"===o.type&&o.first===e||o&&"document"===o.type))return"";if(!o)return tK[r];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var a="raw"+((n=r)[0].toUpperCase()+n.slice(1));return this[a]?i=this[a](s,e):s.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=tK[r]),s.rawCache[r]=i,i},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=F(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new tH(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);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new 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=F(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=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)},x(e,[{key:"proxyOf",get:function(){return this}}]),e}();t3.default=t3;var t9=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=E({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return M(t,e),x(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(t3);t9.default=t9;var t4=tJ.SourceMapConsumer,t5=tJ.SourceMapGenerator,t6=tJ.existsSync,t8=tJ.readFileSync,t7=tJ.dirname,re=tJ.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 t4(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),_?_.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=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;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(R(t,t4))return t5.fromSourceMap(t).toString();else if(R(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=tJ.SourceMapConsumer,rn=tJ.SourceMapGenerator,ri=tJ.fileURLToPath,ro=tJ.pathToFileURL,rs=tJ.isAbsolute,ra=tJ.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}
1,ru=Symbol("fromOffsetCache"),rl=!!(rr&&rn),rp=!!(ra&&rs),rh=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rp||/^\w+:\/\//.test(t.from)||rs(t.from)?this.file=t.from:this.file=ra(t.from)),rp&&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":N(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new tH(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new tH(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=E({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},x(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();rh.default=rh,tJ&&tJ.registerInput&&tJ.registerInput(rh);var rf=tJ.SourceMapConsumer,rd=tJ.SourceMapGenerator,rm=tJ.dirname,rg=tJ.relative,rv=tJ.resolve,ry=tJ.sep,r_=tJ.pathToFileURL,rb=!!(rf&&rd),rw=!!(rm&&rv&&rg&&ry),rS=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(){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";var e,t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=F(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||rm(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,r.map.addMapping(s)):(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,r.map.addMapping(s)):(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?rm(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rm(rv(r,this.mapOpts.annotation)));var n=rg(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 rh(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 _?_.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},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}(),rk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return M(t,e),t}(t3);rk.default=rk;var rC=tX.isClean,rI=tX.my,rx=function(e){function t(){return e.apply(this,arguments)||this}M(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=F(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=F(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=F(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()};
1if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});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=F(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=F(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})}(iN(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=F(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=F(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 t9(e)]}else if(e.selector)e=[new iP(e)];else if(e.name)e=[new iD(e)];else if(e.text)e=[new rk(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rI]||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=F(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=F(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=F(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=F(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?R(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?R(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?R(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)}))},x(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);rx.registerParse=function(e){iN=e},rx.registerRule=function(e){iP=e},rx.registerAtRule=function(e){iD=e},rx.registerRoot=function(e){iF=e},rx.default=rx,rx.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iD.prototype):"rule"===e.type?Object.setPrototypeOf(e,iP.prototype):"decl"===e.type?Object.setPrototypeOf(e,t9.prototype):"comment"===e.type?Object.setPrototypeOf(e,rk.prototype):"root"===e.type&&Object.setPrototypeOf(e,iF.prototype),e[rI]=!0,e.nodes&&e.nodes.forEac
1h(function(e){rx.rebuild(e)})};var rE=function(e){function t(t){var r;return(r=e.call(this,E({type:"document"},t))||this).nodes||(r.nodes=[]),r}return M(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new iL(new iU,this,e).stringify()},t}(rx);rE.registerLazyResult=function(e){iL=e},rE.registerProcessor=function(e){iU=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})},x(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"'(/\\]/,rN=/[\da-f]/i,rP=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}M(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}(rx);rP.default=rP,rx.registerAtRule(rP);var rD=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}M(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=F(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 iB(new ij,this,e).stringify()},t}(rx);rD.registerLazyResult=function(e){iB=e},rD.registerProcessor=function(e){ij=e},rD.default=rD,rx.registerRoot(rD);var rF={comma:function(e){return rF.split(e,[","],!0)},space:function(e){return rF.split(e,[" ","\n","	"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,p=F(e);!(n=p()).done;){var h=n.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}};rF.default=rF;var rL=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return M(t,e),x(t,[{key:"selectors",get:function(){return rF.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}(rx);rL.default=rL,rx.registerRule(rL);var rU=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=d},nextToken:function(e){if(v.length)return v.pop();if(!(m>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=h.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);p=["space",h.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);p=[_,_,m];break;
1case 40:if(u=g.length?g.pop()[1]:"",l=h.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=h.indexOf(")",n+1))){if(f||t){n=m;break}y("bracket")}for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(m,n+1),m,n],m=n}else n=h.indexOf(")",m+1),o=h.slice(m,n+1),-1===n||rT.test(o)?p=["(","(",m]:(p=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=h.indexOf(i,n+1))){if(f||t){n=m+1;break}y("string")}for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(m,n+1),m,n],m=n;break;case 64:rR.lastIndex=m+1,rR.test(h),n=0===rR.lastIndex?h.length-1:rR.lastIndex-2,p=["at-word",h.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===h.charCodeAt(n+1);)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,rN.test(h.charAt(n)))){for(;rN.test(h.charAt(n+1));)n+=1;32===h.charCodeAt(n+1)&&(n+=1)}p=["word",h.slice(m,n+1),m,n],m=n;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(n=h.indexOf("*/",m+2)+1)&&(f||t?n=h.length:y("comment")),p=["comment",h.slice(m,n+1),m,n],m=n):(rA.lastIndex=m+1,rA.test(h),n=0===rA.lastIndex?h.length-1:rA.lastIndex-2,p=["word",h.slice(m,n+1),m,n],g.push(p),m=n)}return m++,p}},position:function(){return m}}},rB={empty:!0,space:!0},rj=function(){function e(e){this.input=e,this.root=new rD,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 rP;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}if("{"===t){s=!0;break}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}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=F(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;return a}this.doubleColon(c)}r=c}return!1},t.comment=function(e){var t=new rk;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 t9;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),p="",h=c;h>0;h--){var f=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==f)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,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 rL;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){this.decl(a,s);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,p=0;p<c;p+=1)"space"!==(o=(i=r[p])[0])||p!==c-1||n?"comment"===o?(a=r[p-1]?r[p-1][0]:"empty",s=r[p+1]?r[p+1][0]:"empty",rB[a]||rB[s]?l=!1:","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var h=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:h,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new rL;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 rh(e,t),n=new rj(r);try{n.parse()}catch(e){throw e}return n.root}rq.default=rq,rx.registerParse(rq);var rz=tX.isClean,rW=tX.my,rV={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 rY(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function rZ(e){var t=!1,r=rV[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 rJ(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rZ(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function rH(e){return e[rz]=!1,e.nodes&&e.nodes.forEach(function(e){return rH(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":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=rH(r);else if(R(r,e)||R(r,rM))i=rH(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[rW]&&rx.rebuild(i)}this.result=new rM(t,i,n),this.helpers=E({},rX,{postcss:rX,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?E({},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=F(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(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.version+" now).");if(!rG[o]){if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return C(function(){var t,r,n,i,o,s,a,c,u,l,p,h;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],!rY(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=[rJ(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!rY(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=h.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]}})},p=F(e.listeners.OnceExit),f.label=15;case 15:if((h=p()).done)return[3,18];return[5,U(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rY(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 rS(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=F(this.plugins);!(e=t()).done;){var r=e.value;if(rY(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=F(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=F(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(rY(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){e.pop();return}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(rJ(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=rZ(e),i=F(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()},x(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,rD.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 rS(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[]},x(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=F(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new 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=A(e,["inputs"]);if(r){t=[];for(var i,o=F(r);!(i=o()).done;){var s=E({},i.value,{__proto__:rh.prototype});s.map&&(s.map=E({},s.map,{__proto__:rt.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return r1(e,t)})),n.source){var a=n.source,c=a.inputId,u=A(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new rD(n);if("decl"===n.type)return new t9(n);if("rule"===n.type)return new rL(n);if("comment"===n.type)return new rk(n);if("atrule"===n.type)return new rP(n);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,rD.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"),b.env.LANG&&b.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=rF,r2.comment=function(e){return new rk(e)},r2.atRule=function(e){return new rP(e)},r2.decl=function(e){return new t9(e)},r2.rule=function(e){return new rL(e)},r2.root=function(e){return new rD(e)},r2.document=function(e){return new rE(e)},r2.CssSyntaxError=tH,r2.Declaration=t9,r2.Container=rx,r2.Processor=r0,r2.Document=rE,r2.Comment=rk,r2.Warning=rO,r2.AtRule=rP,r2.Result=rM,r2.Input=rh,r2.Rule=rL,r2.Root=rD,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
1ode;var r9=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tV(this,"parentElement",null),tV(this,"parentNode",null),tV(this,"ownerDocument"),tV(this,"firstChild",null),tV(this,"lastChild",null),tV(this,"previousSibling",null),tV(this,"nextSibling",null),tV(this,"ELEMENT_NODE",1),tV(this,"TEXT_NODE",3),tV(this,"nodeType"),tV(this,"nodeName"),tV(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!R(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"},x(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),r4={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 r4?r4[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(){return r8("MutationObserver").constructor}var ni={childNodes:function(e){return ne("Node",e,"childNodes")},parentNode:function(e){return ne("Node",e,"parentNode")},parentElement:function(e){return ne("Node",e,"parentElement")},textContent:function(e){return ne("Node",e,"textContent")},contains:function(e,t){return nr("Node",e,"contains")(t)},getRootNode:function(e){return nr("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?ne("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?ne("Element",e,"shadowRoot"):null},querySelector:function(e,t){return ne("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return ne("Element",e,"querySelectorAll")(t)},mutationObserver:nn};function no(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 ns="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.",na={map:{},getId:function(){return console.error(ns),-1},getNode:function(){return console.error(ns),null},removeNodeFromMap:function(){console.error(ns)},has:function(){return console.error(ns),!1},reset:function(){console.error(ns)}};function nc(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function nu(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 nu(e,t,o||{},!0)}}function nl(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(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(na=new Proxy(na,{get:function(e,t,r){return"map"===t&&console.error(ns),Reflect.get(e,t,r)}}));var np=Date.now;function nh(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=ni.parentElement(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=ni.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function nf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nd(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nm(e){return e?e.nodeType===e.ELEMENT_NODE?e:ni.parentElement(e):null}function ng(e,t,r,n){if(!e)return!1;var i=nm(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(ex(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))}function nv(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function ny(e){return!!e.changedTouches}function n_(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function nb(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nw(e){return!!e&&(R(e,r9)&&"shadowRoot"in e?!!e.shadowRoot:!!ni.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(np=function(){return new Date().getTime()});var nS=function(){function e(){j(this,"id",1),j(this,"styleIDMap",new WeakMap),j(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 nk(e){var t,r=null;return"getRootNode"in e&&(null==(t=ni.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ni.host(ni.getRootNode(e))&&(r=ni.host(ni.getRootNode(e))),r}function nC(e){var t=e.ownerDocument;return!!t&&(ni.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=nk(r);)r=t;return r}(e);return ni.contains(t,r)}(e))}var nI=((ih=nI||{})[ih.DomContentLoaded=0]="DomContentLoaded",ih[ih.Load=1]="Load",ih[ih.FullSnapshot=2]="FullSnapshot",ih[ih.IncrementalSnapshot=3]="IncrementalSnapshot",ih[ih.Meta=4]="Meta",ih[ih.Custom=5]="Custom",ih[ih.Plugin=6]="Plugin",ih),nx=((id=nx||{})[id.Mutation=0]="Mutation",id[id.MouseMove=1]="MouseMove",id[id.MouseInteraction=2]="MouseInteraction",id[id.Scroll=3]="Scroll",id[id.ViewportResize=4]="ViewportResize",id[id.Input=5]="Input",id[id.TouchMove=6]="TouchMove",id[id.MediaInteraction=7]="MediaInteraction",id[id.StyleSheetRule=8]="StyleSheetRule",id[id.CanvasMutation=9]="CanvasMutation",id[id.Font=10]="Font",id[id.Log=11]="Log",id[id.Drag=12]="Drag",id[id.StyleDeclaration=13]="StyleDeclaration",id[id.Selection=14]="Selection",id[id.AdoptedStyleSheet=15]="AdoptedStyleSheet",id[id.CustomElement=16]="CustomElement",id),nE=((im=nE||{})[im.MouseUp=0]="MouseUp",im[im.MouseDown=1]="MouseDown",im[im.Click=2]="Click",im[im.ContextMenu=3]="ContextMenu",im[im.DblClick=4]="DblClick",im[im.Focus=5]="Focus",im[im.Blur=6]="Blur",im[im.TouchStart=7]="TouchStart",im[im.TouchMove_Departed=8]="TouchMove_Departed",im[im.TouchEnd=9]="TouchEnd",im[im.TouchCancel=10]="TouchCancel",im),nO=((ig=nO||{})[ig.Mouse=0]="Mouse",ig[ig.Pen=1]="Pen",ig[ig.Touch=2]="Touch",ig),nM=((iv=nM||{})[iv["2D"]=0]="2D",iv[iv.WebGL=1]="WebGL",iv[iv.WebGL2=2]="WebGL2",iv),nR=((iy=nR||{})[iy.Play=0]="Play",iy[iy.Pause=1]="Pause",iy[iy.Seeked=2]="Seeked",iy[iy.VolumeChange=3]="VolumeChange",iy[iy.RateChange=4]="RateChange",iy),nA=((i_=nA||{})[i_.Document=0]="Document",i_[i_.DocumentType=1]="DocumentType",i_[i_.Element=2]="Element",i_[i_.Text=3]="Text",i_[i_.CDATA=4]="CDATA",i_[i_.Comment=5]="Comment",i_),nT=function(){function e(){j(this,"length",0),j(this,"head",null),j(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;
vendor: 5,311 bytes, line 1
1this.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}(),nN=function(e,t){return e+"@"+t},nP=function(){function e(){var e=this;j(this,"frozen",!1),j(this,"locked",!1),j(this,"texts",[]),j(this,"attributes",[]),j(this,"attributeMap",new WeakMap),j(this,"removes",[]),j(this,"mapRemoves",[]),j(this,"movedMap",{}),j(this,"addedSet",new Set),j(this,"movedSet",new Set),j(this,"droppedSet",new Set),j(this,"removesSubTreeCache",new Set),j(this,"mutationCb"),j(this,"blockClass"),j(this,"blockSelector"),j(this,"maskTextClass"),j(this,"maskTextSelector"),j(this,"inlineStylesheet"),j(this,"maskInputOptions"),j(this,"maskTextFn"),j(this,"maskInputFn"),j(this,"keepIframeSrcFn"),j(this,"recordCanvas"),j(this,"inlineImages"),j(this,"slimDOMOptions"),j(this,"dataURLOptions"),j(this,"doc"),j(this,"mirror"),j(this,"iframeManager"),j(this,"stylesheetManager"),j(this,"shadowDomManager"),j(this,"canvasManager"),j(this,"processedNodeManager"),j(this,"unattachedDoc"),j(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),j(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nT,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=ni.parentNode(o);if(s&&nC(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(nk(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var p=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){n_(t,e.mirror)&&e.iframeManager.addIframe(t),nb(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),nw(o)&&e.shadowDomManager.addShadowRoot(ni.shadowRoot(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});p&&(t.push({parentId:u,nextId:l,node:p}),r.add(p.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=F(e.movedSet);!(s=a()).done;){var c=s.value;(!nF(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(ni.parentNode(c)))&&o(c)}for(var u,l=F(e.addedSet);!(u=l()).done;){var p=u.value;nL(e.droppedSet,p)||nF(e.removesSubTreeCache,p,e.mirror)?nL(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var h=null;n.length;){var f=null;if(h){var d=e.mirror.getId(ni.parentNode(h.value)),m=i(h.value);-1!==d&&-1!==m&&(f=h)}if(!f)for(var g=n.tail;g;){var v=g;if(g=g.previous,v){var y=e.mirror.getId(ni.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){f=v;break}var _=v.value,b=ni.parentNode(_);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=ni.host(b);if(-1!==e.mirror.getId(w)){f=v;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}h=f.previous,n.removeNode(f.value),o(f.value)}var S={texts:e.texts.map(function(t){var r=t.node,n=ni.parentNode(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};(S.texts.length||S.attributes.length||S.removes.length||S.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(S))}}),j(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)),r.attributes.value=Array.from(ni.childNodes(t),function(e){return ni.textContent(e)||""}).join("")}),j(this,"processMutation",function(t){if(!nv(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=ni.textContent(t.target);ng(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,nm(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(ng(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;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"),!eI(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=F(Array.from(n.style));!(u=l()).done;){var p=u.value,h=n.style.getPropertyValue(p),f=n.style.getPropertyPriority(p);h!==c.style.getPropertyValue(p)||f!==c.style.getPropertyPriority(p)?""===f?a.styleDiff[p]=h:a.styleDiff[p]=[h,f]:a._unchangedStyles[p]=[h,f]}for(var d,m=F(Array.from(c.style));!(d=m()).done;){var g=d.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!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(ng(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName){e.genTextAreaValueMutation(t.target);return}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(ni.host(t.target)):e.mirror.getId(t.target);ng(t.target,e.blockClass,e.blockSelector,!1)||nv(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(nD(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=ni.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[nN(n,i)]?nD(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.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),j(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(nv(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[nN(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!ng(t,e.blockClass,e.blockSelector,!1)&&(ni.childNodes(t).forEach(function(t){return e.genAdds(t)}),nw(t)&&ni.childNodes(ni.shadowRoot(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 nD(e,t){e.delete(t),ni.childNodes(t).forEach(function(t){return nD(e,t)})}function nF(e,t,r){var n;return 0!==e.size&&!!(n=ni.parentNode(t))&&e.has(n)}function nL(e,t){return 0!==e.size&&function e(t,r){var n=ni.parentNode(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nU=function(e){return iq?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(iq&&!0===iq(e))return;throw e}}:e},nB=[];function nj(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function nq(e,t){var r=new nP;nB.push(r),r.init(e);var n=new(nn())(nU(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function nz(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return no("scroll",nU(nc(nU(function(e){var s=nj(e);if(!(!s||ng(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=nh(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 nW=["INPUT","TEXTAREA","SELECT"],nV=new WeakMap;function n$(e){var t;return t=[],nJ("CSSGroupingRule")&&R(e.parentRule,CSSGroupingRule)||nJ("CSSMediaRule")&&R(e.parentRule,CSSMediaRule)||nJ("CSSSupportsRule")&&R(e.parentRule,CSSSupportsRule)||nJ("CSSConditionRule")&&R(e.parentRule,CSSConditionRule)?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function nG(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function nY(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(ni.host(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}}),nU(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function nZ(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};f=e,d=t,m=f.mutationCb,g=f.mousemoveCb,v=f.mouseInteractionCb,y=f.scrollCb,_=f.viewportResizeCb,b=f.inputCb,w=f.mediaInteractionCb,S=f.styleSheetRuleCb,k=f.styleDeclarationCb,C=f.canvasMutationCb,I=f.fontCb,x=f.selectionCb,O=f.customElementCb,f.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mutation&&d.mutation.apply(d,[].concat(t)),m.apply(void 0,[].concat(t))},f.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mousemove&&d.mousemove.apply(d,[].concat(t)),g.apply(void 0,[].concat(t))},f.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mouseInteraction&&d.mouseInteraction.apply(d,[].concat(t)),v.apply(void 0,[].concat(t))},f.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.scroll&&d.scroll.apply(d,[].concat(t)),y.apply(void 0,[].concat(t))},f.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.viewportResize&&d.viewportResize.apply(d,[].concat(t)),_.apply(void 0,[].concat(t))},f.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.input&&d.input.apply(d,[].concat(t)),b.apply(void 0,[].concat(t))},f.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mediaInteaction&&d.mediaInteaction.apply(d,[].concat(t)),w.apply(void 0,[].concat(t))},f.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleSheetRule&&d.styleSheetRule.apply(d,[].concat(t)),S.apply(void 0,[].concat(t))},f.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleDeclaration&&d.styleDeclaration.apply(d,[].concat(t)),k.apply(void 0,[].concat(t))},f.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.canvasMutation&&d.canvasMutation.apply(d,[].concat(t)),C.apply(void 0,[].concat(t))},f.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.font&&d.font.apply(d,[].concat(t)),I.apply(void 0,[].concat(t))},f.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.selection&&d.selection.apply(d,[].concat(t)),x.apply(void 0,[].concat(t))},f.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.customElement&&d.customElement.apply(d,[].concat(t)),O.apply(void 0,[].concat(t))},e.recordDOM&&(ea=nq(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=nc(nU(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=nU(nc(nU(function(e){var r=nj(e),n=ny(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=np()),c.push({x:i,y:s,id:o.getId(r),timeOffset:np()-t}),u("undefined"!=typeof DragEvent&&R(e,DragEvent)?nx.Drag:R(e,MouseEvent)?nx.MouseMove:nx.TouchMove)}),s,{trailing:!1})),p=[no("mousemove",l,i),no("touchmove",l,i),no("drag",l,i)];return nU(function(){p.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(nE).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
1).forEach(function(e){var s=es(e);if(window.PointerEvent)switch(nE[e]){case nE.MouseDown:case nE.MouseUp:s=s.replace("mouse","pointer");break;case nE.TouchStart:case nE.TouchEnd:return}c.push(no(s,function(r){var s=nj(r);if(!ng(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nO.Mouse;break;case"touch":a=nO.Touch;break;case"pen":a=nO.Pen}a===nO.Touch?nE[e]===nE.MouseDown?c="TouchStart":nE[e]===nE.MouseUp&&(c="TouchEnd"):nO.Pen}else ny(r)&&(a=nO.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===nO.Touch||c.startsWith("Mouse")&&a===nO.Mouse)&&(a=null)):nE[e]===nE.Click&&(a=u,u=null);var l=ny(r)?r.changedTouches[0]:r;if(l){var p=n.getId(s),h=l.clientX,f=l.clientY;nU(t)(E({type:nE[c],id:p,x:h,y:f},null!==a&&{pointerType:a}))}}},r))}),nU(function(){c.forEach(function(e){return e()})})}(e),o=nz(e),s=(M=e.viewportResizeCb,A=-1,T=-1,no("resize",nU(nc(nU(function(){var e=nf(),t=nd();(A!==e||T!==t)&&(M({width:Number(t),height:Number(e)}),A=e,T=t)}),200)),r)),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,p=e.userTriggeredOnInput;function h(e){var t=nj(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=ni.parentElement(t)),!(!t||!l||0>nW.indexOf(l)||ng(t,i,o,!0)||t.classList.contains(s)||a&&t.matches(a))){var h=t.value,d=!1,m=ec(t)||"";"radio"===m||"checkbox"===m?d=t.checked:(c[l.toLowerCase()]||c[m])&&(h=eo({element:t,maskInputOptions:c,tagName:l,type:m,value:h,maskInputFn:u})),f(t,p?{text:h,isChecked:d,userTriggered:n}:{text:h,isChecked:d});var g=t.name;"radio"===m&&g&&d&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,p?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=nV.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nV.set(e,r);var o=n.getId(e);nU(t)(E({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return no(e,nU(h),r)}),m=r.defaultView;if(!m)return function(){d.forEach(function(e){return e()})};var g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),v=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push.apply(d,[].concat(v.map(function(e){return nu(e[0],e[1],{set:function(){nU(h)({target:this,isTrusted:!1})}},!1,m)}))),nU(function(){d.forEach(function(e){return e()})})}(e),c=(N=e.mediaInteractionCb,P=e.blockClass,D=e.blockSelector,L=e.mirror,U=e.sampling,B=e.doc,q=[no("play",(j=nU(function(e){return nc(nU(function(t){var r=nj(t);if(!(!r||ng(r,P,D,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;N({type:e,id:L.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),U.media||500)}))(nR.Play),B),no("pause",j(nR.Pause),B),no("seeked",j(nR.Seeked),B),no("volumechange",j(nR.VolumeChange),B),no("ratechange",j(nR.RateChange),B)],nU(function(){q.forEach(function(e){return e()})})),u=function(){},l=function(){},p=function(){},h=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:nU(function(e,t,r){var n=r[0],a=r[1],c=nG(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:nU(function(e,t,r){var n=r[0],a=nG(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)}
1)}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nU(function(e,t,r){var n=r[0],a=nG(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:nU(function(e,t,r){var n=r[0],a=nG(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={};nH("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(nH("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),nH("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),nH("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var p={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];p[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(p[t].insertRule,{apply:nU(function(e,t,r){var n=r[0],a=r[1],c=nG(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(n$(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(p[t].deleteRule,{apply:nU(function(e,t,r){var n=r[0],a=nG(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(n$(t),[n])}]}),e.apply(t,r)})})}),nU(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=p[t].insertRule,r.prototype.deleteRule=p[t].deleteRule})})}(e,{win:r}),l=nY(e,e.doc),z=e.styleDeclarationCb,W=e.mirror,V=e.ignoreCSSAttributes,$=e.stylesheetManager,Y=(G=r).CSSStyleDeclaration.prototype.setProperty,G.CSSStyleDeclaration.prototype.setProperty=new Proxy(Y,{apply:nU(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if(V.has(i))return Y.apply(t,[i,o,s]);var a=nG(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,$.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&z({id:c,styleId:u,set:{property:i,value:o,priority:s},index:n$(t.parentRule)}),e.apply(t,r)})}),Z=G.CSSStyleDeclaration.prototype.removeProperty,G.CSSStyleDeclaration.prototype.removeProperty=new Proxy(Z,{apply:nU(function(e,t,r){var n,i=r[0];if(V.has(i))return Z.apply(t,[i]);var o=nG(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,$.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&z({id:s,styleId:a,remove:{property:i},index:n$(t.parentRule)}),e.apply(t,r)})}),p=nU(function(){G.CSSStyleDeclaration.prototype.setProperty=Y,G.CSSStyleDeclaration.prototype.removeProperty=Z}),e.collectFonts&&(h=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=nl(r.fonts,"add",function(e){return function(r){return setTimeout(nU(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),nU(function(){i.forEach(function(e){return e()})})}(e)));for(var f,d,m,g,v,y,_,b,w,S,k,C,I,x,O,M,A,T,N,P,D,L,U,B,j,q,z,W,V,$,G,Y,Z,J,H,X,K,Q,ee,et,er,en,ei,ea,eu,el=(J=e.doc,H=e.mirror,X=e.blockClass,K=e.blockSelector,Q=e.selectionCb,ee=!0,(et=nU(function(){var e=J.getSelection();if(e&&(!ee||null==e||!e.isCollapsed)){ee=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;ng(o,X,K,!0)||ng(a,X,K,!0)||t.push({start:H.getId(o),startOffset:s,end:H.getId(a),endOffset:c})}Q({ranges:t})}}))(),no("selectionchange",et)),ep=(er=e.doc,en=e.customElementCb,(ei=er.defaultView)&&ei.customElements?nl(ei.customElements,"define",function(e){return function(t,r,n){try{en({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),eh=[],ef=F(e.plugins);!(eu=ef()).done;){var ed=eu.value;eh.push(ed.observer(ed.callback,r,ed.options))}
1return nU(function(){nB.forEach(function(e){return e.reset()}),null==ea||ea.disconnect(),n(),i(),o(),s(),a(),c(),u(),l(),p(),h(),el(),ep(),eh.forEach(function(e){return e()})})}function nJ(e){return void 0!==window[e]}function nH(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var nX=function(){function e(e){j(this,"iframeIdToRemoteIdMap",new WeakMap),j(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);return"number"!=typeof t?t:n.get(t)||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n
1)})},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}(),nK=function(){function e(e){j(this,"iframes",new WeakMap),j(this,"crossOriginIframeMap",new WeakMap),j(this,"crossOriginIframeMirror",new nX(ey)),j(this,"crossOriginIframeStyleMirror"),j(this,"crossOriginIframeRootIdMap",new WeakMap),j(this,"mirror"),j(this,"mutationCb"),j(this,"wrappedEmit"),j(this,"loadListener"),j(this,"stylesheetManager"),j(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nX(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 nI.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:nI.IncrementalSnapshot,data:{source:nx.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nI.Meta:case nI.Load:case nI.DomContentLoaded:break;case nI.Plugin:return t;case nI.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nI.IncrementalSnapshot:switch(t.data.source){case nx.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 nx.Drag:case nx.TouchMove:case nx.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nx.ViewportResize:return!1;case nx.MediaInteraction:case nx.MouseInteraction:case nx.Scroll:case nx.CanvasMutation:case nx.Input:return this.replaceIds(t.data,e,["id"]),t;case nx.StyleSheetRule:case nx.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nx.Font:return t;case nx.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nx.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=F(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
1h(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nA.Document||e.rootId||(e.rootId=t),("childNodes"in e)&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),nQ=function(){function e(e){j(this,"shadowDoms",new WeakSet),j(this,"mutationCb"),j(this,"scrollCb"),j(this,"bypassOptions"),j(this,"mirror"),j(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=nq(E({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nz(E({},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(ni.host(e))),r.restoreHandlers.push(nY({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(nl(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=ni.shadowRoot(this);return o&&nC(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}(),n0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n1="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n2=0;n2<n0.length;n2++)n1[n0.charCodeAt(n2)]=n2;var n3=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=n0[r[t]>>2]+n0[(3&r[t])<<4|r[t+1]>>4]+n0[(15&r[t+1])<<2|r[t+2]>>6]+n0[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},n9=new Map,n4=function(e,t,r){if(e&&(n6(e,t)||(void 0===e?"undefined":N(e))==="object")){var n,i=e.constructor.name,o=((n=n9.get(r))||(n=new Map,n9.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}},n5=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(R(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(R(t,Float32Array)||R(t,Float64Array)||R(t,Int32Array)||R(t,Uint32Array)||R(t,Uint8Array)||R(t,Uint16Array)||R(t,Int16Array)||R(t,Int8Array)||R(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(R(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:n3(t)};else if(R(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(R(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(R(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(R(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(n6(t,r)||(void 0===t?"undefined":N(t))==="object")return{rr_type:t.constructor.name,index:n4(t,r,n)};return t}(e,t,r)})},n6=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 R(e,t[r])})};function n8(e,t,r,n){var i=[];try{var o=nl(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(!ng(this,t,r,!0)){var c="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c)){if(s[0]&&"object"===N(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}
1return function(){i.forEach(function(e){return e()})}}function n7(e,t,r,n,i,o){for(var s,a=[],c=Object.getOwnPropertyNames(e),u=F(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=nl(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(n4(l,o,this),"tagName"in this.canvas&&!ng(this.canvas,n,i,!0)){var p=n5(a,o,this);r(this.canvas,{type:t,property:c,args:p})}return l}});a.push(u)}catch(n){a.push(nu(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var ie="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",it="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(ie),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function ir(e){var t;try{if(!(t=it&&(window.URL||window.webkitURL).createObjectURL(it)))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,"+ie,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var ii=function(){function e(e){var t=this;j(this,"pendingCanvasMutations",new Map),j(this,"rafStamps",{latestId:0,invokeId:null}),j(this,"mirror"),j(this,"mutationCb"),j(this,"resetObservers"),j(this,"frozen",!1),j(this,"locked",!1),j(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=n8(t,r,n,!0),c=new Map,u=new ir;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:nM["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,p=0,h=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){ng(t,r,n,!0)||e.push(t)}),e},f=function(e){if(p&&e-p<l){o=requestAnimationFrame(f);return}
1p=e,h().forEach(C(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=n8(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=F(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=nl(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 ng(this.canvas,r,n,!0)||setTimeout(function(){var r=n5(c,t,o);e(o.canvas,{type:nM["2D"],property:s,args:r})},0),i.apply(this,c)}});o.push(a)}catch(r){var c=nu(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nM["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(n7(e.WebGLRenderingContext.prototype,nM.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(n7(e.WebGL2RenderingContext.prototype,nM.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,A(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),io=function(){function e(e){j(this,"trackedLinkElements",new WeakSet),j(this,"mutationCb"),j(this,"adoptedStyleSheetCb"),j(this,"styleMirror",new nS),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=F(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}(),is=function(){function e(){j(this,"nodeMap",new WeakMap),j(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}(),ia=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var ic=document.createElement("iframe");document.body.appendChild(ic),Array.from=(null==(iS=ic.contentWindow)?void 0:iS.Array.from)||Array.from,document.body.removeChild(ic)}}catch(e){console.debug("Unable to override Array.from",e)}var iu=new ei;function il(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,p=void 0===l?null:l,h=e.maskTextClass,f=void 0===h?"rr-mask":h,d=e.maskTextSelector,m=void 0===d?null:d,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,_=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,S=e.maskTextFn,k=e.hooks,C=e.packFn,I=e.sampling,x=void 0===I?{}:I,O=e.dataURLOptions,M=void 0===O?{}:O,R=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,N=e.recordCanvas,P=void 0!==N&&N,D=e.recordCrossOriginIframes,L=void 0!==D&&D,U=e.recordAfter,B=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,j=e.userTriggeredOnInput,q=void 0!==j&&j,z=e.collectFonts,W=void 0!==z&&z,V=e.inlineImages,$=void 0!==V&&V,G=e.plugins,Y=e.keepIframeSrcFn,Z=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,H=void 0===J?new Set([]):J;iq=e.errorHandler;var X=!L||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===x.mousemove&&(x.mousemove=R),iu.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}: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=F(G||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!K&&(e=C(e)),e};iz=function(e,i){var o,s=e;if(s.timestamp=np(),(null==(o=nB[0])?void 0:o.isFrozen())&&s.type!==nI.FullSnapshot&&!(s.type===nI.IncrementalSnapshot&&s.data.source===nx.Mutation)&&nB.forEac
1h(function(e){return e.unfreeze()}),X)null==t||t(er(s),i);else if(K){var a={type:"rrweb",event:er(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===nI.FullSnapshot)eo=s,et=0;else if(s.type===nI.IncrementalSnapshot){if(s.data.source===nx.Mutation&&s.data.isAttachIframe)return;et++;var c=n&&et>=n,u=r&&s.timestamp-eo.timestamp>r;(c||u)&&iW(!0)}};for(var en,eo,es,ea=function(e){iz({type:nI.IncrementalSnapshot,data:E({source:nx.Mutation},e)})},ec=function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.Scroll},e)})},eu=function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.CanvasMutation},e)})},el=new io({mutationCb:ea,adoptedStyleSheetCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.AdoptedStyleSheet},e)})}}),ep=new nK({mirror:iu,mutationCb:ea,stylesheetManager:el,recordCrossOriginIframes:L,wrappedEmit:iz}),eh=F(G||[]);!(es=eh()).done;){var ef=es.value;ef.getMirror&&ef.getMirror({nodeMirror:iu,crossOriginIframeMirror:ep.crossOriginIframeMirror,crossOriginIframeStyleMirror:ep.crossOriginIframeStyleMirror})}var ed=new is;iV=new ii({recordCanvas:P,mutationCb:eu,win:window,blockClass:o,blockSelector:a,mirror:iu,sampling:x.canvas,dataURLOptions:M});var em=new nQ({mutationCb:ea,scrollCb:ec,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:M,maskTextFn:S,maskInputFn:w,recordCanvas:P,inlineImages:$,sampling:x,slimDOMOptions:ee,iframeManager:ep,stylesheetManager:el,canvasManager:iV,keepIframeSrcFn:Z,processedNodeManager:ed},mirror:iu});iW=function(e){if(void 0===e&&(e=!1),T){iz({type:nI.Meta,data:{href:window.location.href,width:nd(),height:nf()}},e),el.reset(),em.init(),nB.forEach(function(e){return e.lock()});var t,r,n,i,s,c,u,l,p,h,d,g,y,_,b,k,C,I,x,E,O,R,A,N=(t=document,i=void 0===(n=(r={mirror:iu,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:S,maskInputFn:w,slimDOM:ee,dataURLOptions:M,recordCanvas:P,inlineImages:$,onSerialize:function(e){n_(e,iu)&&ep.addIframe(e),nb(e,iu)&&el.trackLinkElement(e),nw(e)&&em.addShadowRoot(ni.shadowRoot(e),document)},onIframeLoad:function(e,t){ep.attachIframe(e,t),em.observeAttachShadow(e)},onStylesheetLoad:function(e,t){el.attachLinkElement(e,t)},keepIframeSrcFn:Z}).mirror)?new ei:n,s=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,p=r.inlineStylesheet,h=r.inlineImages,d=r.recordCanvas,y=void 0!==(g=r.maskAllInputs)&&g,_=r.maskTextFn,b=r.maskInputFn,C=void 0!==(k=r.slimDOM)&&k,I=r.dataURLOptions,x=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,R=r.iframeLoadTimeout,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===p||p,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}:!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:I,inlineImages:void 0!==h&&h,recordCanvas:void 0!==d&&d,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:R,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(A=r.keepIframeSrcFn)?function(){return!1}:A,newlyAddedElement:!1}));if(!N)return console.warn("Failed to snapshot the document");iz({type:nI.FullSnapshot,data:{node:N,initialOffset:nh(window)}},e),nB.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&el.adoptStyleSheets(document.adoptedStyleSheets,iu.getId(document))}};try{var eg=[],ev=function(e){var t;return nU(nZ)({mutationCb:ea,mousemoveCb:function(e,t){return iz({type:nI.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.MouseInteraction},e)})},scrollCb:ec,viewportResizeCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.ViewportResize},e)})},inputCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.Input},e)})},mediaInteractionCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.MediaInteraction},e)})},styleSheetRuleCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.StyleSheetRule},e)})},styleDeclarationCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.StyleDeclaration},e)})},canvasMutationCb:eu,fontCb:function(e){return iz({type:nI.IncrementalSnapshot,data:E({source:nx.Font},e)})},selectionCb:function(e){iz({type:nI.IncrementalSnapshot,data:E({source:nx.Selection},e)})},customElementCb:function(e){iz({type:nI.IncrementalSnapshot,data:E({source:nx.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:p,maskTextClass:f,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:x,recordDOM:T,recordCanvas:P,inlineImages:$,userTriggeredOnInput:q,collectFonts:W,doc:e,maskInputFn:w,maskTextFn:S,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:ee,dataURLOptions:M,mirror:iu,iframeManager:ep,stylesheetManager:el,shadowDomManager:em,processedNodeManager:ed,canvasManager:iV,ignoreCSSAttributes:H,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 iz({type:nI.Plugin,data:{plugin:e.name,payload:t}}
1)}}}))||[]},k)};ep.addLoadListener(function(e){try{eg.push(ev(e.contentDocument))}catch(e){console.warn(e)}});var ey=function(){iW(),eg.push(ev(document)),ia=!0};return"interactive"===document.readyState||"complete"===document.readyState?ey():(eg.push(no("DOMContentLoaded",function(){iz({type:nI.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ey()})),eg.push(no("load",function(){iz({type:nI.Load,data:{}}),"load"===B&&ey()},window))),function(){eg.forEach(function(e){return e()}),ed.destroy(),ia=!1,iq=void 0}}catch(e){console.warn(e)}}il.addCustomEvent=function(e,t){if(!ia)throw Error("please add custom event after start recording");iz({type:nI.Custom,data:{tag:e,payload:t}})},il.freezePage=function(){nB.forEach(function(e){return e.freeze()})},il.takeFullSnapshot=function(e){if(!ia)throw Error("please take full snapshot after start recording");iW(e)},il.mirror=iu,(ib=i$||(i$={}))[ib.NotStarted=0]="NotStarted",ib[ib.Running=1]="Running",ib[ib.Stopped=2]="Stopped",il.addCustomEvent,il.freezePage,il.takeFullSnapshot;var ip,ih,id,im,ig,iv,iy,i_,ib,iw,iS,ik,iC,iI,ix,iE,iO,iM,iR,iA,iT,iN,iP,iD,iF,iL,iU,iB,ij,iq,iz,iW,iV,i$,iG,iY,iZ,iJ=iw.setImmediate,iH=Object.prototype.toString,iX=void 0!==iJ?function(e){return iJ(e)}:setTimeout;try{Object.defineProperty({},"x",{}),iG=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){iG=function(e,t,r){return e[t]=r,e}}function iK(e,t){iZ.add(e,t),iY||(iY=iX(iZ.drain))}function iQ(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function i0(){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=iQ(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 i1(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=iQ(e))?iK(function(){var n=new i9(r);try{t.call(e,function(){i1.apply(n,arguments)},function(){i2.apply(n,arguments)})}catch(e){i2.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&iK(i0,r))}catch(e){i2.call(new i9(r),e)}}}function i2(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&iK(i0,t))}function i3(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 i9(e){this.def=e,this.triggered=!1}function i4(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function i5(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 i4(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&&iK(i0,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){i1.call(t,e)},function(e){i2.call(t,e)})}catch(e){i2.call(t,e)}}iZ=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=iY=void 0;r;)r.fn.call(r.self),r=r.next}}}();var i6=iG({},"constructor",i5,!1);i5.prototype=i6,iG(i6,"__NPO__",0,!1),iG(i5,"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)})}),iG(i5,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),iG(i5,"all",function(e){var t=this;return"[object Array]"!==iH.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;i3(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),iG(i5,"race",function(e){var t=this;return"[object Array]"!==iH.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");i3(t,e,function(e,t){r(t)},n)})}),g="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:i5;var i8={DEBUG:!1,LIB_VERSION:"2.67.0"},i7=Array.prototype,oe=Function.prototype,ot=Object.prototype,or=i7.slice,on=ot.toString,oi=ot.hasOwnProperty,oo=iw.console,os=iw.navigator,oa=iw.document,oc=iw.opera,ou=iw.screen,ol=os.userAgent,op=oe.bind,oh=i7.forEac
1h,of=i7.indexOf,od=i7.map,om=Array.isArray,og={},ov={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},oy={log:function(){if(i8.DEBUG&&!ov.isUndefined(oo)&&oo)try{oo.log.apply(oo,arguments)}catch(e){ov.each(arguments,function(e){oo.log(e)})}},warn:function(){if(i8.DEBUG&&!ov.isUndefined(oo)&&oo){var e=["Mixpanel warning:"].concat(ov.toArray(arguments));try{oo.warn.apply(oo,e)}catch(t){ov.each(e,function(e){oo.warn(e)})}}},error:function(){if(i8.DEBUG&&!ov.isUndefined(oo)&&oo){var e=["Mixpanel error:"].concat(ov.toArray(arguments));try{oo.error.apply(oo,e)}catch(t){ov.each(e,function(e){oo.error(e)})}}},critical:function(){if(!ov.isUndefined(oo)&&oo){var e=["Mixpanel error:"].concat(ov.toArray(arguments));try{oo.error.apply(oo,e)}catch(t){ov.each(e,function(e){oo.error(e)})}}}},o_=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(oy,arguments)}},ob=function(e){return{log:o_(oy.log,e),error:o_(oy.error,e),critical:o_(oy.critical,e)}},ow=function(e){return function(){try{return e.apply(this,arguments)}catch(e){oy.critical("Implementation error. Please turn on debug and contact [email protected]."),i8.DEBUG&&oy.critical(e)}}},oS=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=ow(t[r]))};ov.bind=function(e,t){var r,n;if(op&&e.bind===op)return op.apply(e,or.call(arguments,1));if(!ov.isFunction(e))throw TypeError();return r=or.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(or.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(or.call(arguments)));return Object(s)===s?s:o}},ov.each=function(e,t,r){if(null!=e){if(oh&&e.forEach===oh)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)===og)return}else for(var o in e)if(oi.call(e,o)&&t.call(r,e[o],o,e)===og)return}},ov.extend=function(e){return ov.each(or.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},ov.isArray=om||function(e){return"[object Array]"===on.call(e)},ov.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},ov.isArguments=function(e){return!!(e&&oi.call(e,"callee"))},ov.toArray=function(e){return e?e.toArray?e.toArray():ov.isArray(e)||ov.isArguments(e)?or.call(e):ov.values(e):[]},ov.map=function(e,t,r){if(od&&e.map===od)return e.map(t,r);var n=[];return ov.each(e,function(e){n.push(t.call(r,e))}),n},ov.keys=function(e){var t=[];return null===e||ov.each(e,function(e,r){t[t.length]=r}),t},ov.values=function(e){var t=[];return null===e||ov.each(e,function(e){t[t.length]=e}),t},ov.include=function(e,t){var r=!1;return null===e?r:of&&e.indexOf===of?-1!=e.indexOf(t):(ov.each(e,function(e){if(r||(r=e===t))return og}),r)},ov.includes=function(e,t){return -1!==e.indexOf(t)},ov.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},ov.isObject=function(e){return e===Object(e)&&!ov.isArray(e)},ov.isEmptyObject=function(e){if(ov.isObject(e)){for(var t in e)if(oi.call(e,t))return!1;return!0}return!1},ov.isUndefined=function(e){return void 0===e},ov.isString=function(e){return"[object String]"==on.call(e)},ov.isDate=function(e){return"[object Date]"==on.call(e)},ov.isNumber=function(e){return"[object Number]"==on.call(e)},ov.isElement=function(e){return!!(e&&1===e.nodeType)},ov.encodeDates=function(e){return ov.each(e,function(t,r){ov.isDate(t)?e[r]=ov.formatDate(t):ov.isObject(t)&&(e[r]=ov.encodeDates(t))}),e},ov.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ov.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())},ov.strip_empty_properties=function(e){var t={};return ov.each(e,function(e,r){ov.isString(e)&&e.length>0&&(t[r]=e)}),t},ov.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):ov.isArray(e)?(r=[],ov.each(e,function(e){r.push(ov.truncate(e,t))})):ov.isObject(e)?(r={},ov.each(e,function(e,n){r[n]=ov.truncate(e,t)})):r=e,r},ov.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=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+="    ",l=[],"[object Array]"===on.apply(p)){for(o=0,c=p.length;o<c;o+=1)l[o]=r(o,p)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in p)oi.call(p,s)&&(a=r(s,p))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},ov.JSONDecode=(a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},c=function(e){var t=SyntaxError(e);throw t.at=n,t.text=o,t},u=function(e){return e&&e!==i&&c("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(n),n+=1,i},l=function(){var e,t="";for("-"===i&&(t="-",u("-"));i>="0"&&i<="9";)t+=i,u();if("."===i)for(t+=".";u()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,u(),("-"===i||"+"===i)&&(t+=i,u());i>="0"&&i<="9";)t+=i,u();if(isFinite(e=+t))return e;c("Bad number")},p=function(){var e,t,r,n="";if('"'===i)for(;u();){if('"'===i)return u(),n;if("\\"===i){if(u(),"u"===i){for(t=0,r=0;t<4&&isFinite(e=parseInt(u(),16));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else if("string"==typeof a[i])n+=a[i];else break}else n+=i}c("Bad string")},h=function(){for(;i&&i<=" ";)u()},f=function(){switch(i){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}c('Unexpected "'+i+'"')},d=function(){var e=[];
1if("["===i){if(u("["),h(),"]"===i)return u("]"),e;for(;i;){if(e.push(s()),h(),"]"===i)return u("]"),e;u(","),h()}}c("Bad array")},m=function(){var e,t={};if("{"===i){if(u("{"),h(),"}"===i)return u("}"),t;for(;i;){if(e=p(),h(),u(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=s(),h(),"}"===i)return u("}"),t;u(","),h()}}c("Bad object")},s=function(){switch(h(),i){case"{":return m();case"[":return d();case'"':return p();case"-":return l();default:return i>="0"&&i<="9"?l():f()}},function(e){var t;return o=e,n=0,i=" ",t=s(),h(),i&&c("Syntax error"),t}),ov.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=ov.utf8Encode(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i);while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},ov.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},ov.UUID=function(){try{return iw.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]="-",ov.map(e,function(e){return e.toString(16)}).join("")}};var ok=["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"];ov.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<ok.length;t++)if(-1!==e.indexOf(ok[t]))return!0;return!1},ov.HTTPBuildQuery=function(e,t){var r,n,i=[];return ov.isUndefined(t)&&(t="&"),ov.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},ov.getQueryParam=function(e,t){var r="[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)",n=new RegExp(r).exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var i=n[1];try{i=decodeURIComponent(i)}catch(e){oy.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},ov.cookie={get:function(e){for(var t=e+"=",r=oa.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=ov.JSONDecode(ov.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=oF(oa.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),oa.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=oF(oa.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+864e5*r),c="; expires="+p.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var h=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return oa.cookie=h,h},remove:function(e,t,r){ov.cookie.set(e,"",-1,t,!1,!1,r)}};var oC=function(e){var t=!0;try{var r="__mplss_"+oN(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},oI=null,ox=function(e,t){return null===oI||t?oI=oC(e||iw.localStorage):oI},oE=null;function oO(e,t,r){var n=function(e){oy.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||oy.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 ov.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)}}}}ov.localStorage=oO(iw.localStorage,"localStorage",ox),ov.sessionStorage=oO(iw.sessionStorage,"sessionStorage",function(e,t){return null===oE||t?oE=oC(e||iw.sessionStorage):oE}),ov.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){oy.error("No valid element provided to register_event");return}if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(r){if(r=r||e(iw.event)){var i,o,s=!0;return ov.isFunction(a)&&(i=a(r)),o=n.call(t,r),(!1===i||!1===o)&&(s=!1),s}}}}}();var oM=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');ov.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!oa.getElementsByTagName)return[];var n=r.split(" "),i=[oa];for(d=0;d<n.length;d++){if((u=n[d].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){p=(l=u.split("#"))[0];var o=l[1],s=oa.getElementById(o);if(!s||p&&s.nodeName.toLowerCase()!=p)return[];i=[s];continue}if(u.indexOf(".")>-1){p=(l=u.split("."))[0];var a=l[1];for(p||(p="*"),h=[],f=0,m=0;m<i.length;m++)for(g=0,v="*"==p?e(i[m]):i[m].getElementsByTagName(p);g<v.length;g++)h[f++]=v[g];for(m=0,i=[],y=0;m<h.length;m++)h[m].className&&ov.isString(h[m].className)&&(" "+h[m].className+" ").replace(t," ").indexOf(" "+a+" ")>=0&&(i[y++]=h[m]);continue}var c=u.match(oM);if(c){p=c[1];var u,l,p,h,f,d,m,g,v,y,_,b=c[2],w=c[3],S=c[4];for(p||(p="*"),h=[],f=0,m=0;m<i.length;m++)for(g=0,v="*"==p?e(i[m]):i[m].getElementsByTagName(p);g<v.length;g++)h[f++]=v[g];switch(i=[],y=0,w){case"=":_=function(e){return e.getAttribute(b)==S};break;case"~":_=function(e){return e.getAttribute(b).match(RegExp("\\b"+S+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(RegExp("^"+S+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(S)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(S)==e.getAttribute(b).length-S.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(S)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(m=0,i=[],y=0;m<h.length;m++)_(h[m])&&(i[y++]=h[m]);continue}for(m=0,p=u,h=[],f=0;m<i.length;m++)for(g=0,v=i[m].getElementsByTagName(p);g<v.length;g++)h[f++]=v[g];i=h}return i}return function(e){return ov.isElement(e)?[e]:ov.isObject(e)&&!ov.isUndefined(e.length)?e:r.call(this,e)}}();var oR=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],oA=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];ov.info={campaignParams:function(e){var t="",r={};return ov.each(oR,function(n){(t=ov.getQueryParam(oa.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return ov.each(oA,function(r){(e=ov.getQueryParam(oa.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return ov.extend(ov.info.campaignParams(),ov.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=ov.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=ov.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||ov.includes(e," OPR/"))return ov.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(ov.includes(e,"IEMobile")||ov.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(ov.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(ov.includes(e,"Edge")||ov.includes(e,"Edg/"))return"Microsoft Edge";if(ov.includes(e,"FBIOS"))return"Facebook Mobile";if(ov.includes(e,"Whale/"))return"Whale Browser";else if(ov.includes(e,"Chrome"))return"Chrome";else if(ov.includes(e,"CriOS"))return"Chrome iOS";else if(ov.includes(e,"UCWEB")||ov.includes(e,"UCBrowser"))return"UC Browser";else if(ov.includes(e,"FxiOS"))return"Firefox iOS";else if(ov.includes(t,"Apple"))return ov.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(ov.includes(e,"Android"))return"Android Mobile";else if(ov.includes(e,"Konqueror"))return"Konqueror";else if(ov.includes(e,"Firefox"))return"Firefox";else if(ov.includes(e,"MSIE")||ov.includes(e,"Trident/"))return"Internet Explorer";else if(ov.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+)?)/}[ov.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(ol))return/Phone/.test(ol)||/WPDesktop/.test(ol)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(ol))return"iOS";if(/Android/.test(ol))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(ol))return"BlackBerry";if(/Mac/i.test(ol))return"Mac OS X";if(/Linux/.test(ol))return"Linux";if(/CrOS/.test(ol))return"Chrome OS";else return""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return iw.location.href},properties:function(e){return"object"!=typeof e&&(e={}),ov.extend(ov.strip_empty_properties({$os:ov.info.os(),$browser:ov.info.browser(ol,os.vendor,oc),$referrer:oa.referrer,$referring_domain:ov.info.referringDomain(oa.referrer),$device:ov.info.device(ol)}
1),{$current_url:ov.info.currentUrl(),$browser_version:ov.info.browserVersion(ol,os.vendor,oc),$screen_height:ou.height,$screen_width:ou.width,mp_lib:"web",$lib_version:i8.LIB_VERSION,$insert_id:oN(),time:ov.timestamp()/1e3},ov.strip_empty_properties(e))},people_properties:function(){return ov.extend(ov.strip_empty_properties({$os:ov.info.os(),$browser:ov.info.browser(ol,os.vendor,oc)}),{$browser_version:ov.info.browserVersion(ol,os.vendor,oc)})},mpPageViewProperties:function(){return ov.strip_empty_properties({current_page_title:oa.title,current_domain:iw.location.hostname,current_url_path:iw.location.pathname,current_url_protocol:iw.location.protocol,current_url_search:iw.location.search})}};var oT=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new g(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},oN=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},oP=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,oD=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,oF=function(e){var t=oD,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=oP);var i=e.match(t);return i?i[0]:""},oL=function(){var e=iw.navigator.onLine;return ov.isUndefined(e)||e},oU=function(){},oB=null,oj=null;"undefined"!=typeof JSON&&(oB=JSON.stringify,oj=JSON.parse),oB=oB||ov.JSONEncode,oj=oj||ov.JSONDecode,ov.info=ov.info,ov.info.browser=ov.info.browser,ov.info.browserVersion=ov.info.browserVersion,ov.info.device=ov.info.device,ov.info.properties=ov.info.properties,ov.isBlockedUA=ov.isBlockedUA,ov.isEmptyObject=ov.isEmptyObject,ov.isObject=ov.isObject,ov.JSONDecode=ov.JSONDecode,ov.JSONEncode=ov.JSONEncode,ov.toArray=ov.toArray,ov.NPO=i5;var oq="mixpanelRecordingEvents",oz="mixpanelRecordingRegistry",oW=[oq,oz],oV=function(e){this.dbPromise=null,this.storeName=e};function o$(e,t){o2(!0,e,t)}function oG(e,t){o2(!1,e,t)}function oY(e,t){return"1"===o1(e,t)}function oZ(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||iw,r=t.navigator||{},n=!1;return ov.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){ov.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return oy.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"===o1(e,t);return r&&oy.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function oJ(e){return o3(e,function(e){return this.get_config(e)})}function oH(e){return o3(e,function(e){return this._get_config(e)})}function oX(e){return o3(e,function(e){return this._get_config(e)})}function oK(e,t){oQ(t=t||{}).remove(o0(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function oQ(e){return"localStorage"===(e=e||{}).persistenceType?ov.localStorage:ov.cookie}function o0(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function o1(e,t){return oQ(t).get(o0(e,t))}function o2(e,t,r){if(!ov.isString(t)||!t.length){oy.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}oQ(r=r||{}).set(o0(t,r),e?1:0,ov.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})}function o3(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=oZ(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){oy.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)}}oV.prototype._openDb=function(){return new g(function(e,t){var r=iw.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;oW.forEach(function(e){t.createObjectStore(e)})}})},oV.prototype.init=function(){return iw.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof iw.ID
1BDatabase?g.resolve():g.reject(e)})):g.reject("indexedDB is not supported in this browser")},oV.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new g(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):g.reject(e)}).bind(this))},oV.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},oV.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},oV.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},oV.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var o9=ob("lock"),o4=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||iw.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||g};o4.prototype.withLock=function(e,t){return new this.promiseImpl(ov.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",p=s+":Y",h=s+":Z",f=function(e){if(new Date().getTime()-o>c){o9.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(h),u.removeItem(p),g();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},m=function(){var e=u.getItem(p);return(!e||e===i)&&(u.setItem(p,i),u.getItem(p)===i||(ox(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),d(m,function(){if(u.getItem(l)===i){v();return}f(function(){if(u.getItem(p)!==i){g();return}d(function(){return!u.getItem(h)},v)})})},v=function(){u.setItem(h,"1");var t=function(){u.removeItem(h),u.getItem(p)===i&&u.removeItem(p),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(ox(u,!0))g();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var o5=function(e){this.storage=e||iw.localStorage};o5.prototype.init=function(){return g.resolve()},o5.prototype.setItem=function(e,t){return new g(ov.bind(function(r,n){try{this.storage.setItem(e,oB(t))}catch(e){n(e)}r()},this))},o5.prototype.getItem=function(e){return new g(ov.bind(function(t,r){var n;try{n=oj(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},o5.prototype.removeItem=function(e){return new g(ov.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var o6=ob("batch"),o8=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new o5,this.lock=new o4(e,{storage:t.sharedLockStorage||iw.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||ov.bind(o6.error,o6),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=oT(ov.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=ov.bind(function(e){return this._enqueuePersisted([e])},this)};o8.prototype.ensureInit=function(){return this.initialized?g.resolve():this.queueStorage.init().then(ov.bind(function(){this.initialized=!0},this)).catch(ov.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},o8.prototype.enqueue=function(e,t){var r={id:oN(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),g.resolve(!0))},o8.prototype._enqueuePersisted=function(e){var t=ov.bind(function(){return this.ensureInit().then(ov.bind(function(){return this.readFromStorage()},this)).then(ov.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(ov.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(ov.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(ov.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},o8.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(ov.bind(function(){return this.readFromStorage()},this)).then(ov.bind(function(r){if(r.length){var n={};ov.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):g.resolve(t)};var o7=function(e,t){var r=[];return ov.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};o8.prototype.removeItemsByID=function(e){var t={};if(ov.each(e,function(e){t[e]=!0}),this.memQueue=o7(this.memQueue,t),!this.usePersistence)return g.resolve(!0);var r=ov.bind(function(){return this.ensureInit().then(ov.bind(function(){return this.readFromStorage()},this)).then(ov.bind(function(e){return e=o7(e,t),this.saveToStorage(e)},this)).then(ov.bind(function(){return this.readFromStorage()},this)).then(ov.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(ov.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(ov.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ox(this.lock.storage,!0)&&r().then(ov.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(ov.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var se=function(e,t){var r=[];return ov.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};o8.prototype.updatePayloads=function(e){return(this.memQueue=se(this.memQueue,e),this.usePersistence)?this.lock.withLock(ov.bind(function(){return this.ensureInit().then(ov.bind(function(){return this.readFromStorage()},this)).then(ov.bind(function(t){return t=se(t,e),this.saveToStorage(t)}
1,this)).catch(ov.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(ov.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):g.resolve(!0)},o8.prototype.readFromStorage=function(){return this.ensureInit().then(ov.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(ov.bind(function(e){return e&&!ov.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(ov.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},o8.prototype.saveToStorage=function(e){return this.ensureInit().then(ov.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(ov.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},o8.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(ov.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):g.resolve()};var st=ob("batch"),sr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new o8(e,{errorReporter:ov.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};sr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},sr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},sr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},sr.prototype.clear=function(){return this.queue.clear()},sr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},sr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},sr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(ov.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},sr.prototype.sendRequestPromise=function(e,t){return new g(ov.bind(function(r){this.sendRequest(e,t,r)},this))},sr.prototype.flush=function(e){if(this.requestInProgress)return st.log("Flush: Request already in progress"),g.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(ov.bind(function(i){var o=i.length===n,s=[],a={};if(ov.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=ov.extend({},t.properties,{mp_sent_by_lib_version:i8.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),g.resolve();var c=ov.bind(function(){return this.queue.removeItemsByID(ov.map(i,function(e){return e.id})).then(ov.bind(function(e){return(ov.each(i,ov.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),g.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),g.resolve())},this))},this),u=ov.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(ov.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(ov.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!oL()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),g.resolve()}if(!ov.isObject(o)||413!==o.httpStatusCode)return c();if(i.length>1)return this.batchSize=Math.min(this.batchSize,Math.max(1,Math.floor(n/2)),i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),g.resolve();return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}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"),st.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(ov.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},sr.prototype.reportError=function(e,t){if(st.error.apply(st.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){st.error(e)}};var sn=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},si=ob("recorder"),so=iw.CompressionStream,ss={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},sa=new Set([nx.MouseMove,nx.MouseInteraction,nx.Scroll,nx.ViewportResize,nx.Input,nx.TouchMove,nx.MediaInteraction,nx.Drag,nx.Selection]),sc=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||oU,this._onMaxLengthReached=e.onMaxLengthReached||oU,this._onBatchSent=e.onBatchSent||oU,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.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ox(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new oV(oq),this.batcher=new sr(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:ss,send
1RequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};sc.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},sc.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},sc.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},sc.prototype.get_config=function(e){return this.getConfig(e)},sc.prototype.startRecording=function(e){if(null===this._rrwebRecord){this.reportError("rrweb record function not provided. ");return}if(null!==this._stopRecording){si.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,si.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,si.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=ov.info.currentUrl(),this.replayStartUrl=ov.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}e.type===nI.IncrementalSnapshot&&sa.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e)}
1).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,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}})}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 n=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)},sc.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},sc.prototype.isRrwebStopped=function(){return null===this._stopRecording},sc.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)},sc.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,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},sc.deserialize=function(e,t){return new sc(ov.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},sc.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=ov.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");iw.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})})},sc.prototype._flushEvents=oJ(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===nI.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:i8.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},p=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),so){var h=new Blob([p],{type:"application/json"}).stream().pipeThrough(new so("gzip"));new Response(h).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this))}else l.format="body",this._sendRequest(i,l,p,r)}}),sc.prototype.reportError=function(e,t){si.error.apply(si.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){si.error(e)}};var su=function(e){this.idb=new oV(oz),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};su.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},su.prototype.setActiveRecording=function(e){var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),g.resolve())},su.prototype.getActiveRecording=function(){return this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return sn(e)?null:e}).bind(this)).catch(this.handleError.bind(this))},su.prototype.clearActiveRecording=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},su.prototype.flushInactiveRecordings=function(){return this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return sn(e)}).map((function(e){return sc.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return g.all(t)}).bind(this)).catch(this.handleError.bind(this))};var sl=ob("recorder"),sp=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||il,this.sharedLockStorage=r,this.recordingRegistry=new su({mixpanelInstance:this.mixpanelInstance,errorReporter:sl.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};sp.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){sl.log("Recording already in progress, skipping startRecording.");return}var t=(function(){sl.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){sl.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:ov.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=sc.deserialize(e.activeSerializedRecording,i):this.activeRecording=new sc(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},sp.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))},sp.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},sp.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return g.resolve()},sp.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),g.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(sl.log("No resumable recording found."),null)}).bind(this))},sp.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},sp.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(sp.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),iw.__mp_recorder=sp;
1var sh="change",sf="click",sd="hashchange",sm="mp_locationchange",sg="popstate",sv="scrollend",sy="submit",s_=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],sb=["mp-include"],sw=["mp-no-track"],sS=sw.concat(["mp-sensitive"]),sk=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],sC=ob("autocapture");function sI(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 sE(e,t,r,n,i,o){var s={$classes:sx(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),sP(e,t,i,o)&&ov.each(sk.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);sD(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&&!sA(e));return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function sO(e,t,r,n){var i="";return sP(e,t,r,n)&&e.childNodes&&e.childNodes.length&&ov.each(e.childNodes,function(e){sN(e)&&e.textContent&&(i+=ov.trim(e.textContent).split(/(\s+)/).filter(sD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ov.trim(i)}function sM(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return sC.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){sC.critical("Error while checking selector: "+o,e)}}return!1}function sR(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return sC.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){sC.critical("Error while checking selector: "+o,e)}}var s=sI(e);for(i=0;i<sw.length;i++)if(s[sw[i]])return!0;return!1}function sA(e){return e&&1===e.nodeType}function sT(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function sN(e){return e&&3===e.nodeType}function sP(e,t,r,n){if(!sM(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!sT(o,"body");o=o.parentNode){var s=sI(o);for(i=0;i<sS.length;i++)if(s[sS[i]])return!1}var a=sI(e);for(i=0;i<sb.length;i++)if(a[sb[i]])return!0;if(sT(e,"input")||sT(e,"select")||sT(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,"")))}function sD(e){return!(null===e||ov.isUndefined(e)||"string"==typeof e&&(e=ov.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)))}var sF="autocapture",sL="full-url",sU="allow_selectors",sB="allow_url_regexes",sj="block_attrs",sq="block_element_callback",sz="block_selectors",sW="block_url_regexes",sV="capture_extra_attrs",s$="capture_text_content",sG="scroll_capture_all",sY="scroll_depth_percent_checkpoints",sZ="click",sJ="input",sH="pageview",sX="scroll",sK="submit",sQ={};sQ[sU]=[],sQ[sB]=[],sQ[sj]=[],sQ[sq]=null,sQ[sz]=[],sQ[sW]=[],sQ[sV]=[],sQ[s$]=!1,sQ[sG]=!1,sQ[sY]=[25,50,75,100],sQ[sZ]=!0,sQ[sJ]=!0,sQ[sH]=sL,sQ[sX]=!0,sQ[sK]=!0;var s0={$mp_autocapture:!0},s1="$mp_click",s2=function(e){this.mp=e};s2.prototype.init=function(){if(!function(){try{return!!oa.createElement("div").matches}catch(e){return!1}}()){sC.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},s2.prototype.getFullConfig=function(){var e=this.mp.get_config(sF);return e?ov.isObject(e)?ov.extend({},sQ,e):sQ:{}},s2.prototype.getConfig=function(e){return this.getFullConfig()[e]},s2.prototype.currentUrlBlocked=function(){var e,t=ov.info.currentUrl(),r=this.getConfig(sB)||[];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 sC.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(sW)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return sC.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},s2.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(sF)?this.getConfig(sH):this.mp.get_config("track_pageview")},s2.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.captured
1ForHeatMap||!1,l={};ov.each(i,function(e){l[e]=!0});var p=null,h=void 0===e.target?e.srcElement:e.target;if(sN(h)&&(h=h.parentNode),function(e,t){if(!e||sT(e,"html")||!sA(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===sy;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===sh;return t.type===sf;case"select":case"textarea":return t.type===sh;default:return t.type===sf}}(h,e)&&sM(h,e,r,n)&&!sR(h,e,o,s)){for(var f=[h],d=h;d.parentNode&&!sT(d,"body");)f.push(d.parentNode),d=d.parentNode;var m,g=[],v=!1;if(ov.each(f,function(t){var i=sP(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&sD(m)&&m),sR(t,e,o,s)&&(v=!0),g.push(sE(t,e,l,c,r,n))},this),!v){var y=oa.documentElement;if(p={$event_type:e.type,$host:iw.location.host,$pathname:iw.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,iw.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,iw.innerWidth||0),$pageHeight:oa.body.offsetHeight||0,$pageWidth:oa.body.offsetWidth||0},ov.each(c,function(e){if(!l[e]&&h.hasAttribute(e)){var t=h.getAttribute(e);sD(t)&&(p["$el_attr__"+e]=t)}}),a&&(_=sO(h,e,r,n))&&_.length&&(p.$el_text=_),e.type===sf&&(ov.each(s_,function(t){t in e&&(p["$"+t]=e[t])}),u&&(p.$captured_for_heatmap=!0),h=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(sT(i,"a")||sT(i,"button")||sT(i,"input")||sT(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=sO(h,e,r,n);_&&_.length&&(p.$el_text=_)}if(h){if(!sM(h,e,r,n)||sR(h,e,o,s))return null;var b=sE(h,e,l,c,r,n);p.$target=b,p.$el_classes=b.$classes,ov.extend(p,ov.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return p}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(sU),blockAttrs:this.getConfig(sj),blockElementCallback:this.getConfig(sq),blockSelectors:this.getConfig(sz),captureExtraAttrs:this.getConfig(sV),captureTextContent:this.getConfig(s$),capturedForHeatMap:t===s1&&!this.getConfig(sZ)&&this.mp.is_recording_heatmap_data()});r&&(ov.extend(r,s0),this.mp.track(t,r))}},s2.prototype.initClickTracking=function(){iw.removeEventListener(sf,this.listenerClick),(this.getConfig(sZ)||this.mp.get_config("record_heatmap_data"))&&(sC.log("Initializing click tracking"),this.listenerClick=iw.addEventListener(sf,(function(e){(this.getConfig(sZ)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,s1)}).bind(this)))},s2.prototype.initInputTracking=function(){iw.removeEventListener(sh,this.listenerChange),this.getConfig(sJ)&&(sC.log("Initializing input tracking"),this.listenerChange=iw.addEventListener(sh,(function(e){this.getConfig(sJ)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this)))},s2.prototype.initPageviewTracking=function(){if(iw.removeEventListener(sg,this.listenerPopstate),iw.removeEventListener(sd,this.listenerHashchange),iw.removeEventListener(sm,this.listenerLocationchange),this.pageviewTrackingConfig()){
1sC.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(s0)),t&&(e=ov.info.currentUrl()),this.listenerPopstate=iw.addEventListener(sg,function(){iw.dispatchEvent(new Event(sm))}),this.listenerHashchange=iw.addEventListener(sd,function(){iw.dispatchEvent(new Event(sm))});var r=iw.history.pushState;"function"==typeof r&&(iw.history.pushState=function(e,t,n){r.call(iw.history,e,t,n),iw.dispatchEvent(new Event(sm))});var n=iw.history.replaceState;"function"==typeof n&&(iw.history.replaceState=function(e,t,r){n.call(iw.history,e,t,r),iw.dispatchEvent(new Event(sm))}),this.listenerLocationchange=iw.addEventListener(sm,ow((function(){if(!this.currentUrlBlocked()){var t=ov.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===sL?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(s0)&&(e=t),n&&(this.lastScrollCheckpoint=0,sC.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)))}},s2.prototype.initScrollTracking=function(){iw.removeEventListener(sv,this.listenerScroll),this.getConfig(sX)&&(sC.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=iw.addEventListener(sv,ow((function(){if(!(!this.getConfig(sX)||this.currentUrlBlocked())){var e=this.getConfig(sG),t=(this.getConfig(sY)||[]).slice().sort(function(e,t){return e-t}),r=iw.scrollY,n=ov.extend({$scroll_top:r},s0);try{var i=oa.body.scrollHeight,o=Math.round(r/(i-iw.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){sC.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this))))},s2.prototype.initSubmitTracking=function(){iw.removeEventListener(sy,this.listenerSubmit),this.getConfig(sK)&&(sC.log("Initializing submit tracking"),this.listenerSubmit=iw.addEventListener(sy,(function(e){this.getConfig(sK)&&this.trackDomEvent(e,"$mp_submit")}).bind(this)))},oS(s2);var s3=iw.fetch,s9=ob("flags"),s4="flags",s5="context",s6={};s6[s5]={};var s8=function(e){this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};s8.prototype.init=function(){if(!(s3&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set)){s9.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},s8.prototype.getFullConfig=function(){var e=this.getMpConfig(s4);return e?ov.isObject(e)?ov.extend({},s6,e):s6:{}},s8.prototype.getConfig=function(e){return this.getFullConfig()[e]},s8.prototype.isSystemEnabled=function(){return!!this.getMpConfig(s4)},s8.prototype.areFlagsReady=function(){return this.isSystemEnabled()||s9.error("Feature Flags not enabled"),!!this.flags},s8.prototype.fetchFlags=function(){if(this.isSystemEnabled()){var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id");s9.log("Fetching flags for distinct ID: "+e);var r={context:ov.extend({distinct_id:e,device_id:t},this.getConfig(s5))};this._fetchInProgressStartTime=Date.now(),this.fetchPromise=iw.fetch(this.getFullApiRoute(),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),"Content-Type":"application/octet-stream"},body:JSON.stringify(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 r=new Map;ov.each(t,function(e,t){r.set(t,{key:e.variant_key,value:e.variant_value})}),this.flags=r}).bind(this)).catch((function(e){this.markFetchComplete(),s9.error(e)}).bind(this))}).bind(this)).catch((function(e){this.markFetchComplete(),s9.error(e)}).bind(this))}},s8.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){s9.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},s8.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return s9.error(e),t}):new Promise(function(e){s9.critical("Feature Flags not initialized"),e(t)})},s8.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return s9.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(s9.log('No flag found: "'+e+'"'),t)},s8.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return s9.error(e),t})},s8.prototype.getFeatureData=function(e,t){return s9.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
1) instead."),this.getVariantValue(e,t)},s8.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},s8.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return s9.error(e),t})},s8.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(s9.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},s8.prototype.trackFeatureCheck=function(e,t){this.trackedFeatures.has(e)||(this.trackedFeatures.add(e),this.track("$experiment_started",{"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}))},oS(s8),s8.prototype.are_flags_ready=s8.prototype.areFlagsReady,s8.prototype.get_variant=s8.prototype.getVariant,s8.prototype.get_variant_sync=s8.prototype.getVariantSync,s8.prototype.get_variant_value=s8.prototype.getVariantValue,s8.prototype.get_variant_value_sync=s8.prototype.getVariantValueSync,s8.prototype.is_enabled=s8.prototype.isEnabled,s8.prototype.is_enabled_sync=s8.prototype.isEnabledSync,s8.prototype.get_feature_data=s8.prototype.getFeatureData;var s7=function(){};s7.prototype.create_properties=function(){},s7.prototype.event_handler=function(){},s7.prototype.after_track_handler=function(){},s7.prototype.init=function(e){return this.mp=e,this},s7.prototype.track=function(e,t,r,n){var i=this,o=ov.dom_query(e);if(0===o.length){oy.error("The DOM query ("+e+") returned 0 elements");return}return ov.each(o,function(e){ov.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},s7.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))}},s7.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):ov.extend({},e)};var ae=function(){this.override_event="click"};ov.inherit(ae,s7),ae.prototype.create_properties=function(e,t){var r=ae.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},ae.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()},ae.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var at=function(){this.override_event="submit"};ov.inherit(at,s7),at.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},at.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var ar="$set",an="$set_once",ai="$unset",ao="$add",as="$append",aa="$union",ac="$remove",au={set_action:function(e,t){var r={},n={};return ov.isObject(e)?ov.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[ar]=n,r},unset_action:function(e){var t={},r=[];return ov.isArray(e)||(e=[e]),ov.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[ai]=r,t},set_once_action:function(e,t){var r={},n={};return ov.isObject(e)?ov.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[an]=n,r},union_action:function(e,t){var r={},n={};return ov.isObject(e)?ov.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=ov.isArray(e)?e:[e])},this):n[e]=ov.isArray(t)?t:[t],r[aa]=n,r},append_action:function(e,t){var r={},n={};return ov.isObject(e)?ov.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[as]=n,r},remove_action:function(e,t){var r={},n={};return ov.isObject(e)?ov.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[ac]=n,r},delete_action:function(){var e={};return e.$delete="",e}},al=function(){};ov.extend(al.prototype,au),al.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},al.prototype.set=oX(function(e,t,r){var n=this.set_action(e,t);return ov.isObject(e)&&(r=t),this._send_request(n,r)}),al.prototype.set_once=oX(function(e,t,r){var n=this.set_once_action(e,t);return ov.isObject(e)&&(r=t),this._send_request(n,r)}),al.prototype.unset=oX(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),al.prototype.union=oX(function(e,t,r){ov.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),al.prototype.delete=oX(function(e){var t=this.delete_action();return this._send_request(t,e)}),al.prototype.remove=oX(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),al.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=ov.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)},al.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},al.prototype._get_config=function(e){return this._mixpanel.get_config(e)},al.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},al.prototype.remove=al.prototype.remove,al.prototype.set=al.prototype.set,al.prototype.set_once=al.prototype.set_once,al.prototype.union=al.prototype.union,al.prototype.unset=al.prototype.unset,al.prototype.toString=al.prototype.toString;var ap=function(){};ov.extend(ap.prototype,au),ap.prototype._init=function(e){this._mixpanel=e},ap.prototype.set=oH(function(e,t,r){var n=this.set_action(e,t);return ov.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[ar]=ov.extend({},ov.info.people_properties(),n[ar]),this._send_request(n,r)}),ap.prototype.set_once=oH(function(e,t,r){var n=this.set_once_action(e,t);return ov.isObject(e)&&(r=t),this._send_request(n,r)}),ap.prototype.unset=oH(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ap.prototype.increment=oH(function(e,t,r){var n={},i={};return ov.isObject(e)?(ov.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){oy.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}i[t]=e}},this),r=t):(ov.isUndefined(t)&&(t=1),i[e]=t),n[ao]=i,this._send_request(n,r)}),ap.prototype.append=oH(function(e,t,r){ov.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),ap.prototype.remove=oH(function(e,t,r){ov.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),ap.prototype.union=oH(function(e,t,r){ov.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ap.prototype.track_charge=oH(function(){oy.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),ap.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ap.prototype.delete_user=function(){if(!this._identify_called()){oy.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},ap.prototype.toString=function(){return this._mixpanel.toString()+".people"},ap.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=ov.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),ov.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),ov.truncate(o,255))},ap.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ap.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ap.prototype._enqueue=function(e){ar in e?this._mixpanel.persistence._add_to_people_queue(ar,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):ai in e?this._mixpanel.persistence._add_to_people_queue(ai,e):ao in e?this._mixpanel.persistence._add_to_people_queue(ao,e):as in e?this._mixpanel.persistence._add_to_people_queue(as,e):ac in e?this._mixpanel.persistence._add_to_people_queue(ac,e):aa in e?this._mixpanel.persistence._add_to_people_queue(aa,e):oy.error("Invalid call to _enqueue():",e)},ap.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=ov.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!ov.isUndefined(o)&&ov.isObject(o)&&!ov.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
1xpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),ov.isUndefined(r)||r(t,n)}))},ap.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(ar,this.set,e),this._flush_one_queue(an,this.set_once,n),this._flush_one_queue(ai,this.unset,o,function(e){return ov.keys(e)}),this._flush_one_queue(ao,this.increment,t),this._flush_one_queue(aa,this.union,i);var c=this._mixpanel.persistence.load_queue(as);if(!ov.isUndefined(c)&&ov.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(as,u),ov.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)u=(c=this._mixpanel.persistence.load_queue(as)).pop(),a._mixpanel.persistence.save(),ov.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(ac);if(!ov.isUndefined(h)&&ov.isArray(h)&&h.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ac,f),ov.isUndefined(s)||s(e,t)},m=h.length-1;m>=0;m--)f=(h=this._mixpanel.persistence.load_queue(ac)).pop(),a._mixpanel.persistence.save(),ov.isEmptyObject(f)||a.remove(f,d)},ap.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ap.prototype.set=ap.prototype.set,ap.prototype.set_once=ap.prototype.set_once,ap.prototype.unset=ap.prototype.unset,ap.prototype.increment=ap.prototype.increment,ap.prototype.append=ap.prototype.append,ap.prototype.remove=ap.prototype.remove,ap.prototype.union=ap.prototype.union,ap.prototype.track_charge=ap.prototype.track_charge,ap.prototype.clear_charges=ap.prototype.clear_charges,ap.prototype.delete_user=ap.prototype.delete_user,ap.prototype.toString=ap.prototype.toString;var ah="__mps",af="__mpso",ad="__mpus",am="__mpa",ag="__mpap",av="__mpr",ay="__mpu",a_="$people_distinct_id",ab="__alias",aw="__timers",aS=[ah,af,ad,am,ag,av,ay,a_,ab,aw],ak=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&&(oy.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&ov.localStorage.is_supported()?this.storage=ov.localStorage:this.storage=ov.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};ak.prototype.properties=function(){var e={};return this.load(),ov.each(this.props,function(t,r){ov.include(aS,r)||(e[r]=t)}),e},ak.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=ov.extend({},e))}},ak.prototype.upgrade=function(){var e,t;this.storage===ov.localStorage?(e=ov.cookie.parse(this.name),ov.cookie.remove(this.name),ov.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===ov.cookie&&(t=ov.localStorage.parse(this.name),ov.localStorage.remove(this.name),t&&this.register_once(t))},ak.prototype.save=function(){this.disabled||this.storage.set(this.name,oB(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ak.prototype.load_prop=function(e){return this.load(),this.props[e]},ak.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ak.prototype.clear=function(){this.remove(),this.props={}},ak.prototype.register_once=function(e,t,r){return!!ov.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),ov.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},ak.prototype.register=function(e,t){return!!ov.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),ov.extend(this.props,e),this.save(),!0)},ak.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},ak.prototype.update_search_keyword=function(e){this.register(ov.info.searchInfo(e))},ak.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:ov.info.referringDomain(e)||"$direct"},"")},ak.prototype.get_referrer_info=function(){return ov.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ak.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)},ak.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ak.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ak.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ak.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ak.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ak.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ak.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(ar),o=this._get_or_create_queue(an),s=this._get_or_create_queue(ai),a=this._get_or_create_queue(ao),c=this._get_or_create_queue(aa),u=this._get_or_create_queue(ac,[]),l=this._get_or_create_queue(as,[]);r===ah?(ov.extend(i,n),this._pop_from_people_queue(ao,n),this._pop_from_people_queue(aa,n),this._pop_from_people_queue(ai,n)):r===af?(ov.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(ai,n)):r===ad?ov.each(n,function(e){ov.each([i,o,a,c],function(t){e in t&&delete t[e]}),ov.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===am?(ov.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(ai,n)):r===ay?(ov.each(n,function(e,t){ov.isArray(e)&&(t in c||(c[t]=[]),ov.each(e,function(e){ov.include(c[t],e)||c[t].push(e)}))}
1),this._pop_from_people_queue(ai,n)):r===av?(u.push(n),this._pop_from_people_queue(as,n)):r===ag&&(l.push(n),this._pop_from_people_queue(ai,n)),oy.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),oy.log(t),this.save()},ak.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];ov.isUndefined(r)||ov.each(t,function(t,n){e===as||e===ac?ov.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},ak.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},ak.prototype._get_queue_key=function(e){return e===ar?ah:e===an?af:e===ai?ad:e===ao?am:e===as?ag:e===ac?av:e===aa?ay:void oy.error("Invalid queue:",e)},ak.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=ov.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},ak.prototype.set_event_timer=function(e,t){var r=this.load_prop(aw)||{};r[e]=t,this.props[aw]=r,this.save()},ak.prototype.remove_event_timer=function(e){var t=(this.load_prop(aw)||{})[e];return ov.isUndefined(t)||(delete this.props[aw][e],this.save()),t};var aC=function(e,t){throw Error(e+" not available in this build.")},aI=function(e){return e},ax="mixpanel",aE="base64",aO="$device:",aM=iw.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,aR=!aM&&-1===ol.indexOf("MSIE")&&-1===ol.indexOf("Mozilla"),aA=null;os.sendBeacon&&(aA=function(){return os.sendBeacon.apply(os,arguments)});var aT={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},aN={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:aT,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:aE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:oU,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:oU,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,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"},aP=!1,aD=function(){},aF=function(e,t,r){var n,i=r===ax?y:y[r];if(i&&0===v)n=i;else{if(i&&!ov.isArray(i)){oy.error("You have already initialized "+r);return}n=new aD}if(n._cached_groups={},n._init(e,t,r),n.people=new ap,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=ov.info.campaignParams(null),s={},a=!1;ov.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return i8.DEBUG=i8.DEBUG||n.get_config("debug"),!ov.isUndefined(i)&&ov.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};aD.prototype.init=function(e,t,r){if(ov.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===ax){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=aF(e,t,r);return y[r]=n,n._loaded(),n},aD.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)&&(t.api_host||aN.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(ov.extend({},aN,n,t,{name:r,token:e,callback_fn:(r===ax?r:ax+"."+r)+"._jsc"})),this._jsc=oU,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(ov.localStorage.is_supported(!0)&&aM){if(this.init_batchers(),aA&&iw.addEventListener){var i=ov.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);iw.addEventListener("pagehide",function(e){e.persisted&&i()}),iw.addEventListener("visibilitychange",function(){"hidden"===oa.visibilityState&&i()})}}else this._batch_requests=!1,oy.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),ov.each(this.get_batcher_configs(),function(e){oy.log("Clearing batch queue "+e.queue_key),ov.localStorage.remove(e.queue_key)})}this.persistence=this.cookie=new ak(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=ov.UUID();this.get_distinct_id()||this.register_once({distinct_id:aO+o,$device_id:o},""),this.flags=new s8({getFullApiRoute:ov.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:ov.bind(this.get_config,this),getPropertyFunc:ov.bind(this.get_property,this),trackingFunc:ov.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new s2(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()}
1,aD.prototype._init_tab_id=function(){if(ov.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;(ov.sessionStorage.get(r)||!ov.sessionStorage.get(t))&&ov.sessionStorage.set(t,"$tab-"+ov.UUID()),ov.sessionStorage.set(r,"1"),this.tab_id=ov.sessionStorage.get(t),iw.addEventListener("beforeunload",function(){ov.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.")},aD.prototype.get_tab_id=function(){return this.tab_id||null},aD.prototype._should_load_recorder=function(){var e=new oV(oz),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(sn(e[r])||e[r].tabId===t)return!0;return!1}).catch(ov.bind(function(e){this.report_error("Error checking recording registry",e)},this))},aD.prototype._check_and_start_session_recording=oJ(function(e){if(!iw.MutationObserver){oy.critical("Browser does not support MutationObserver; skipping session recording");return}var t=ov.bind(function(e){var t=ov.bind(function(){this._recorder=this._recorder||new iw.__mp_recorder(this),this._recorder.resumeRecording(e)},this);ov.isUndefined(iw.__mp_recorder)?aC(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)})}),aD.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},aD.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},aD.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},aD.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},aD.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},aD.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},aD.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+ov.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},aD.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},aD.prototype.__get_recorder=function(){return this._recorder},aD.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=ov.info.campaignParams(null);ov.each(e,(function(e,t){this.unregister(t)}).bind(this))}},aD.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(oa.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(ov.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(oa.referrer)},aD.prototype._dom_loaded=function(){ov.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||ov.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},aD.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(!aP)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},aD.prototype._prepare_callback=function(e,t){if(ov.isUndefined(e))return null;if(aM)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},aD.prototype._send_request=function(e,t,r,n){var i=!0;if(aR)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!n&&(ov.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=ov.extend(o,r||{}),aM||(r.method="GET");var a="POST"===r.method,c=aA&&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),!aM&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),ov.extend(t,this.get_config("api_extra_query_params")),e+="?"+ov.HTTPBuildQuery(t);var l=this;if("img"in t){var p=oa.createElement("img");p.src=e,oa.body.appendChild(p)}else if(c){try{i=aA(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(aM)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),ov.each(f,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var d=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){if(n){if(u){try{e=ov.JSONDecode(h.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=h.responseText}n(e)}else n(Number(h.responseText))}}else if(t=h.timeout&&!h.status&&new Date().getTime()-d>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(t),n){if(u){var e,t,i=h.responseHeaders||{};n({status:0,httpStatusCode:h.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}}},h.send(s)}catch(e){l.report_error(e),i=!1}else{var m=oa.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=oa.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},aD.prototype._execute_array=function(e){var t,r=[],n=[],i=[];ov.each(e,function(e){e&&(t=e[0],ov.isArray(t)?i.push(e):"function"==typeof e?e.call(this):ov.isArray(e)&&"alias"===t?r.push(e):ov.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){ov.each(e,function(e){if(ov.isArray(e[0])){var r=t;ov.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)},aD.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},aD.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},aD.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=ov.bind(function(e){return new sr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:ov.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:ov.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:ov.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()},aD.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,ov.each(this.request_batchers,function(e){e.start()}))},aD.prototype.stop_batch_senders=function(){this._batch_requests=!1,ov.each(this.request_batchers,function(e){e.stop(),e.clear()})},aD.prototype.push=function(e){this._execute_array([e])},aD.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},aD.prototype._encode_data_for_request=function(e){var t=oB(e);return this.get_config("api_payload_format")===aE&&(t=ov.base64Encode(t)),{data:t}},aD.prototype._track_or_batch=function(e,t){var r=ov.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||oU;var a=!0,c=ov.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(oy.log("MIXPANEL REQUEST:"),oy.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},aD.prototype.track=oJ(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=oU),ov.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}(t=ov.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!ov.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?ov.info.marketingParams():{};t=ov.extend({},ov.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");ov.isArray(u)?ov.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}),aD.prototype.set_group=oJ(function(e,t,r){ov.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),aD.prototype.add_group=oJ(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)}),aD.prototype.remove_group=oJ(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)}),aD.prototype.track_with_groups=oJ(function(e,t,r,n){var i=ov.extend({},t||{});return ov.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),aD.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},aD.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},aD.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 al)._init(this,e,t),this._cached_groups[r]=n),n},aD.prototype.track_pageview=oJ(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=ov.extend(ov.info.mpPageViewProperties(),ov.info.campaignParams(),ov.info.clickParams()),i=ov.extend({},n,e);return this.track(r,i)}),aD.prototype.track_links=function(){return this._track_dom.call(this,ae,arguments)},aD.prototype.track_forms=function(){return this._track_dom.call(this,at,arguments)},aD.prototype.time_event=function(e){if(ov.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var aL={persistent:!0},aU=function(e){var t;return t=ov.isObject(e)?e:ov.isUndefined(e)?{}:{days:e},ov.extend({},aL,t)};aD.prototype.register=function(e,t){var r=aU(t);r.persistent?this.persistence.register(e,r.days):ov.extend(this.unpersisted_superprops,e)},aD.prototype.register_once=function(e,t,r){var n=aU(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),ov.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},aD.prototype.unregister=function(e,t){(t=aU(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},aD.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},aD.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(aO))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:c},""),e!==c&&e!==this.get_property(ab)&&(this.unregister(ab),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},aD.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=ov.UUID();this.register_once({distinct_id:aO+e,$device_id:e},""),this._check_and_start_session_recording()},aD.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},aD.prototype.alias=function(e,t){if(e===this.get_property(a_))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(ov.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(ab,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)},aD.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},aD.prototype.set_config=function(e){ov.isObject(e)&&(ov.extend(this.config,e),e.batch_size&&ov.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),i8.DEBUG=i8.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},aD.prototype.get_config=function(e){return this.config[e]},aD.prototype._run_hook=function(e){var t=(this.config.hooks[e]||aI).apply(this,or.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},aD.prototype.get_property=function(e){return this.persistence.load_prop([e])},aD.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},aD.prototype.toString=function(){var e=this.get_config("name");return e!==ax&&(e=ax+"."+e),e},aD.prototype._event_is_disabled=function(e){return ov.isBlockedUA(ol)||this._flags.disable_all_events||ov.include(this.__disabled_events,e)},aD.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&ov.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")||ov.cookie.get("mp_optout"))&&(ov.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},aD.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()},aD.prototype._gdpr_call_func=function(e,t){return t=ov.extend({track:ov.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),ov.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:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},aD.prototype.opt_in_tracking=function(e){e=ov.extend({enable_persistence:!0},e),this._gdpr_call_func(o$,e),this._gdpr_update_persistence(e)},aD.prototype.opt_out_tracking=function(e){(e=ov.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(oG,e),this._gdpr_update_persistence(e)},aD.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(oY,e)},aD.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oZ,e)},aD.prototype.clear_opt_in_out_tracking=function(e){e=ov.extend({enable_persistence:!0},e),this._gdpr_call_func(oK,e),this._gdpr_update_persistence(e)},aD.prototype.report_error=function(e,t){oy.error.apply(oy.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){oy.error(e)}},aD.prototype.init=aD.prototype.init,aD.prototype.reset=aD.prototype.reset,aD.prototype.disable=aD.prototype.disable,aD.prototype.time_event=aD.prototype.time_event,aD.prototype.track=aD.prototype.track,aD.prototype.track_links=aD.prototype.track_links,aD.prototype.track_forms=aD.prototype.track_forms,aD.prototype.track_pageview=aD.prototype.track_pageview,aD.prototype.register=aD.prototype.register,aD.prototype.register_once=aD.prototype.register_once,aD.prototype.unregister=aD.prototype.unregister,aD.prototype.identify=aD.prototype.identify,aD.prototype.alias=aD.prototype.alias,aD.prototype.name_tag=aD.prototype.name_tag,aD.prototype.set_config=aD.prototype.set_config,aD.prototype.get_config=aD.prototype.get_config,aD.prototype.get_api_host=aD.prototype.get_api_host,aD.prototype.get_property=a
1D.prototype.get_property,aD.prototype.get_distinct_id=aD.prototype.get_distinct_id,aD.prototype.toString=aD.prototype.toString,aD.prototype.opt_out_tracking=aD.prototype.opt_out_tracking,aD.prototype.opt_in_tracking=aD.prototype.opt_in_tracking,aD.prototype.has_opted_out_tracking=aD.prototype.has_opted_out_tracking,aD.prototype.has_opted_in_tracking=aD.prototype.has_opted_in_tracking,aD.prototype.clear_opt_in_out_tracking=aD.prototype.clear_opt_in_out_tracking,aD.prototype.get_group=aD.prototype.get_group,aD.prototype.set_group=aD.prototype.set_group,aD.prototype.add_group=aD.prototype.add_group,aD.prototype.remove_group=aD.prototype.remove_group,aD.prototype.track_with_groups=aD.prototype.track_with_groups,aD.prototype.start_batch_senders=aD.prototype.start_batch_senders,aD.prototype.stop_batch_senders=aD.prototype.stop_batch_senders,aD.prototype.start_session_recording=aD.prototype.start_session_recording,aD.prototype.stop_session_recording=aD.prototype.stop_session_recording,aD.prototype.pause_session_recording=aD.prototype.pause_session_recording,aD.prototype.resume_session_recording=aD.prototype.resume_session_recording,aD.prototype.get_session_recording_properties=aD.prototype.get_session_recording_properties,aD.prototype.get_session_replay_url=aD.prototype.get_session_replay_url,aD.prototype.get_tab_id=aD.prototype.get_tab_id,aD.prototype.DEFAULT_API_ROUTES=aT,aD.prototype.__get_recorder=aD.prototype.__get_recorder,ak.prototype.properties=ak.prototype.properties,ak.prototype.update_search_keyword=ak.prototype.update_search_keyword,ak.prototype.update_referrer_info=ak.prototype.update_referrer_info,ak.prototype.get_cross_subdomain=ak.prototype.get_cross_subdomain,ak.prototype.clear=ak.prototype.clear;var aB={},aj=function(){ov.each(aB,function(e,t){t!==ax&&(y[t]=e)}),y._=ov},aq=(aC=function(e,t){t()},v=0,(y=new aD).init=function(e,t,r){if(r)return y[r]||(y[r]=aB[r]=aF(e,t,r),y[r]._loaded()),y[r];var n=y;aB[ax]?n=aB[ax]:e&&((n=aF(e,t,ax))._loaded(),aB[ax]=n),y=n,1===v&&(iw[ax]=y),aj()},y.init(),function(){function e(){e.done||(e.done=!0,aP=!0,aR=!1,ov.each(aB,function(e){e._dom_loaded()}))}if(oa.addEventListener)"complete"===oa.readyState?e():oa.addEventListener("DOMContentLoaded",e,!1);else if(oa.attachEvent){oa.attachEvent("onreadystatechange",e);var t=!1;try{t=null===iw.frameElement}catch(e){}oa.documentElement.doScroll&&t&&function t(){try{oa.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}ov.register_event(iw,"load",e,!0)}(),y)}}]);

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.